[Bug 1900] New: rsync --daemon hangs with --numeric-ids

samba-bugs at samba.org samba-bugs at samba.org
Sun Oct 10 00:25:03 GMT 2004


https://bugzilla.samba.org/show_bug.cgi?id=1900

           Summary: rsync --daemon hangs with --numeric-ids
           Product: rsync
           Version: 2.6.2
          Platform: All
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P3
         Component: core
        AssignedTo: wayned at samba.org
        ReportedBy: peter-samba at dataloss.nl
         QAContact: rsync-qa at samba.org


rsync server:
/usr/local/bin/rsync --address=194.109.216.71 --numeric-ids --no-detach --daemon
--config=rsyncd.conf

rsyncd.conf:
pid file = /var/run/rsyncd.pid
uid = rsync
gid = rsync
use chroot = yes
max connections = 10
[freebsd-ports]
        comment = FreeBSD ports repository
        path = /home/mirror/freebsd/rsync/ports

client commandline:
rsync -avvP cvsup.gay.nl::freebsd-ports/ /usr/ports/

client output:
opening tcp connection to cvsup.gay.nl port 873
receiving file list ...
[receiver] expand file_list to 131072 bytes, did move
[receiver] expand file_list to 262144 bytes, did move
[receiver] expand file_list to 524288 bytes, did move
84165 files to consider


after this, nothing. strace on both server and client shows select(), waiting
(according to sockstat) on the socket to the other party.

Workaround: remove --numeric-ids from the server startup line.

Extra details:
- no combination of enabling or disabling chroot and no-detach made any difference
- with chroot but no numeric-ids, the following syslog message occurs:
Oct 10 01:22:45 s1 rsyncd[25003]: /etc/pwd.db: No such file or directory
  but everything works fine


It seems some conditional somewhere goes horribly wrong; no combination of flags
should ever cause server and client to be waiting for eachother.

-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.


More information about the rsync mailing list