Uploaded image for project: 'TrueNAS'
  1. TrueNAS
  2. NAS-109509

Replication says finished, but actually has error "cannot receive org.truenas:managedby property"

    XMLWordPrintable

    Details

      Description

      The status for this replication job shows as "finished" in the task list, but if you click on it you see it actually encountered the following error:

      2021/02/20 03:00:01] INFO [Thread-1039] [zettarepl.paramiko.replication_task__task_6] Connected (version 2.0, client OpenSSH_8.2-hpn14v15)
      [2021/02/20 03:00:02] INFO [Thread-1039] [zettarepl.paramiko.replication_task__task_6] Authentication (publickey) successful!
      [2021/02/20 03:00:02] INFO [replication_task__task_6] [zettarepl.replication.run] For replication task 'task_6': doing push from 'vol_1/vms' to 'vol_1/backups/remote_mad-file-01.btsys.org/vms' of snapshot='auto_20210220_0300_Hourly_mad-file-01' incremental_base='auto_20210220_0200_Hourly_mad-file-01' receive_resume_token=None encryption=False
      [2021/02/20 03:00:11] WARNING [replication_task__task_6] [zettarepl.replication.run] For task 'task_6' at attempt 1 recoverable replication error RecoverableReplicationError('Broken pipe (cannot receive org.truenas:managedby property on vol_1/backups/remote_mad-file-01.btsys.org/vms: permission denied\ncannot receive incremental stream: destination vol_1/backups/remote_mad-file-01.btsys.org/vms/mad-dns-01.btsys.org contains partially-complete state from "zfs receive -s".\n)')
      [2021/02/20 03:00:11] INFO [replication_task__task_6] [zettarepl.replication.run] After recoverable error sleeping for 1 seconds
      [2021/02/20 03:00:12] INFO [replication_task__task_6] [zettarepl.replication.run] No snapshots to send for replication task 'task_6' on dataset 'vol_1/vms'

      I'm fairly familiar with the lacking rights to a given property error so I tried allowing the replication user those rights on the destination. Oddly the property noted as being lacking isn't a valid property that can be assigned.

      For example I've tried adding the property all these ways:
      zfs allow -u rep-mad-file-01 org.truenas:managedby vol_1
      zfs allow -u rep-mad-file-01 truenas:managedby vol_1
      zfs allow -u rep-mad-file-01 managedby vol_1
      zfs allow -u rep-mad-file-01 org.managedby vol_1
      zfs allow -u rep-mad-file-01 "org.truenas:managedby" vol_1

      In all cases I'm given this error:
      cannot set permissions on 'vol_1': operation not applicable to datasets of this type

      I've also tried apply the property to the exact dataset the replication is going into but the results are the same.

      Debug is attached.

        Attachments

          Attachments

            JEditor

              Activity

                People

                Assignee:
                vladimirv Vladimir Vinogradenko
                Reporter:
                joshwisely Josh Wisely
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: