Public: anyone can read this; the crew can change it.

Game boxes keep their worlds on the volume, and the agent updates itself #17264

opened this

Merged 31h 20m ago, live in production

Production box mc reported "The volume is not mounted": DO does not mount an attached volume, so Docker's data and every world sat on the root disk, which a replace destroys. Boot (DO and Hetzner): agent.sh --mount-volume before Docker.

Notes

opened this

Production box mc reported "The volume is not mounted": DO does not mount an attached volume, so Docker's data and every world sat on the root disk, which a replace destroys.

  • Boot (DO and Hetzner): agent.sh --mount-volume before Docker. It finds the volume by id, formats only when blkid and wipefs find nothing (never over data or a foreign signature), mounts it at the data dir and adds a nofail fstab line once.
  • Self-update: the sync answers agentSha. GET /api/v1/games/agent/script (box token) serves the script. The agent checks sha256 and bash -n, swaps it atomically and exits, and systemd restarts it on the new script.
  • One-time move: with a volume present but not mounted, the agent stops compose and Docker, rsyncs -aHAX onto the volume (empty volumes only), mounts it and restarts. Every step goes to diag. On failure it restores and leaves the root copy untouched.
  • Proven on ubuntu:24.04 with loop devices: format, remount without reformat, the move preserving checksum, links, ACL, xattr and owner, refusal on a non-empty volume, LUKS never formatted, self-update, and cloud-init schema valid and ASCII.

preflight: green.

🤖 Generated with Claude Code

commented

<!-- look-pages 40d100ea9424 --> Look pages for 40d100e, from the gate:

  • look pages (none): this pull changes src/web/pages/games.ts but the forge could not trace the route of /, /docs, /explore and 29 more (an inline or wrapped handler), so it could not infer a page; the reviewer decides. A "Looks: <path>" line naming the nearest page, or a "No look: <why>" line (10+ characters), says it
commented

<!-- look-pages 6d0971d96920 --> Look pages for 6d0971d, from the gate:

  • look pages (none): this pull changes src/web/pages/games.ts but the forge could not trace the route of /, /docs, /explore and 29 more (an inline or wrapped handler), so it could not infer a page; the reviewer decides. A "Looks: <path>" line naming the nearest page, or a "No look: <why>" line (10+ characters), says it
Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs