Another AIO backup issue

Nextcloud AIO v11.2.1 running in a Proxmox LXC via Docker with

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

I want to set up Borg backups to get automatic updates. I want to store it to my NAS.

Mount point on both Proxmox host and the LXC at /mnt/nc-backups like this in the .conf file:
mp0: /mnt/nc-backups,mp=/mnt/nc-backups

The folder is writable from both the host and the LXC. I set this path in the AIO GUI as a Local Backup Location. Backup fails with:

2025-07-07T10:49:24.760776294Z mkdir: can't create directory '/mnt/borgbackup/borg': Permission denied
2025-07-07T10:49:25.566506973Z Repository /mnt/borgbackup/borg does not exist.
2025-07-07T10:49:25.600153684Z Initializing repository...
2025-07-07T10:49:26.105452004Z using builtin fallback logging configuration
2025-07-07T10:49:26.297343438Z 33 self tests completed in 0.19 seconds
2025-07-07T10:49:26.304938765Z Local Exception
2025-07-07T10:49:26.304959312Z Traceback (most recent call last):
2025-07-07T10:49:26.304962361Z   File "/usr/lib/python3.12/site-packages/borg/archiver.py", line 5391, in main
2025-07-07T10:49:26.304964923Z     exit_code = archiver.run(args)
2025-07-07T10:49:26.304967167Z                 ^^^^^^^^^^^^^^^^^^
2025-07-07T10:49:26.304969349Z   File "/usr/lib/python3.12/site-packages/borg/archiver.py", line 5309, in run
2025-07-07T10:49:26.304971885Z     rc = func(args)
2025-07-07T10:49:26.304974077Z          ^^^^^^^^^^
2025-07-07T10:49:26.304976255Z   File "/usr/lib/python3.12/site-packages/borg/archiver.py", line 176, in wrapper
2025-07-07T10:49:26.305002160Z     with repository:
2025-07-07T10:49:26.305004512Z          ^^^^^^^^^^
2025-07-07T10:49:26.305006660Z   File "/usr/lib/python3.12/site-packages/borg/repository.py", line 215, in __enter__
2025-07-07T10:49:26.305008972Z     self.create(self.path)
2025-07-07T10:49:26.305011154Z   File "/usr/lib/python3.12/site-packages/borg/repository.py", line 306, in create
2025-07-07T10:49:26.305013506Z     os.mkdir(path)
2025-07-07T10:49:26.305015667Z PermissionError: [Errno 13] Permission denied: '/mnt/borgbackup/borg'
2025-07-07T10:49:26.305017898Z 
2025-07-07T10:49:26.305020089Z Platform: Linux 437b3cb87156 6.8.12-11-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-11 (2025-05-22T09:39Z) x86_64
2025-07-07T10:49:26.305022388Z Linux: Unknown Linux  
2025-07-07T10:49:26.305024576Z Borg: 1.4.0  Python: CPython 3.12.11 msgpack: 1.0.8 fuse: llfuse 1.5.1 [pyfuse3,llfuse]
2025-07-07T10:49:26.305026815Z PID: 35  CWD: /
2025-07-07T10:49:26.305028989Z sys.argv: ['/usr/bin/borg', 'init', '--debug', '--encryption=repokey-blake2']
2025-07-07T10:49:26.305031283Z SSH_ORIGINAL_COMMAND: None
2025-07-07T10:49:26.305033447Z 
2025-07-07T10:49:26.339539953Z Could not initialize borg repository.

Any tips? Thanks!

1 Like

Is this an nfs mountpoint? If so you need to disable the squashroot feature (IIRC it is called like that) so that the root user can access the share

no, it’s a SMB mount

(post deleted by author)

It looks like a permissions issue inside the container. Even though /mnt/nc-backups is mounted and writable from the host and LXC, the Borg process inside the Docker container likely doesn’t have write access to /mnt/borgbackup/borg. Try:

  1. Ensuring correct ownership/permissions (chmod 777 or chown -R 1000:1000 for testing).
  2. Verifying the backup path in AIO GUI is /mnt/nc-backups/borg, not /mnt/borgbackup/borg.
  3. Avoiding paths outside the declared mount (/mnt/nc-backups).

Let us know if setting the correct path and permissions helps.

Done.

AIO backup log then says
2025-07-08T05:01:17.717802128Z /mnt/borgbackup is not a mountpoint which is not allowed.

That seems super weird to me. /mnt/nc-backups is mounted in the LXC and writable. Thanks for your time btw.

Hi, just to make this clear: the configured backup directory is inside the borg container always mounted to /mnt/borgbackup. See all-in-one/php/containers.json at 362cad79dbfb0ec0c803111d62d51ff1e18d0143 · nextcloud/all-in-one · GitHub

… so the path in the log is always /mnt/borgbackup. Okay, gotcha. Still, I’m getting this error.

From within the LXC, I can write to the mount point (/mnt/nc-backups), the same path is also set in the AIO GUI. I did sudo chown -R 1000:1000 /mnt/nc-backups from inside the LXC.

Regardless if I set there /mnt/nc-backups or /mnt/nc-backups/borg, I always get the same error (/mnt/borgbackup is not a mountpoint which is not allowed.).

Ha! Backup is happening. The AIO UI is super weird - I ALWAYS get the error above (/mnt/borgbackup is not a mountpoint which is not allowed) when I enter the path and push “Set backup location again”, BUT when I just press “Create Backup now” down below, the backup does get created. WTF

Let’s see if this sticks. Thanks for now!