Skip to content

Database error #16

@JN8086

Description

@JN8086

I've spent countless hours on this, and I cannot seem to solve it. I have the docker images for the database and the syncserver running, but I keep getting this error:

1761856552051 Sync.LogManager DEBUG Flushing file log
1761856552056 Sync.LogManager DEBUG Log cleanup threshold time: 1760992552056
1761856552060 Sync.LogManager DEBUG Done deleting files.
1761856552846 FirefoxAccounts INFO Polling device commands.
1761856552847 Sync.Service DEBUG User-Agent: LibreWolf/143.0.4-1 (Linux x86_64) FxSync/1.145.0.20251005000040.desktop
1761856552847 Sync.Service INFO Starting sync at 2025-10-30 21:35:52 in browser session ctjSBO_P05Vc
1761856552847 Sync.Service DEBUG In sync: should login.
1761856552847 Sync.Service INFO User logged in successfully - verifying login.
1761856552847 FirefoxAccounts TRACE not checking freshness of profile as it remains recent
1761856552847 Sync.SyncAuthManager DEBUG unlockAndVerifyAuthState already has (or can fetch) sync keys
1761856552847 Sync.Status DEBUG Status.login: error.login.reason.network => success.status_ok
1761856552847 Sync.Status DEBUG Status.service: error.login.failed => error.login.failed
1761856552847 Sync.Service DEBUG Fetching unlocked auth state returned success.status_ok
1761856552847 FirefoxAccounts TRACE not checking freshness of profile as it remains recent
1761856552847 Sync.SyncAuthManager INFO Getting sync key
1761856552847 FirefoxAccounts DEBUG getOAuthToken enter
1761856552848 FirefoxAccounts TRACE getCachedToken returning cached token
1761856552848 FirefoxAccounts DEBUG getOAuthToken returning a cached token
1761856552848 Sync.SyncAuthManager INFO Getting a sync token from: http://192.168.1.8:8000/1.0/sync/1.5
1761856552848 Sync.SyncAuthManager DEBUG Getting a token using OAuth
1761856552848 Services.Common.TokenServerClient DEBUG Beginning OAuth token exchange: http://192.168.1.8:8000/1.0/sync/1.5
1761856552848 Services.Common.RESTRequest DEBUG GET request to http://192.168.1.8:8000/1.0/sync/1.5
1761856552849 Services.Common.RESTRequest DEBUG GET request to https://api.accounts.firefox.com/v1/account/device/commands?index=0
1761856553027 Services.Common.RESTRequest DEBUG GET http://192.168.1.8:8000/1.0/sync/1.5 500
1761856553027 Services.Common.TokenServerClient DEBUG Got token response: 500
1761856553027 Services.Common.TokenServerClient INFO Server-reported error: {"location":"internal","name":"","description":"A database error occurred: NotFound"}
1761856553027 Sync.SyncAuthManager ERROR Non-authentication error in _fetchTokenForUser: TokenServerClientServerError({"now":"2025-10-30T20:35:53.027Z","message":"Server error.","cause":"general","response_body":"{"status":"internal-error","errors":[{"location":"internal","name":"","description":"A database error occurred: NotFound"}]}","response_headers":{"content-length":"124","vary":"Origin, Access-Control-Request-Method, Access-Control-Request-Headers","x-weave-timestamp":"1761856552.85","content-type":"application/json","date":"Thu, 30 Oct 2025 20:35:52 GMT"},"response_status":500})(resource://services-common/tokenserverclient.sys.mjs:28:36) JS Stack trace: TokenServerClientServerError@tokenserverclient.sys.mjs:90:16
_processTokenResponse@tokenserverclient.sys.mjs:306:19
_tokenServerExchangeRequest@tokenserverclient.sys.mjs:239:19
1761856553027 Sync.Status DEBUG Status.login: success.status_ok => error.login.reason.network
1761856553027 Sync.Status DEBUG Status.service: error.login.failed => error.login.failed
1761856553027 Sync.SyncAuthManager INFO Failed to fetch the cluster URL: TokenServerClientServerError({"now":"2025-10-30T20:35:53.027Z","message":"Server error.","cause":"general","response_body":"{"status":"internal-error","errors":[{"location":"internal","name":"","description":"A database error occurred: NotFound"}]}","response_headers":{"content-length":"124","vary":"Origin, Access-Control-Request-Method, Access-Control-Request-Headers","x-weave-timestamp":"1761856552.85","content-type":"application/json","date":"Thu, 30 Oct 2025 20:35:52 GMT"},"response_status":500})(resource://services-common/tokenserverclient.sys.mjs:28:36) JS Stack trace: TokenServerClientServerError@tokenserverclient.sys.mjs:90:16
_processTokenResponse@tokenserverclient.sys.mjs:306:19
_tokenServerExchangeRequest@tokenserverclient.sys.mjs:239:19
1761856553027 Sync.Service DEBUG verifyLogin failed: TokenServerClientServerError({"now":"2025-10-30T20:35:53.027Z","message":"Server error.","cause":"general","response_body":"{"status":"internal-error","errors":[{"location":"internal","name":"","description":"A database error occurred: NotFound"}]}","response_headers":{"content-length":"124","vary":"Origin, Access-Control-Request-Method, Access-Control-Request-Headers","x-weave-timestamp":"1761856552.85","content-type":"application/json","date":"Thu, 30 Oct 2025 20:35:52 GMT"},"response_status":500})(resource://services-common/tokenserverclient.sys.mjs:28:36) JS Stack trace: TokenServerClientServerError@tokenserverclient.sys.mjs:90:16
_processTokenResponse@tokenserverclient.sys.mjs:306:19
_tokenServerExchangeRequest@tokenserverclient.sys.mjs:239:19
1761856553027 Sync.Status DEBUG Status.login: error.login.reason.network => error.login.reason.network
1761856553027 Sync.Status DEBUG Status.service: error.login.failed => error.login.failed
1761856553028 Sync.ErrorHandler ERROR Sync encountered a login error
1761856553028 Sync.SyncScheduler DEBUG Clearing sync triggers and the global score.
1761856553028 Sync.SyncScheduler DEBUG Next sync in 3600000 ms. (why=schedule)
1761856553028 Sync.Service DEBUG Exception calling WrappedLock: Error: Login failed: error.login.reason.network(resource://services-sync/service.sys.mjs:1051:15) JS Stack trace: onNotify@service.sys.mjs:1051:15
1761856553028 FirefoxAccounts TRACE not checking freshness of profile as it remains recent
1761856553028 Sync.Service DEBUG Not syncing: login returned false.
1761856553029 FirefoxAccounts TRACE not checking freshness of profile as it remains recent

What could be the problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions