Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when running as docker container #380

Open
r3nor opened this issue Jun 25, 2024 · 0 comments
Open

Error when running as docker container #380

r3nor opened this issue Jun 25, 2024 · 0 comments

Comments

@r3nor
Copy link

r3nor commented Jun 25, 2024

Describe the bug
autorestic works perfectly fine on the local host, but when I use the exact same config in the docker image, it fails without any apparent reason...

Expected behavior
Work the same out and in the docker image.

Environment

  • OS: Fedora 40
  • Version: autorestic version 1.8.2
  • Restic version: restic 0.16.4 compiled with go1.21.6 on linux/amd64 (same in and outside the container)

Additional context

The docker output, note that it tries to initialize, but the repo is already initialized and contains backups. It was initialized with a check from the autorestic binary on the host.

❯ docker run --rm \
              -v /var/www:/var/www \
              -v $(pwd)/autorestic.yml:/data/autorestic.yml \
              -v $(pwd)/.autorestic.env:/data/.autorestic.env \
              cupcakearmy/autorestic \
              autorestic -c /data/autorestic.yml check

Using config:    /data/autorestic.yml
Using env:       /data/.autorestic.env
Using lock:      /data/.autorestic.lock.yml
Initializing backend "backblaze"...
Error: exit status 1

The host output:

❯ autorestic -c ./autorestic.yml check
Using config:    /home/autorestic/autorestic.yml
Using env:       /home/autorestic/.autorestic.env
Using lock:      .autorestic.lock.yml
Everything is fine.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant