[Cialug] rsync + SSH locking up?

Bailey, Jonathan C bailj0 at bp.com
Fri Nov 18 10:33:30 CST 2005


I've seen the issue happen once in a while on a LAN, but mostly over
cable modem.

ISPs with the issue:
Mediacom
Comcast
Marshallnet (server is at Marshallnet) 

I'm at a loss at the moment for this one.. It happens internally - no
errors or anything else. I'll try your loop and see if that helps.


Jon

-----Original Message-----
From: cialug-bounces at cialug.org [mailto:cialug-bounces at cialug.org] On
Behalf Of Kendall Bailey
Sent: Friday, November 18, 2005 10:24 AM
To: Central Iowa Linux Users Group
Subject: Re: [Cialug] rsync + SSH locking up?

I use mediacom cable internet, and long transfers of any kind often
hang.  I don't think rsync+ssh is any less reliable than wget in my
experience, and I use both quite a bit.  With rsync, I use a loop and
set a timeout and keep trying until it succeeds, like so

while true ; do
   rsync --timeout=45 --rsh=ssh -avz <source> <dest>
   if [ $? -eq 0 ] ; then break ; fi
done

I set up an ssh-agent and use public key auth so that a password isn't
needed each time through the loop.

For simple wget, I use something like

wget -c --read-timeout=45 <url>

If something hangs for several seconds, it's been my experience that it
does not recover.  I have no idea what to blame, my box, mediacom, some
intermediate router(s) or what?  I can tranfer gigs around my home
network with no problems, using rsync+ssh.

Can you give more detail?  Are you having trouble on a LAN or across the
internet?

Kendall


On 11/17/05, Bailey, Jonathan C <bailj0 at bp.com> wrote:
>
>
> Has anyone on the list ever had an issue with rsync + SSH where the 
> connection hangs after about an hour of transfer? I've seen this issue

> on different boxes and different configs (all debian-based). Is this 
> some sort of SSH setting or something else?
>
>
>
> ------------------------------
> Server (n.),
>    1. Large, extremely expensive machine that goes "Ping!". Measuring 
> at least 25 cubic feet, heavy, bulky and giving of more heat then a 
> nuclear power plant. It's big, it's bad, it's beautiful and makes it 
> pretty obvious what happened to this year's IT-budget.
>
> Jonathan C Bailey | Elite Customer Solutions USA | Customer Care - POS

> |
> (888) BP-HELP-U | (630) 300-5301 x5301 | 150 W Warrenville Rd, MC 
> 200-1011T, Naperville, IL 
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org
> http://cialug.org/mailman/listinfo/cialug
>
>
>



More information about the Cialug mailing list