2.6.2 rsync --daemon is not working for me
Sergey Golovin
svgol at samkon.ru
Tue Sep 21 07:37:55 GMT 2004
Hi!
I'm unable to write with remote rsync in daemon mode.
********* My configuration:
rsync 2.6.2
Linux 2.4.20-alt16-up (ALTLinux www.altlinux.org)
(There is owl-patch in ALTLinux-kernel)
========== /etc/rsyncd.conf =============
log file = /var/log/rsync
[routers]
comment = Our Backups
path = /mnt/backup/routers
uid = archiver
gid = archiver
use chroot = true
read only = false
list = true
auth users = me
secrets file = /etc/rsyncd.secrets
strict modes = true
dont compress = *
hosts allow = 127.0.0.1
hosts deny = *.*.*.*
========== end /etc/rsyncd.conf =========
========== /etc/rsyncd.secrets ==========
me:itsme
========== end /etc/rsyncd.secrets ======
ls -la /mnt/backup/routers/
total 12
drwxrwxr-x 3 archiver archiver 4096 Сен 17 14:34 .
drwxr-xr-x 7 archiver archiver 4096 Сен 17 22:59 ..
drwxr-xr-x 2 archiver archiver 4096 Сен 17 14:34 tmp
*********** End configuration
Now we are running rsync-daemon:
strace -f rsync --daemon --no-detach 2>~/tmp/strace.out
and trying to upload any file:
rsync -vvv resume.txt rsync://me@localhost/routers/
or
rsync -vvv resume.txt me at localhost::routers/
with result:
========================================
opening tcp connection to localhost port 873
Password:
send_file_list done
send_files starting
send_files phase=1
rsync: connection unexpectedly closed (73 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(342)
_exit_cleanup(code=12, file=io.c, line=342): about to call exit(12)
========================================
=========== /var/log/rsync =============
2004/09/21 12:00:23 [8245] rsync: connection unexpectedly closed (77
bytes read so far)
2004/09/21 12:00:23 [8245] rsync error: error in rsync protocol data
stream (code 12) at io.c(342)
=========== end /var/log/rsync =========
If uid(gid) = root, then it's working ok.
This behavior is strange for me.
P.S. Sorry for my poor English.
--
Sergey Golovin
More information about the rsync
mailing list