-
Notifications
You must be signed in to change notification settings - Fork 71
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
Backup job container restarting constantly #190
Comments
backup-1 | Executing backup on startup ... Here's container output when I attach, container exits due to an error, I am not sure how to solve that one. |
Hi, did you solve your issue? I ran into a nearly identical problem with the default compose settings. For me as a newbie it looks like there is some sort of lock between the backup-1 and check-1. My solution was to only set the RUN_ON_STARTUP: "true" for the backup service. After that i fired up the compose and connected to each container and checkt with the "unlock" command that there is no lock left in the repo. Runs smoothly for weeks since that modification in the compose file. |
I did the same thing, forgot to comment here, I also set RUN_ON_STARTUP to false for the check container because otherwise there is a conflict with restic's container locks. This issue is new, I have been using resticker for a few years now, it has to be due to an update to restic? In any case, I will prepare a PR with additional documentation as a lot of things are still sparse or no documented at all like the RESTIC_PASSWORD_FILE flag that enables the use of secrets to specify the repository password. |
I don't understand: |
I believe this is a duplicate of #171 |
This does not solve the problem for me. I have check and prune's |
@benjamin051000 Can you show an error log? How old is the reported lock? Unlocking does not solve the issue for you? |
I use the default example docker compose to run backup, prune and check containers, the backup container creates a backup on startup, then exits when the backup is done, then restarts due to the "unless-stopped" restart policy. It creates backups in a loop.
The text was updated successfully, but these errors were encountered: