This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Firefox Sync does not work

  • 6 replies
  • 1 has this problem
  • 16 views
  • Last reply by cor-el

more options

Hi got this error message:

1654435115415 FirefoxAccounts TRACE initializing new storage manager 1654435115416 FirefoxAccounts TRACE starting fetch of json user data 1654435115418 Sync.Status INFO Resetting Status. 1654435115418 Sync.Status DEBUG Status.service: undefined => success.status_ok 1654435115422 Sync.SyncScheduler TRACE Setting SyncScheduler policy values to defaults. 1654435115422 Sync.SyncScheduler DEBUG Clearing sync triggers and the global score. 1654435115423 Sync.Service INFO Loading Weave 1.103.0 1654435115424 Sync.Engine.Clients DEBUG Engine constructed 1654435115425 Sync.Engine.Clients DEBUG Resetting clients last sync time 1654435115429 Sync.Engine.Addons DEBUG Engine constructed 1654435115436 FirefoxAccounts TRACE finished fetch of json user data - took: 20 1654435115437 FirefoxAccounts DEBUG reading secure storage with existing: [] 1654435115437 FirefoxAccounts TRACE starting fetch of user data from the login manager 1654435115444 FirefoxAccounts DEBUG secure read fetched items: ["scopedKeys","kSync","kXCS","kExtSync","kExtKbHash"] 1654435115444 FirefoxAccounts TRACE initializing of new storage manager done 1654435115478 Sync.Engine.Addons DEBUG SyncEngine initialized: addons 1654435115482 Sync.Engine.Bookmarks DEBUG Engine constructed 1654435115514 Sync.Engine.Bookmarks DEBUG SyncEngine initialized: bookmarks 1654435115517 Sync.Engine.Forms DEBUG Engine constructed 1654435115521 Sync.Engine.Forms DEBUG SyncEngine initialized: forms 1654435115523 Sync.Engine.History DEBUG Engine constructed 1654435115526 Sync.Engine.History DEBUG SyncEngine initialized: history 1654435115528 Sync.Engine.Passwords DEBUG Engine constructed 1654435115533 FirefoxAccounts DEBUG FxAccountsWebChannel registered: account_updates with origin https://accounts.firefox.com 1654435115533 Sync.Engine.Passwords DEBUG SyncEngine initialized: passwords 1654435115535 Sync.Engine.Prefs DEBUG Engine constructed 1654435115536 Sync.Engine.Prefs DEBUG SyncEngine initialized: prefs 1654435115537 Sync.Engine.Tabs DEBUG Engine constructed 1654435115538 Sync.Engine.Tabs DEBUG SyncEngine initialized: tabs 1654435115538 Sync.Engine.Tabs DEBUG Resetting tabs last sync time 1654435115555 Sync.Engine.CreditCards DEBUG Engine constructed 1654435115637 Sync.Engine.CreditCards DEBUG SyncEngine initialized: creditcards 1654435115651 Sync.Engine.Extension-Storage DEBUG Engine constructed 1654435115735 Sync.Engine.Extension-Storage DEBUG SyncEngine initialized: extension-storage 1654435115736 Sync.Service INFO Mozilla/5.0 (X11; Linux x86_64; rv:101.0) Gecko/20100101 Firefox/101.0 1654435115740 Sync.AddonsReconciler INFO Registering as Add-on Manager listener. 1654435115740 Sync.AddonsReconciler DEBUG Adding change listener. 1654435115741 Sync.Engine.History.Tracker INFO Adding Places observer. 1654435115751 FirefoxAccounts DEBUG FxAccountsProfileClient: Initialized 1654435115752 FirefoxAccounts DEBUG FxAccountsProfileClient: Requested profile 1654435115752 FirefoxAccounts DEBUG getOAuthToken enter 1654435115753 FirefoxAccounts TRACE getCachedToken returning cached token 1654435115753 FirefoxAccounts DEBUG getOAuthToken returning a cached token 1654435115754 Services.Common.RESTRequest DEBUG GET request to https://profile.accounts.firefox.com/v1/profile 1654435115764 FirefoxAccounts INFO fetching updated device list 1654435115776 Sync.Service DEBUG User-Agent: Firefox/101.0 (Linux x86_64) FxSync/1.103.0.20220530192118.desktop 1654435115777 Sync.Service INFO Starting sync at 2022-06-05 15:18:35 in browser session rSwzzIoqCLB3 1654435115777 Sync.Service DEBUG In sync: should login. 1654435115777 Sync.Service INFO User logged in successfully - verifying login. 1654435115779 Sync.SyncAuthManager DEBUG unlockAndVerifyAuthState already has (or can fetch) sync keys 1654435115779 Sync.Status DEBUG Status.login: success.login => success.status_ok 1654435115780 Sync.Status DEBUG Status.service: success.status_ok => error.login.failed 1654435115780 Sync.Service DEBUG Fetching unlocked auth state returned success.status_ok 1654435115780 Sync.SyncAuthManager INFO Getting sync key 1654435115781 Sync.SyncAuthManager INFO Getting a sync token from: https://sync.joelmueller.ch/1.0/sync/1.5 1654435115781 Sync.SyncAuthManager DEBUG Getting a token using OAuth 1654435115781 FirefoxAccounts DEBUG getOAuthToken enter 1654435115781 FirefoxAccounts TRACE getCachedToken returning cached token 1654435115781 FirefoxAccounts DEBUG getOAuthToken returning a cached token 1654435115782 Services.Common.TokenServerClient DEBUG Beginning OAuth token exchange: https://sync.joelmueller.ch/1.0/sync/1.5 1654435115782 Services.Common.RESTRequest DEBUG GET request to https://sync.joelmueller.ch/1.0/sync/1.5 1654435115798 Services.Common.RESTRequest DEBUG GET request to https://api.accounts.firefox.com/v1/account/devices 1654435115878 Services.Common.RESTRequest DEBUG GET https://sync.joelmueller.ch/1.0/sync/1.5 200 1654435115878 Services.Common.TokenServerClient DEBUG Got token response: 200 1654435115878 Services.Common.TokenServerClient DEBUG Successful token response 1654435115879 Sync.BulkKeyBundle INFO BulkKeyBundle being created for undefined 1654435115879 Sync.Status DEBUG Status.login: success.status_ok => success.login 1654435115879 Sync.Status DEBUG Status.service: error.login.failed => success.status_ok 1654435115880 Sync.SyncAuthManager DEBUG _findCluster returning https://sync.joelmueller.ch/1.5/4/ 1654435115880 Sync.SyncAuthManager DEBUG Cluster value = https://sync.joelmueller.ch/1.5/4/ 1654435115880 Sync.SyncAuthManager DEBUG Setting cluster to https://sync.joelmueller.ch/1.5/4/ 1654435115880 Sync.Service DEBUG Caching URLs under storage user base: https://sync.joelmueller.ch/1.5/4/ 1654435115882 FirefoxAccounts INFO Already fetching device list, return existing promise 1654435115987 Sync.Resource DEBUG GET fail 401 https://sync.joelmueller.ch/1.5/4/info/collections 1654435115987 Sync.Resource WARN GET request to https://sync.joelmueller.ch/1.5/4/info/collections failed with status 401 1654435115987 Sync.Service WARN 401: login failed. 1654435115987 Sync.SyncAuthManager DEBUG _findCluster has a pre-existing clusterURL, so fetching a new token token 1654435115987 Sync.SyncAuthManager INFO Getting sync key 1654435115988 Sync.SyncAuthManager INFO Getting a sync token from: https://sync.joelmueller.ch/1.0/sync/1.5 1654435115988 Sync.SyncAuthManager DEBUG Getting a token using OAuth 1654435115988 FirefoxAccounts DEBUG getOAuthToken enter 1654435115988 FirefoxAccounts TRACE getCachedToken returning cached token 1654435115988 FirefoxAccounts DEBUG getOAuthToken returning a cached token 1654435115988 Services.Common.TokenServerClient DEBUG Beginning OAuth token exchange: https://sync.joelmueller.ch/1.0/sync/1.5 1654435115988 Services.Common.RESTRequest DEBUG GET request to https://sync.joelmueller.ch/1.0/sync/1.5 1654435116004 Services.Common.RESTRequest DEBUG GET https://sync.joelmueller.ch/1.0/sync/1.5 200 1654435116004 Services.Common.TokenServerClient DEBUG Got token response: 200 1654435116005 Services.Common.TokenServerClient DEBUG Successful token response 1654435116005 Sync.Status DEBUG Status.login: success.login => success.login 1654435116005 Sync.Status DEBUG Status.service: success.status_ok => success.status_ok 1654435116005 Sync.SyncAuthManager DEBUG _findCluster returning https://sync.joelmueller.ch/1.5/4/ 1654435116005 Sync.SyncAuthManager DEBUG Cluster value = https://sync.joelmueller.ch/1.5/4/ 1654435116005 Sync.Status DEBUG Status.login: success.login => error.login.reason.network 1654435116005 Sync.Status DEBUG Status.service: success.status_ok => error.login.failed 1654435116006 Sync.ErrorHandler ERROR Sync encountered a login error 1654435116006 Sync.SyncScheduler DEBUG Clearing sync triggers and the global score. 1654435116007 Sync.SyncScheduler DEBUG Next sync in 3600000 ms. (why=schedule) 1654435116007 Sync.Service DEBUG Exception calling WrappedLock: Error: Login failed: error.login.reason.network(resource://services-sync/service.js:1037:15) JS Stack trace: onNotify@service.js:1037:15 1654435116008 Sync.Service DEBUG Not syncing: login returned false. 1654435116009 FirefoxAccounts INFO Already fetching device list, return existing promise 1654435116010 FirefoxAccounts INFO Already fetching device list, return existing promise 1654435116260 FirefoxAccounts INFO Already fetching device list, return existing promise


My firefox-syncstroage.toml looks like this

  1. Example MySQL DSN:

database_url = "mysql://firefox:XXX@localhost/syncstorage_rs"

  1. Example Spanner DSN:
  2. database_url="spanner://projects/SAMPLE_GCP_PROJECT/instances/SAMPLE_SPANNER_INSTANCE/databases/SAMPLE_SPANNER_DB"

"limits.max_total_records"=1666 # See issues #298/#333 master_secret = "TOKEN"

  1. removing this line will default to moz_json formatted logs (which is preferred for production envs)

human_logs = 1

  1. enable quota limits

enable_quota = 0

  1. set the quota limit to 2GB.
  2. max_quota_limit = 200000000
  1. Example Tokenserver settings:

disable_syncstorage = false tokenserver.database_url = "mysql://firefox:XXX@localhost/syncstorage_rs" tokenserver.enabled = true tokenserver.fxa_email_domain = "api.accounts.firefox.com" tokenserver.fxa_oauth_server_url = "https://oauth.accounts.firefox.com/v1" tokenserver.fxa_metrics_hash_secret = "TOKEN" tokenserver.test_mode_enabled = false

  1. cors settings

cors_allowed_origin = "localhost" cors_max_age = 86400

Hi got this error message: 1654435115415 FirefoxAccounts TRACE initializing new storage manager 1654435115416 FirefoxAccounts TRACE starting fetch of json user data 1654435115418 Sync.Status INFO Resetting Status. 1654435115418 Sync.Status DEBUG Status.service: undefined => success.status_ok 1654435115422 Sync.SyncScheduler TRACE Setting SyncScheduler policy values to defaults. 1654435115422 Sync.SyncScheduler DEBUG Clearing sync triggers and the global score. 1654435115423 Sync.Service INFO Loading Weave 1.103.0 1654435115424 Sync.Engine.Clients DEBUG Engine constructed 1654435115425 Sync.Engine.Clients DEBUG Resetting clients last sync time 1654435115429 Sync.Engine.Addons DEBUG Engine constructed 1654435115436 FirefoxAccounts TRACE finished fetch of json user data - took: 20 1654435115437 FirefoxAccounts DEBUG reading secure storage with existing: [] 1654435115437 FirefoxAccounts TRACE starting fetch of user data from the login manager 1654435115444 FirefoxAccounts DEBUG secure read fetched items: ["scopedKeys","kSync","kXCS","kExtSync","kExtKbHash"] 1654435115444 FirefoxAccounts TRACE initializing of new storage manager done 1654435115478 Sync.Engine.Addons DEBUG SyncEngine initialized: addons 1654435115482 Sync.Engine.Bookmarks DEBUG Engine constructed 1654435115514 Sync.Engine.Bookmarks DEBUG SyncEngine initialized: bookmarks 1654435115517 Sync.Engine.Forms DEBUG Engine constructed 1654435115521 Sync.Engine.Forms DEBUG SyncEngine initialized: forms 1654435115523 Sync.Engine.History DEBUG Engine constructed 1654435115526 Sync.Engine.History DEBUG SyncEngine initialized: history 1654435115528 Sync.Engine.Passwords DEBUG Engine constructed 1654435115533 FirefoxAccounts DEBUG FxAccountsWebChannel registered: account_updates with origin https://accounts.firefox.com 1654435115533 Sync.Engine.Passwords DEBUG SyncEngine initialized: passwords 1654435115535 Sync.Engine.Prefs DEBUG Engine constructed 1654435115536 Sync.Engine.Prefs DEBUG SyncEngine initialized: prefs 1654435115537 Sync.Engine.Tabs DEBUG Engine constructed 1654435115538 Sync.Engine.Tabs DEBUG SyncEngine initialized: tabs 1654435115538 Sync.Engine.Tabs DEBUG Resetting tabs last sync time 1654435115555 Sync.Engine.CreditCards DEBUG Engine constructed 1654435115637 Sync.Engine.CreditCards DEBUG SyncEngine initialized: creditcards 1654435115651 Sync.Engine.Extension-Storage DEBUG Engine constructed 1654435115735 Sync.Engine.Extension-Storage DEBUG SyncEngine initialized: extension-storage 1654435115736 Sync.Service INFO Mozilla/5.0 (X11; Linux x86_64; rv:101.0) Gecko/20100101 Firefox/101.0 1654435115740 Sync.AddonsReconciler INFO Registering as Add-on Manager listener. 1654435115740 Sync.AddonsReconciler DEBUG Adding change listener. 1654435115741 Sync.Engine.History.Tracker INFO Adding Places observer. 1654435115751 FirefoxAccounts DEBUG FxAccountsProfileClient: Initialized 1654435115752 FirefoxAccounts DEBUG FxAccountsProfileClient: Requested profile 1654435115752 FirefoxAccounts DEBUG getOAuthToken enter 1654435115753 FirefoxAccounts TRACE getCachedToken returning cached token 1654435115753 FirefoxAccounts DEBUG getOAuthToken returning a cached token 1654435115754 Services.Common.RESTRequest DEBUG GET request to https://profile.accounts.firefox.com/v1/profile 1654435115764 FirefoxAccounts INFO fetching updated device list 1654435115776 Sync.Service DEBUG User-Agent: Firefox/101.0 (Linux x86_64) FxSync/1.103.0.20220530192118.desktop 1654435115777 Sync.Service INFO Starting sync at 2022-06-05 15:18:35 in browser session rSwzzIoqCLB3 1654435115777 Sync.Service DEBUG In sync: should login. 1654435115777 Sync.Service INFO User logged in successfully - verifying login. 1654435115779 Sync.SyncAuthManager DEBUG unlockAndVerifyAuthState already has (or can fetch) sync keys 1654435115779 Sync.Status DEBUG Status.login: success.login => success.status_ok 1654435115780 Sync.Status DEBUG Status.service: success.status_ok => error.login.failed 1654435115780 Sync.Service DEBUG Fetching unlocked auth state returned success.status_ok 1654435115780 Sync.SyncAuthManager INFO Getting sync key 1654435115781 Sync.SyncAuthManager INFO Getting a sync token from: https://sync.joelmueller.ch/1.0/sync/1.5 1654435115781 Sync.SyncAuthManager DEBUG Getting a token using OAuth 1654435115781 FirefoxAccounts DEBUG getOAuthToken enter 1654435115781 FirefoxAccounts TRACE getCachedToken returning cached token 1654435115781 FirefoxAccounts DEBUG getOAuthToken returning a cached token 1654435115782 Services.Common.TokenServerClient DEBUG Beginning OAuth token exchange: https://sync.joelmueller.ch/1.0/sync/1.5 1654435115782 Services.Common.RESTRequest DEBUG GET request to https://sync.joelmueller.ch/1.0/sync/1.5 1654435115798 Services.Common.RESTRequest DEBUG GET request to https://api.accounts.firefox.com/v1/account/devices 1654435115878 Services.Common.RESTRequest DEBUG GET https://sync.joelmueller.ch/1.0/sync/1.5 200 1654435115878 Services.Common.TokenServerClient DEBUG Got token response: 200 1654435115878 Services.Common.TokenServerClient DEBUG Successful token response 1654435115879 Sync.BulkKeyBundle INFO BulkKeyBundle being created for undefined 1654435115879 Sync.Status DEBUG Status.login: success.status_ok => success.login 1654435115879 Sync.Status DEBUG Status.service: error.login.failed => success.status_ok 1654435115880 Sync.SyncAuthManager DEBUG _findCluster returning https://sync.joelmueller.ch/1.5/4/ 1654435115880 Sync.SyncAuthManager DEBUG Cluster value = https://sync.joelmueller.ch/1.5/4/ 1654435115880 Sync.SyncAuthManager DEBUG Setting cluster to https://sync.joelmueller.ch/1.5/4/ 1654435115880 Sync.Service DEBUG Caching URLs under storage user base: https://sync.joelmueller.ch/1.5/4/ 1654435115882 FirefoxAccounts INFO Already fetching device list, return existing promise 1654435115987 Sync.Resource DEBUG GET fail 401 https://sync.joelmueller.ch/1.5/4/info/collections 1654435115987 Sync.Resource WARN GET request to https://sync.joelmueller.ch/1.5/4/info/collections failed with status 401 1654435115987 Sync.Service WARN 401: login failed. 1654435115987 Sync.SyncAuthManager DEBUG _findCluster has a pre-existing clusterURL, so fetching a new token token 1654435115987 Sync.SyncAuthManager INFO Getting sync key 1654435115988 Sync.SyncAuthManager INFO Getting a sync token from: https://sync.joelmueller.ch/1.0/sync/1.5 1654435115988 Sync.SyncAuthManager DEBUG Getting a token using OAuth 1654435115988 FirefoxAccounts DEBUG getOAuthToken enter 1654435115988 FirefoxAccounts TRACE getCachedToken returning cached token 1654435115988 FirefoxAccounts DEBUG getOAuthToken returning a cached token 1654435115988 Services.Common.TokenServerClient DEBUG Beginning OAuth token exchange: https://sync.joelmueller.ch/1.0/sync/1.5 1654435115988 Services.Common.RESTRequest DEBUG GET request to https://sync.joelmueller.ch/1.0/sync/1.5 1654435116004 Services.Common.RESTRequest DEBUG GET https://sync.joelmueller.ch/1.0/sync/1.5 200 1654435116004 Services.Common.TokenServerClient DEBUG Got token response: 200 1654435116005 Services.Common.TokenServerClient DEBUG Successful token response 1654435116005 Sync.Status DEBUG Status.login: success.login => success.login 1654435116005 Sync.Status DEBUG Status.service: success.status_ok => success.status_ok 1654435116005 Sync.SyncAuthManager DEBUG _findCluster returning https://sync.joelmueller.ch/1.5/4/ 1654435116005 Sync.SyncAuthManager DEBUG Cluster value = https://sync.joelmueller.ch/1.5/4/ 1654435116005 Sync.Status DEBUG Status.login: success.login => error.login.reason.network 1654435116005 Sync.Status DEBUG Status.service: success.status_ok => error.login.failed 1654435116006 Sync.ErrorHandler ERROR Sync encountered a login error 1654435116006 Sync.SyncScheduler DEBUG Clearing sync triggers and the global score. 1654435116007 Sync.SyncScheduler DEBUG Next sync in 3600000 ms. (why=schedule) 1654435116007 Sync.Service DEBUG Exception calling WrappedLock: Error: Login failed: error.login.reason.network(resource://services-sync/service.js:1037:15) JS Stack trace: onNotify@service.js:1037:15 1654435116008 Sync.Service DEBUG Not syncing: login returned false. 1654435116009 FirefoxAccounts INFO Already fetching device list, return existing promise 1654435116010 FirefoxAccounts INFO Already fetching device list, return existing promise 1654435116260 FirefoxAccounts INFO Already fetching device list, return existing promise My firefox-syncstroage.toml looks like this # Example MySQL DSN: database_url = "mysql://firefox:XXX@localhost/syncstorage_rs" # Example Spanner DSN: # database_url="spanner://projects/SAMPLE_GCP_PROJECT/instances/SAMPLE_SPANNER_INSTANCE/databases/SAMPLE_SPANNER_DB" "limits.max_total_records"=1666 # See issues #298/#333 master_secret = "TOKEN" # removing this line will default to moz_json formatted logs (which is preferred for production envs) human_logs = 1 # enable quota limits enable_quota = 0 # set the quota limit to 2GB. # max_quota_limit = 200000000 # Example Tokenserver settings: disable_syncstorage = false tokenserver.database_url = "mysql://firefox:XXX@localhost/syncstorage_rs" tokenserver.enabled = true tokenserver.fxa_email_domain = "api.accounts.firefox.com" tokenserver.fxa_oauth_server_url = "https://oauth.accounts.firefox.com/v1" tokenserver.fxa_metrics_hash_secret = "TOKEN" tokenserver.test_mode_enabled = false # cors settings cors_allowed_origin = "localhost" cors_max_age = 86400

