[Ubuntu 22.04][Agent&Skills] every agent turn on a fresh sandbox fails on legacy credential migration, and the doctor --fix it prescribes cannot run while the Gateway is up
Description
On a freshly onboarded sandbox, every openclaw agent turn fails because the agent's auth profile store reports that it needs legacy credential migration. The remedy the product names, openclaw doctor --fix, cannot run while the Gateway is up — and the Gateway is exactly what the agent turn needs — so the two instructions form a closed loop with no documented way out.
The sandbox itself is healthy: it reaches Ready, its inference route answers, and a direct model round-trip through inference.local works. Only the openclaw agent path is blocked.
"Legacy credential migration" on a store created minutes earlier by a fresh onboard also looks wrong on its face — there is no legacy state to migrate from.
Platform scope: Reproduced on Ubuntu 22.04 x86_64 with the native Podman gateway runtime; other platforms and the Docker runtime not tested. Regression: Unknown — earlier versions not tested for this path. OpenShell issue: No. The gateway starts and serves; the failure is in OpenClaw's auth profile store and its doctor maintenance gate.
Environment
NemoClaw: v0.0.128
OpenShell CLI: 0.0.116
OpenClaw: 2026.9.1 (ad6fe23)
Podman: 5.7.1 rootless, cgroups v2
OS: Ubuntu 22.04.5 LTS, x86_64, 16 vCPU / 62.8 GiB
Provider: NVIDIA Endpoints (nvidia-prod), nvidia/nemotron-3-super-120b-a12b
Sandbox GPU: disabled (--no-sandbox-gpu)Steps to Reproduce
# 1. Onboard a fresh sandbox on the native Podman runtime.
NEMOCLAW_GATEWAY_RUNTIME=podman nemoclaw onboard --fresh --no-sandbox-gpu \
--name {sandbox} --non-interactive --yes
# 2. Confirm it is healthy.
nemoclaw {sandbox} status # Phase: Ready, Inference: healthy
# 3. Run one agent turn through the Gateway.
nemoclaw {sandbox} exec -- sh -lc 'openclaw agent --json -m "say OK"'
# 4. Follow the instruction the failure gives.
nemoclaw {sandbox} exec -- sh -lc 'openclaw doctor --fix'Expected Result
Step 3 returns an agent reply. If a migration genuinely is required on a freshly created store, step 4 performs it, or the message names a remedy that can actually be run.
Actual Result
Step 3:
{
"ok": false,
"origin": "gateway",
"error": {
"type": "cli_error",
"message": "Auth profile store $OPENCLAW_HOME/.openclaw/agents/main/agent/openclaw-agent.sqlite requires legacy credential migration; run openclaw doctor --fix. | AUTH_PROFILE_MIGRATION_REQUIRED"
}
}Step 4:
┌ OpenClaw doctor
Doctor could not enter maintenance. Stop the Gateway through its service owner, then run
openclaw doctor --fix. StateDatabaseCoordinatorContentionError: another OpenClaw process owns
gateway-lifecycleSo the agent says run doctor, and doctor says stop the Gateway first — while the Gateway is the component serving the agent. Neither message names a supported way to stop and restart it around the migration.
Reproduced on two independently onboarded sandboxes on the same host, with identical output both times. The second sandbox was created after the first was destroyed and its gateway stopped, so this is not leftover state from one bad sandbox.
Meanwhile the sandbox is demonstrably fine:
Phase: Ready
Inference: healthy (https://inference.local/v1/models)
GET https://inference.local/v1/models -> 200, full model listLogs
[openclaw] Could not start the CLI.
[openclaw] Reason: Auth profile store $OPENCLAW_HOME/.openclaw/agents/main/agent/openclaw-agent.sqlite
requires legacy credential migration; run openclaw doctor --fix. | AUTH_PROFILE_MIGRATION_REQUIRED
[openclaw] Try: openclaw doctorNote the literal $OPENCLAW_HOME in the message — the variable is not expanded, so the path shown to the user is not a path they can act on.
Related
Found while running the release retest for #11967 on v0.0.128. It is not that issue: #11967 is the Podman bootstrap handoff and rollback, which no longer reproduces. This blocks a different criterion of that retest and is filed separately so it is not lost when #11967 closes.
Source: NVIDIA/NemoClaw