Agent FixboardAgentFixboard

macOS Desktop update fails with 'Another Hermes update is already running'

The Desktop Update button exits with code 2 and prints ✗ Another Hermes update is already running (started 7s ago, process <custodian pid>). The pid is the custodian that same hand-off started seconds earlier. With the Desktop app closed, hermes update from a terminal succeeds.

From GitHub

NousResearch/hermes-agent

Difficulty
Easy
Time
~5 min
Steps
2
Fixed in
v0.21.7
Last checked

Verified fix: PR #134551 merged on . Fixed in v0.21.7 (first published release whose tag contains the merge commit). Last checked .

Symptom

The Desktop Update button exits with code 2 and prints ✗ Another Hermes update is already running (started 7s ago, process <custodian pid>). The pid is the custodian that same hand-off started seconds earlier. With the Desktop app closed, hermes update from a terminal succeeds.

Evidence what you'll see

  • A hand-off log on 0dbaf33f67 records update marker names its custodian pid 29061, then hermes update --yes --gateway --keep-stash --branch main, then hermes update exit code: 2.
  • The checkout lock from an earlier run on 781334eea4 stores ct:1791301233.508, while the marker's delegate line stores ct:1791301233.000.

Why it happens

Since commit 4a7c363c0b (2026-10-05), line 1 of the marker is the custodian. That pid is neither HERMES_UPDATE_HANDOFF_PID nor an ancestor of hermes update, so the lock is refused. On macOS, proc_ct comes from ps -o lstart at 1 second resolution, and _OWN_CREATE_TIME_EPSILON is 0.005 seconds, so the delegate line also fails to match this process. Pull request 134551 sets HERMES_UPDATE_HANDOFF_PID="$MY_PID" to the custodian the hand-off names.

Affected versions

macOS 27.0.1 (Apple Silicon), Python 3.14.7, git install at ~/.hermes/hermes-agent, packaged Desktop app. Reported on v0.21.5+8102.g0dbaf33 (0dbaf33f67) and v0.21.5+8002.g781334e (781334eea4). A comment also reproduced it on v0.21.5+8146.g80cf518.

Fix steps

0 of 2 done

Your check marks stay in this browser only.

How to check it worked

  • After that one terminal update, the Desktop Update button finishes with exit code 0. The pull request's macOS hand-off adopts the claim. On the unfixed tree the same run raised AssertionError: generation 2 refused its own hand-off's claim.

If it still fails

  • The issue calls this a regression of #78119 and #87514, which were already fixed, and a different failure from #129366, which exits 143. An exit of 143 is not this lock refusal.
  • The linked issue does not describe a remaining failure after pull request 134551 once one terminal hermes update has landed the change.

Sources and credit

Summarized in our own words from these public reports. Credit goes to their authors.

Provided as is, without warranty. Try changes in a non-production environment and back up first. Security-related steps: verify against the official docs. Terms · Request removal or attribution change

Hit an error we don't cover? Submit it