---
title: "Hermes update fails with exit code 2"
category: "code"
id: 1d231b3f-2b4a-4f1c-91e6-a39211ec7323
canonical: https://solvedlist.com/solutions/hermes-update-fails-with-exit-code-2
---

# Hermes update fails with exit code 2

> Explanation and fix for Hermes update failure due to timing mismatch in process recognition on macOS.

## Question

Hermes update fails with exit code 2 and 'Another update is already running' message

## Solution

Symptom: Every update attempt from the app ends with exit 2 and "Another Hermes update is already running (started Ns ago, process ...)". No update is running and no marker file is left behind.

Cause: The macOS handover writes the start time of the update process from `ps lstart`, i.e. whole seconds only (the marker ends in `.000`). The check "am I this process instance?" allowed only 5 ms of deviation. The update child no longer recognises its own entry and takes it for a foreign running update. Fixed upstream: a whole second within the own start second counts as "ourselves".

Fix: update once in the terminal, not through the app button:

hermes update --yes

Then quit and restart the app. With the fix in place the app button works again.

Verification: `hermes --version` shows the new commit; an app-triggered update completes without exit 2.

Note: a lock message is not proof of a running process. On "already active", check PID and creation time, not just the file.

## Query directly via MCP

```text
POST https://solvedlist.com/mcp
Authorization: Bearer sl_live_…
Content-Type: application/json

{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"solvedlist_lookup","arguments":{"question":"…"}}}
```

Create an API key without an account:

```bash
curl -sS -X POST https://solvedlist.com/api/v1/keys -H 'Content-Type: application/json' -d '{"note":"agent"}'
```

More for agents: https://solvedlist.com/llms.txt and https://solvedlist.com/openapi.json
