e2e: fix agent state-dir to /var/lib/restic-manager
CI / Test (store) (pull_request) Successful in 6s
CI / Test (rest) (pull_request) Successful in 17s
CI / Lint (pull_request) Successful in 19s
CI / Build (linux/amd64) (pull_request) Successful in 8s
CI / Build (linux/arm64) (pull_request) Successful in 9s
CI / Build (windows/amd64) (pull_request) Successful in 57s
CI / Test (server-http) (pull_request) Successful in 1m30s
e2e / Playwright vs docker-compose (pull_request) Failing after 3m26s

The agent writes its encrypted secrets blob to
$DefaultSecretsPath (/var/lib/restic-manager/secrets.enc) but
the e2e fixtures created and mounted a directory at
/var/lib/restic-manager-agent — name mismatch. Result: every
`config.update` push failed with 'create tmp: no such file or
directory', the auto-init never got the repo creds, the host
landed in init_failed, and the smoke test couldn't kick off a
backup (the Run backup button is disabled while
repo_status != ready).

Align the compose volume mount and the Dockerfile mkdir on
/var/lib/restic-manager so they match the production install
script + the agent's own default.
This commit is contained in:
2026-05-08 21:53:35 +01:00
parent 523ac4137a
commit 51fe1946b7
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ COPY --from=build /out/restic-manager-agent /usr/local/bin/restic-manager-agent
USER root USER root
# The agent needs a writable directory for its config + secrets store. # The agent needs a writable directory for its config + secrets store.
RUN mkdir -p /etc/restic-manager /var/lib/restic-manager-agent RUN mkdir -p /etc/restic-manager /var/lib/restic-manager
ENV RM_AGENT_CONFIG=/etc/restic-manager/agent.yaml ENV RM_AGENT_CONFIG=/etc/restic-manager/agent.yaml
# The compose entrypoint sets the announce URL via env. # The compose entrypoint sets the announce URL via env.
+1 -1
View File
@@ -60,7 +60,7 @@ services:
# with a few files so the snapshot list isn't empty. # with a few files so the snapshot list isn't empty.
- source-data:/source - source-data:/source
- agent-config:/etc/restic-manager - agent-config:/etc/restic-manager
- agent-state:/var/lib/restic-manager-agent - agent-state:/var/lib/restic-manager
networks: [rmnet] networks: [rmnet]
# Playwright test runner. Profile-gated so `compose up` doesn't # Playwright test runner. Profile-gated so `compose up` doesn't