Support intro
Sorry to hear you’re facing problems
help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.
In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:
example
Or for longer, use three backticks above and below the code snippet:
longer
example
here
Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can
Nextcloud version (eg, 29.0.5): replace me
Operating system and version (eg, Ubuntu 24.04): replace me
Apache or nginx version (eg, Apache 2.4.25): replace me
PHP version (eg, 8.3): replace me
The issue you are facing: borg.locking.NotMyLock
Is this the first time you’ve seen this error? (Y/N): Y
Steps to replicate it:
- I use rclone to mount a S3 “partition” on which the backup has to be done by borg.
- I use an automatic backup defined via AIO
Since few days, dayly backups are in errors: borg.locking.NotMyLock: Failed to release the lock /mnt/borgbackup/borg/lock.exclusive (was/is locked, but not by me).
The output of backup logs:
Performing backup...
2024-09-11T02:02:24.873585589Z Starting the backup...
2024-09-11T02:02:25.886346123Z Creating archive at "/mnt/borgbackup/borg::20240911_020224-nextcloud-aio"
2024-09-11T02:02:33.382155808Z Exception ignored in: <function Repository.__del__ at 0x70dd1227b740>
2024-09-11T02:02:33.382181044Z Traceback (most recent call last):
2024-09-11T02:02:33.382184391Z File "/usr/lib/python3.12/site-packages/borg/repository.py", line 192, in __del__
2024-09-11T02:02:33.382423978Z self.close()
2024-09-11T02:02:33.382430991Z File "/usr/lib/python3.12/site-packages/borg/repository.py", line 481, in close
2024-09-11T02:02:33.382608332Z self.lock.release()
2024-09-11T02:02:33.382613541Z File "/usr/lib/python3.12/site-packages/borg/locking.py", line 425, in release
2024-09-11T02:02:33.382840465Z self._lock.release()
2024-09-11T02:02:33.382903683Z File "/usr/lib/python3.12/site-packages/borg/locking.py", line 169, in release
2024-09-11T02:02:33.383001585Z raise NotMyLock(self.path)
2024-09-11T02:02:33.383092835Z borg.locking.NotMyLock: Failed to release the lock /mnt/borgbackup/borg/lock.exclusive (was/is locked, but not by me).
2024-09-11T02:02:33.383267260Z Failed to release the lock /mnt/borgbackup/borg/lock.exclusive (was/is locked, but not by me).
Sometime, the error appears later, while Compacting the archives:
Performing backup...
2024-09-11T14:29:07.532215013Z Starting the backup...
2024-09-11T14:29:08.893280738Z Creating archive at "/mnt/borgbackup/borg::20240911_142907-nextcloud-aio"
2024-09-11T14:29:51.049927729Z ------------------------------------------------------------------------------
2024-09-11T14:29:51.049956983Z Repository: /mnt/borgbackup/borg
2024-09-11T14:29:51.050139494Z Archive name: 20240911_142907-nextcloud-aio
2024-09-11T14:29:51.050146627Z Archive fingerprint: 314eb989e280aac4375ad0816b38abbda011cee4539e94b68ce9e35a51433c30
2024-09-11T14:29:51.050150514Z Time (start): Wed, 2024-09-11 14:29:08
2024-09-11T14:29:51.050154030Z Time (end): Wed, 2024-09-11 14:29:47
2024-09-11T14:29:51.050157497Z Duration: 38.97 seconds
2024-09-11T14:29:51.050161003Z Number of files: 69004
2024-09-11T14:29:51.050164590Z Utilization of max. archive size: 0%
2024-09-11T14:29:51.050168086Z ------------------------------------------------------------------------------
2024-09-11T14:29:51.050198523Z Original size Compressed size Deduplicated size
2024-09-11T14:29:51.050202551Z This archive: 33.57 GB 29.86 GB 35.41 MB
2024-09-11T14:29:51.050206318Z All archives: 333.10 GB 295.42 GB 20.86 GB
2024-09-11T14:29:51.050210045Z
2024-09-11T14:29:51.050213582Z Unique chunks Total chunks
2024-09-11T14:29:51.050217229Z Chunk index: 72510 815585
2024-09-11T14:29:51.050280396Z ------------------------------------------------------------------------------
2024-09-11T14:29:51.257996180Z BORG_PRUNE_OPTS are --keep-within=7d --keep-weekly=4 --keep-monthly=6
2024-09-11T14:29:51.258028200Z Pruning the archives...
2024-09-11T14:29:52.707460483Z ------------------------------------------------------------------------------
2024-09-11T14:29:52.707492042Z Original size Compressed size Deduplicated size
2024-09-11T14:29:52.707529122Z Deleted data: 0 B 0 B 0 B
2024-09-11T14:29:52.707535704Z All archives: 333.10 GB 295.42 GB 20.86 GB
2024-09-11T14:29:52.707540864Z
2024-09-11T14:29:52.707545693Z Unique chunks Total chunks
2024-09-11T14:29:52.707550993Z Chunk index: 72510 815585
2024-09-11T14:29:52.707555981Z ------------------------------------------------------------------------------
2024-09-11T14:29:53.003900744Z Compacting the archives...
2024-09-11T14:29:53.838594739Z Exception ignored in: <function Repository.__del__ at 0x7db44db5f740>
2024-09-11T14:29:53.838630486Z Traceback (most recent call last):
2024-09-11T14:29:53.838636437Z File "/usr/lib/python3.12/site-packages/borg/repository.py", line 192, in __del__
2024-09-11T14:29:53.838767671Z self.close()
2024-09-11T14:29:53.838801655Z File "/usr/lib/python3.12/site-packages/borg/repository.py", line 481, in close
2024-09-11T14:29:53.839079974Z self.lock.release()
2024-09-11T14:29:53.839085965Z File "/usr/lib/python3.12/site-packages/borg/locking.py", line 425, in release
2024-09-11T14:29:53.839249640Z self._lock.release()
2024-09-11T14:29:53.839293773Z File "/usr/lib/python3.12/site-packages/borg/locking.py", line 169, in release
2024-09-11T14:29:53.839379012Z raise NotMyLock(self.path)
2024-09-11T14:29:53.839427742Z borg.locking.NotMyLock: Failed to release the lock /mnt/borgbackup/borg/lock.exclusive (was/is locked, but not by me).
2024-09-11T14:29:53.839567614Z Failed to release the lock /mnt/borgbackup/borg/lock.exclusive (was/is locked, but not by me).
Many thanks for your help.
Christophe