Following the video at Backup & Recovery Made Easy: TrueNAS ZFS Replication Tutorial but am getting an error at the very beginning. It is throwing
[EFAULT] Passive side: cannot send 'Enterprise Disks/Win-Share': I/O error Active side: cannot unmount '/var/db/system/configs-ae32c386e13840b2bf9c0083275e7941': permission denied.
Any ideas on what I might have done wrong? This is my first attempt at backing up and saving to a second system.
This is a permission issue. Do you have special ACL on your dataset?
I know I used permissions for making this a mountable windows share. Maybe samba or nfs, I forget. I will look into this.
LTS_Tom
October 17, 2025, 10:43am
4
That is an odd error, ZFS replication is block level and should not care at all what permissions are set to.
HeneryH:
/var/db/system/configs
Now that I have paid more attention to this location you might give your system a reboot. Is this a dual system from TN? That config file is for the TN system and it might be hung up for some reason.
This source system is virtualized on ProxMox. I am now migrating to a dedicated NAS that has TrueNas loaded on bare metal. I will try a reboot.
No go after removing the ACL and rebooting both TN and Proxmox.
See this thread on a potential alternate way of getting the data to the new replacement machine…
Trying to migrate TrueNAS data to a new machine - move the disks?
HeneryH
October 18, 2025, 10:23pm
8
One thing I’m seeing is the ssh key is being generated with root user (as noted at the end of the public key). Not truenas_admin.
Could the deprecation of root user for trunas_admin be causing some issue?
bump - any thoughts on the ssh key being for root user instead of truenas_admin?
LTS_Tom
October 24, 2025, 9:17am
10
I always use root as the user for the key creation.
HeneryH
October 24, 2025, 4:31pm
11
I think I followed that video but am getting this error. I had previously had a samba share but have since deleted it.
FAILED
[EFAULT] Passive side: cannot send ‘Enterprise Disks/Win-Share’: I/O error Active side: cannot unmount ‘/var/db/system/samba4’: permission denied.
[2025/10/24 09:27:09] INFO [Thread-23] [zettarepl.paramiko.replication_task__task_1] Connected (version 2.0, client OpenSSH_9.2p1)
[2025/10/24 09:27:09] INFO [Thread-23] [zettarepl.paramiko.replication_task__task_1] Authentication (publickey) successful!
[2025/10/24 09:27:09] INFO [replication_task__task_1] [zettarepl.replication.pre_retention] Pre-retention destroying snapshots: []
[2025/10/24 09:27:09] INFO [replication_task__task_1] [zettarepl.paramiko.replication_task__task_1.sftp] [chan 5] Opened sftp connection (server version 3)
[2025/10/24 09:27:09] INFO [replication_task__task_1] [zettarepl.replication.run] For replication task 'task_1': doing push from 'Enterprise Disks/Win-Share' to 'Enterprise_Disks' of snapshot='auto-2025-10-18_12-00' incremental_base=None include_intermediate=False receive_resume_token=None encryption=False
[2025/10/24 09:27:09] INFO [replication_task__task_1] [zettarepl.transport.ssh_netcat] Automatically chose connect address '10.10.1.27'
[2025/10/24 09:27:09] ERROR [replication_task__task_1] [zettarepl.replication.run] For task 'task_1' unhandled replication error SshNetcatExecException(ExecException(1, "cannot send 'Enterprise Disks/Win-Share': I/O error\n"), ExecException(1, "cannot unmount '/var/db/system/samba4': permission denied\n"))
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/zettarepl/replication/run.py", line 181, in run_replication_tasks
retry_contains_partially_complete_state(
... 12 more lines ...
File "/usr/lib/python3/dist-packages/zettarepl/replication/run.py", line 793, in run_replication_step
ReplicationProcessRunner(process, monitor).run()
File "/usr/lib/python3/dist-packages/zettarepl/replication/process_runner.py", line 33, in run
raise self.process_exception
File "/usr/lib/python3/dist-packages/zettarepl/replication/process_runner.py", line 37, in _wait_process
self.replication_process.wait()
File "/usr/lib/python3/dist-packages/zettarepl/transport/ssh_netcat.py", line 210, in wait
raise SshNetcatExecException(connect_exec_error, self.listen_exec_error) from None
zettarepl.transport.ssh_netcat.SshNetcatExecException: Passive side: cannot send 'Enterprise Disks/Win-Share': I/O error
Active side: cannot unmount '/var/db/system/samba4': permission denied
LTS_Tom
October 24, 2025, 5:29pm
12
I would post over in their forums, I have no idea why you would get a SAMBA error while doing replication, it not something I have encountered.