Open greenmoss opened 5 years ago
Failed to create/acquire the lock /var/root/.cache/borg/1d94...e08c/lock.exclusive (timeout).
This is likely because a 2nd borg invocation tried to get the lock while a 1st one was still "running" (or at least the process still there).
Maybe you could improve this by some ssh configuration that more quickly detects broken down connections and also should lead to borg process termination, check the FAQ:
BTW, you do not need to give ${BORG_REPO}
, borg will automatically read that value.
I think this is happening because OS X is trying to keep old/disconnected SSH sessions open. I am going to try forcing the SSH client to disconnect, instead of indefinitely retrying.
I'm setting the following in my root SSH config:
ServerAliveInterval 60
ServerAliveCountMax 10
If this works, I will report back here.
EDIT it's been a few months so I forgot you mentioned the SSH connection. The docs are good from the server side. If this works, it means I also need to configure SSH to time out from the client side.
Would be interesting to have an update here.
Hi thanks for checking on this old ticket I totally forgot about it!
This hasn't happened since I posted the last update. Current Mac OS version 14.6.1.
I still have the settings mentioned above:
# cat /var/root/.ssh/config
ServerAliveInterval 60
ServerAliveCountMax 10
Maybe this can be closed? I leave that up to you.
Thanks for the update, I guess it is basically the same problem as documented there:
So, guess we only could mention that it also might help for OS sleep issues.
Have you checked borgbackup docs, FAQ, and open Github issues?
Yes
Is this a BUG / ISSUE report or a QUESTION?
Bug, or maybe documentation, or possibly just search fodder for other Mac users. I'm not sure which it is yet.
System information. For client/server mode post info for both machines.
Your borg version (borg -V).
borg 1.1.7
Operating system (distribution) and version.
OS X 10.13.6
Hardware / network configuration, and filesystems used.
Macbook Pro, backing up over wireless network. Backing up entire root partition, with significant excludes.
How much data is handled by borg?
Here's output from a successful
borg create
:Full borg commandline that lead to the problem (leave away excludes and passwords)
Describe the problem you're observing.
The borg command usually launches and then completes without issue.
However sometimes I notice my backups on the backup host not refreshing even though my system should have backed up by then. In that case, I can do
borg list
on the backup host, and there is no active backup or lock. However on OS X I seeborg create
running.Here's a transcript of me running commands, with some troubleshooting and my thoughts baked in as comments:
What the heck? After running dtruss, maybe it woke borg up again? At that point the SSH connection was dead, so maybe borg exited.
I am guessing my laptop went to sleep in the middle of a
borg create
, and this caused the problem.Can you reproduce the problem? If so, describe how. If not, describe troubleshooting steps you took before opening the issue.
I can not reproduce it on demand, but it happens periodically.
I have since updated to 1.1.10. If it doesn't happen again for a while, I'll comment again. Maybe the update fixed this behaviour.
Include any warning/errors/backtraces from the system logs
See above