Failure to aquire borg/lock.exclusive when using new spotcheck feature #850

Closed
opened 2024-04-17 02:13:51 +00:00 by robdavies · 2 comments

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

### 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/<username>repo/lock.exclusive (timeout). rsync.net Failed to create/acquire the lock /data1/home/<username>/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
Author

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.

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.
Owner

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.

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.
witten added the
question / support
label 2024-04-17 03:50:37 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: borgmatic-collective/borgmatic#850
No description provided.