-
-
Notifications
You must be signed in to change notification settings - Fork 758
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
OSError: [Errno 39] Directory not empty: '/.../lock.exclusive' (borg 1.1.x) #7154
Comments
Well, your OS is telling that the directory is not empty. Maybe OS or fs are not running reliably. |
I get the same exact error running Proxmox 7.3-3, which is Debian 11 Bullseye, except Borgbackup fully completes and so does prune. All files I selected backup and the prune function completes, but shows this error. The lock.exclusive directory remains and is empty. The backups are valid, as I can restore and run them. This did not happen for many months while running an earlier version of Proxmox on Debian 11 Bullseye. I'm attributing this to some weird OS interaction that may or may not resolve itself on the next Proxmox or Debian update. |
@LM2001 Usually Debian/Proxmox is rather well-behaved and stable overall, what filesystem do you use for the repository (assuming the lock issue is in the repository)? |
An NFS mount on my UnRaid server. The error is not always triggered . In the past 7 days I had 4 errors and 3 completions without errors. |
Note: The borg version is missing in the top post. |
Chiming in with the same issue and setup as the other commenters. Here's some more info as well as what I've tried so far. I've also included logs from my desktop client (Vorta) which show the error's that borg is emitting. Let me know if there's more info I can provide or something I can try. When running a prune operation I get the following error message. I've been able to reproduce every time I run prune today.
Note: In all logs and messages I've replaced personal info with {user}, {host}, {repo-path} Looking at the repo directory I can see that there are two lock files present
I tried all of the following and re-running prune
Client OS: MacOS 13.2.1 Server OS: Debian 10.13 running in a container on Proxmox 6.4-15
LogsThese are from Vorta but the errors are coming from the borg binary.
|
@mbaker3 that's a rather old borg on the server, could you try to reproduce with something more recent? Like something from buster-backports or bullseye-backports? Or just use the binary from github releases page? |
Good point. I've been leaning too heavy on automatic updates with this instance. I upgraded to Debian 11 which delivers borg 1.1.16.
I also tried upgrading to 1.2.3 using bullseye-backports and that seemed to do the trick. I was able to run a prune successfully. The newer server version was even able to detect an remove the stale So I suppose there's an incompatibility between a 1.2.x client and a 1.1.x server? |
Related: #6736. |
Hi,
I am seeing borg unable to delete lock.exclusive directory even though the directory is empty. This started happening since 10days ago and prior to that it was running without any issues.
Setup:
was running fine until 10days ago and also is not happening every time. some days, backup is running just fine.
The text was updated successfully, but these errors were encountered: