I am using the backups feature and trying to save full backups to my TrueNas Scale via NFS. The .tar file writes to my NAS but the size is 0kb. The backup file should be around 1.5 GB (thats what saves locally). I have posted the log files below. I have confirmed the firewall is open. Any idea on what might be going on here?
2025-04-15 16:16:54.170 ERROR (MainThread) [supervisor.backups.manager] Backup 50057ded error
Traceback (most recent call last):
File “/usr/src/supervisor/supervisor/backups/manager.py”, line 509, in _do_backup
async with backup.create():
~~~~~~~~~~~~~^^
File “/usr/local/lib/python3.13/contextlib.py”, line 221, in aexit
await anext(self.gen)
File “/usr/src/supervisor/supervisor/backups/backup.py”, line 513, in create
size_bytes = await self.sys_run_in_executor(_close_outer_tarfile)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.13/concurrent/futures/thread.py”, line 59, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/src/supervisor/supervisor/backups/backup.py”, line 506, in _close_outer_tarfile
outer_secure_tarfile.close()
~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File “/usr/local/lib/python3.13/site-packages/securetar/init.py”, line 245, in close
self._tar.close()
~~~~~~~~~~~~~~~^^
File “/usr/local/lib/python3.13/tarfile.py”, line 2031, in close
self.fileobj.close()
~~~~~~~~~~~~~~~~~~^^
OSError: [Errno 5] I/O error
2025-04-16 04:48:24.092 ERROR (MainThread) [supervisor.backups.manager] Backup 6f89186d error
Traceback (most recent call last):
File "/usr/src/supervisor/supervisor/backups/manager.py", line 509, in _do_backup
async with backup.create():
~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/contextlib.py", line 221, in __aexit__
await anext(self.gen)
File "/usr/src/supervisor/supervisor/backups/backup.py", line 513, in create
size_bytes = await self.sys_run_in_executor(_close_outer_tarfile)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/supervisor/supervisor/backups/backup.py", line 506, in _close_outer_tarfile
outer_secure_tarfile.close()
~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/site-packages/securetar/__init__.py", line 245, in close
self._tar.close()
~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/tarfile.py", line 2031, in close
self.fileobj.close()
~~~~~~~~~~~~~~~~~~^^
OSError: [Errno 5] I/O error
TrueNas Scale - 24.10.2
Home Assistant Core - 2025.4.2
Home Assistant OS - 15.2
I am not 100% sure if the backup had worked in the past as I just happen to notice the file size being 0kb (the backup on the actual HA system has been working and is around ~1 GB).
I used the “Advanced SSH & Web terminal” to test SFTPing a file and it looks like it stalled out (same behavior I am seeing when the backup runs). I wonder if I have a permissions issue…although I wouldn’t have expected the file (shell) to write to the NAS.
I double checked the permissions of the SFTP user (used in my manual SFTP example as well as the user who is setup to perform the backup) and it looks good to me (full access).
I was in a hurry and forgot to include my environment.
I’m using a virtual environment on a Mac M1 with UTM. I have been saving data to an NFS folder on my Synology, and everything was working fine until recently.
I’m using the official backup service, and for now, I’ve switched from NFS to the Synology integration. I’ll monitor it for a few days to see how it goes.
When I create a test.txt file and use “Advanced SSH & Web terminal” to SFTP the test.txt file it was successful (note: file size was very small). I then tried to SFTP one of the backup files (large) and it stalled\failed.
Search the error code I provided. I was letting you know that both your log and @verona screenshot show that code. There are a few threads that may help with your issue.
I figured out what was happening for my situation. My network contains a main LAN and an IOT VLAN. My home assistant lives on my IOT VLAN (tag=VLAN20) and my NAS lives on my main LAN. I am using TrueNAS Scale and I needed to setup a corresponding VLAN (tag= VLAN20) and a corresponding SMB share.