On Fri, 10 Jul 2026, Thorsten Glaser wrote:
>Package: rsync
>Version: 3.2.3-4+deb11u4
>+ /usr/bin/cleanenv / /usr/bin/rsync -zavPH --numeric-ids \
> -S --stats '--rsh=/usr/bin/ssh -T -i /root/.etc/$foo.key' \
> --delete-after -x -c $user@$host:/RS/ /RS/
>receiving file list ...
>invalid file mode 014704000000 for pi/config [Receiver]
>rsync error: protocol incompatibility (code 2) at flist.c(867) [Receiver=3.2.3]
I found that I *really* need the -c option now and tried a few
different versions:
- 3.2.3-4+deb11u1 (bullseye before the next point release)
Changed the call to (equivalently for the other one)…
sudo cleanenv / /usr/local/libexec/rsync11 -zavPH --numeric-ids \
-S --stats '--rsh=/usr/bin/ssh -T -i /root/.etc/$foo.key' \
--delete-after -x -c --rsync-path=/usr/local/libexec/rsync11 \
$user@$host:/RS/ /RS/
… so sender and receiver have identical rsync binaries always,
for all tests.
This one gets me:
receiving file list ...
Overflow in read_varint()
rsync error: error in rsync protocol data stream (code 12) at io.c(1747)
[Receiver=3.2.3]
- 3.1.3-6+deb10u3 (buster ELTS):
Incompatible options specified for inc-recursive connection.
rsync error: syntax or usage error (code 1) at compat.c(304) [Receiver=3.1.3]
- 3.1.3-6 (buster):
Incompatible options specified for inc-recursive connection.
rsync error: syntax or usage error (code 1) at compat.c(304) [Receiver=3.1.3]
- 3.1.3-6 (buster) if I change --delete-after to --delete:
receiving incremental file list
unexpected tag 49 [Receiver/inc]
rsync error: error in rsync protocol data stream (code 12) at io.c(1646)
[Receiver=3.1.3]
- 3.1.2-1+deb9u3 (stretch-security, pre-ELTS):
(same as buster)
- 3.1.2-1+deb9u2 (stretch): same
What is happening here? I mean, I often use -c between systems
that run rsync 3.1.2…
… hmm, let’s test that…
… okay, with 3.1.2-1+deb9u3 as receiver and the nōn-Debian with
3.1.2 as sender (and SSH server), and test files, it works. Huh.
Same in the other direction.
Unfortunately, I cannot use the directory tree I need to transfer
between the two Debian systems for testing. But the rsync calls
involve neither -X extattrs nor -A acls, so…
… anyway, ideas?
//mirabilos
--
15:41⎜<Lo-lan-do:#fusionforge> Somebody write a testsuite for helloworld :-)