Help: "Failed to create/acquire the lock" #508
Labels
No Label
bug
data loss
design finalized
good first issue
new feature area
question / support
security
waiting for response
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: borgmatic-collective/borgmatic#508
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
My backup worked flawlessly for a while, then suddenly stopped working (maybe after updating the container using
docker pull
).borg break-lock /mnt/borg-repository
andborgmatic borg break-lock
commands seem to work (i.e. don't produce errors), but backups still fail.Environment
borgmatic version: latest docker container
Huh.. I'm not sure what's going on, but it does look like Borg is indeed failing to acquire the lock. Are you sure there's not another Borg process running against that repository? Have you tried manually removing the lock file (
/mnt/borg-repository/lock.exclusive
)? Do you happen to know what Borg version you upgraded from and to (I assume 1.2.0)?Another thing to check: Does your user have permissions to actually create the lock in
/mnt/borg-repository/
?Thanks for the quick response! Yes, I'm sure there's no other Borg process. I can manually delete the lock file from inside the container and I can also create a new file (using
touch test.txt
). Current version is 1.2.0 but I first installed Borgmatic only 2 weeks ago or so, so not sure if there was actually an update in the meantime.Gotcha. A few more questions:
I use the Rclone docker plugin.
docker-compose.yml
.env
yes, changes appear on the server that is mounted via rclone
yes
A couple of thoughts.
break-lock
command and thenborgmatic compact
by itself. That would prevent any other borgmatic actions from running as well. If that works, it tells you it's some (strange) interaction with multiple borgmatic actions.borg compact --lock-wait 5 --debug --show-rc /mnt/borg-repository
within the container and you get the same lock traceback, then that indicates an issue with Borg (and/or the rclone-mounted repository).Thanks for your ideas. I played around with them, especially with the rclone cache, but couldn't get it to work. I'm now using a local repository and rclone on the host with a cronjob.
Glad to hear you've got a work-around!