Troubleshooting
Each entry names the symptom as arcave reports it, what happened, and what to do.
An interrupted rollback
Symptom. Every command that changes something refuses to run (rollback prefixes it with require no inflight: ):
rollback to savepoint 019e843e-1650-7000-8000-000000000000 was interrupted (restoring); recover by rolling back to 019e8491-04c8-7000-8000-000000000000
What happened. A rollback was killed after it began writing. .arcave/inflight.json records the phase it died in, and that marker refuses the next mutating workflow so nothing is built on a half-written environment.
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. An error log line on stderr, just before the error, prints the full command, --session and -p included:
… volumes may mix states; recover with `arcave rollback --session 00000000-0000-0000-0000-000000000001 -p myapp 019e8491-04c8-7000-8000-000000000000`
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.
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 .arcave/inflight.json 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 project and removing .arcave/inflight.json is enough, 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 hint 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`
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.
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 rollback.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.
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; services failed to resume
The savepoint exists and is complete. Only the restart failed, so note the id and look at the project: the services are stopped, paused, or unhealthy, or slower than --wait-timeout. Do not take another savepoint to compensate.
docker compose ps
arcave --log-level debug savepoint create retry --wait-timeout 5m
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 not_covered.killed_containers.
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.