Files
conversation-history/Projects/DeepSeek Harness/2026-08-23-art0-dsh-restart-and-hermes-mcp-auth-failure.md

6.8 KiB

title, date, status, server, tags
title date status server tags
art0 DSH restart and Hermes MCP authentication failure 2026-08-23 operational-degraded art0
deepseek-harness
dsh
art0
restart
hermes-mcp
authentication
incident

art0 DSH restart and Hermes MCP authentication failure

Executive summary

DeepSeek Harness on art0 was restarted on August 23, 2026. The original process stopped cleanly, but the first two replacement processes failed during plugin-tree startup because the configured Hermes MCP bearer token was rejected by https://hermes.squaremcp.com/mcp.

DSH is running again and its Web UI is healthy on 127.0.0.1:3080. To restore the main application without waiting for a new Hermes token, the Hermes MCP plugin's failOnStartupError setting was changed from true to false. DSH and its configured model providers are available, but the Hermes MCP integration remains unavailable until its bearer token is refreshed or reauthorized.

No token or API-key values are recorded in this note.

Current runtime

Item Current value
Server art0 (104.190.60.129, SSH port 2222)
DSH version 0.1.1-rc.2
Working directory /home/garfield/IdeaProjects/deepseek-harness
Launcher /home/garfield/.npm-global/bin/dsh
Command dsh web --no-open
New PID 3569499
Process parent PID 1; detached with nohup
Start time 2026-08-23 21:12:39 EDT
Listener 127.0.0.1:3080
Web health check HTTP 200
Hermes MCP Unavailable: bearer token rejected
Model providers Existing DeepSeek, OpenAI, Anthropic, and Moonshot/Kimi configuration retained

This process is detached but is still not managed by systemd. A future maintenance task should replace the ad hoc launch with the systemd user service described in 2026-08-23-art0-dsh-passkey-remote-access-implementation-handoff.

Restart sequence

The original DSH process was:

Item Value
PID 678037
Start time 2026-08-21 18:02:00 EDT
Working directory /home/garfield/IdeaProjects/deepseek-harness
Command node /home/garfield/.npm-global/bin/dsh web --no-open

The old process received SIGTERM and stopped cleanly. No force kill was required.

The first replacement launch did not inherit HERMES_MCP_TOKEN, so DSH failed while loading the mandatory Hermes MCP client. A second launch explicitly loaded /home/garfield/.dsh/.env, but the Hermes endpoint returned the same 401 response. This confirmed that the stored token was present but was no longer accepted; the problem was not only a missing environment import.

The endpoint response was:

Unauthorized — bearer token is missing, expired, revoked, or invalid; reauthorize or refresh the token

Because the MCP plugin was configured with failOnStartupError: true, this single integration failure prevented the entire DSH plugin tree and Web UI from starting.

Temporary recovery change

File changed:

/home/garfield/.dsh/cordis.patch.yml

Change:

failOnStartupError: true

became:

failOnStartupError: false

The original configuration was backed up before modification:

/home/garfield/.dsh/cordis.patch.yml.before-hermes-auth-failure-20260823

With startup failure made non-fatal, DSH started successfully and returned HTTP 200 from http://127.0.0.1:3080/.

The Hermes MCP plugin retains its configured reconnect behavior, but it will not reconnect successfully until a valid token is supplied.

Impact

Available:

  • DSH Web UI on the host loopback interface
  • Existing workspaces and sessions
  • Configured model providers and manual model selection
  • DeepSeek, OpenAI, Anthropic/Claude, and Moonshot/Kimi routes
  • Normal DSH agent and tool functionality not dependent on Hermes MCP

Unavailable or degraded:

  • Tools supplied by hermes-mcp
  • Any workflow depending specifically on the Hermes MCP connection
  • Mandatory startup validation of that integration

Automatic model routing remains a separate issue: dsh-model-router, dsh-llm-fallbacks, and dsh-role-router were not installed at the time of this restart.

Required remediation

  1. Sign in to the SquareMCP dashboard at https://app.squaremcp.com.
  2. Use Connect MCP Client or the appropriate reauthorization flow to issue a new bearer token bound to the correct customer account.
  3. Replace only the value of HERMES_MCP_TOKEN in /home/garfield/.dsh/.env.
  4. Keep /home/garfield/.dsh/.env mode 0600.
  5. Test the new token against the Hermes MCP endpoint without printing it to the terminal, logs, shell history, or vault.
  6. Restart DSH while explicitly loading its protected environment file.
  7. Confirm Hermes MCP completes its initial tool synchronization.
  8. Change failOnStartupError back to true if Hermes MCP should once again be mandatory for DSH availability.
  9. Restart and confirm HTTP health, WebSocket behavior, model availability, and Hermes tools.

Do not paste the replacement token into this note, Git, Traefik configuration, Kubernetes ConfigMaps, or command-line arguments.

The future systemd user unit should load secrets through a protected environment file rather than relying on the interactive shell or a parent process to supply them.

The unit should include the equivalent of:

WorkingDirectory=/home/garfield/IdeaProjects/deepseek-harness
EnvironmentFile=/home/garfield/.dsh/.env
ExecStart=/home/garfield/.npm-global/bin/dsh web --no-open
Restart=on-failure

The real unit should also set a conservative umask and restart backoff. Do not place secret values directly in the unit file.

Whether Hermes MCP should be fatal at startup is an operational policy decision:

  • true guarantees DSH never starts without Hermes, but one expired integration token takes down the whole Web UI.
  • false preserves DSH availability while clearly logging that Hermes is unavailable.

For general DSH availability, the recommended steady-state setting is false, combined with monitoring or an alert for MCP connection failure. Use true only when operating without Hermes would be unsafe or misleading.

Verification performed

  • Confirmed old PID and exact command before stopping it.
  • Confirmed the old process terminated after SIGTERM.
  • Confirmed the protected DSH environment file contains a non-empty Hermes token reference without displaying its value.
  • Confirmed the endpoint rejected the stored token after it was explicitly loaded.
  • Preserved a backup of the pre-recovery patch file.
  • Confirmed the new process remains alive.
  • Confirmed 127.0.0.1:3080 is listening under the new PID.
  • Confirmed the Web root returns HTTP 200.
  • Confirmed DSH remains bound only to loopback.