shibarium heimdall init.sh: stop injecting rest_server (crash fix) #16

Merged
sebastian merged 1 commits from shibarium-heimdall-init-fix into main 2026-06-20 03:26:29 +00:00
Collaborator

Shibarium heimdall: stop injecting rest_server (crash fix)

heimdall crash-looped on toml: key rest_server is already defined. init.sh inserted rest_server = true after [rpc] on every boot (non-idempotent), accumulating duplicates until heimdalld refused to parse the config. rest_server is not a valid CometBFT config.toml key — REST/LCD is enabled by the --rest-server flag in the start command.

  • Remove the rest_server / rest_server_addr config injection.
  • Self-heal: strip any previously-injected rest_server lines, so already-corrupted volumes (e.g. de-10) recover on the next boot without a volume wipe.
  • Guard heimdalld init to first boot only (config.toml absent), so restarts dont reset node identity or re-parse the existing config.

After merge → deploy-compose-repo rpc-de-10 rebuilds the image; the self-heal cleans de-10s config and heimdall starts + syncs.

🤖 Generated with Claude Code

## Shibarium heimdall: stop injecting `rest_server` (crash fix) heimdall crash-looped on `toml: key rest_server is already defined`. `init.sh` inserted `rest_server = true` after `[rpc]` on **every** boot (non-idempotent), accumulating duplicates until heimdalld refused to parse the config. `rest_server` is not a valid CometBFT `config.toml` key — REST/LCD is enabled by the `--rest-server` flag in the start command. - Remove the `rest_server` / `rest_server_addr` config injection. - **Self-heal**: strip any previously-injected `rest_server` lines, so already-corrupted volumes (e.g. de-10) recover on the next boot **without a volume wipe**. - Guard `heimdalld init` to first boot only (`config.toml` absent), so restarts dont reset node identity or re-parse the existing config. After merge → `deploy-compose-repo rpc-de-10` rebuilds the image; the self-heal cleans de-10s config and heimdall starts + syncs. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
claude added 1 commit 2026-06-20 03:24:40 +00:00
heimdall crash-looped on 'toml: key rest_server is already defined'. init.sh
inserted 'rest_server = true' after [rpc] on EVERY boot (non-idempotent), piling up
duplicates; rest_server is not a valid CometBFT config.toml key anyway — REST is
enabled by the --rest-server flag in the start command.

- Remove the rest_server / rest_server_addr config injection.
- Self-heal: strip any previously-injected rest_server lines (so already-corrupted
  volumes recover on next boot — no volume wipe needed).
- Guard heimdalld init to first boot only (config.toml absent) so restarts don't
  reset node identity or re-parse the existing config.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
sebastian merged commit 39d2fa93e2 into main 2026-06-20 03:26:29 +00:00
sebastian deleted branch shibarium-heimdall-init-fix 2026-06-20 03:26:29 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: StakeSquid/ethereum-rpc-docker#16