Troubleshooting
Each entry names the symptom as arcave reports it, what happened, and what to do.
An interrupted rollback
Symptom. Every command that changes the compose project — rollback, savepoint create, up, down — refuses to run (rollback prefixes it with require no inflight: ):
rollback to savepoint 019e843e-1650-7000-8000-000000000000 was interrupted (restoring): volumes may mix states; recover with `arcave rollback --session 00000000-0000-0000-0000-000000000001 -p myapp 019e8491-04c8-7000-8000-000000000000`
What happened. A rollback was killed after it began writing. The inflight marker, a volume on the daemon, records the phase it died in, and refuses the next workflow that changes the compose project so nothing is built on a half-written environment. Every checkout and machine with the same project.name sees it against that daemon; another daemon or Podman user does not, nor the containers it guards.
The remedy. Return to the safety snapshot that rollback took of the pre-rollback state. It is the one operation the marker lets through, and only in the session and compose project the marker names. The error ends with the full command, --session and -p included, as above; over MCP it names the rollback tool's session, compose_project and ref instead.
arcave status reports the marker while it stands (rollback-pending), its rollback_in_flight.recover naming the savepoint to roll back to. Pass the same two flags to the commands below.
arcave savepoint list --include-safety-snapshots
- Terminal
- JSON
NAME ID CREATED VOLUMES LAYERS STORED NOT COVERED
before rollback to before-migration (safety) 019e8491-04c8-7000-8000-000000000000 2026-06-01 21:22 1 2 3.9 MB 1
before-migration 019e843e-1650-7000-8000-000000000000 2026-06-01 19:41 1 2 173 MB 1
[
{
"id": "019e8491-04c8-7000-8000-000000000000",
"name": "",
"description": "",
"labels": { "arcave-safety-snapshot": "true" },
"taken_before_rollback_to": { "id": "019e843e-1650-7000-8000-000000000000", "name": "before-migration" },
"created_at": "2026-06-01T21:22:37.009412Z",
…
},
{
"id": "019e843e-1650-7000-8000-000000000000",
"name": "before-migration",
"description": "before the v2 schema",
"created_at": "2026-06-01T19:41:12.123456789Z",
…
}
]
A safety snapshot has no name: its taken_before_rollback_to names the savepoint that rollback was applying, by id and by the name it had then, so it always says which rollback it was taken before.
arcave rollback 019e8491-04c8-7000-8000-000000000000
An id is the only reference that reaches a safety snapshot: latest and name lookups skip them.
arcave savepoint remove 019e8491-04c8-7000-8000-000000000000
Not before. Until then it is the last copy of the pre-rollback state. gc refuses to delete in the marker's session, unless the daemon cannot be reached; savepoint remove and session remove do not read the marker, so nothing but you keeps it from them; see The way back from an interrupted rollback is gone.
What the phase tells you. The remedy above is the same in every case; the phase says how much was overwritten.
| Phase | What it means |
|---|---|
recreating | Died between the teardown and the containers existing again. The volumes are untouched. Under --no-safety-snapshot the teardown itself may have failed, with the project still running: if docker compose ps shows it whole, removing the marker volume keeps it. |
restoring | Died while writing volumes. The environment is partly overwritten. |
restore-done | Every volume was written back; only the start did not finish. Starting the compose project and removing the marker volume keeps the rollback, if that is what you want. A failed rollback of a project with no containers has removed what it created, so it reads restoring instead. |
inconsistent | The automatic replay failed too. The safety snapshot is retained and is the last copy of the pre-rollback state. |
A rollback that took no safety snapshot — of a project that had no containers, never started or taken down, or one run with --no-safety-snapshot — has nothing to return to. The error says so, and names the savepoint the rollback was applying:
… a rollback that took no safety snapshot was interrupted; volumes may be half-restored; recover with `arcave rollback --session 00000000-0000-0000-0000-000000000001 -p myapp 019e843e-1650-7000-8000-000000000000`, or name another savepoint
A rollback of this kind that fails, rather than is interrupted, leaves the same marker: its own error is rollback failed: …, and the next command that changes the project refuses with the text above.
Run that same rollback again; the marker lets it through, and it finishes what the first one started. If the savepoint itself is the problem, its data damaged or a service in it never healthy, roll back to another one: with no earlier state to protect, the marker lets a rollback to any savepoint of the session and compose project through.
Recovering takes no safety snapshot, whichever savepoint the hint names: it would capture half-restored volumes and call them an undo. If the recovery fails, the marker stays until you run it again. The anonymous volumes the interrupted attempt orphaned are not removed: find them with docker volume ls --filter dangling=true.
A recovery to a safety snapshot that keeps failing takes none of its own. Its marker still names that snapshot, and from there a rollback to any savepoint passes too.
Removing the marker by hand makes arcave forget the rollback was interrupted; do it only once the environment is what you want. Find its volume by the compose project, then remove it:
docker volume ls --filter label=io.arcave.inflight.compose-project=myapp
docker volume rm arcave-inflight-myapp-019e8492-…
A marker volume whose labels do not read — edited by hand, or written by another arcave — is an error naming it, and every command that reads the marker fails on it, down --force and status included. Removing that volume, as above, is the way out.
The way back from an interrupted rollback is gone
Symptom. A rollback is refused by the marker, but the savepoint its error names to recover with is not in arcave savepoint list --include-safety-snapshots, or the session it names is gone:
rollback to savepoint 019e843e-1650-7000-8000-000000000000 was interrupted (restoring): volumes may mix states; recover with `arcave rollback --session 00000000-0000-0000-0000-000000000001 -p myapp 019e8491-04c8-7000-8000-000000000000`
What happened. savepoint remove, session remove and gc do not read the marker. While it stood, one of them deleted the way back: its safety snapshot, removed by id or retired by gc (under retain_recent: 0, or after a newer one), or the session it names. No data is damaged, but the marker still names what is gone and still refuses a rollback to any other savepoint.
The remedy. Take the environment down, which clears this compose project's marker, then bring it up from a savepoint you have:
arcave down --force
arcave up 019e843e-1650-7000-8000-000000000000
What is deployed, and why a container lost its files
Symptom. Tests fail against an environment you rolled back earlier, or files written inside a container after a rollback are gone, while its volumes are intact.
What happened. Something recreated the container outside arcave, most often docker compose up of your own compose file: it builds the container on the image the file names, which drops the writable layer the rollback put back.
The remedy. Ask the daemon what it runs:
arcave status
It names the savepoint a rollback deployed and warns of every container recreated since (replica-recreated), failed, unhealthy or missing. To keep today's state take a savepoint; to get the rolled-back one back, roll back to it again.
What status warns of
Every warning of arcave status carries a code; its table says, per code, what happened and what to do. A warning states only what is so: the fix is here, in the documentation, so it does not drift from what arcave does.
another arcave command is already running in this project
Another arcave process holds the lock on .arcave/lock. Only commands that change something take it, arcave gc (--dry-run included) among them — savepoint list, session list and session current always run. The lock is not a queue — a second run fails rather than waiting.
ps aux | grep '[a]rcave'
Usual causes: a background arcave mcp server serving an agent, a CI job that has not finished, a fork (session create --from) still copying, a second terminal. The lock is released when the holding process exits, a crash included — it is an operating-system lock, not a file arcave has to clean up. If nothing is running, retry.
session … is locked by …
Another arcave command — possibly on another machine sharing the store — holds the session's lock, sessions/<session>.lock.json, and did not free it within 60 seconds. The message names its operation, host and pid. Wait for it to finish and retry.
A crashed holder stops renewing its lock, and the lock is taken over 30 seconds later: nothing needs to be deleted by hand.
session lock lost
The command could not renew its session lock for too long — the store stopped answering, or the machine slept — and stopped before another command could take the lock over. What it was writing is not committed; run it again.
config is not found: run 'arcave init' if not yet initialized
Either the project was never initialised, or you are not in its directory: .arcave/config.yaml is resolved against the working directory.
arcave init # initialise here
arcave --config /path/to/.arcave/config.yaml savepoint list # or point at it
no compose project named: pass -p/--project-name, or set ARCAVE_COMPOSE_PROJECT_NAME
The savepoint commands and rollback act on one compose project, and nothing guesses which.
arcave -p myapp savepoint list
The name is what docker compose ls shows in the first column: the compose file's name: if it declares one, and the directory name otherwise. Export it as ARCAVE_COMPOSE_PROJECT_NAME, not ARCAVE_PROJECT_NAME: that one is the storage tenant.
compose project "myapp": no containers found
compose project "myapp": no containers found: bring the compose project up once, or name another project with -p
What happened. savepoint create found no containers: docker compose down was run, or the project was never brought up. Down removes the containers, and with them everything arcave knows about the project.
docker compose up -d
arcave reads the running project from the daemon, not from your compose files. docker compose stop is fine — stopped containers still describe the project. A rollback needs no containers: it rebuilds the project from the savepoint.
compose project is not running but its volumes survive
compose project is not running but its volumes survive: myapp_pgdata
A rollback into a project with no containers found named volumes the savepoint would restore into — usually left behind by docker compose down — and compose.leftover_volumes is refuse. Nothing was created. Remove the volumes if you do not need them (docker volume rm myapp_pgdata), or set leftover_volumes: overwrite to have the rollback write over them.
the daemon holds the compose project already
the daemon holds the compose project already: volumes myapp_pgdata; pass --force to drop all of it first, with no backup; 'arcave rollback' replaces a running environment and keeps a safety snapshot
arcave up builds over nothing, and the daemon still holds containers or volumes of the compose project — a running environment, or the named volumes a docker compose down without -v left. Nothing was written. Pick by what you want of it:
- Keep a way back:
arcave rollback <savepoint>replaces it behind a safety snapshot. - End it first, as arcave does:
arcave down, thenarcave up. - Throw it away:
arcave up --forcedrops all of it, with no backup.
the environment was deployed from elsewhere
the environment was deployed from elsewhere: session "feat/add-new-table" (019a0c2f-4a6d-7e4b-9a2c-1d5e8b7a4c31); run it in that session with --session feat/add-new-table, or pass --force to take it down anyway
arcave down found a replica a rollback or an up of another session built — or of another arcave project, which the message names. Nothing was removed. Run the down in that session, as the message says, or pass --force if the environment is yours to end whoever built it. arcave status shows the deployment first.
the environment was not deployed by arcave
the environment was not deployed by arcave: no deployment labels on app-1; pass --force to take it down anyway
A replica of the compose project carries no io.arcave.deployment.* labels: docker compose up of your own compose file built or recreated it. Or no replica is left, and containers, volumes or networks of the compose project are — the message lists them. Nothing was removed. arcave down --force takes it down; docker compose down does too, leaving the named volumes.
the daemon still holds the compose project after its drop
the daemon still holds the compose project after its drop: volumes myapp_pgdata: …
A down, or a forced up, removed what it could, and a container or a volume of the compose project survived: something outside the compose project still holds it — a container of another project mounting the volume, say. The cause names the holder. A down keeps the interrupted-rollback marker and the restored layer tags; a forced up builds nothing. Stop or remove what holds it, then run the command again.
A network another container still uses never fails the command: it stays, and a notice names it.
docker volume "myapp_pgdata" does not exist (bring the project up once to create it)
The project declares a named volume the daemon does not hold. arcave treats that as an error rather than a skip: an empty capture would silently replace live data at the next rollback.
docker compose up -d
no container for service "app" replica 1 in project "myapp" mounts "/data" (is the project created?)
An anonymous volume belongs to one replica and can only be reached through its container, and that container is gone.
docker compose up -d
Consider making the mount a named volume: it is addressable directly, survives container removal, and is captured once however many services mount it.
capture directory is not empty
capture directory is not empty: 019e843e-1650-7000-8000-000000000000 holds 3 object(s), an interrupted run's remains; check what is there before removing it
An earlier run was interrupted after it started writing and before it committed a record. Its objects are the last copy of whatever that run captured. Look before removing:
<storage.directory.path>/arcave/projects/<project>/sessions/<session>/compose/<compose-project>/019e843e-1650-7000-8000-000000000000/
If there is no savepoint.json there, nothing lists what is in it and nothing puts it back. Its heartbeat.json says whether the run that wrote it failed, and arcave gc deletes such a directory — --dry-run only names it.
savepoint 019e843e-1650-7000-8000-000000000000 committed; bringing the project back: …
The savepoint exists and is complete. Only what came after the commit failed — the restart, or a post-capture hook. Note the id and do not take another savepoint to compensate.
-
… starting services: …— the services are stopped, paused, or unhealthy, or slower than--wait-timeout. Look at the project:docker compose psarcave --log-level debug savepoint create retry --wait-timeout 5m -
… post-capture hook of app-1 failed: exit 1: <its last line of stderr>— the hook ran after the project was back and failed; whatever it was to undo (a maintenance switch, a lock) may still be on. Run it by hand withdocker exec, then fix it. Set itsarcave.hook.post-capture.on-error: continueif a failure should only warn.
A hook failed
| Error | What happened, what to do |
|---|---|
pre-capture hook of db-1 failed: exit 3: <its last line of stderr> | The hook exited non-zero, so nothing was held or captured, and the post-capture hooks ran. The line quoted is the last of its stderr, else of its stdout; --log-level debug logs its command and the tail of both streams. Fix the hook, or set arcave.hook.pre-capture.on-error: continue — or run once with ARCAVE_CAPTURE_HOOKS_ON_ERROR=continue; the savepoint then lists the failure in detail.not_covered.failed_hooks and summary.notices. |
pre-capture hook of db-1 failed: timed out after 1m0s | It ran past its .timeout (capture.hooks.timeout, 60s). The process is not killed: it runs on in the container. Raise the timeout or make the hook shorter. |
pre-capture hook of db-1 failed: exit 127: OCI runtime exec failed: … | The command is not in the image (127), or not executable (126): the container's runtime could not start it. |
pre-capture hook of db-1 failed: <the daemon's error> | The daemon did not run it — a user that does not exist (.user). |
…; and 2 more hooks failed | Every hook of the phase ran; the first failure by service and replica is the command's error, and each of the others is its own failed hook step in the progress. |
db-2 was paused: pre-capture hook skipped (a warning) | The replica was not running when the savepoint started, so its hook did not run; it is captured as it was. |
app-1 is not running: post-capture hook skipped (a warning) | The replica did not come back up — look at the starting services error beside it. |
Services never become healthy
Symptom. A savepoint reports a start failure, or a rollback replays itself, after about two minutes.
compose.wait_timeout elapsed before every service reported healthy. On a rollback that triggers the automatic replay, so a healthy-but-slow project is rolled back for the wrong reason.
arcave rollback latest --wait-timeout 5m
compose:
wait_timeout: 5m
arcave --log-level debug rollback latest
In-flight steps — Waiting, Starting, Creating, image-pull progress — are logged at debug level. A service that declares no health check is considered up the moment its container starts, which is faster and worse. A one-shot service — a migration, a seed — that exits 0 counts as started, whether or not another service waits on it; one that exits otherwise fails the start at once, without waiting for the bound.
A database needs recovery after a rollback
The grace period was probably too short when the savepoint was taken: arcave captures the volumes the moment the containers are down, so a container killed mid-shutdown is captured mid-shutdown — and that capture reported success, with a warning on stderr: container <name> did not exit within <bound> and was killed. The savepoint names it in detail.not_covered.killed_containers and, as a severe notice, in summary.notices.
The bound is compose.stop_timeout, raised by the longest stop_grace_period a service declares. Declare what the database needs on the service itself, or raise the floor for every service:
services:
db:
stop_grace_period: 60s
compose:
stop_timeout: 60s
Zero means "unset" and the default applies, so an immediate kill is spelled 1s, not 0.
A rollback is refused: savepoint carries no compose spec
The project is rebuilt from the compose spec the savepoint recorded, and savepoints taken before arcave recorded one carry none. Their volume data is still on disk, but there is no supported path that puts it back. Take a fresh savepoint.
unsupported docker daemon or unsupported image archive format
unsupported docker daemon: the daemon reports version 24.0.7; arcave needs Docker 25 or newer
savepoint create and rollback refuse the daemon before anything is stopped or loaded. The second form comes from the capture itself, on a daemon whose version arcave could not read:
unsupported image archive format: member "…" is neither a blob nor metadata; a daemon older than Docker 25 exports this shape
Either way the daemon is a Docker older than 25: upgrade it — see Requirements. Podman is not affected: arcave exports through its own API.
Cannot connect to the Docker daemon
read the daemon version: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
savepoint create and rollback reach no daemon at the address they were given. Start the daemon, or point DOCKER_HOST or docker.host at the one you use. On Podman this is the usual first error, since arcave does not read CONTAINER_HOST: see Connecting to Podman.
invalid capture policy label
invalid capture policy label: arcave.capture="no" on service app: want true or false
An arcave.* label in the compose project is one arcave cannot act on: an unknown key, a value it does not accept, or a mount target the service does not mount. savepoint create refuses it before anything is stopped. Fix the label against Capture labels and recreate the containers with docker compose up -d, since arcave reads the labels off the running containers.
savepoint name is already taken
savepoint name is already taken: "pre-migration" names savepoint 019e843e-1650-7000-8000-000000000000
Names are unique within a compose project and session. Pick another name, or remove the old savepoint first. In a loop, put something unique in the name, such as a run id.
the current session no longer exists
resolve session: the current session no longer exists: 019e9a10-7c2e-7000-8000-000000000000, named by .arcave/current_session; run 'arcave session unset' or 'arcave session set <session>'
.arcave/current_session names a session that was deleted, from another machine or by hand in the store. arcave refuses rather than quietly falling back to baseline. Run arcave session unset to return to baseline, or arcave session set <session> to pick another.
two volumes address the same object id
Two mounts flatten to the same object id: {app, /var/lib} and {app-var, /lib} both render volume-service-app-var-lib. They would share one capture and overwrite each other, so arcave refuses instead. Rename a service, or move a mount path.
cdc fails on a bind mount on macOS
With snapshot.backend: cdc, capturing a host bind mount fails with an I/O error on Docker Desktop for macOS: restic opens each source file with O_NOATIME, and VirtioFS answers with EIO.
- Make the mount a named volume — those live in the VM's own filesystem and are unaffected.
- Or switch Docker Desktop's file sharing to gRPC FUSE.
- Or use
snapshot.backend: fullcopyfor that project.
cdc containers cannot reach arcave's restic server
This applies to backends.cdc.transport: tcp only. The default, stdio, reaches the repositories over the Docker API and opens no port; switching back to it is the fix for a remote DOCKER_HOST:
backends:
cdc:
transport: stdio
Under tcp, a restic container has to reach a server bound to your host loopback, and how it does that differs per platform.
backends:
cdc:
transport: tcp
network_mode: auto
auto is the default and gives a native Linux daemon host networking, anything else the bridge and container_host. It reads a remote or rootless daemon as local, which is what bridge is for:
backends:
cdc:
transport: tcp
network_mode: bridge
container_host: docker-host.internal
For a remote daemon, container_host has to be a name that resolves from inside the container to the host running arcave.
A custom restic image fails every cdc command
Under the default backends.cdc.transport: stdio, arcave copies a small shell script into each restic container and starts restic behind it, so the image in backends.cdc.image has to ship /bin/sh, mkfifo and cat, as the stock restic/restic image does. One without /bin/sh fails when its container starts, with exec /run/arcave/stdio.sh: no such file or directory; one without mkfifo exits with status 1 and arcave-stdio: cannot make the FIFOs among its output.
Build the image on one that carries a shell, or set transport: tcp, which runs the image's own entrypoint.
open the store: … on an encrypted store
open the store: invalid store key: none set (check encryption.key, ARCAVE_ENCRYPTION_KEY by default)
open the store: invalid store key: not an age X25519 identity (check encryption.key, ARCAVE_ENCRYPTION_KEY by default)
open the store: the store is encrypted to another key: age1… (check encryption.key, ARCAVE_ENCRYPTION_KEY by default)
open the store: the store is encrypted (set encryption.enabled: true and encryption.key)
Each is refused before anything is stopped. Export the key the store was encrypted to as ARCAVE_ENCRYPTION_KEY, in the form AGE-SECRET-KEY-1…, and keep encryption.enabled: true in the config. A lost key can't be recovered. See encryption.
Turning encryption on for a project with data
open the store: the arcave project holds data written without encryption (turn encryption.enabled off to use it, or start an encrypted one under another project.name — see "Turning encryption on for a project with data" in troubleshooting)
What happened. encryption.enabled: true was set over an arcave project that already holds savepoints or sessions written without encryption. arcave encrypts nothing in place, so it refuses the project rather than mark it encrypted and leave its data unreadable. Nothing was written: the data is where it was. arcave status reports the same refusal as an unreadable store and exits 1.
Way out 1 — keep the project plain. Turn encryption.enabled off again (or unset ARCAVE_ENCRYPTION_ENABLED); every command works as before.
Way out 2 — move what you need into an encrypted project, by hand. For each savepoint you want to keep:
- With encryption off and the old
project.name,arcave rollback <savepoint>. - With encryption on and a new
project.name,arcave savepoint create <name>.
Ids, creation times and safety snapshots do not carry over. Remove the old project's tree from the store once you no longer need it.
An unknown key fails the command
resolve config: unmarshal config: invalid config: decoding failed due to the following error(s):
'project' has invalid keys: nam
Unknown keys are an error, not a value quietly ignored. Check the key against Configuration; arcave never rewrites the file on its own, so fix it by hand. arcave init --override regenerates it from the defaults, but it takes no storage settings: if your storage pointed somewhere non-default, edit it back into the file afterwards, since savepoints under the old path stop being visible otherwise.
docker.host and docker.context are mutually exclusive
initialise docker client: docker.host and docker.context are mutually exclusive: "remote" already names a daemon, so remove one of the two
Both keys name a daemon. Keep the one you mean and delete the other from the docker section.
initialise store root: open directory storage: stat /srv/arcave/myapp: no such file or directory
An absolute storage.directory.path must already exist. Only a relative one materialises on first use — the asymmetry is what keeps a typo from growing a fresh tree somewhere unexpected.
mkdir -p /srv/arcave/myapp
An environment variable is ignored, or fails the command
ARCAVE_<KEY> reaches every config key, whether or not your config file carries it. A variable that seems ignored names no key: check the spelling, with dots replaced by underscores, as in ARCAVE_BACKENDS_CDC_RESTORE_MODE. A flag you passed also beats it.
Its value is validated like the file's, so a stale or invalid one fails the command even if the file never mentions that key. Check env | grep ARCAVE_. See Environment variables.
JSON output is mixed with log lines
It is not — check which stream you are reading. Results go to stdout, logs and the live progress tree to stderr.
arcave savepoint list 2>/dev/null | jq .
ID=$(arcave savepoint create nightly | jq -r .id)
The result is text, not JSON
When stdout is a terminal, arcave prints the result as text for a person to read. It prints JSON when stdout is a pipe or a file, and --format json (or ARCAVE_FORMAT=json) asks for it anywhere. Under --progress json, stdout carries a JSON line per step event before the result — the result is the last line, {"type":"result",…}; see Output.
Exceptions: arcave --version prints a plain version line, and arcave mcp writes nothing to stdout at all.
Next step
Limitations — which of these are constraints rather than faults.