cannot set property for 'backupcloud': permission denied

jamiec1

Dabbler
Joined
Jan 28, 2021
Messages
11
Hi all,

Previously my replication task had been working well using ssh as root but learning more about Linux, I decided to setup a new user called ts on the destination server

Source: TrueNas Core TrueNAS-12.0-U8.1
Dest: Ubuntu 20.04.4 LTS with ZFS 0.8.3-lubuntu12.13 (modinfo zfs | grep version)

I am now getting the following errors:

cannot set property for 'backupcloud': permission denied.

[2022/05/12 00:00:00] INFO [Thread-69] [zettarepl.paramiko.replication_task__task_1] Connected (version 2.0, client OpenSSH_8.2p1)
[2022/05/12 00:00:00] INFO [Thread-69] [zettarepl.paramiko.replication_task__task_1] Authentication (publickey) successful!
[2022/05/12 00:00:01] INFO [replication_task__task_1] [zettarepl.replication.run] For replication task 'task_1': doing push from 'Main/NAS' to 'backupcloud' of snapshot='auto-2022-05-12_00-00' incremental_base='auto-2022-05-11_00-00' receive_resume_token=None encryption=False
[2022/05/12 00:00:05] INFO [replication_task__task_1.process] [zettarepl.transport.base_ssh.ts@xxxxxxx.xxxxxxx.xx.replication_process.task_1] Warning: 'cannot receive aclmode property on backupcloud: invalid property value\ncannot receive sharenfs property on backupcloud: permission denied\ncannot receive mountpoint property on backupcloud: permission denied\ncannot receive sharesmb property on backupcloud: permission denied'
[2022/05/12 00:00:05] ERROR [replication_task__task_1] [zettarepl.replication.run] For task 'task_1' unhandled replication error ExecException(1, "cannot set property for 'backupcloud': permission denied\n")
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/zettarepl/replication/run.py", line 164, in run_replication_tasks
retry_stuck_replication(
File "/usr/local/lib/python3.9/site-packages/zettarepl/replication/stuck.py", line 18, in retry_stuck_replication
return func()
... 3 more lines ...
run_replication_steps(step_templates, observer)
File "/usr/local/lib/python3.9/site-packages/zettarepl/replication/run.py", line 593, in run_replication_steps,
handle_readonly(step_template)
File "/usr/local/lib/python3.9/site-packages/zettarepl/replication/run.py", line 793, in handle_readonly
step_template.dst_context.shell.exec(["zfs", "set", "readonly=on", step_template.dst_dataset])
File "/usr/local/lib/python3.9/site-packages/zettarepl/transport/interface.py", line 89, in exec
return self.exec_async(args, encoding, stdout).wait(timeout)
File "/usr/local/lib/python3.9/site-packages/zettarepl/transport/base_ssh.py", line 54, in wait
raise ExecException(exitcode, stdout)
zettarepl.transport.interface.ExecException: cannot set property for 'backupcloud': permission denied

Researching online I found zfs allow backupcloud
Adding the following got rid of a few errors but I can't shift the aclmode issue, so I added userprop, but still no dice!

user ts create,mount,mountpoint,receive,send,sharenfs,sharesmb,snapshot,userprop

Now it is just this:

cannot set property for 'backupcloud': permission denied.

[2022/05/13 13:00:00] INFO [Thread-130] [zettarepl.paramiko.replication_task__task_1] Connected (version 2.0, client OpenSSH_8.2p1)
[2022/05/13 13:00:00] INFO [Thread-130] [zettarepl.paramiko.replication_task__task_1] Authentication (publickey) successful!
[2022/05/13 13:00:01] INFO [replication_task__task_1] [zettarepl.replication.run] For replication task 'task_1': doing push from 'Main/NAS' to 'backupcloud' of snapshot='auto-2022-05-13_13-00' incremental_base='auto-2022-05-13_12-00' receive_resume_token=None encryption=False
[2022/05/13 13:00:03] INFO [replication_task__task_1.process] [zettarepl.transport.base_ssh.ts@xxxxxxx.xxxxxxx.xx.replication_process.task_1] Warning: 'cannot receive aclmode property on backupcloud: invalid property value'
[2022/05/13 13:00:03] ERROR [replication_task__task_1] [zettarepl.replication.run] For task 'task_1' unhandled replication error ExecException(1, "cannot set property for 'backupcloud': permission denied\n")
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/zettarepl/replication/run.py", line 164, in run_replication_tasks
retry_stuck_replication(
File "/usr/local/lib/python3.9/site-packages/zettarepl/replication/stuck.py", line 18, in retry_stuck_replication
return func()
... 3 more lines ...
run_replication_steps(step_templates, observer)
File "/usr/local/lib/python3.9/site-packages/zettarepl/replication/run.py", line 593, in run_replication_steps
handle_readonly(step_template)
File "/usr/local/lib/python3.9/site-packages/zettarepl/replication/run.py", line 793, in handle_readonly
step_template.dst_context.shell.exec(["zfs", "set", "readonly=on", step_template.dst_dataset])
File "/usr/local/lib/python3.9/site-packages/zettarepl/transport/interface.py", line 89, in exec
return self.exec_async(args, encoding, stdout).wait(timeout)
File "/usr/local/lib/python3.9/site-packages/zettarepl/transport/base_ssh.py", line 54, in wait
raise ExecException(exitcode, stdout)
zettarepl.transport.interface.ExecException: cannot set property for 'backupcloud': permission denied

Looking on this forum previous posts suggests:
zfs set aclmode=discard backupcloud

Adding that via the shell in TrueNas made no difference

Is this because of the 'Destination Dataset Read Only Policy' being SET in TrueNas and somehow not being able to be 'set' ?

How to fix, please help !
 
Top