rsync daemon (rsyncd) gives spurious errors
I’ve found that rsyncd isn’t working correctly on Alpine. Given a directory, /mnt/target, mode 777 (not that it should matter), and a rsyncd.conf module like this:
[target]
uid = root
gid = root
path = /mnt/target
use chroot = true
read only = false
max verbosity = 5
an rsync -a to that daemon (from at least other Alpine or current Arch installations) will create errors such as
rsync: failed to set permissions on “/rsync-3.1.1-r2.apk” (in target): No such file or directory (2)
Meanwhile an rsync -a to an Arch box on the same version of rsync (3.1.1) completes without error.
Attached please find the outputs of ‘rsync -vvvv -axHAXFR —progress —numeric-ids user.out ::target’ for both the functioning Arch box as well as the non-functioning Alpine box, as well as straces of the same from the server side (made with ‘strace -f rsync —daemon —no-detach’). Please note that the output of rsync is identical on both sides; I have not included snippets of /var/log/messages as it would be redundant.
(from redmine: issue id 4963, created on 2015-12-17, closed on 2017-04-07)
- Uploads:
- alpine.out user-facing messages with alpine rsyncd
- arch.out user-facing messages with arch rsyncd
- alpine_strace.out strace from alpine rsyncd
- arch_strace.out strace from arch rsyncd