On Wed, Jan 20, 2010 at 09:22:40AM +0000, Brian O'Mahony wrote:
> I have been running about eight cron'd rsynchs from a server in Bangalore to a server in Dublin daily for the last number of years, successfully. Recently however something strange has started to happen.
>> The synchs all fire off at the same time basically. The first synch of each time fails, as follows:
>>> spawn /usr/bin/rsync -av -e ssh --delete --bwlimit=0 buzz:/cvs/AppDev/ /cvs/AppDev/
>> ssh_exchange_identification: Connection closed by remote host rsync: connection unexpectedly closed (0 bytes read so far) rsync error: error in rsync protocol data stream (code 12) at io.c(165)
>> send: spawn id exp3 not open
>> while executing
>> "send "<password>\r""
>> (file "/root/cvssync" line 6)
>>>> The next cronjob email I get, which is twelve seconds later, completes. If I run it manually it completes. If I change the first cronjob in the list, that is the one that fails.
>> Anyone have any ideas?
try changing the starting command line to provide a little more detail
spawn /usr/bin/rsync -av -e "ssh -vvv" --delete --bwlimit=0
and compare the output at the start between the working and failing
connections until the ssh process completes the connection.
"Nothing is foolproof to a sufficiently talented fool."
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!