Hi there,
I tried to set up a backup to my FritzBox FritzNAS through SMB/CIFS.
I have entered the connection information in Settings->System->Storage, and I don’t get an error, so I have to assume that the connection is working.
This is the Supervisor log, which also seems to be OK:
23-10-12 19:46:52 INFO (MainThread) [supervisor.mounts.manager] Creating or updating mount: fritznas
23-10-12 19:46:52 INFO (MainThread) [supervisor.mounts.mount] Mount fritznas still activating, waiting up to 30 seconds to complete
23-10-12 19:47:02 INFO (MainThread) [supervisor.backups.manager] Found 28 backup files
When I trigger a backup to the network location, I get an error:
23-10-12 19:25:49 INFO (MainThread) [supervisor.backups.manager] Creating new full backup with slug ff8f5637
23-10-12 19:25:49 ERROR (MainThread) [supervisor.backups.manager] Backup ff8f5637 error
Traceback (most recent call last):
File "/usr/src/supervisor/supervisor/backups/manager.py", line 239, in _do_backup
async with backup:
File "/usr/src/supervisor/supervisor/backups/backup.py", line 300, in __aenter__
self._tmp = TemporaryDirectory(dir=str(self.tarfile.parent))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/tempfile.py", line 854, in __init__
self.name = mkdtemp(suffix, prefix, dir)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/tempfile.py", line 368, in mkdtemp
_os.mkdir(file, 0o700)
PermissionError: [Errno 13] Permission denied: '/data/mounts/fritznas/tmpf6uaxjsj'
I am not really sure if HA has mounted the correct directory, because of the log Found 28 backup files
when connecting. I don’t see any directory with 28 files in my network share, but my local HA backup directory contains 28 backups. So I guess at least the logging when creating a network storage location seems a bit misleading.
Does anyone have any hints what I can do to debug the network storage connection?
This is on a Home Assistant 2023.10.2
Supervisor 2023.10.0
Operating System 10.5
Thanks a lot in advance,
Bernd