Skip to content

fix: prevent network node restart loops - #227

Merged
jeromy-cannon merged 1 commit into
mainfrom
agent/prevent-network-node-restart-loop
Aug 10, 2026
Merged

fix: prevent network node restart loops#227
jeromy-cannon merged 1 commit into
mainfrom
agent/prevent-network-node-restart-loop

Conversation

@JeffreyDallas

@JeffreyDallas JeffreyDallas commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Summary

  • prevent s6 from restarting the network node after any exit
  • retain explicit lifecycle starts as the recovery mechanism

Root cause

The finish handler set s6's once flag only after a zero exit code. Fatal CN startup failures exit nonzero, so s6 immediately retried them in a loop.

Validation

  • bash -n docker/debian-s6-java25/rootfs/etc/s6-overlay/s6-rc.d/network-node/finish
  • git diff --check
  • verified with s6 that a service exiting with code 1 runs once rather than restarting

relates to hiero-ledger/solo#4388

Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
@JeffreyDallas
JeffreyDallas force-pushed the agent/prevent-network-node-restart-loop branch from 4de1235 to a9f85c0 Compare July 31, 2026 19:05
@JeffreyDallas
JeffreyDallas marked this pull request as ready for review July 31, 2026 19:05
@JeffreyDallas
JeffreyDallas requested review from a team as code owners July 31, 2026 19:05
@JeffreyDallas JeffreyDallas self-assigned this Jul 31, 2026
@jeromy-cannon
jeromy-cannon merged commit 07c13eb into main Aug 10, 2026
11 checks passed
@jeromy-cannon
jeromy-cannon deleted the agent/prevent-network-node-restart-loop branch August 10, 2026 14:23
@swirlds-automation

Copy link
Copy Markdown

🎉 This PR is included in version 0.46.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants