GithubHelp home page GithubHelp logo

Comments (5)

doc75 avatar doc75 commented on June 18, 2024 1

@zilexa , have you tried in your firefox to check the about:sync-log content ?
I have also a sync issue and can see error in the logs (but I do not know how to solve them 😟 )

from docker-firefox-syncserver.

zilexa avatar zilexa commented on June 18, 2024

I was using Firefox Beta for Android. I installed Firefox for Android besides it and changed the url (after tapping the logo in About Firefox 5 times, this option becomes visible in Settings).

Unfortunately, after authentication, "last sync" stays on Never (Firefox for Android). Even if I tap to sync.

It seems now, both my desktop Firefox and my (new) Firefox for Android are not syncing.
With my old Firefox Beta for Android, I logged out of Sync, changed the URL. Now after a login attempt (authentication), the Firefox Beta app itself is still not logged in. I am logged in on the website and shown as Web Session when I go to my account page. But the Firefox Beta app is not logged in.

Something seems to be going wrong here.

What could have gone wrong here?
The Traefik setup works fine, I use it for multiple services and in Traefik webUI I can see all is OK.

Enabled debug logging:
https://pastebin.com/ySRG6P58

2020-10-21 17:10:57 +0000] [17] [DEBUG] GET /token/1.0/sync/1.5
ERROR:syncserver:The public_url setting doesn't match the application url.
This will almost certainly cause authentication failures!
    public_url setting is: https://firefox.obelix.cloud
    application url is:    http://firefox.obelix.cloud
You can disable this check by setting the force_wsgi_environ
option in your config file, but do so at your own risk.

this does not make sense as I state https:// in Compose and also in the url on my devices. If I disable the check via the env the error goes away. But the issue remains.

from docker-firefox-syncserver.

zilexa avatar zilexa commented on June 18, 2024

@zilexa , have you tried in your firefox to check the about:sync-log content ?
I have also a sync issue and can see error in the logs (but I do not know how to solve them 😟 )

Thanks I will try tomorrow. Had some other unrelated stuff to fix first.
Do post your error please, I'll check my log tomorrow.

from docker-firefox-syncserver.

zilexa avatar zilexa commented on June 18, 2024

The issue remains with application url is: http://firefox.obelix.cloud
While it is https. How can I change the application url ?

from docker-firefox-syncserver.

zilexa avatar zilexa commented on June 18, 2024

I have got it working. Not sure how or why.

##_____________________ Firefox Sync [CLOUD/Browser] 
# generate secret.txt first see docker-config.sh
  firefox-syncserver:
    image: crazymax/firefox-syncserver:latest
    container_name: firefox_syncserver
    restart: always
    environment: 
      - PUID=$PUID
      - PGID=$PGID
      - TZ=$TZ
      - FF_SYNCSERVER_PUBLIC_URL=https://firefox.$DOMAIN
      - FF_SYNCSERVER_SECRET=$FFSYNCSECRET
#      - FF_SYNCSERVER_FORWARDED_ALLOW_IPS=*
      - FF_SYNCSERVER_FORCE_WSGI_ENVIRON=true
      - FF_SYNCSERVER_ALLOW_NEW_USERS=true
      - FF_SYNCSERVER_LOGLEVEL=debug
    volumes:
      - "$USERDIR/docker/firefox-syncserver:/data"
    ports:
      - 5000:5000
    labels:
      - traefik.enable=true
      - traefik.http.middlewares.firefox-redirect.redirectscheme.scheme=https
      - traefik.http.routers.firefox-redirect.entrypoints=web
      - traefik.http.routers.firefox-redirect.middlewares=firefox-redirect
      - traefik.http.routers.firefox-redirect.rule=Host(`firefox.$DOMAIN`)
      - traefik.http.routers.firefox.entrypoints=websecure
      - traefik.http.routers.firefox.rule=Host(`firefox.$DOMAIN`)
      - traefik.http.routers.firefox.tls.certresolver=letsencrypt
      - traefik.http.services.firefox.loadbalancer.server.port=5000

Did not chang any Traefik label.
Note on Android I accidentally changed the Auth server. Be careful to select sync server.
You will get both options via Firefox > Settings > About > tap the logo 5 times > go back to Settings > see the extra options under Sync > Only change the sync server to https://firefox.yourdomain.com/token/token/1.0/sync/1.5

You can also test in a browser:
https://firefox.yourdomain.com/token/
should not show any errors.

BUT: nothing gets synced. I will open a new issue.

from docker-firefox-syncserver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.