-
Notifications
You must be signed in to change notification settings - Fork 74
Description
I installed Mozilla Sync Server (0.20.0-7) from Synocommunity on my Synology NAS server with Disk Station Manager (DSM 7.1.1-42962 Update 9).
This software is based on syncstorage-rs package (this build on version 0.20.0).
I previously installed and configured MariaDB 10 to work with WordPress.
I entered the correct password for my database, as I see the "syncstorage-rs" and "tokenserver-rs" tables created in phpMyAdmin.
I entered my private subdomain as the public URL - for example "https://mozilla.mydomain.com/". I generated an SSL certificate (with Let's Encrypt) for this subdomain and created a reverse proxy rule that redirects traffic from https://mozilla.mydomain.com/ to http://localhost:8132/ (with the $http_upgrade, $connection_upgrade, and $http_authorization headers). I have subdomains and reverse proxy rules for other services, such as *arr software, and they work without any issues. I also configured local DNS forwarding for internal traffic (within the local network).
I installed the latest version of the Firefox client on Windows 11. I modified the "identity.sync.tokenserver.uri" parameter to "https://mozilla.mydomain.com/1.0/sync/1.5". I created a bookmark with a link to my NAS server's website. I then logged in to my Mozilla account and synchronized.
I then also logged in to my Mozilla account on the Android app. After synchronizing, the bookmark from the Windows client was gone. Furthermore, I can't see the open tabs from the Android app in the Windows client.
So I checked the "about:sync-logs" in the Windows client - You can find them below.
1757623041364 FirefoxAccounts TRACE initializing new storage manager
1757623041364 FirefoxAccounts TRACE starting fetch of json user data
1757623041373 FirefoxAccounts TRACE finished fetch of json user data - took: 9
1757623041373 FirefoxAccounts DEBUG reading secure storage with existing: []
1757623041373 FirefoxAccounts TRACE starting fetch of user data from the login manager
1757623041417 FirefoxAccounts DEBUG secure read fetched items: ["scopedKeys"]
1757623041417 FirefoxAccounts TRACE initializing of new storage manager done
1757623041419 FirefoxAccounts DEBUG FxAccountsProfileClient: Initialized
1757623041419 FirefoxAccounts DEBUG FxAccountsProfileClient: Requested profile
1757623041419 FirefoxAccounts DEBUG getOAuthToken enter
1757623041420 FirefoxAccounts TRACE getCachedToken returning cached token
1757623041420 FirefoxAccounts DEBUG getOAuthToken returning a cached token
1757623041420 Services.Common.RESTRequest DEBUG GET request to https://profile.accounts.firefox.com/v1/profile
1757623041738 Services.Common.RESTRequest DEBUG GET request to https://api.accounts.firefox.com/v1/account/attached_clients
1757623041951 Services.Common.RESTRequest DEBUG GET request to https://api.accounts.firefox.com/v1/account/attached_clients
1757623042001 Sync.Status INFO Resetting Status.
1757623042001 Sync.Status DEBUG Status.service: undefined => success.status_ok
1757623042002 Sync.SyncScheduler TRACE Setting SyncScheduler policy values to defaults.
1757623042002 Sync.SyncScheduler DEBUG Clearing sync triggers and the global score.
1757623042002 Sync.Service INFO Loading Weave 1.144.0
1757623042002 Sync.Engine.Clients DEBUG Engine constructed
1757623042003 Sync.Engine.Clients DEBUG Resetting clients last sync time
1757623042005 Sync.Engine.Addons DEBUG Engine constructed
1757623042008 Sync.Engine.Addons DEBUG SyncEngine initialized: addons
1757623042008 Services.Common.RESTRequest DEBUG GET https://profile.accounts.firefox.com/v1/profile 304
1757623042009 Sync.AddonsReconciler DEBUG No data seen in loaded file: addonsreconciler
1757623042010 Sync.Engine.Passwords DEBUG Engine constructed
1757623042012 Sync.Engine.Passwords DEBUG SyncEngine initialized: passwords
1757623042013 Sync.Engine.Prefs DEBUG Engine constructed
1757623042014 Sync.Engine.Prefs DEBUG SyncEngine initialized: prefs
1757623042016 Sync.Engine.Bookmarks DEBUG Engine constructed
1757623042019 Sync.Engine.Bookmarks DEBUG SyncEngine initialized: bookmarks
1757623042020 Sync.Engine.Forms DEBUG Engine constructed
1757623042021 Sync.Engine.Forms DEBUG SyncEngine initialized: forms
1757623042022 Sync.Engine.History DEBUG Engine constructed
1757623042024 Sync.Engine.History DEBUG SyncEngine initialized: history
1757623042025 Sync.Engine.Tabs DEBUG Engine constructed
1757623042027 Sync.Engine.Tabs DEBUG SyncEngine initialized: tabs
1757623042029 Sync.Engine.Tabs INFO Got a bridged engine!
1757623042031 Sync.Engine.CreditCards DEBUG Engine constructed
1757623042031 Sync.Engine.CreditCards DEBUG SyncEngine initialized: creditcards
1757623042032 Sync.Engine.Extension-Storage DEBUG Engine constructed
1757623042033 Sync.Engine.Extension-Storage DEBUG SyncEngine initialized: extension-storage
1757623042046 Sync.Engine.Extension-Storage INFO Got a bridged engine!
1757623042046 Sync.Service INFO Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:142.0) Gecko/20100101 Firefox/142.0
1757623042047 Sync.AddonsReconciler INFO Registering as Add-on Manager listener.
1757623042047 Sync.AddonsReconciler DEBUG Adding change listener.
1757623042047 Sync.Engine.History.Tracker INFO Adding Places observer.
1757623042049 FirefoxAccounts TRACE not checking freshness of profile as it remains recent
1757623042050 Sync.Service DEBUG User-Agent: Firefox/142.0.1 (Windows NT 10.0; Win64; x64) FxSync/1.144.0.20250827004350.desktop
1757623042050 Sync.Service INFO Starting sync at 2025-09-11 23:37:22 in browser session _JPJsvx3b6x4
1757623042050 Sync.Service DEBUG In sync: should login.
1757623042050 Sync.Service INFO User logged in successfully - verifying login.
1757623042051 FirefoxAccounts TRACE not checking freshness of profile as it remains recent
1757623042051 Sync.SyncAuthManager DEBUG unlockAndVerifyAuthState already has (or can fetch) sync keys
1757623042051 Sync.Status DEBUG Status.login: success.login => success.status_ok
1757623042051 Sync.Status DEBUG Status.service: success.status_ok => error.login.failed
1757623042051 Sync.Service DEBUG Fetching unlocked auth state returned success.status_ok
1757623042051 FirefoxAccounts TRACE not checking freshness of profile as it remains recent
1757623042051 Sync.SyncAuthManager INFO Getting sync key
1757623042051 FirefoxAccounts DEBUG getOAuthToken enter
1757623042051 FirefoxAccounts TRACE getCachedToken returning cached token
1757623042051 FirefoxAccounts DEBUG getOAuthToken returning a cached token
1757623042051 Sync.SyncAuthManager INFO Getting a sync token from: https://mozilla.mydomain.com/1.0/sync/1.5
1757623042051 Sync.SyncAuthManager DEBUG Getting a token using OAuth
1757623042051 Services.Common.TokenServerClient DEBUG Beginning OAuth token exchange: https://mozilla.mydomain.com/1.0/sync/1.5
1757623042051 Services.Common.RESTRequest DEBUG GET request to https://mozilla.mydomain.com/1.0/sync/1.5
1757623042118 FirefoxAccounts TRACE not checking freshness of profile as it remains recent
1757623042118 FirefoxAccounts TRACE not checking freshness of profile as it remains recent
1757623042120 FirefoxAccounts TRACE not checking freshness of profile as it remains recent
1757623042120 FirefoxAccounts TRACE not checking freshness of profile as it remains recent
1757623042134 FirefoxAccounts TRACE not checking freshness of profile as it remains recent
1757623042145 FirefoxAccounts TRACE not checking freshness of profile as it remains recent
1757623042180 FirefoxAccounts DEBUG FxAccountsWebChannel registered: account_updates with origin https://accounts.firefox.com
1757623042266 Services.Common.RESTRequest DEBUG GET https://api.accounts.firefox.com/v1/account/attached_clients 200
1757623042266 Hawk DEBUG (Response) /account/attached_clients: code: 200 - Status text:
1757623042267 Hawk DEBUG Clock offset vs https://api.accounts.firefox.com/v1: -267
1757623042268 FirefoxAccounts TRACE not checking freshness of profile as it remains recent
1757623042271 FirefoxAccounts INFO fetching updated device list
1757623042274 Services.Common.RESTRequest DEBUG GET request to https://api.accounts.firefox.com/v1/account/devices?filterIdleDevicesTimestamp=1755808642272
1757623042300 Services.Common.RESTRequest DEBUG GET https://api.accounts.firefox.com/v1/account/attached_clients 200
1757623042300 Hawk DEBUG (Response) /account/attached_clients: code: 200 - Status text:
1757623042300 Hawk DEBUG Clock offset vs https://api.accounts.firefox.com/v1: -300
1757623042367 FirefoxAccounts TRACE not checking freshness of profile as it remains recent
1757623042369 FirefoxAccounts TRACE not checking freshness of profile as it remains recent
1757623042569 Services.Common.RESTRequest DEBUG GET https://api.accounts.firefox.com/v1/account/devices?filterIdleDevicesTimestamp=1755808642272 200
1757623042569 Hawk DEBUG (Response) /account/devices?filterIdleDevicesTimestamp=1755808642272: code: 200 - Status text:
1757623042570 Hawk DEBUG Clock offset vs https://api.accounts.firefox.com/v1: 431
1757623042570 FirefoxAccounts INFO Got new device list: 247f303670c1cf5e33300c50893eb9a1, 83a744b03be9416c837f4494ed0680dd
1757623042570 FirefoxAccounts DEBUG FxAccountsPush loading service
1757623042571 FirefoxAccounts DEBUG FxAccountsPush initialized
1757623042575 FirefoxAccounts TRACE Command queue observer created
1757623042575 FirefoxAccounts TRACE Getting command keys: https://identity.mozilla.com/cmd/open-uri
1757623042575 FirefoxAccounts TRACE Getting command keys: https://identity.mozilla.com/cmd/close-uri/v1
1757623042575 FirefoxAccounts TRACE Our push subscription looks OK
1757623042575 FirefoxAccounts INFO updating the cache
1757623042998 Sync.RemoteTabs INFO Generating tab list with filter
1757623043019 Sync.RemoteTabs INFO Final tab list has 0 clients with 0 tabs.
1757623043581 Services.Common.RESTRequest DEBUG GET https://mozilla.mydomain.com/1.0/sync/1.5 401
1757623043581 Services.Common.TokenServerClient DEBUG Got token response: 401
1757623043581 Services.Common.TokenServerClient INFO Server-reported error: {"location":"body","name":"","description":"Unauthorized"}
1757623043581 Services.Common.RESTRequest DEBUG POST request to https://api.accounts.firefox.com/v1/oauth/destroy
1757623043582 Services.Common.RESTRequest DEBUG POST Length: 969
1757623043582 FirefoxAccounts DEBUG _updateAccountData with items: ["oauthTokens"]
1757623043582 FirefoxAccounts DEBUG writing plain storage: ["email","sessionToken","uid","verified","device","oauthTokens","profileCache","encryptedSendTabKeys","encryptedCloseTabKeys"]
1757623043582 FirefoxAccounts TRACE starting write of json user data: ["email","sessionToken","uid","verified","device","oauthTokens","profileCache","encryptedSendTabKeys","encryptedCloseTabKeys"]
1757623043582 Sync.SyncAuthManager WARN Token server returned 401, retrying token fetch with fresh credentials
1757623043582 FirefoxAccounts DEBUG getOAuthToken enter
1757623043584 FirefoxAccounts TRACE finished write of json user data - took: 2
1757623043585 FirefoxAccounts DEBUG writing secure storage: ["scopedKeys"]
1757623043585 FirefoxAccounts TRACE starting write of user data to the login manager
1757623043590 FirefoxAccounts TRACE finished write of user data to the login manager
1757623043590 Services.Common.RESTRequest DEBUG POST request to https://api.accounts.firefox.com/v1/oauth/token
1757623043590 Services.Common.RESTRequest DEBUG POST Length: 127
1757623043849 Services.Common.RESTRequest DEBUG POST https://api.accounts.firefox.com/v1/oauth/destroy 200
1757623043849 Hawk DEBUG (Response) /oauth/destroy: code: 200 - Status text:
1757623043849 Hawk DEBUG Clock offset vs https://api.accounts.firefox.com/v1: 151
1757623043896 Services.Common.RESTRequest DEBUG POST https://api.accounts.firefox.com/v1/oauth/token 200
1757623043897 Hawk DEBUG (Response) /oauth/token: code: 200 - Status text:
1757623043897 Hawk DEBUG Clock offset vs https://api.accounts.firefox.com/v1: 103
1757623043897 FirefoxAccounts DEBUG _updateAccountData with items: ["oauthTokens"]
1757623043897 FirefoxAccounts DEBUG writing plain storage: ["email","sessionToken","uid","verified","device","oauthTokens","profileCache","encryptedSendTabKeys","encryptedCloseTabKeys"]
1757623043897 FirefoxAccounts TRACE starting write of json user data: ["email","sessionToken","uid","verified","device","oauthTokens","profileCache","encryptedSendTabKeys","encryptedCloseTabKeys"]
1757623043897 Sync.SyncAuthManager INFO Getting a sync token from: https://mozilla.mydomain.com/1.0/sync/1.5
1757623043897 Sync.SyncAuthManager DEBUG Getting a token using OAuth
1757623043897 Services.Common.TokenServerClient DEBUG Beginning OAuth token exchange: https://mozilla.mydomain.com/1.0/sync/1.5
1757623043898 Services.Common.RESTRequest DEBUG GET request to https://mozilla.mydomain.com/1.0/sync/1.5
1757623043900 FirefoxAccounts TRACE finished write of json user data - took: 3
1757623043900 FirefoxAccounts DEBUG writing secure storage: ["scopedKeys"]
1757623043901 FirefoxAccounts TRACE starting write of user data to the login manager
1757623043907 FirefoxAccounts TRACE finished write of user data to the login manager
1757623044037 FirefoxAccounts TRACE not checking freshness of profile as it remains recent
1757623044275 Services.Common.RESTRequest DEBUG GET https://mozilla.mydomain.com/1.0/sync/1.5 200
1757623044275 Services.Common.TokenServerClient DEBUG Got token response: 200
1757623044275 Services.Common.TokenServerClient DEBUG Successful token response
1757623044276 Sync.BulkKeyBundle INFO BulkKeyBundle being created for undefined
1757623044276 Sync.Status DEBUG Status.login: success.status_ok => success.login
1757623044276 Sync.Status DEBUG Status.service: error.login.failed => success.status_ok
1757623044277 Sync.SyncAuthManager DEBUG _findCluster returning https://mozilla.mydomain.com/1.5/4/
1757623044278 Sync.SyncAuthManager DEBUG Cluster value = https://mozilla.mydomain.com/1.5/4/
1757623044278 Sync.SyncAuthManager DEBUG Setting cluster to https://mozilla.mydomain.com/1.5/4/
1757623044278 Sync.Service DEBUG Caching URLs under storage user base: https://mozilla.mydomain.com/1.5/4/
1757623044278 FirefoxAccounts TRACE not checking freshness of profile as it remains recent
1757623044279 FirefoxAccounts TRACE not checking freshness of profile as it remains recent
1757623044413 Sync.Resource DEBUG GET success 200 https://mozilla.mydomain.com/1.5/4/info/collections
1757623044414 Sync.Service DEBUG Fetching server configuration: https://mozilla.mydomain.com/1.5/4/info/configuration
1757623044415 FirefoxAccounts TRACE not checking freshness of profile as it remains recent
1757623044549 Sync.Resource DEBUG GET success 200 https://mozilla.mydomain.com/1.5/4/info/configuration
1757623044549 Sync.Service DEBUG Fetching global metadata record
1757623044550 FirefoxAccounts TRACE not checking freshness of profile as it remains recent
1757623044685 Sync.Resource DEBUG GET fail 500 https://mozilla.mydomain.com/1.5/4/storage/meta/global
1757623044685 Sync.Resource WARN GET request to https://mozilla.mydomain.com/1.5/4/storage/meta/global failed with status 500
1757623044685 Sync.Service DEBUG Weave Version: 1.144.0 Local Storage: 5 Remote Storage:
1757623044685 Sync.Service INFO One of: no meta, no meta storageVersion, or no meta syncID. Fresh start needed.
1757623044685 Sync.Status DEBUG Status.sync: success.sync => error.sync.reason.metarecord_download_fail
1757623044685 Sync.Status DEBUG Status.service: success.status_ok => error.sync.failed
1757623044685 Sync.Service WARN Unknown error while downloading metadata record. Aborting sync.
1757623044685 Sync.Service WARN Remote setup failed.
1757623044685 Sync.ErrorHandler ERROR Sync encountered a login error
1757623044686 Sync.SyncScheduler DEBUG Clearing sync triggers and the global score.
1757623044686 Sync.SyncScheduler DEBUG Next sync in 3600000 ms. (why=schedule)
1757623044686 Sync.Service DEBUG Exception calling WrappedLock: Error: Login failed: success.login(resource://services-sync/service.sys.mjs:1051:15) JS Stack trace: onNotify@service.sys.mjs:1051:15
1757623044687 Sync.Service DEBUG Not syncing: login returned false.
1757623044687 FirefoxAccounts TRACE not checking freshness of profile as it remains recent
I think the problem occurs when sync tries to access "https://mozilla.mydomain.com/1.5/4/storage/meta/global" – see the line with timestamp 1757623044685 - "GET fail 500 https://mozilla.lipa.ovh/1.5/4/storage/meta/global".
I don't know what to do next. The advice from ChatGPT (relinking Mozilla accounts, removing the Weave folder from AppData, etc.) didn't help.
I also filed an issue on GitHub regarding FFSYNC software – see SynoCommunity/spksrc#6713. The developers considered this a bug in the syncstorage-rs package.
What else can I check? How can I resolve the issue?
I can provide more details or run other tests, but I don't know what to check at this time.
┆Issue is synchronized with this Jira Task