Help Setting up AIO Backups

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

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. :heart:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • Nextcloud AIO v10.7.0
  • Operating system and version (e.g., Ubuntu 24.04):
    • Docker Container on MacOS 14.6.1

Summary of the issue you are facing:

I’m trying to set up a backup to my NAS which is where the ncdata folder also is.
I can see the process creates a lock.roster file and a lock.exclusive file.

The log is below- I’m sure it’s a simple configuration issue, I’m just not sure what.

The ncdata folder is mapped to /Volumes/Backup/Nextcloud/nextcloud_data
I’m entering this in the AIO Local Backup Location /Volumes/Backup/Nextcloud
Which should put the backups in
/Volumes/Backup/Nextcloud/borg

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

2025-03-09T17:36:29.952314995Z Local Exception
2025-03-09T17:36:29.952353014Z Traceback (most recent call last):
2025-03-09T17:36:29.952356047Z   File "/usr/lib/python3.12/site-packages/borg/archiver.py", line 5391, in main
2025-03-09T17:36:29.952357824Z     exit_code = archiver.run(args)
2025-03-09T17:36:29.952359228Z                 ^^^^^^^^^^^^^^^^^^
2025-03-09T17:36:29.952360580Z   File "/usr/lib/python3.12/site-packages/borg/archiver.py", line 5309, in run
2025-03-09T17:36:29.952362131Z     rc = func(args)
2025-03-09T17:36:29.952363458Z          ^^^^^^^^^^
2025-03-09T17:36:29.952364979Z   File "/usr/lib/python3.12/site-packages/borg/archiver.py", line 176, in wrapper
2025-03-09T17:36:29.952366367Z     with repository:
2025-03-09T17:36:29.952367611Z          ^^^^^^^^^^
2025-03-09T17:36:29.952368873Z   File "/usr/lib/python3.12/site-packages/borg/repository.py", line 217, in __enter__
2025-03-09T17:36:29.952370263Z     self.open(self.path, bool(self.exclusive), lock_wait=self.lock_wait, lock=self.do_lock)
2025-03-09T17:36:29.952371728Z   File "/usr/lib/python3.12/site-packages/borg/repository.py", line 465, in open
2025-03-09T17:36:29.952373066Z     self.lock = Lock(os.path.join(path, 'lock'), exclusive, timeout=lock_wait).acquire()
2025-03-09T17:36:29.952374471Z                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-09T17:36:29.952375889Z   File "/usr/lib/python3.12/site-packages/borg/locking.py", line 398, in acquire
2025-03-09T17:36:29.952377264Z     with self._lock:
2025-03-09T17:36:29.952378501Z          ^^^^^^^^^^
2025-03-09T17:36:29.952379752Z   File "/usr/lib/python3.12/site-packages/borg/locking.py", line 124, in __exit__
2025-03-09T17:36:29.952381142Z     self.release()
2025-03-09T17:36:29.952382382Z   File "/usr/lib/python3.12/site-packages/borg/locking.py", line 176, in release
2025-03-09T17:36:29.952383755Z     os.unlink(self.unique_name)
2025-03-09T17:36:29.952385055Z OSError: [Errno 16] Resource busy: '/mnt/borgbackup/borg/lock.exclusive/nextcloud-aio-borgbackup.34-0'
2025-03-09T17:36:29.952386481Z 
2025-03-09T17:36:29.952387714Z Platform: Linux 9ac31546df62 6.12.5-linuxkit #1 SMP PREEMPT_DYNAMIC Tue Jan 21 10:25:35 UTC 2025 x86_64
2025-03-09T17:36:29.952389187Z Linux: Unknown Linux  
2025-03-09T17:36:29.952390428Z Borg: 1.4.0  Python: CPython 3.12.9 msgpack: 1.0.8 fuse: llfuse 1.5.1 [pyfuse3,llfuse]
2025-03-09T17:36:29.952391869Z PID: 34  CWD: /
2025-03-09T17:36:29.952393145Z sys.argv: ['/usr/bin/borg', 'info']
2025-03-09T17:36:29.952394471Z SSH_ORIGINAL_COMMAND: None
2025-03-09T17:36:29.952395771Z 
2025-03-09T17:36:29.974879482Z Initializing repository...
2025-03-09T17:36:30.392586680Z using builtin fallback logging configuration
2025-03-09T17:36:30.542362929Z 33 self tests completed in 0.15 seconds
2025-03-09T17:36:30.550750901Z There is already something at /mnt/borgbackup/borg.
2025-03-09T17:36:30.550769043Z Traceback (most recent call last):
2025-03-09T17:36:30.550772144Z   File "/usr/lib/python3.12/site-packages/borg/archiver.py", line 5391, in main
2025-03-09T17:36:30.550774039Z     exit_code = archiver.run(args)
2025-03-09T17:36:30.550775425Z                 ^^^^^^^^^^^^^^^^^^
2025-03-09T17:36:30.550776762Z   File "/usr/lib/python3.12/site-packages/borg/archiver.py", line 5309, in run
2025-03-09T17:36:30.550778186Z     rc = func(args)
2025-03-09T17:36:30.550779444Z          ^^^^^^^^^^
2025-03-09T17:36:30.550780717Z   File "/usr/lib/python3.12/site-packages/borg/archiver.py", line 176, in wrapper
2025-03-09T17:36:30.550782100Z     with repository:
2025-03-09T17:36:30.550783406Z          ^^^^^^^^^^
2025-03-09T17:36:30.550784717Z   File "/usr/lib/python3.12/site-packages/borg/repository.py", line 215, in __enter__
2025-03-09T17:36:30.550786089Z     self.create(self.path)
2025-03-09T17:36:30.550787377Z   File "/usr/lib/python3.12/site-packages/borg/repository.py", line 300, in create
2025-03-09T17:36:30.550788794Z     self.check_can_create_repository(path)
2025-03-09T17:36:30.550790143Z   File "/usr/lib/python3.12/site-packages/borg/repository.py", line 282, in check_can_create_repository
2025-03-09T17:36:30.550791577Z     raise self.PathAlreadyExists(path)
2025-03-09T17:36:30.550792896Z borg.repository.Repository.PathAlreadyExists: There is already something at /mnt/borgbackup/borg.
2025-03-09T17:36:30.550794300Z 
2025-03-09T17:36:30.550810186Z Platform: Linux 9ac31546df62 6.12.5-linuxkit #1 SMP PREEMPT_DYNAMIC Tue Jan 21 10:25:35 UTC 2025 x86_64
2025-03-09T17:36:30.550811578Z Linux: Unknown Linux  
2025-03-09T17:36:30.550812857Z Borg: 1.4.0  Python: CPython 3.12.9 msgpack: 1.0.8 fuse: llfuse 1.5.1 [pyfuse3,llfuse]
2025-03-09T17:36:30.550814304Z PID: 35  CWD: /
2025-03-09T17:36:30.550815573Z sys.argv: ['/usr/bin/borg', 'init', '--debug', '--encryption=repokey-blake2']
2025-03-09T17:36:30.550817026Z SSH_ORIGINAL_COMMAND: None
2025-03-09T17:36:30.550821347Z 
2025-03-09T17:36:30.575025457Z Could not initialize borg repository.