Hermes Agent 10 min read

Hermes Agent Not Working? 18 Errors and Their Exact Fixes

Hermes couldn't start, waiting on provider, gateway inaccessible, stuck on connecting, exited -4058: find your exact error and the fix. For v0.23.4.

Shabnam Katoch

Growth Head

Hermes Agent Not Working? 18 Errors and Their Exact Fixes

Checked against Hermes Agent v0.23.4 (released 24 November 2026) and the open GitHub issues on 24 November 2026. Copy the exact message Hermes printed, find it below, and follow the link. If Hermes is simply down (no reply anywhere, no error on screen), start at Gateway won't start, then the Hermes agent not responding row in the index. If you have not run it yet, run hermes doctor --fix first: it repairs PATH, Python, config-schema and missing-key problems in one go.

Error message you seeOne-line fixJump toDedicated page
Hermes couldn't start / Hermes' background service didn't come up (older: the background gateway didn't come up)Click Retry once; quit stray hermes processes; free ports 8642 and 9119; hermes doctor --fix; then Repair installCouldn't startDecoder
Hermes backend exited before it became ready (SIGTERM)Read "Recent backend output"; hermes pm repair or rebuild the venv; drop a pinned HERMES_DASHBOARD_SESSION_TOKENBackend exitedDecoder
Hermes Desktop stuck on Connecting / Reconnecting to Hermes…Update; reset defaultRoute to default; hermes gateway restart on the host; over SSH, check logind and the timeoutStuck on ConnectingDecoder
Error: Gateway inaccessible: service_manager_unavailablehermes gateway status, then restart; if broken, hermes gateway uninstall and install; or hermes gateway run in the foregroundGateway inaccessibleDecoder
Error: Gateway inaccessible: service_identity_unverifiedhermes gateway uninstall, then hermes gateway installGateway identity(this page)
⏳ waiting on provider — retrying in 6s (attempt 1/3) / ⏳ waiting on <model> — 45s waiting for the first stream chunkIt is a wait, not a crash: let one retry run; Esc or /stop to cancel; /model to switch; long context on a local model → /compress or /newWaiting on provider180s decoder
⏳ Provider temporarily unavailable — retrying automatically in 18s (cycle 1/5)Wait one cycle or /model; add fallback_providers; hermes config set agent.auto_recovery_cycles 0 to fail fastProvider unavailableDecoder
The model request failed. Run /model to switch or hermes doctor to check the setup.Read the Details: line: model name → /model; 401/403 → auth; 400 → error-400 guideModel request failedDecoder
⚠️ Something went wrong and I couldn't finish this reply. Use /retry to try again/retry once; then hermes logs and read the Agent turn failed; reply sanitized for chat. Detail: lineSomething went wrongDecoder
Error: Hermes exited with code -4058. Check your model configuration and API key.Windows "file not found" from the community Desktop app: update it; confirm hermes --version in PowerShellCode -4058Decoder
Server returned HTTP 409: Hermes Agent was updated while Hermes WebUI was runningFinish the Agent update (hermes --version, hermes doctor), then restart WebUI: ./ctl.sh restart or systemctl --user restart hermes-webuiWebUI updatedDecoder
WebUI cannot verify that the Agent update completed safely. Check the Agent update outcome and environment first.Run hermes update to completion, check it with hermes doctor, then restart WebUIWebUI cannot verifyHermes update failed
hermes update failed (pm repair, uv.lock, Access Denied, No module named 'hermes_cli')hermes update --check, then --backup; hermes pm repair; stop every Hermes process on WindowsUpdate failedHermes update failed
Chat unavailable: 1 (dashboard)Install Node 18+ where the dashboard can see it; close extra chat tabs; fix the provider keyChat unavailableDecoder
⚠️ Provider authentication failed. Check the configured credentials / Sign-in to the AI model service failed. Use /loginKey in ~/.hermes/.env, provider name in config.yaml, no duplicate keys; restart; hermes model to re-activateAuth failedHermes auth errors
Non-retryable client error (HTTP 400) / Desktop: The AI service rejected the request… did not accept how this request was builtModel id, tool schema, replayed reasoning or oversized request: 10 causes on the error-400 pageHTTP 400Hermes error 400
Error: This chat is open in another Hermes window/terminalClose the other pane; restart with hermes dashboard; never delete lease files mid-turnSession lease(this page)
Conflict: terminated by other getUpdates request (Telegram 409)Find and stop the second gateway on the same bot token: hermes gateway status / listTelegram 409Decoder

Not on this list? The full index below covers 52 more messages, or paste yours into the agent error decoder. Install failed → Hermes installation errors. Replies cut off → Hermes response truncated. context length below the 64K minimum → Hermes context length fix. HTTP 400 → every cause of Hermes error 400. Agent runs then dies → Hermes keeps stopping. Freezes after a long chat → Hermes slow or frozen after compaction.

Rather not run the gateway yourself? Compare managed Hermes Agent hosting options, or run your agents on BetterClaw's free plan: bring your own API key, with nothing to install or restart.

Hermes couldn't start: the background gateway didn't come up

"Hermes couldn't start" is the Hermes Desktop startup screen: the app gave up waiting for its local gateway or backend. Current builds say "Hermes' background service didn't come up"; older builds said "The background gateway didn't come up". When Desktop can tell why, it names the cause (the service stopped, didn't answer in time, couldn't write its data folder, a full disk, a taken port, a missing file). If it doesn't:

  1. Click Retry once. If Retry always works, update.
  2. Kill stale processes. Quit Hermes, make sure no hermes processes remain, then relaunch.
  3. Check the ports: lsof -i :8642 (gateway API) and lsof -i :9119 (dashboard).
  4. Run hermes doctor --fix, then Repair install. Your chats, configs and keys live in ~/.hermes and survive it.

