Syncoid over SSH error: invalid name

I have two ZFS targets: one set of external disks, and an account on rsync.net. At one point everything was going swimmingly, but I started to get errors and I can’t track down the problem. It’s happening for both local and SSH.

root@memory-alpha:~# syncoid -r data /backups/memory-alpha/data
WARN: ZFS resume feature not available on target machine - sync will continue without resume support.
INFO: Sending oldest full snapshot data@syncoid_memory-alpha_2024-02-16:07:16:12-GMT-05:00 (~ 59 KB) to new target filesystem:
56.5KiB 0:00:00 [8.96MiB/s] [==========================================================================================================================================================================>         ] 95%
cannot receive: invalid name
CRITICAL ERROR:  zfs send  'data'@'syncoid_memory-alpha_2024-02-16:07:16:12-GMT-05:00' | mbuffer  -q -s 128k -m 16M 2>/dev/null | pv -p -t -e -r -b -s 60528 |  zfs receive   -F '/backups/memory-alpha/data' failed: 256 at /usr/sbin/syncoid line 492.
INFO: Sending oldest full snapshot data/apps@autosnap_2023-06-15_02:24:48_yearly (~ 48.7 GB) to new target filesystem:
cannot receive: invalid name
 128KiB 0:00:00 [ 848KiB/s] [>                                                                                                                                                                                   ]  0%
mbuffer: error: outputThread: error writing to <stdout> at offset 0x40000: Broken pipe
mbuffer: warning: error during output to <stdout>: Broken pipe
CRITICAL ERROR:  zfs send  'data/apps'@'autosnap_2023-06-15_02:24:48_yearly' | mbuffer  -q -s 128k -m 16M 2>/dev/null | pv -p -t -e -r -b -s 52241427160 |  zfs receive   -F '/backups/memory-alpha/data/apps' failed: 256 at /usr/sbin/syncoid line 492.
INFO: Sending oldest full snapshot data/cache@syncoid_memory-alpha_2024-02-16:07:24:46-GMT-05:00 (~ 335 KB) to new target filesystem:
cannot receive: invalid name
 128KiB 0:00:00 [3.50MiB/s] [===================================================================>                                                                                                                ] 38%
mbuffer: error: outputThread: error writing to <stdout> at offset 0x40000: Broken pipe
mbuffer: warning: error during output to <stdout>: Broken pipe
CRITICAL ERROR:  zfs send  'data/cache'@'syncoid_memory-alpha_2024-02-16:07:24:46-GMT-05:00' | mbuffer  -q -s 128k -m 16M 2>/dev/null | pv -p -t -e -r -b -s 344032 |  zfs receive   -F '/backups/memory-alpha/data/cache' failed: 256 at /usr/sbin/syncoid line 492.
INFO: Sending oldest full snapshot data/db@autosnap_2023-06-15_02:24:49_yearly (~ 256.7 MB) to new target filesystem:
cannot receive: invalid name
 128KiB 0:00:00 [12.1MiB/s] [>                                                                                                                                                                                   ]  0%
mbuffer: error: outputThread: error writing to <stdout> at offset 0x40000: Broken pipe
mbuffer: warning: error during output to <stdout>: Broken pipe
CRITICAL ERROR:  zfs send  'data/db'@'autosnap_2023-06-15_02:24:49_yearly' | mbuffer  -q -s 128k -m 16M 2>/dev/null | pv -p -t -e -r -b -s 269136352 |  zfs receive   -F '/backups/memory-alpha/data/db' failed: 256 at /usr/sbin/syncoid line 492.
INFO: Sending oldest full snapshot data/homes@autosnap_2023-04-17_03:01:41_yearly (~ 1347.1 GB) to new target filesystem:
cannot receive: invalid name
 128KiB 0:00:00 [ 688KiB/s] [>                                                                                                                                                                                   ]  0%
mbuffer: error: outputThread: error writing to <stdout> at offset 0x40000: Broken pipe
mbuffer: warning: error during output to <stdout>: Broken pipe
CRITICAL ERROR:  zfs send  'data/homes'@'autosnap_2023-04-17_03:01:41_yearly' | mbuffer  -q -s 128k -m 16M 2>/dev/null | pv -p -t -e -r -b -s 1446402918800 |  zfs receive   -F '/backups/memory-alpha/data/homes' failed: 256 at /usr/sbin/syncoid line 492.
INFO: Sending oldest full snapshot data/media@autosnap_2023-04-17_03:01:44_yearly (~ 870.9 GB) to new target filesystem:
cannot receive: invalid name
 128KiB 0:00:00 [2.79MiB/s] [>                                                                                                                                                                                   ]  0%
mbuffer: error: outputThread: error writing to <stdout> at offset 0x40000: Broken pipe
mbuffer: warning: error during output to <stdout>: Broken pipe
CRITICAL ERROR:  zfs send  'data/media'@'autosnap_2023-04-17_03:01:44_yearly' | mbuffer  -q -s 128k -m 16M 2>/dev/null | pv -p -t -e -r -b -s 935138310504 |  zfs receive   -F '/backups/memory-alpha/data/media' failed: 256 at /usr/sbin/syncoid line 492.

I can duplicate the error running send/receive manually, so I don’t think it’s anything to do with Sanoid/Syncoid itself. Thank you in advance.

I think the problem is with the destination you’ve entered. I don’t understand perl especially well, but I took a look at line 492 of syncoid and it looks like it returns an error if some argument in the command isn’t entered right.

In your case, I’m guessing you have a zpool named data and another named backups, but you’ve put a leading / in front of backups, which makes it an invalid value for the destination dataset name.

2 Likes

No guessing necessary; we can see the leading slash in the command. Good catch. :+1:

syncoid -r data /backups/memory-alpha/data

@tvcvt sorry for the late reply, thank you for catching my mistake!

1 Like