Borg backup always fails with No Space Left on device

Hello everybody,

I’ve been using Nextcloud AIO for several months without any issue till I broke something up and I decided to to reset everything (following this guide) and deploy it again from scratch.

Now, Nextcloud instance itself is working still fine but I’m no more able to set up the Borg Backup. Whenever I hit the Create backup button, I get almost immediately the following error:

2025-04-29T15:07:38.099591170Z /mnt/borgbackup/borg is not a valid repository. Check repo config.
2025-04-29T15:07:38.113530628Z Initializing repository…
2025-04-29T15:07:38.300253587Z using builtin fallback logging configuration
2025-04-29T15:07:38.391706753Z 33 self tests completed in 0.09 seconds
2025-04-29T15:07:38.394367753Z Local Exception
2025-04-29T15:07:38.394374003Z Traceback (most recent call last):
2025-04-29T15:07:38.394375253Z File “/usr/lib/python3.12/site-packages/borg/platform/base.py”, line 194, in close
2025-04-29T15:07:38.394376337Z self.sync()
2025-04-29T15:07:38.394377128Z File “/usr/lib/python3.12/site-packages/borg/platform/base.py”, line 182, in sync
2025-04-29T15:07:38.394378087Z self.f.flush()
2025-04-29T15:07:38.394379003Z OSError: [Errno 28] No space left on device
*2025-04-29T15:07:38.394379837Z *
2025-04-29T15:07:38.394380587Z During handling of the above exception, another exception occurred:
*2025-04-29T15:07:38.394381462Z *
2025-04-29T15:07:38.394382212Z OSError: [Errno 28] No space left on device
*2025-04-29T15:07:38.394383003Z *
2025-04-29T15:07:38.394383753Z During handling of the above exception, another exception occurred:
*2025-04-29T15:07:38.394384587Z *
2025-04-29T15:07:38.394385378Z Traceback (most recent call last):
2025-04-29T15:07:38.394386170Z File “/usr/lib/python3.12/site-packages/borg/archiver.py”, line 5391, in main
2025-04-29T15:07:38.394387128Z exit_code = archiver.run(args)
2025-04-29T15:07:38.394387920Z ^^^^^^^^^^^^^^^^^^
2025-04-29T15:07:38.394388712Z File “/usr/lib/python3.12/site-packages/borg/archiver.py”, line 5309, in run
2025-04-29T15:07:38.394389628Z rc = func(args)
2025-04-29T15:07:38.394390420Z ^^^^^^^^^^
2025-04-29T15:07:38.394391212Z File “/usr/lib/python3.12/site-packages/borg/archiver.py”, line 176, in wrapper
2025-04-29T15:07:38.394392128Z with repository:
2025-04-29T15:07:38.394392920Z ^^^^^^^^^^
2025-04-29T15:07:38.394393712Z File “/usr/lib/python3.12/site-packages/borg/repository.py”, line 215, in enter
2025-04-29T15:07:38.394397503Z self.create(self.path)
2025-04-29T15:07:38.394398337Z File “/usr/lib/python3.12/site-packages/borg/repository.py”, line 324, in create
2025-04-29T15:07:38.394399212Z self.save_config(path, config)
2025-04-29T15:07:38.394400045Z File “/usr/lib/python3.12/site-packages/borg/repository.py”, line 349, in save_config
2025-04-29T15:07:38.394400920Z with SaveFile(config_path) as fd:
2025-04-29T15:07:38.394401795Z ^^^^^^^^^^^^^^^^^^^^^
2025-04-29T15:07:38.394402587Z File “/usr/lib/python3.12/site-packages/borg/platform/base.py”, line 236, in exit
2025-04-29T15:07:38.394410670Z self.f.close() # this indirectly also closes self.tmp_fd
2025-04-29T15:07:38.394411628Z ^^^^^^^^^^^^^^
2025-04-29T15:07:38.394412462Z File “/usr/lib/python3.12/site-packages/borg/platform/base.py”, line 196, in close
2025-04-29T15:07:38.394413378Z self.f.close()
2025-04-29T15:07:38.394414170Z OSError: [Errno 28] No space left on device
*2025-04-29T15:07:38.394414962Z *
2025-04-29T15:07:38.394415753Z Platform: Linux c085e43038aa 6.10.14-linuxkit #1 SMP Thu Mar 20 16:32:56 UTC 2025 aarch64
*2025-04-29T15:07:38.394416670Z Linux: Unknown Linux *
2025-04-29T15:07:38.394417462Z Borg: 1.4.0 Python: CPython 3.12.10 msgpack: 1.0.8 fuse: llfuse 1.5.1 [pyfuse3,llfuse]
2025-04-29T15:07:38.394418378Z PID: 35 CWD: /
2025-04-29T15:07:38.394419128Z sys.argv: [‘/usr/bin/borg’, ‘init’, ‘–debug’, ‘–encryption=repokey-blake2’]
2025-04-29T15:07:38.394420003Z SSH_ORIGINAL_COMMAND: None
*2025-04-29T15:07:38.394420795Z *
2025-04-29T15:07:38.408064837Z Could not initialize borg repository.

I’m running Nextcloud-AIO version 10.13.0 from inside Docker Desktop on MacOS Sonoma.
The destination for the backup is an external disk which is empty (recently formatted) as you can see from the output of the df -h command:

/dev/disk4s1 931Gi 12Mi 931Gi 1% 1 0 100% /Volumes/AIO

The docker run command I used to deploy NC is the following:

sudo docker run
*–init *
*–sig-proxy=false *
*–name nextcloud-aio-mastercontainer *
*–restart always *
*–publish 8080:8080 *
*–env APACHE_PORT=11000 *
*–env APACHE_IP_BINDING=0.0.0.0 *
*–env APACHE_ADDITIONAL_NETWORK=caddy_default *
*–env SKIP_DOMAIN_VALIDATION=false *
*–volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config *
*–volume /var/run/docker.sock.raw:/var/run/docker.sock:ro *
nextcloud/all-in-one:latest

Could you please advise on what I’m doing wrong?
I’ve already gone through other similar topics available in this forum but it seems no one is actually addressing my case.

Thanks for your support!

Hi, what value did you enter as backup path in the aio interface?

Currently it is set to /Volumes/AIO/Bkp
I’ve also tried with other paths and also using the local disk but the error message I get is always the same…

Hm… It sounds like the path from the host might not be correctly mounted inside the container due to docker desktop restrictions. Possibly you need to create a backupdir volume manually beforehand and use that as target like described here: GitHub - nextcloud/all-in-one: 📦 The official Nextcloud installation method. Provides easy deployment and maintenance with most features included in this one Nextcloud instance. (of course you need to adjust the command to your specific case)

Hi,

Thanks, I’ll try this tomorrow.

However, I’m a bit in doubt on how to adapt the windows synthax in the guide to my macos case…

Regards

It worked, thank you!

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.