If the screen says "Timed out connecting to Hermes backend", see the backend timeout decoder. More on the app: Hermes Agent desktop app.

Hermes backend exited before it became ready

Hermes backend exited before it became ready (SIGTERM) means the backend died during startup. SIGTERM is not the real error: it's the supervisor stopping a backend that never came up. Current Desktop builds print "Recent backend output" under the message; the Python traceback there is the real cause.

The usual cause is a virtual environment broken by a partial update, which is why running the update again doesn't fix it.

  1. Read the traceback. A ModuleNotFoundError (for example yaml) confirms a half-installed venv.
  2. Remove a pinned HERMES_DASHBOARD_SESSION_TOKEN from ~/.hermes/.env. It puts Desktop LOCAL mode into a SIGTERM boot loop.
  3. On Windows, quit every Hermes process, since running processes lock .pyd files in the venv.
  4. Rebuild the environment with hermes pm repair.

More variants: the backend-exited decoder.

Hermes agent stuck on Connecting

Desktop shows "Connecting" while it waits for a gateway to hand it a session, and "Reconnecting to Hermes…" (or "Reconnecting to the remote gateway…") after a connection drops. If it never moves on, it found a gateway but can't use it. Start with two steps:

  1. Update. v0.23.0 changed how Desktop connects: every registered gateway now stays connected at once, an SSH gateway runs one remote backend for all its profiles, and healthy connections are no longer dropped on focus or wake. Many people on v0.22.x are one update away from a fix.
  2. Read the last 20 lines of desktop.log before the loop starts. It usually names the failure.

