Bug: Transient HTTP 500 on accounts5/accounts/3/login permanently latches [identification] into Halted state ("Metadata improver: Paused") even after auth recovers

Environment:

  • RoonServer v2.74 (build 1716) production on Linux x64 (linuxx64)

Description of Bug:

  1. During background identification ([identification]), EnsureAuthReady attempted a routine token refresh (POST ``https://api.roonlabs.net/accounts5/accounts/3/login).
  2. Roon’s accounts5 service was experiencing a temporary server-side outage (returning HTTP 500 and timeouts between 01:49 and 04:18 EST on 10/30/2026), so EnsureAuthReady failed with Result[Status=UnexpectedError].
  3. Instead of backing off on a 5xx auth error, [identification] immediately proceeded to call POST ``https://api.roonlabs.net/identifier/identifier/2/album, which returned 403 and triggered Warn: Halting identifier: invalid credentials.
  4. Even after accounts5 recovered at 04:18:45 (login ok, AccountStatus=LoggedIn MachineStatus=Licensed) and across subsequent [identification] window opened cycles on 10/31, 11/01, and 11/02, the identifier remained permanently stuck in the Halted (“Metadata improver: Paused”) state and refused to identify any newly added tracks until roonserver.service was 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:

  1. If EnsureAuthReady fails due to a transient 5xx or timeout on accounts5, downstream services (identifier) should treat it as a transient network error rather than invalid credentials.
  2. When broker/accounts subsequently succeeds in refreshing the token (AccountStatus=LoggedIn), or when the next [identification] window opened event fires, the Halted flag on the identifier should be cleared automatically without requiring a full RoonServer restart.

Hey @James_Rome,

Thanks for the detailed report. Your diagnosis is correct, and your logs confirm it.

On 10/30 at about 01:49 (your server’s local time), our accounts service was returning errors. A token refresh failed with an HTTP 500, the identifier’s next request got a 403, and Roon Server read that as invalid credentials and stopped identification. The accounts service was back by 04:18, but identification never started again. Your queue grew to about 4,800 albums over the next three nights. After you restarted, identification picked up again within a couple of minutes.

We’ve passed this to our development team as two issues: the service errors that set it off, and identification not resuming once sign-in works again. You’re right that a brief outage shouldn’t leave it stopped.

If Metadata Improver shows as Paused again, restarting Roon Server is the right workaround for now. Your logs also show sign-in errors today between about 10:50 and 12:05. That’s the same service issue, and our team is working on it.

Thanks again. We’ll update this thread when we know more.

Hello @James_Rome ,

I wanted to provide you a quick update. The dev team is still looking into this, but they have noted that the investigation will take some time. Should this thread auto-close before we have a chance to follow-up, please request that we reopen it using the form below, thank you.