From cc6844605f323430a555948784ff5d58f2244895 Mon Sep 17 00:00:00 2001 From: Steve Cliff Date: Fri, 8 May 2026 21:53:35 +0100 Subject: [PATCH] e2e: fix agent state-dir to /var/lib/restic-manager MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- e2e/Dockerfile.agent | 2 +- e2e/compose.e2e.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/e2e/Dockerfile.agent b/e2e/Dockerfile.agent index e699170..0ea8df2 100644 --- a/e2e/Dockerfile.agent +++ b/e2e/Dockerfile.agent @@ -33,7 +33,7 @@ COPY --from=build /out/restic-manager-agent /usr/local/bin/restic-manager-agent USER root # 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 # The compose entrypoint sets the announce URL via env. diff --git a/e2e/compose.e2e.yml b/e2e/compose.e2e.yml index da3d710..6663a38 100644 --- a/e2e/compose.e2e.yml +++ b/e2e/compose.e2e.yml @@ -60,7 +60,7 @@ services: # with a few files so the snapshot list isn't empty. - source-data:/source - agent-config:/etc/restic-manager - - agent-state:/var/lib/restic-manager-agent + - agent-state:/var/lib/restic-manager networks: [rmnet] # Playwright test runner. Profile-gated so `compose up` doesn't