carlos / platform Public

v0.34.42: rootfs instances on a fleet box are SIGKILLed a second after start Issue open

Tito staging, 2026-11-10. The box rolled itself from v0.34.14 to v0.34.42 at about 20:18Z (fleet classic, box box-1, i-036e92431e01f7e0a, Debian 13, systemd 257.13, t4g.large). Since then, every rootfs generation that starts is killed within about a second, and the activator restarts it about once a minute. The apps affected are bae/tito-classic (0513be0a-jit), bae/tito-billing (26a9b5cd-jit) and bae/tito-imgproxy (v3.20.0-jit). All three are --jit, and all three return 503. bae/tito-id (not --jit) keeps serving, but it may simply not have restarted.

The pattern for each generation (imgproxy here; the others are the same):

instance-control: tito-imgproxy...: started carlos-instance-rootfs-gen@_tito\x2dimgproxy.bae.stag\x2d2cbdb5b6de056f39:32.service from v3.20.0-jit memory.max=1073741824 (prepared in 551ms, reload 499ms, start 84ms)
systemd: ...:32.service: Supervising process 2445065 which is not our child. We'll most likely not notice when it exits.
systemd: ...:32.service: Sent signal SIGKILL to main process 2445065 ((sd-pidns-child) on client request.
systemd: ...:32.service: Killed unit cgroup with SIGKILL on client request.
systemd: ...:32.service: Main process exited, code=killed, status=9/KILL
activator: tito-imgproxy...: always-on rootfs instance is not running; starting it   (about 60 s later, repeating)

The apps print nothing, so the process dies before the app runs. The agent logs no reason for the kill. In the same minute, IE (the hub) restarted, and the tunnel to tunnel.staging.platform.tito.io was refused for a moment, then reconnected.

Suspects in v0.34.14..v0.34.42: f4d9b095 (tenant syscall filter on every tenant unit), the PrivatePIDs / (sd-pidns-child) handling under systemd 257, and the gVisor changes (de380c2c, 4dfb36d5).

IE (dorothy-sailing) and UK (grace-sailing) are on v0.34.42 too. Their checks pass, but they run no rootfs --jit tenants. The staging console is still on v0.34.11, and the roll is paused there.

The roll was for #845 (Tito Pro's health check). Pro is also a rootfs --jit app on this box, so it is blocked again, behind this.

Rolled Tito staging's stable channel back to v0.34.11 at 20:25Z (IE and box-1). Within 2 minutes all three rootfs --jit apps on box-1 started and served again. UK (canary) stays on v0.34.42, and the staging console was never rolled (still v0.34.11). So the regression is in the box binary between v0.34.14 and v0.34.42. box-1 ran v0.34.14 with these apps without trouble. Tito Pro still needs #845, so Tito needs a release with both fixes.

Root cause found and fixed on fix-rootfs-jit-kill-854 (commit dfa5ac06).

The cause is not --jit, the syscall filter or PrivatePIDs. It is the hostname length.

  • provision.InstanceID keys a host over 40 bytes by a hashed ID that starts with _. For example, tito-imgproxy.bae.staging.platform.tito.io becomes _tito-imgproxy.bae.stag-2cbdb5b6de056f39.
  • instancectl.UnitFamily (added in de380c2c, first in v0.34.34) checked that ID with execsandbox.ValidID. That is the OCI container-ID rule, and it refuses a leading _.
  • So ValidateStartIdentity answered EXEC-SANDBOX-MISMATCH for every unit of a long host: run, generation, worker, seed, cmd, rootfs or binary. The activator then killed the unit it had just started (killFailedRootfsGen), and logged no reason.
  • tito-id (36 bytes) kept working. imgproxy, billing and classic (over 40 bytes) did not. The same failure affects 36 flagship hostnames (via 8a3d302 and platform-0a).

Box-1 journal, 20:17:06Z: instance-control logs started ...:17.service, and 12 ms later systemd logs Sent signal SIGKILL ... on client request. The activator's started line never appears.

Fix: UnitFamily checks the ID as an instance ID (validInstanceIDPart). Only a gVisor unit's container ID (run-+iid) is still held to ValidID. Tests cover every role with a hashed host. Follow-up still open: this kill path logs nothing.

Astra (gpt-6-astra, high) R1 on dfa5ac06: READY, no findings. It answered the brief's three questions: whether the fix covers every caller, whether relaxing the check weakens a security property, and whether the tests are adequate. Static review only; its read-only sandbox could not build Go. Local: instancectl package passes; linux and darwin builds pass.

Fix merged to main as 4655c759. CI passed on tip 21c0b2f2, Astra R1 was READY, and Astra approved the census on #280. Not yet released: platform-0a and 8a3d302 are cutting v0.34.43 with a dev canary, then flagship. Tito staging stays on v0.34.11 until then. The follow-up about the kill path not logging why is #861.

Rolled to flagship in v0.34.43 (4655c759), 22:38-23:03Z. Of the 36 flagship hosts over 40 bytes, 33 answered 503 before and all 36 answer 200 after. EXEC-SANDBOX-MISMATCH on annie: 5893 lines from 14:32Z to 22:41Z, none since. Dev canary witness: a 47-byte host went from MISMATCH to 200.