Environment:
- RoonServer v2.74 (build 1716) production on Linux x64 (
linuxx64)
Description of Bug:
- During background identification (
[identification]),EnsureAuthReadyattempted a routine token refresh (POST ``https://api.roonlabs.net/accounts5/accounts/3/login). - Roon’s
accounts5service was experiencing a temporary server-side outage (returning HTTP 500 and timeouts between 01:49 and 04:18 EST on 10/30/2026), soEnsureAuthReadyfailed withResult[Status=UnexpectedError]. - Instead of backing off on a 5xx auth error,
[identification]immediately proceeded to callPOST ``https://api.roonlabs.net/identifier/identifier/2/album, which returned403and triggeredWarn: Halting identifier: invalid credentials. - Even after
accounts5recovered at04:18:45(login ok,AccountStatus=LoggedIn MachineStatus=Licensed) and across subsequent[identification] window openedcycles on 10/31, 11/01, and 11/02, the identifier remained permanently stuck in theHalted(“Metadata improver: Paused”) state and refused to identify any newly added tracks untilroonserver.servicewas manually restarted.
Relevant Log Excerpt (RoonServer_log.txt): 10/30 01:49:24 Trace: [identification] scheduler tick: processing queue (count=62) 10/30 01:49:24 Trace: [identification] processing retry album 4998703 10/30 01:49:24 Trace: [broker/accounts] doing auth refresh in EnsureAuthReady, next=10/30/2026 6:49:24 AM 10/30 01:49:24 Trace: [broker/accounts] refreshing account info for userid= 10/30 01:49:24 Trace: [fiveaccountserver] POST https://accounts5.roonlabs.com/accounts/3/login 10/30 01:49:24 Warn: [http] request failure: http_5xx (500) host=api.roonlabs.net service=accounts5 url=https://api.roonlabs.net/accounts5/accounts/3/login exception=System.Net.WebException 10/30 01:49:24 Debug: [easyhttp] [6462] POST to https://api.roonlabs.net/accounts5/accounts/3/login returned after 174 ms, status code: 500 10/30 01:49:24 Warn: [fiveaccountserver] Error in web request https://accounts5.roonlabs.com/accounts/3/login (500) 10/30 01:49:24 Warn: [broker/accounts] failed to refresh account info: Result[Status=UnexpectedError] 10/30 01:49:24 Trace: [broker/accounts] auth refresh failed (UnexpectedError), retrying at next=10/30/2026 5:49:57 AM 10/30 01:49:24 Warn: [auth] EnsureAuthReady failed: Result[Status=UnexpectedError] 10/30 01:49:24 Warn: [http] request failure: http_4xx (403) host=api.roonlabs.net service=identifier url=https://api.roonlabs.net/identifier/identifier/2/album exception=System.Net.WebException 10/30 01:49:24 Debug: [easyhttp] [6463] POST to https://api.roonlabs.net/identifier/identifier/2/album?tidal=max returned after 222 ms, status code: 403 10/30 01:49:24 Warn: Halting identifier: invalid credentials 10/30 01:49:24 Debug: [identification] <4998703> status: Halted 10/30 01:49:24 Error: [identification] identifier is halted. abandoning identification until next run … 10/30 04:18:45 Trace: [fiveaccountserver] login ok: userid= expires_in_days=30 10/30 04:18:45 Trace: [broker/accounts] Data updated. AccountStatus=LoggedIn MachineStatus=Licensed
Expected Behavior:
- If
EnsureAuthReadyfails due to a transient5xxor timeout onaccounts5, downstream services (identifier) should treat it as a transient network error rather thaninvalid credentials. - When
broker/accountssubsequently succeeds in refreshing the token (AccountStatus=LoggedIn), or when the next[identification] window openedevent fires, theHaltedflag on the identifier should be cleared automatically without requiring a full RoonServer restart.