rsync and cron : connection unexpectedly closed

Maurice Lucas mslucas at taos-it.nl
Thu Jun 2 14:21:32 GMT 2005


From: "Paul Slootman" <paul at debian.org>
Sent: Monday, May 30, 2005 6:02 PM
> On Mon 30 May 2005, Maurice Lucas wrote:
>>
>> I use rsync with the following command
>> #/usr/bin/rsync -ta rsync.server.domain::dir/* /destination
>
> Note: it's always better to let rsync do wildcard expansion in such
> cases, and -a implies -t already; i.e. use:
>
> /usr/bin/rsync -a rsync.server.domain::dir/ /destination
>
>> from the command prompt without any problem but if I use the same rsync
>> command from cron I get the following error
>>
>> daemon.warn: May 30 15:18:42 rsyncd[24703]: rsync: connection 
>> unexpectedly
>> closed (0 bytes received so far) [receiver]
>> daemon.warn: May 30 15:18:42 rsyncd[24703]: rsync error: error in rsync
>> protocol data stream (code 12) at io.c(420)
>>
>> Could somebody tell me why.
>
> Try adding -v options (often -vv is enough) to show more details.

After a long time debugging with strace I'm ready to give it up.

I get the following in my logfiles
----
daemon.warn: Jun  2 16:15:22 rsyncd[3157]: rsync: connection unexpectedly 
closed (0 bytes received so far) [receiver]
daemon.warn: Jun  2 16:15:22 rsyncd[3157]: rsync error: error in rsync 
protocol data stream (code 12) at io.c(420)
----

But from cron also the following mail
----
opening tcp connection to rsync.uribl.com port 873
opening connection using --server --sender -vvlogDtpr . "uribl/*.rbldnsd"
receiving file list ...
done
delta-transmission enabled
black.uribl.com.rbldnsd
grey.uribl.com.rbldnsd
multi.uribl.com.rbldnsd
red.uribl.com.rbldnsd
white.uribl.com.rbldnsd

sent 24432 bytes  received 21793 bytes  13207.14 bytes/sec
total size is 5576507  speedup is 120.64
----

So it looks like he is just working as expected. But why the message in the 
logfile?
I have a strace of with and without invoking from cron and I don't see a 
difference.

Could somebody tell me what the message in my logfile means?

With kind regards,
Met vriendelijke groet,

Maurice Lucas
TAOS-IT 



More information about the rsync mailing list