Failure to aquire borg/lock.exclusive when using new spotcheck feature #850
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#850
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?
What I'm trying to do and why
try out the new borgmatic spotcheck feature
I added the following lines to my config file:
- name: spot
count_tolerance_percentage: 10
data_sample_percentage: 1
data_tolerance_percentage: 0.5
Steps to reproduce
I ran:
borgmatic -c .config/remote_spotcheck.yaml check
got an error, timeout can't aquire lock. I ran the command again, got the same error.
I ran the old config file, without using spotcheck and got no error
borgmatic -c .config/remote.yaml check
Actual behavior
I got the error:
for borgbase.com
Failed to create/acquire the lock /srv/repos/repo/lock.exclusive (timeout).
rsync.net
Failed to create/acquire the lock /data1/home//borg/lock.exclusive (timeout).
Expected behavior
run without these errors.
Other notes / implementation ideas
No response
borgmatic version
1.8.10
borgmatic installation method
pip install
Borg version
1.2.8
Python version
3.10.12
Database version (if applicable)
No response
Operating system and version
Ubuntu 22.04.4 LTS
seems like I'm getting the same error with rsync.net on my old config file, I' will close this for now and check with them.
My guess is that either: 1. You have another Borg process running, thereby taking out the lock, or 2. A previous Borg process errored (or was manually aborted), thereby leaving a lock file behind.
If you confirm the lock is really stale (there's no other Borg process or client using the repository), then you can
borgmatic break-lock
to clear out the lock.