#1431·OpenAlice

Native server restart can retain runtime locks and reject reused PIDs in containers

Author: luokerenx4Created Sep 9, 2026Updated Sep 9, 2026

A standard native CLI server on a persistent-volume Debian container running 0.92.1-beta can fail multiple restart attempts after SIGTERM/container restart.

Observed: Guardian logs shutdown, but state/runtime.lock and workspaces/state/runtime.lock retain the prior Alice owner. Subsequent starts report “already running as pid …” with the old heartbeat, then abort. The runtime eventually recovered without manually removing these new locks when process allocation changed. Old deployment-specific scripts were absent.

Reproduction: install the official Linux x64 0.92.1-beta CLI; launch openalice server run through tini against a persistent home with a stable OPENALICE_MACHINE_ID; restart the container. Inspect owner processStartedAt versus the reused PID and the shutdown release path. The observed restart used tini -s -g.

Suspected areas: packages/guardian-runtime/src/process-control.ts (isSameProcess conservatively returns true when start-time lookup fails), runtime-lock.ts, and graceful shutdown ordering. PID reuse is a hypothesis requiring an isolated reproduction, not yet a confirmed root cause.

Deferred from a remote reinstall because the service recovered and this needs a generic isolated container regression, not another provider-specific lock cleanup patch. Verify graceful restart and crash recovery separately. Do not delete a live owner lock.