All Replies (6)

more options

Wow...

Try downloading Firefox from Mozilla, run it from the folder and see if you have the same issue. https://www.mozilla.org/en-US/firefox/all/#product-desktop-release I've been using it for years with no issues. see screenshot What OS?


Operating System: openSUSE Tumbleweed 20220603 KDE Plasma Version: 5.24.5 KDE Frameworks Version: 5.94.0 Qt Version: 5.15.2 Kernel Version: 5.18.1-1-default (64-bit) Graphics Platform: X11 Processors: 4 × Intel® Core™ i7-4810MQ CPU @ 2.80GHz Memory: 31.0 GiB of RAM Graphics Processor: Mesa Intel® HD Graphics 4600

Modified by jonzn4SUSE

more options

jonzn4SUSE schrieb

Wow... Try downloading Firefox from Mozilla, run it from the folder and see if you have the same issue. https://www.mozilla.org/en-US/firefox/all/#product-desktop-release I've been using it for years with no issues. see screenshot What OS? Operating System: openSUSE Tumbleweed 20220603 KDE Plasma Version: 5.24.5 KDE Frameworks Version: 5.94.0 Qt Version: 5.15.2 Kernel Version: 5.18.1-1-default (64-bit) Graphics Platform: X11 Processors: 4 × Intel® Core™ i7-4810MQ CPU @ 2.80GHz Memory: 31.0 GiB of RAM Graphics Processor: Mesa Intel® HD Graphics 4600

jonzn4SUSE schrieb

Wow... Try downloading Firefox from Mozilla, run it from the folder and see if you have the same issue. https://www.mozilla.org/en-US/firefox/all/#product-desktop-release I've been using it for years with no issues. see screenshot What OS? Operating System: openSUSE Tumbleweed 20220603 KDE Plasma Version: 5.24.5 KDE Frameworks Version: 5.94.0 Qt Version: 5.15.2 Kernel Version: 5.18.1-1-default (64-bit) Graphics Platform: X11 Processors: 4 × Intel® Core™ i7-4810MQ CPU @ 2.80GHz Memory: 31.0 GiB of RAM Graphics Processor: Mesa Intel® HD Graphics 4600

I have ArchLinux Mainline Kernel(5.18.1) with Cinnamon Desktop on a Lenovo X1 Extreme Gen1 Laptop

I believe that is a server issue I can’t login to the server either on FF iOS on iPhone11 but I don‘t understand what exactly the error is https://sync.joelmueller.ch/__heartbeat__ looks good

more options

What are you doing before you get the error? Are there steps that I can follow to try an replicate the issue? Where are you seeing the error? Is it in the browser or logs? If in the logs, what's the path to log?

more options

I have my own sync and token server running on a Linuxserver behind a nginx webserver and Haproxy.

I see the log under about:sync-log in the latest Firefox Browser. The error log is coming after every sync. I log me in and push the sync button.

The sync server is from https://aur.ArchLinux.org and the maintainers are running the server problem without problem.

more options

I thought the issue was with Sync service provided by Mozillla. Good luck