Behave better if it doesn't have the right permissions
Closed this issue · 1 comments
bellhyve commented
I got an endless loop after successful transmission with a zfs allow user who didn't have appropriate permissions.
outerspace/Backups/kms.bts@2024-01-10_00.00.00--1w: 1G received
error: cannot receive canmount property on outerspace/Backups/kms.bts-delme: permission denied
error: cannot receive canmount property on outerspace/Backups/kms.bts-delme: permission denied
error: cannot receive canmount property on outerspace/Backups/kms.bts-delme: permission denied
...
bellhyve commented
It's not an endless loop—"zsync -R" was properly replicated 593 snapshots, and it gave 593 errors. I added repeated error suppression to make human and JSON output more sane.
error: cannot receive canmount property on boot07/zelta/kms.bts13: permission denied
error: cannot receive canmount property on boot07/zelta/kms.bts13: permission denied
error: above error repeated 592 times
2G sent, 593/593 streams received in 63.43 seconds