I have the most vanilla Nextcloud AIO installation one can imagine.
RaspberryPi 5 with Rasbian Bookworm, Docker CE, Portainer CE 2.21.2 installed.
Nextcloud AIO is running with the following docker compose:
services:
nextcloud-aio-mastercontainer:
image: nextcloud/all-in-one:latest
init: true
restart: always
container_name: nextcloud-aio-mastercontainer
volumes:
- nextcloud_aio_mastercontainer:/mnt/docker-aio-config
- /var/run/docker.sock:/var/run/docker.sock:ro
network_mode: bridge
ports:
- 80:80
- 8080:8080
- 8443:8443
environment:
BORG_RETENTION_POLICY: --keep-within=7d --keep-weekly=4 --keep-monthly=6
NEXTCLOUD_DATADIR: /mnt/ncdata
NEXTCLOUD_MOUNT: /mnt/
volumes:
nextcloud_aio_mastercontainer:
name: nextcloud_aio_mastercontainer
Everything is working as expected EXCEPT Backup
Here is the log:
2024-10-03T12:06:35.040819837Z mkdir: can’t create directory ‘/mnt/borgbackup/borg’: No such file or directory
2024-10-03T12:06:35.040979689Z Initializing repository…
2024-10-03T12:06:35.454718088Z using builtin fallback logging configuration
2024-10-03T12:06:35.709491201Z 33 self tests completed in 0.25 seconds
2024-10-03T12:06:35.843352892Z The parent path of the repo directory [/mnt/borgbackup/borg] does not exist.
2024-10-03T12:06:35.843381225Z Traceback (most recent call last):
2024-10-03T12:06:35.843384614Z File “/usr/lib/python3.12/site-packages/borg/repository.py”, line 282, in create
2024-10-03T12:06:35.843387262Z os.mkdir(path)
2024-10-03T12:06:35.843389429Z FileNotFoundError: [Errno 2] No such file or directory: ‘/mnt/borgbackup/borg’
2024-10-03T12:06:35.843391595Z
2024-10-03T12:06:35.843393503Z The above exception was the direct cause of the following exception:
2024-10-03T12:06:35.843395577Z
2024-10-03T12:06:35.843397429Z Traceback (most recent call last):
2024-10-03T12:06:35.843399355Z File “/usr/lib/python3.12/site-packages/borg/archiver.py”, line 5401, in main
2024-10-03T12:06:35.843401632Z exit_code = archiver.run(args)
2024-10-03T12:06:35.843403632Z ^^^^^^^^^^^^^^^^^^
2024-10-03T12:06:35.843405670Z File “/usr/lib/python3.12/site-packages/borg/archiver.py”, line 5321, in run
2024-10-03T12:06:35.843407910Z return set_ec(func(args))
2024-10-03T12:06:35.843409873Z ^^^^^^^^^^
2024-10-03T12:06:35.843412077Z File “/usr/lib/python3.12/site-packages/borg/archiver.py”, line 175, in wrapper
2024-10-03T12:06:35.843414299Z with repository:
2024-10-03T12:06:35.843416170Z ^^^^^^^^^^
2024-10-03T12:06:35.843418003Z File “/usr/lib/python3.12/site-packages/borg/repository.py”, line 201, in enter
2024-10-03T12:06:35.843420244Z self.create(self.path)
2024-10-03T12:06:35.843422114Z File “/usr/lib/python3.12/site-packages/borg/repository.py”, line 284, in create
2024-10-03T12:06:35.843424355Z raise self.ParentPathDoesNotExist(path) from err
2024-10-03T12:06:35.843426373Z borg.repository.Repository.ParentPathDoesNotExist: The parent path of the repo directory [/mnt/borgbackup/borg] does not exist.
2024-10-03T12:06:35.843428781Z
2024-10-03T12:06:35.843430540Z Platform: Linux 4d4a0c023b35 6.6.51+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.6.51-1+rpt2 (2024-10-01) aarch64
2024-10-03T12:06:35.843432799Z Linux: Unknown Linux
2024-10-03T12:06:35.843434781Z Borg: 1.2.8 Python: CPython 3.12.6 msgpack: 1.0.8 fuse: llfuse 1.5.0 [pyfuse3,llfuse]
2024-10-03T12:06:35.843436947Z PID: 34 CWD: /
2024-10-03T12:06:35.843438910Z sys.argv: [‘/usr/bin/borg’, ‘init’, ‘–debug’, ‘–encryption=repokey-blake2’, ‘/mnt/borgbackup/borg’]
2024-10-03T12:06:35.843442151Z SSH_ORIGINAL_COMMAND: None
2024-10-03T12:06:35.843457355Z
2024-10-03T12:06:35.900479466Z Could not initialize borg repository.
Any ideas? Thanks!