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

Failed to create/acquire the lock ...8ee53ed8/lock.exclusive #2306

Closed
qknight opened this issue Mar 15, 2017 · 6 comments
Closed

Failed to create/acquire the lock ...8ee53ed8/lock.exclusive #2306

qknight opened this issue Mar 15, 2017 · 6 comments

Comments

@qknight
Copy link

qknight commented Mar 15, 2017

i have a system which often reboots/crashes (due to power loss) and 3 of 5 backups weren't working yesterday, and the logs show:

Failed to create/acquire the lock /backup/nixcloud-backup/.borg-cache/e4f72857fd062fadead393dd604d052d018ba6e3f115fb23f3bf7dcd8ee53ed8/lock.exclusive (timeout).
borg error, exiting

can removal of these files be automated? one could write the PID into the lockfile somewhere and check if the process is still around.

@Abogical
Copy link
Contributor

Abogical commented Mar 15, 2017

I believe you need borg break-lock

@enkore
Copy link
Contributor

enkore commented Mar 15, 2017

can removal of these files be automated? one could write the PID into the lockfile somewhere and check if the process is still around.

that feature is in beta

@rpodgorny
Copy link
Contributor

@enkore: any pointers? i need that, too...

@ThomasWaldmann
Copy link
Member

@rpodgorny maybe wait until 1.1.0b4 gets released. only for testing yet, don't use it for important data.

@enkore enkore closed this as completed Mar 20, 2017
@FabioPedretti
Copy link
Contributor

In 1.1.0b3:

automatically remove stale locks - set BORG_HOSTNAME_IS_UNIQUE env var to enable stale lock killing. If set, stale locks in both cache and repository are deleted. #562 #1253

@rugk
Copy link
Contributor

rugk commented Jun 28, 2017

one could write the PID into the lockfile somewhere and check if the process is still around.

Actually I wrote a script to do something like that locally. I think this is a nice and reliable workaround. See https://github.com/rugk/borg-cron-helper

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

7 participants