Gateway --replace flag deadlocks and race conditions
Cluster 119467 · gateway. Data as of
2 open items. Fix merged in #120122 on 23 Sep 2026. Check it covers your case.
The short answer
- Known?
- Yes. 6 related items grouped here, 1 issue already closed.
- Fix event
- A fix was merged to main in PR #120122. Check it covers your case. No release data is tracked.
- Tracker
- The maintainers' tracker marks this
resolved, deciding PR #120122. That is separate from the fix event. - Still open
- 0 issues and 2 PRs.
Multiple fixes and a bug report targeting the gateway's --replace mechanism, addressing deadlocks, race conditions, restart loops, and stale systemd drop-ins related to cross-profile ownership and lock handling.
Open issues0
Open PRs2
Fixes on record
-
#120122 fix(gateway): --replace no longer starts a second gateway on a lost lock race, respawn-storms beside a standalone owner, or deadlocks on the stale systemd drop-in (#119837, #119807, #119467)
files:
gateway/host_attach.py,gateway/run.py,hermes_cli/gateway_service_unit.py,tests/gateway/test_host_attach_lifecycle.py,tests/gateway/test_host_gateway_lock_refusal.py,tests/hermes_cli/test_systemd_replace_dropin.py,website/docs/user-guide/multi-profile-gateways.md
2 PRs closed without merging
From the close comments: merged via another change 1 · other 1
Closed issues · 1
- Closed#119467[Bug] A Hermes-written systemd --replace drop-in becomes a permanent gateway deadlock after update (Refusing --replace: PID n cannot be proven to belong to this profile's gateway)
How this cluster was grouped
-
Link evidence (
structural links throughout): every member is connected by structural evidence: shared changed files, or a closing/superseded reference. -
Pairwise link density
0.33: the share of item pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36.1.00means every pair is linked.
Pick up a Lab task
Check whether a fix covers the open issues here, with your own agent. Bring back evidence for maintainers.
Open the LabAt a glance
- Subsystem
- gateway
- Merged PRs
- #120122
- Closed issues
- 1
- Attempts
- 2 PRs closed without merging
- Fix link checked
- 23 Sep 2026