Then match the cause:

  • The v0.22.1 Microsoft Store build. v0.22.1 was built from the wrong commit, and the Store app could stick on "Connecting" with Gateway ticket bootstrap failed in desktop.log (issue #138906). v0.22.2 is the release v0.22.1 was meant to be: update through the Store.
  • A profile you deleted. On Windows, Desktop can keep routing to a deleted profile and retry forever (issue #149590, open at the time of writing). The log shows Profile '<name>' does not exist. Open %APPDATA%\Hermes\active-profile.json, set defaultRoute back to default, then restart Desktop.
  • An SSH gateway whose backend gets killed. Desktop sits on "Connecting", then reports Timed out waiting for the remote dashboard to announce its port (issue #146389, open). On Linux hosts with KillUserProcesses=yes in logind.conf, the remote backend dies the moment the SSH session that started it returns. The reporter fixed it with KillExcludeUsers=<user> in /etc/systemd/logind.conf; sudo loginctl enable-linger $USER on the server has the same effect for one user.
  • A slow SSH link. Desktop gave SSH 15 seconds to connect and 15 to set up its port forward, with no override, so a VPN or jump host could loop forever. The fix (PR #156239, merged 16 November) adds desktop.ssh_connect_timeout and desktop.ssh_forward_timeout to config.yaml, in whole seconds up to 120. It is in the v0.23.2 and later source and the Store app; installer-built Desktop apps get it with their next bundled release. Until then, use a faster link or a local gateway.
  • Windows Store (MSIX) after a reboot. The gateway's logon Scheduled Task cannot run the bundled Python, so the gateway never auto-starts and Desktop waits on "Connecting" until you run hermes gateway restart (issue #154335, open).
  • service_identity_unverified: see Gateway inaccessible: service_identity_unverified below.

Gateway inaccessible: service_manager_unavailable

Error: Gateway inaccessible: service_manager_unavailable means Hermes asked your operating system's service manager about the installed gateway service (systemd on Linux, launchd on macOS, Task Scheduler on Windows, s6 in the Docker image) and got an answer it couldn't use. It refuses to start a second gateway while it can't see the first. Desktop shows it as Gateway inaccessible (service_manager_unavailable). Use hermes gateway status for recovery.

Known causes:

  • Linux: systemctl show failed or the gateway unit isn't loaded, common on WSL2 without systemd or when the user bus isn't running.
  • macOS without a GUI login: from a LaunchDaemon or sudo -u, launchctl answers with an error Hermes treats as a dead service manager (issue #143657, open).
  • Windows profile paths with characters outside the console code page: schtasks replaces them with ?, and Hermes can't read the task's launcher path (issue #150136, open).
hermes gateway status
hermes gateway restart
hermes gateway run        # run in the foreground instead of as a service

If the installed service itself is broken, hermes gateway uninstall and hermes gateway install recreate it. Other values after "Gateway inaccessible" (profile_parked, profile_mismatch, ticket_unavailable) are different reasons; hermes gateway status explains each.

service_identity_unverified is the newer sibling, with its own section below.

Gateway inaccessible: service_identity_unverified

service_identity_unverified means Hermes found a gateway service under its own name (a systemd unit on Linux, a launchd job on macOS or a Scheduled Task on Windows) but could not verify that it is Hermes's own, supported definition. The usual causes are a hand-edited unit or launcher script, an environment file or dynamic user on Linux, or a modified or oddly encoded Hermes_Gateway.vbs on Windows. Restarting does not fix it: run hermes gateway uninstall and then hermes gateway install to rewrite a clean definition, or run hermes gateway run in the foreground meanwhile. If you installed from the Microsoft Store, you are hitting a separate variant that is still open (issue #146763). Issue #142579 (the general case) was still open on 23 November 2026.

What has worked for people in that thread: hermes gateway uninstall then hermes gateway install, or re-running hermes setup. On Store installs, also see the MSIX auto-start bug under stuck on Connecting.

Hermes waiting on provider

⏳ waiting on provider — retrying in 6s (attempt 1/3)
⏳ waiting on <model> — 45s waiting for the first stream chunk (auto-reconnect: <name> watchdog in 135s)

Both lines mean Hermes is waiting, not crashing. They are two different waits:

"waiting on provider — retrying in Ns (attempt k/N)" is the live status line Hermes prints between its own API retries after a retryable provider error: a 5xx, an overload, a connection error, a timeout or a rate limit. The wait is the provider's Retry-After if it sent one, otherwise a jittered back-off that starts around 2 seconds and is capped at 60. The attempt count comes from agent.api_max_retries, which defaults to 3. When the provider sends a reset time, the same line reads "rate limited — resets in 2m, retrying in 30s"; on Nous's free tier it reads "the free model is busy". If every attempt fails, Hermes moves on to your fallback providers and then to the recovery cycles below.

"waiting on <model> — Ns waiting for the first stream chunk" is the long-silence notice: Hermes has sent the request and the provider has not answered yet. The words after the dash name the phase ("waiting for the first provider event", "stream open; Ns without stream output") and the bracket says which watchdog will reconnect and when. It flips to "still waiting on" when the watchdog is 15 seconds away. When the watchdog fires you get No response from provider for 180s … Reconnecting (180s decoder).

  1. Let one retry or one watchdog run. Older Desktop builds made a provider stall look like a frozen window (issue #139502, open).
  2. Read which variant you have. "retrying in" means the provider answered with an error: check its status page and the HTTP status in ~/.hermes/logs/agent.log. "waiting for the first stream chunk" means it has not answered: on a local model this is almost always prefill on a long context. If the session runs into six figures of tokens, /compress or /new. If the wait happens once per long session and the agent is quick again afterwards, it is compaction, not the provider; see Hermes slow or frozen after compaction for the summary-model and threshold settings.
  3. Cancel if you can't wait: Esc in the CLI, TUI and Desktop, /stop on a messaging platform, then /model to switch.
  4. Slow local endpoints: see the 180s decoder for the stale-stream timeout to raise so the watchdog doesn't kill a legitimately slow prefill. Since v0.23.0 timeout errors name the phase and the setting to raise.
  5. Custom endpoint hitting a TPM limit: the recovery cycles skip 429s, so the turn ends after the normal retries (issue #140255, open). Add fallback_providers or raise the limit.

Hermes provider temporarily unavailable

⏳ Provider temporarily unavailable — retrying automatically in 18s (cycle 1/5); press Esc to stop

This is Hermes's auto-recovery, not a crash. It starts only after the normal retries and your whole fallback chain are used up, and only for temporary failures: 5xx server errors, overloaded (529) responses, and connect or read timeouts. Auth, billing, bad-request and content-policy errors never enter it. Hermes waits in up to 5 cycles (about 15, 30, 60, 60 and 60 seconds, or the provider's own Retry-After up to 120 seconds), then re-runs the turn. If every cycle fails, you see Automatic recovery gave up after 5 cycles — the provider is still unavailable.

  1. Wait one cycle and check the provider's status page.
  2. Switch now with /model. On a messaging platform, /stop cancels the wait; in the CLI, TUI and Desktop, press Esc.
  3. Add fallback_providers in config.yaml so a second provider takes over before the cycles start.
  4. Fail fast with hermes config set agent.auto_recovery_cycles 0.

A 429 rate limit is not treated as temporary here, so a busy custom endpoint can still end the turn (issue #140255, open).

The model request failed. Run /model to switch or hermes doctor

The model request failed. Run /model to switch or `hermes doctor` to check the setup.
Details: <raw provider text>

This is the CLI chat panel's fallback message. Hermes sorts each failed request into a known reason (bad key, out of credit, unknown model, rate limit, overloaded, server error, timeout) and prints a specific fix. When none match, you get this generic line, with the provider's own words on the Details: line. Read that line first:

  • A model name in it? The model id is wrong or retired. Pick a valid one with /model.
  • 401, 403 or "invalid key"? See Provider authentication failed.
  • 400 or a schema complaint? See every cause of Hermes error 400.
  • No details, and every model fails? Run hermes doctor. Older builds also showed this line when the CLI lost its gateway connection; hermes gateway status tells you which it is.

Since v0.23.0, a message to a chat whose working folder has been deleted says so instead of printing this line (PR #143075).

Something went wrong and I couldn't finish this reply. Use /retry

⚠️ Something went wrong and I couldn't finish this reply. Use /retry to try again, or /new to start a fresh conversation. Technical details are in the gateway log (`hermes logs`).

This is the reply Hermes sends on Telegram, Discord, Slack and other chat surfaces when a turn fails. Hermes keeps raw exception text out of chat, so the real cause is in the gateway log on a line starting Agent turn failed; reply sanitized for chat. Detail:. A variant adds one sentence when Hermes knows the reason, such as an expired sign-in, an empty balance or a rate limit.

  1. Send /retry once. Many causes are transient.
  2. If it fails again, run hermes logs on the host and read the Detail: line.
  3. A missing CA bundle, or a file Hermes can't read, also lands here: /login won't help, the host fix will.
  4. /new starts a fresh conversation if the session itself is the problem.

On Hermes Desktop v0.23.0 and later you see a redesigned error card instead: it marks the failure as blocking or degraded, shows the real exception and offers one action (Continue, Open provider settings, Setup guide). Chat surfaces still show the line above. What the log usually says, from Hermes's own support sweep (issue #147620): a local server answering HTTP 400: model '…' not found, an SSH tunnel that died when a Mac slept, a compression model under 64,000 tokens of context, or a 200k-token session sent to a local 27B model.

Sorry, I encountered an unexpected error. Try again or use /reset to start a fresh session points at the session: /reset starts a fresh one, and your memory files are kept.

Hermes exited with code -4058

Error: spawn C:\Users\<you>\.hermes\hermes-agent\venv\bin\python ENOENT
Error: Hermes exited with code -4058. Check your model configuration and API key.

This comes from the community Hermes Desktop companion app (the open-source project by fathah on GitHub), not from Hermes Agent, and it is not a model or key problem. -4058 is the Windows "file not found" code: the app looked for a Linux-style venv\bin\python where Windows has venv\Scripts\python.exe, or the install never finished.

  1. Update the companion app; current releases look for venv\Scripts\python.exe.
  2. Run hermes --version in PowerShell. If it fails, run hermes update or reinstall with the official PowerShell installer.
  3. On the official Hermes Desktop from Nous Research, use Repair install instead.

Hermes Agent was updated while Hermes WebUI was running

Server returned HTTP 409: Hermes Agent was updated while Hermes WebUI was running. Restart Hermes WebUI before retrying this action.

Hermes WebUI is a separate, community web interface for Hermes Agent. It loads the Agent's Python code into its own long-running process. When hermes update, a git pull or another tool changes the Agent underneath it, WebUI refuses new turns with a 409 rather than mix old and new code.

  1. Make sure the Agent update finished: run hermes --version and hermes doctor.
  2. Restart WebUI the same way you started it: ./ctl.sh restart, or for a user systemd service:
systemctl --user restart hermes-webui.service

Refreshing the browser is not enough: only a backend restart loads the new code. hermes update restarts gateways and the dashboard, not hermes-webui services (issue #95882), so plan on restarting WebUI after each Agent update.

WebUI cannot verify that the Agent update completed safely

Hermes Agent was updated while Hermes WebUI was running. WebUI cannot verify that the Agent update completed safely. Check the Agent update outcome and environment first. Restart Hermes WebUI manually before retrying this action.

This is the longer form of the 409 above, from current Hermes WebUI builds (api/agent_runtime.py in the nesquena/hermes-webui repo). Before each action, WebUI compares the Agent's git revision with the one it loaded. When it changed, WebUI also looks for update markers: .hermes-update-in-progress in ~/.hermes (written by hermes update, holding a process id and a start time) and the recovery markers .update-incomplete or .lazy-refresh-incomplete in the Agent install directory. A recovery marker means the update really did not finish. An in-progress marker older than 20 minutes, or whose process has gone, is treated as stale. Either way WebUI cannot prove the new code is healthy, so it refuses and asks you to check.

  1. Check the Agent update finished: hermes --version and hermes doctor. If hermes update was interrupted, run it again to completion (hermes update --backup first if you are nervous). That clears the recovery markers.
  2. Restart WebUI: ./ctl.sh restart, or systemctl --user restart hermes-webui.service. A browser refresh does not reload the backend.
  3. If the update keeps failing, work through Hermes update failed before you restart WebUI again.

Hermes update failed

Most "Hermes is broken" reports on old builds are fixed by updating, so a failed update leaves you stuck. Start safe:

hermes update --check    # see what would change, touch nothing
hermes update --backup   # snapshot HERMES_HOME first

Then hermes pm repair for a half-built dependency environment, and on Windows stop every Hermes process first so nothing locks the venv. If a previous update "pulled new code but did not restart running gateways", run hermes gateway restart (add --all for every profile); since v0.23.0 stop and restart refuse while sessions are live, so finish or stop those turns first. Since v0.23.0, hermes update also names a CDN firewall block instead of a bare 403 and reclaims git locks left by a killed update. Every other message (uv.lock, No module named 'hermes_cli', Access Denied, "an update is still running"), step by step: Hermes update failed.

Hermes "Chat unavailable: 1"

Chat unavailable: 1 appears in the dashboard's Chat tab, which runs a Node.js terminal app (hermes --tui). Older builds printed the raw exit code, and 1 usually meant Node.js was not found; current builds say "Hermes needs Node.js to run the terminal chat. Install Node 18+".

  • Node.js missing. Install Node 18+ where the process running hermes dashboard can find it, and reopen the tab.
  • Too many chat tabs. Close one and click Start new session.
  • No usable provider key. If the log shows No API key configured for provider '...', fix the key as in Provider authentication failed.
  • Old Docker images had a root-owned TUI folder: see the decoder.

On Windows the dashboard chat shows "Chat unavailable: the embedded terminal requires a POSIX PTY". If hermes chat works in a terminal on the same machine, only the dashboard's chat launcher is failing.

Provider authentication failed

⚠️ Provider authentication failed. Check the configured credentials; raw provider details are in the gateway logs.

On v0.21.4 and later, chat may show "Sign-in to the AI model service failed. Use /login to sign in again", and chat UIs on the API server show "Provider authentication failed: <error>". All mean the provider rejected your credentials. Check three things in order:

  1. The key for the active provider is in ~/.hermes/.env.
  2. The provider name in ~/.hermes/config.yaml matches that key.
  3. There are no duplicate keys for the same provider, where an older one would win.

Restart Hermes afterwards; it doesn't hot-reload .env. If the message says "Configured provider is not authenticated; run hermes model to reactivate", run hermes model. On v0.21.3 or earlier, a quota 429 could show up as this auth message (issue #89401, fixed in v0.21.4). Signing in with a Claude or ChatGPT subscription rather than an API key? See using Claude and ChatGPT subscriptions with Hermes. More causes: the provider authentication failed decoder and six Hermes auth-error causes.

This chat is open in another Hermes window

Hermes lets only one window, pane or terminal own a session at a time, using a session lease. When a lease gets left behind, you see one of these:

Error: This chat is open in another Hermes window/terminal. Use it there, or start a new chat here.
Hermes could not safely reserve this session. Try again.
Still waiting for the other Hermes process on this session

"This chat is open in another Hermes window" usually means a pane you switched away from still holds the lease; it can still happen after /new, /resume or a compression rotation (issue #117946, open). Close the other pane, or restart the dashboard with hermes dashboard. Don't delete lease files by hand while a turn is running.

"Hermes could not safely reserve this session" was mostly reported on the Windows dashboard. Update, stop every Hermes process and reopen the chat. In PowerShell:

Get-Process | Where-Object { $_.ProcessName -like "*hermes*" } | Stop-Process -Force

"Still waiting for the other Hermes process" is not an error. Another process, often a cron job or a second terminal, is mid-turn on the same session. Wait for it, or stop that process.

Telegram 409 Conflict: terminated by other getUpdates request

Conflict: terminated by other getUpdates request; make sure that only one bot instance is running

Telegram allows one long-polling consumer per bot token. A second gateway on the same token (another container, another HERMES_HOME, an old deployment a supervisor revived, or a webhook set elsewhere) makes Telegram answer 409, and the Hermes log shows "Telegram polling conflict". Run hermes gateway status and hermes gateway list to find the duplicate, check other hosts that use the same token, and stop it. If you can't find the other copy, replace the bot token in BotFather so only the gateway you update keeps working. Full setup and fixes: Hermes Agent Telegram setup and the Telegram 409 decoder.

Every other Hermes error (full index)

Error stringWhat it means1-line fixFull fix
Hermes agent not responding (no reply, no error)A local model hung on tools, a provider outage or a dead gateway.Check the gateway log; on Ollama, hermes config set model.streaming false.Ollama hangs with tools, Hermes keeps stopping
Hermes not working with OllamaOllama's /v1 endpoint hangs on streamed tool requests (#25629).hermes config set model.streaming false.Layer 3
Hermes agent not using toolsThe model never got the tool schemas or can't call tools.Use a tool-capable model and pass the schemas.Layer 3
Error: Gateway inaccessible: service_identity_unverifiedA gateway service Hermes can't prove is its own.hermes gateway uninstall, then install; or re-run hermes setup.Gateway identity
Timed out connecting to Hermes backend after 15000msThe gateway isn't running or its port is taken.Start the gateway and check the port.backend timeout decoder
Error: check hermes gateway status: exit status 1The gateway service failed to start.hermes gateway status, then read the journal.Gateway won't start
hermes: no dependency environment is committed for this install; run hermes pm repairNo committed dependency environment, often after a failed update.hermes pm repair, then restart the gateway.Gateway won't start
INSTALL DIDN'T FINISH (Hermes Desktop installer)Desktop setup stopped part-way, e.g. a git clone failing with HTTP 400 curl 22 (#153258, open).Re-run the installer; v0.23.0 fixed the half-installed-Git hang on Windows.Hermes installation errors
Hermes could not safely reserve this session. Try again.The dashboard couldn't take the session lease.Update, stop every Hermes process, then reopen the chat.Session lease errors
Still waiting for the other Hermes process on this sessionA second process is mid-turn on the same session.Wait for it to finish, or stop the other process.Session lease errors
The model provider failed after retriesRetired model id, or a 503/429 with no fallback.Read the real HTTP status in the gateway log; fix the model id; add fallback_providers.model provider failed after retries
Configured provider is not authenticated; run hermes model to reactivateThe provider's login or key is no longer valid.hermes model, and sign in again.Provider authentication failed
API call failed after 3 retries: Connection error.Network drop, safety block, 402/429 or a dead model id.Read the real status code in the logs.API call failed after 3 retries
rejected the request and retrying won't help (log: Non-retryable client error)Wrong model, bad tool schema, a legacy Gemini key or too much context.Check the model id and context size against your plan.every cause of Hermes error 400
Could not open a stream to <host> after N attempts (request X KB)A body-size limit (large request) or an unreachable endpoint (small one).Large: raise the body limit or /compress. Small: check base_url, then /retry.Hermes connection error
Chat reply: "interrupted mid-request" / "not running or is unreachable" / "could not reach the AI model service"A cut connection, nothing at base_url, or no detail./retry; start the model server or fix base_url; the raw exception is in hermes logs.Hermes connection error
Provider returned an empty stream with no finish_reasonThe provider's stream closed early.Retry with streaming off.malformed-SSE decoder
No response from provider for 180sThe stale-stream detector killed a silent stream.Check the endpoint is alive, then /model.180s decoder
Provider has been unresponsive (no response received) for 5 consecutive stale attemptsFive silent streams in a row, usually long context on a local model./compress or /new; raise the stale-stream timeout for a local endpoint.Waiting on provider, 180s decoder
Context length exceeded: compression could not reduce the rebuilt request below the safe thresholdHermes's context setting exceeds the local server's real window.Set model.context_length to the server's actual --ctx-size.Hermes context length fix
Sorry, I encountered an unexpected error. Try again or use /reset to start a fresh sessionThe session hit an internal error./reset starts a fresh session; your memory files are kept.Something went wrong
Hermes is paused. New work is on hold; run hermes resumeSomeone ran hermes pause, the global stop for new work.hermes resumeHermes is paused
Empty tool_calls on every turnThe model never sees your tool schemas.Pass tools=tools to apply_chat_template.Tool-calling failures
Web search returns nothingA local model without tool support, or a dead search key.Test with a cloud model, then check the search key.Web search not working
Dashboard won't load on port 9119Port taken, or bound to localhost.lsof -i :9119, or tunnel over SSH.Dashboard not working
zsh: command not found: hermes / bash: hermes: command not foundYour shell hasn't reloaded PATH since install.source ~/.bashrc (or ~/.zshrc).command not found decoder, Layer 1
Hermes agent was installed, but 'hermes' is not available on PATHSame cause, reported by the installer.Add ~/.hermes/bin to PATH and reload the shell.Layer 1
ModuleNotFoundError: No module named 'hermes_cli'The update left the environment half-synced.hermes update --backup, then re-run.hermes_cli decoder
Error: couldn't find Python 3.11+ for Windows setupThe Windows installer found no supported Python.Install Python 3.11 or newer, or use the current Desktop app, which carries its own.Hermes installation errors
ERROR: Package 'hermes-agent' requires a different Python: 3.14.x not in '<3.14,>=3.11'Python 3.14 on Hermes v0.21.5 or older.Update to v0.21.6 or later, which runs on 3.14.Layer 1, decoder
Source-update completion failed: an update is still running; wait for it to finishA second update started while the first was running.Wait, then run hermes update once.Hermes update failed
The lockfile at uv.lock needs to be updated, but --locked was provideduv.lock drift, fixed in v0.21.4.Run uv lock in the install directory, then hermes update.Hermes update failed
No module named 'concurrent_log_handler'A Windows update left the venv without a dependency.Stop every Hermes process, then hermes pm repair.concurrent_log_handler decoder
response remained truncated after N continuation attemptsEvery continuation hit the output-token ceiling.Raise the output limit on your model server, or /compress.Hermes response truncated
model context length below the 64K minimumThe model's window is under the Hermes floor, which v0.23.4 still enforces.Pick a 64K+ model or raise the context.context length decoder, Hermes context length fix
Session already has a live owner (cli, pid...) on a cron jobCron delivery collided with a live session lock. Fixed by PR #105442.hermes update.Hermes cron not working
Codex token refresh failed with status 401Two programs share one Codex OAuth token.hermes auth add openai-codex --type oauth.Codex 401 decoder
System message must be at the beginning (Codex)The request put a system message after other messages.See the decoder.Codex system message decoder
Auxiliary title generation failed: Connection error / request timed outOnly the session-title side call failed; chat still works.Point auxiliary.title_generation at a working provider.Auxiliary title decoder
srv operator(): instance name=<model> exited with status 1 (llama-server)llama-server couldn't load the model, usually out of memory.Lower --ctx-size or use a smaller quant.llama-server instance exited decoder
quota exhausted on Gemini with quota leftHermes misreads a Gemini rate-limit response.Check per-minute limits, not just daily quota.Gemini quota decoder
HTTP 402 billing error reported as "rate limited"An empty balance or spend cap misread as a rate limit.Top up or raise the spend limit; don't rotate keys.402 billing decoder
Installation script times out or hangsA network block on GitHub, common on corporate networks.Download and inspect the script, then run it locally.Layer 1
API key not recognizedWrong key format, a revoked key, or an empty balance.Fix the key in ~/.hermes/.env, then restart Hermes.Layer 2
Bare connection errorHermes can't reach the provider at all.Check the base URL, curl -I the endpoint, check the status page.Hermes connection error
JSON parse errors in the agentic loopOne malformed tool call poisons the next turns.Catch parse failures per turn and retry the bad turn alone.Layer 3
Local model can't use web toolsThe web backend's checks fail on many local models.Keep a cloud model for web access.Layer 3
Agent stops making sense after 2-3 tool turnsOllama's 2,048-token default context overflowed.ollama run hermes3 --ctx-size 8192.Layer 4
Hermes forgets everything between sessionsMemory not configured, or a different working directory.Start from the same directory or set an absolute memory path.Layer 4
Slow state.db, ghost sessionsEnded sessions piling up.hermes sessions prune --older-than 30 --dry-run, then --yes.Layer 4
Gateway crashes on Telegram or Discord onlyThe gateway was started inside the hermes-agent source folder.Update, then start the gateway from ~.Layer 5
Hermes agent keeps stoppingA supervisor restart loop, a memory limit or WSL2 idling out.See the full guide.Hermes agent keeps stopping

If you'd rather keep your host clean, you can run Hermes in Docker.

Gateway won't start

When the gateway won't start, the message you see is only the wrapper. Start here:

hermes gateway status
journalctl --user -u hermes-gateway -n 50   # Linux with systemd: the real reason
hermes gateway restart                       # add --all to restart every profile

Running Hermes in a container instead? Hermes Docker install in 4 commands is the shortest clean setup.

"Error: check hermes gateway status: exit status 1" means the service started and quit; on Linux the line that explains it is in the journal.

"no dependency environment is committed for this install; run hermes pm repair" is a common reason on git installs under systemd since v0.22.5 (issue #146481, open). The gateway rewrites its service file to use Hermes's package-manager launcher, and that launcher refuses to run without a committed dependency environment. A failed hermes update leaves the same state. Run hermes pm repair, then hermes gateway restart. Editing the service file by hand only lasts until the gateway regenerates it.

hermes doctor --fix: what it repairs and what it can't

hermes doctor checks dependencies, the Python version, PATH, credentials for the active provider and whether the model answers; --fix repairs what it can, including migrating your config. It exits 1 while anything remains unresolved.

It can't repair:

  • custom_providers saved as a dict instead of a list (issue #31780). Turn each entry into a list item (- name: …) in ~/.hermes/config.yaml.
  • A config too old to migrate (issue #123557, open). Below schema version 12 it prints "Config migrated to latest version" but leaves the file unchanged. Back up config.yaml and re-run hermes setup.
  • Non-default profiles. Run its suggestions against yours, for example hermes -p work doctor.

Two things --fix will not rewrite: a custom_providers block that is not a list, and list settings stored as a quoted string (for example plugins.enabled: '["a","b"]'); fix those by hand in config.yaml.

Where Hermes keeps its logs

Every section above says "read the log". These are the places:

WhatWhere
Gateway loghermes logs, or ~/.hermes/logs/gateway.log
Agent log (exception chain per attempt, thread=bg-review lines)~/.hermes/logs/agent.log
Desktopdesktop.log, from Open logs on the startup screen
systemd service (Linux)journalctl --user -u hermes-gateway -n 50
Dockerdocker logs <container>
Bundle for a bug reporthermes debug share uploads redacted logs; add --nous to send them privately to Nous

The five debug layers for Hermes Agent, fixed top to bottom: 1 install and PATH, 2 API keys and provider, 3 tool calling, 4 context and memory, 5 gateways. Two broken layers look like one mystery

Install, provider, tool, memory and platform problems

No exact error message? Work down the five layers in the image above. Most of these have their own guide, so this is the short version.

Install and PATH

command not found after install means your terminal hasn't reloaded PATH: source ~/.bashrc (or ~/.zshrc), or add export PATH="$HOME/.hermes/bin:$PATH". Python 3.14 is supported from v0.21.6; on 3.9 or 3.10, install 3.11+ with pyenv rather than replacing the system Python. An install script that hangs is a network block on GitHub. Everything else: Hermes installation errors.

API keys and provider

"The model provider failed after retries" and "API call failed after 3 retries" are catch-alls: the real HTTP status is in the gateway log, and the usual causes are a retired model id, a 429 or 503 with no fallback, or an empty balance that looks like a bad key (decoder). Check the key format (sk-, sk-ant-, no trailing spaces) and restart Hermes after editing ~/.hermes/.env.

HTTP 400 errors from the model provider

The provider rejected the request as built: a model your plan doesn't include, a tool schema it doesn't accept, or too much context. Since v0.23.0, byte-cap 400s trigger compression automatically. All causes: every cause of Hermes error 400.

Hermes connection error

A bare "connection error" means Hermes can't reach the provider: check the base URL, curl -I the endpoint, check the status page. On chat platforms the reply says which kind: "interrupted mid-request" (the connection was cut; /retry), "not running or is unreachable" (nothing listening; start the model server or fix base_url) or "could not reach" (no detail; read hermes logs). Could not open a stream to <host> on a large request is a proxy or endpoint body limit: /compress or raise the limit. For ECONNREFUSED ::1 and the other network causes Hermes shares with Ollama, n8n and OpenClaw, see the Failed to fetch error guide.

Tool calling

Empty tool_calls on every turn means apply_chat_template was called without tools=tools. One malformed tool call can poison the next turns: retry the bad turn alone. Web tools fail on many local models; keep a cloud model for web access. Which local models handle tools: Ollama tool-calling reference.

Local Ollama models hang forever when tools are defined

Ollama's /v1/chat/completions endpoint mishandles requests that combine streaming with tools, so the call never completes (issue #25629, open). Rule out slow CPU prefill first (HERMES_API_TIMEOUT=1800 in ~/.hermes/.env), then turn streaming off with hermes config set model.streaming false.

Context and memory

Hermes 3 8B defaults to 2,048 tokens in Ollama, which fills in 2 to 3 tool turns: ollama run hermes3 --ctx-size 8192. Memory that doesn't persist usually means Hermes started from a different directory; in gateway mode USER.md and MEMORY.md may not reach the prompt (issue #96134, open). For ghost sessions and a slow state.db, run hermes sessions prune --older-than 30 --dry-run, then --yes. See Hermes Agent memory providers and slow after compaction.

Gateway, dashboard and platforms

A gateway that crashes only on Telegram or Discord was started inside the hermes-agent source folder: update and start it from ~ (Telegram, Discord, Teams setup guides). A dashboard that won't load on port 9119 is bound to 127.0.0.1 by default: tunnel with ssh -L 9119:127.0.0.1:9119 you@your-server; in Docker set HERMES_DASHBOARD=1 and publish the port. Web search that works on a cloud model but not a local one is the model; failing on both means the search key.

Hermes is paused

Hermes is paused. New work is on hold; run hermes resume to pick things back up. Someone ran hermes pause, the global emergency stop. Run hermes resume; if cron jobs still don't run, see Hermes cron not working.

What changed in v0.23

Check hermes --version first (Hermes Agent latest version shows how to update safely). v0.23.0 shipped on 5 November 2026, v0.23.1 on 9 November, v0.23.2 on 16 November, v0.23.3 on 20 November and v0.23.4 on 24 November. Three changes alter the error wording on this page:

  1. Desktop error card. Failed turns on Desktop show the real exception and one action instead of "Something went wrong".
  2. Timeout errors name the phase and the setting to raise, with a new opt-in agent.stream_max_lifetime cap, so "waiting on" lines are more specific than on v0.22.
  3. hermes update names a CDN firewall block instead of a bare 403, asks before stashing, and reclaims git locks from a killed update.

Also in v0.23.0: hermes gateway stop and restart refuse while sessions are live; a gateway whose pid was recycled no longer exits 75 forever; Windows Desktop attaches to a Scheduled-Task gateway again; the Windows installer no longer sticks on a half-installed Git. v0.23.1 raised the plugin catalog cap from 2 MiB to 16 MiB. v0.23.2 is a patch roll-up for the CLI, Store app and Docker; installer-built Desktop apps update with the next bundled release. v0.23.3 rolls up about 370 PRs since v0.23.2 and adds a one-question first-run CLI setup with the free tier included; nothing in its notes changes the gateway, Connecting or startup fixes on this page. v0.23.4 (24 November) rolls up about 229 more PRs; its curated notes ship with v0.24.0, and the service_identity_unverified check is unchanged in it.

Still open at the time of writing: pm repair loop under systemd (#146481), session lease after /new (#117946), Connecting after deleting a profile (#149590), service_manager_unavailable on headless macOS (#143657), service_identity_unverified (#142579), MSIX gateway auto-start (#154335), gateway memory injection (#96134), WSL2 restart loop (#95189), Ollama stream-plus-tools hang (#25629), doctor --fix on old configs (#123557).

Still stuck? When to stop debugging

Every error on this page is fixable. But they add up: PATH, Python versions, context sizes, gateway services, session leases, memory paths, update channels.

The debugging tax, self-hosted versus managed at each layer. Setup: PATH, Python and WSL2 versus nothing to install. API keys: edit .env by hand versus OAuth connect. Context: tune ctx-size versus auto-managed. Memory: manual versus persistent. Gateways: debug per platform versus one-click channels. Time to a working agent: hours versus 60 seconds

If you enjoy running your own stack, Hermes is a strong framework. To compare it with other self-hosted agents, see Hermes vs Pi vs OpenCode and Hermes Agent alternatives.

Frequently Asked Questions

Why is Hermes Agent not working?

Hermes runs on your own machine, so a failure is almost always local: the gateway or backend did not start, the provider key or model id is wrong, a tool call failed, or an update left old code running somewhere. Run hermes doctor --fix first, then match the exact message Hermes printed against the error table at the top of this page and follow its fix.

What does waiting on provider mean in Hermes?

It means Hermes is waiting, not crashing. "Waiting on provider, retrying in Ns" appears between Hermes's own retries after a temporary provider error, three attempts by default. "Waiting on , waiting for the first stream chunk" means the request was sent and the provider has not answered yet, often a long prompt on a local model. Let one retry run, press Esc or /stop to cancel, or switch with /model.

What does provider temporarily unavailable mean in Hermes?

Your model provider returned a temporary failure, such as a 5xx error, an overloaded response or a timeout, after Hermes had already used its normal retries and fallback providers. Hermes then waits in up to five recovery cycles before trying the turn again. Wait for a cycle, check the provider's status page, or switch models with /model. Adding fallback_providers lets another provider take over sooner.

How do I fix gateway inaccessible service_manager_unavailable?

Hermes asked systemd, launchd or Windows Task Scheduler about the gateway service and got an answer it could not use, so it stopped instead of starting a second gateway. Run hermes gateway status, then hermes gateway restart. If that fails, run the gateway in the foreground with hermes gateway run, or recreate the service with hermes gateway uninstall and hermes gateway install.

What does exited with code -4058 mean?

The message comes from the community Hermes Desktop companion app on Windows, not from Hermes Agent itself. The code -4058 means file not found: the app tried to start the Hermes Python and nothing was at that path. It is not a model or API key problem. Update the companion app, confirm hermes --version works in PowerShell, and reinstall Hermes Agent if it does not.

Why does Hermes say something went wrong, use /retry?

That is the reply Hermes sends on chat platforms when a turn fails and it keeps the raw error out of the conversation. Send /retry once, because many causes are temporary. If it fails again, run hermes logs on the host and read the line that starts with "Agent turn failed". Use /new to start a fresh conversation if the session itself is broken.

Why is Hermes stuck on connecting?

Hermes Desktop shows Connecting while it waits for a gateway it can use. Update first, then read the last lines of desktop.log. Known causes are the v0.22.1 Microsoft Store build, a deleted profile Desktop still tries to open on Windows (set defaultRoute back to default), an SSH host whose logind settings kill the remote backend, a slow SSH link, and Store installs whose gateway doesn't auto-start after a reboot (hermes gateway restart).

Is "Sorry, but we couldn't connect you with an agent" a Hermes error?

No. That sentence is the standard message of a website's live-chat widget (Intercom, Zendesk and similar) when no human support agent is online. It is not printed by Hermes Agent, the gateway or the WebUI, and nothing on your install is broken. If Hermes itself isn't answering, start at Gateway won't start, run hermes doctor --fix, then find your exact message in the full error index.

Tired of debugging?

BetterClaw handles config, OAuth, and deployment. Your agent is live in 60 seconds.

Start free
Tags:hermes agent not workinghermes couldn't starthermes backend exited before it became readyhermes waiting on providerhermes provider temporarily unavailablegateway inaccessible service_manager_unavailablegateway inaccessible service_identity_unverifiedhermes stuck on connectinghermes exited with code -4058hermes agent was updated while hermes webui was runningwebui cannot verify that the agent update completed safelyhermes chat unavailable 1hermes provider authentication failedhermes model provider failed after retrieshermes update failedhermes gateway not startinghermes pm repairhermes session open in another windowhermes doctor --fixhermes v0.23hermes agent errorhermes agent troubleshooting
Shabnam Katoch

Written by

Growth Head

Shabnam leads growth at BetterClaw and has spent the past three years building organic distribution for AI-native products. She writes about no-code agent builders, content strategy, and what it actually takes to grow without an ads budget.

Share this article
Was this helpful?