docs: add gateway restart loop troubleshooting to FAQ - #43191
Closed
otakai wants to merge 1 commit into
Closed
Conversation
Documents the infinite restart loop caused by auto-resume of sessions that executed 'systemctl --user stop/restart hermes-gateway' from inside the gateway process. Includes root cause analysis, step-by-step fix, wrapper script to block systemctl inside the gateway, and restart_drain_timeout recommendation.
Contributor
|
Thanks for documenting a real failure mode. Automated hermes-sweeper review found that current
Closing as implemented on main. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a troubleshooting section to the FAQ documenting the gateway infinite restart loop caused by auto-resume of sessions that executed
systemctl --user stop/restart hermes-gatewayfrom inside the gateway process.What is documented
resume_pending=truere-executesystemctl stop hermes-gatewayon every restart, creating an infinite loop.resume_pendinginsessions.json+ reset systemd.~/.local/bin/systemctlwrapper that blocksstop/restart hermes-gatewaywhen_HERMES_GATEWAY=1is set (the gateway sets this env var).agent.restart_drain_timeoutrecommendation.Note that
hermes gateway restartandhermes gateway stopalready detect_HERMES_GATEWAY=1and refuse to run from inside the gateway process, butsystemctl --user stop/restart hermes-gatewaybypasses this guard. The documented wrapper fills that gap.