You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 19, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Feb 19, 2026. It is now read-only.
Can't sync with identity.sync.useOAuthForSyncToken enabled #218
My current version is Firefox Nightly 80.0a1 (2020-07-04) (64-bit).
I've created a new profile for the test and will provide logs from this new account.
@vladikoff , currently identity.sync.useOAuthForSyncToken option is enabled by-default.
In order to test, I set identity.sync.tokenserver.uri to https://firefox.MY_DOMAIN.COM/token/1.0/sync/1.5 (replaced in favor of privacy; in attached logs, you will see this URL as well).
After successfull login I got pop-ups that it's OK, but in several seconds it asks me to re-login.
@vladikoff
Is there any update on that? Everyone who uses Firefox 80 with an own sync server is affected by that.
I spent a couple of hours until I found the solution here (#224 (comment))
and the newer version tokenserver needs more dependencies.
you may need musl-devmysql-devgcc if you are using alpine which is the base of the docker image mozilla/syncserver.
then pip install --upgrade --no-cache-dir -r requirements.txt
I failed to build readline which is required by tokenserver, but it may not be important. I'm also wandering why readline is required? see mozilla-services/tokenserver@f33ca50
Activity
rfk commentedon Jul 6, 2020
Thanks for reporting this, do you get any error messages (in either your server logs or about:sync-log on the client) when this option is enabled?
vladikoff commentedon Jul 7, 2020
Hi @berezovskyi-oleksandr ! Did you make any other changes to your about:config besides changing
identity.sync.useOAuthForSyncToken?berezovskyi-oleksandr commentedon Jul 7, 2020
Sorry for the delay.
My current version is Firefox Nightly 80.0a1 (2020-07-04) (64-bit).
I've created a new profile for the test and will provide logs from this new account.
@vladikoff , currently
identity.sync.useOAuthForSyncTokenoption is enabled by-default.In order to test, I set
identity.sync.tokenserver.uritohttps://firefox.MY_DOMAIN.COM/token/1.0/sync/1.5(replaced in favor of privacy; in attached logs, you will see this URL as well).After successfull login I got pop-ups that it's OK, but in several seconds it asks me to re-login.
@rfk , I've attached logs from
about:sync-log- firefox-sync.log.I'm running syncserver in Docker and there are no logs. Only start ones:
Docker env vars which could be helpful:
Once I disable
identity.sync.useOAuthForSyncToken- sync works. BTW, it works with default syncserver.vladikoff commentedon Jul 7, 2020
Thank you for the quick response! So it seems to have trouble with self-hosted instances. We shall take a look
mike2307 commentedon Aug 28, 2020
@vladikoff
Is there any update on that? Everyone who uses Firefox 80 with an own sync server is affected by that.
I spent a couple of hours until I found the solution here (#224 (comment))
sbraz commentedon Aug 31, 2020
On the server, there are very few logs, all I see is:
jackyzy823 commentedon Sep 2, 2020
The main reason is that tokenserver (1.4.5) is too old which requires a PyFxA ( 0.7.4 found in docker but 0.7.1 in requirements.txt weird ) contains mistakes in validate jwt.
https://github.com/mozilla/PyFxA/blob/8402734a6287abd86d6411869a68a125bd6d13e6/fxa/oauth.py#L236
syncserver/requirements.txt
Lines 13 to 14 in e1aab54
So you need to update the requirements.txt to
and the newer version tokenserver needs more dependencies.
you may need
musl-devmysql-devgccif you are usingalpinewhich is the base of the docker imagemozilla/syncserver.then
pip install --upgrade --no-cache-dir -r requirements.txtI failed to build
readlinewhich is required by tokenserver, but it may not be important. I'm also wandering whyreadlineis required? see mozilla-services/tokenserver@f33ca50Please 1. update syncserver 's requirements.txt 2. build new docker image. Thanks.
Update:
Force updating
PyFxA==0.7.7in Dockerfile seems a quick workaround.Update tokenserver and syncstorage requirements
Update requirements to fix sync with useOAuthForSyncToken enabled
rfk commentedon Sep 3, 2020
@jackyzy823 thank you very much! I think I understand what happened here:
Merge pull request mozilla-services#218 from mozilla-services/docs/up…