Re: rsync w/ openssh hangs on linux

2002-01-07 Thread Dave Dykstra

Wow, that's a new one.  It's quite surprising that that would cause the
symptoms you described, but I think I can imagine how.  The remote end
would ignore the -e ssh, but it's possible that the -ax could result in
different information being passed back and forth after the large file is
sent if the sender didn't specify the same options.  The rsync protocol is
optimized to send the minimum amount of data back and forth and as a result
it assumes that both sides know exactly where the other is in the exchange,
and if even one byte gets out of sync it can be hopelessly confused.

In general it's almost always a bad idea for a remote shell to do anything
in a user startup script.

- Dave


On Fri, Jan 04, 2002 at 02:59:15PM -0800, J Robinson wrote:
 Hello Everyone
 I was able to track this problem down --
 I had a tcsh 'alias' on the remote side that expanded
 'rsync' to 'rsync -e ssh -ax', and that seems to have
 been the cause of the symptoms I describe below (which
 only occurred with certain files).  
 Thanks to all for their help!
 jrobinson
 
  On Fri, Jan 04, 2002 at 11:29:13AM -0800, J Robinson
  wrote:
   Hello All:
   
   I've having repeatable problems copying files between
   linux machines using rsync-2.5.1 and various recent 
   flavors of openssh.  The symptom when testing with a
   single 2M file is that rsync hangs when when the file
   is 97% transferred.  
 
 __
 Do You Yahoo!?
 Send your FREE holiday greetings online!
 http://greetings.yahoo.com




rsync w/ openssh hangs on linux

2002-01-04 Thread J Robinson

Hello All:

I've having repeatable problems copying files between
linux machines using rsync-2.5.1 and various recent 
flavors of openssh.  The symptom when testing with a
single 2M file is that rsync hangs when when the file
is 97% transferred.  

It seems from looking at various archives that this
problem may be non-trivial.  I tried applying the
patch at 
http://www.clari.net/~wayne/rsync-nohang.patch to
rsync-2.5.1, (even though it's for 2.5.0) but it
didn't seem to make things any better.

I'm wondering if there are any tips to get around this
problem or ???

Thanks!
jrobinson

__
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com




Re: rsync w/ openssh hangs on linux

2002-01-04 Thread Dave Dykstra

On Fri, Jan 04, 2002 at 11:29:13AM -0800, J Robinson wrote:
 Hello All:
 
 I've having repeatable problems copying files between
 linux machines using rsync-2.5.1 and various recent 
 flavors of openssh.  The symptom when testing with a
 single 2M file is that rsync hangs when when the file
 is 97% transferred.  
 
 It seems from looking at various archives that this
 problem may be non-trivial.  I tried applying the
 patch at 
 http://www.clari.net/~wayne/rsync-nohang.patch to
 rsync-2.5.1, (even though it's for 2.5.0) but it
 didn't seem to make things any better.
 
 I'm wondering if there are any tips to get around this
 problem or ???


I don't believe anybody else has reported a problem quite like that
lately.  First, give us the output of netstat -a on both sides for the
relevant connection so we can see if there is data in a send queue
somewhere that's not being sent; that could indicate a TCP implementation
problem which rsync has a great tendency to expose because of the way it
stresses TCP.  Please try to give us as much information as you can so
somebody else could possibly repeat it, including exact versions of all
software involved on both sides, the speed of your network, and the exact
command you're using.

- Dave Dykstra




Re: rsync w/ openssh hangs on linux

2002-01-04 Thread Eric Whiting

It seems similar to Ed Santiago's problem.
http://lists.samba.org/pipermail/rsync/2001-December/005511.html

This also seems similar to what I reported last month.
http://lists.samba.org/pipermail/rsync/2001-December/005628.html

I had to go back to 2.4.6dev+waynenohang. That works for me.

I run solaris/linux hosts.

I'll try 2.5.1 again, but I'm pretty sure there is still a timing/IPC
issue.

eric



Dave Dykstra wrote:
 
 On Fri, Jan 04, 2002 at 11:29:13AM -0800, J Robinson wrote:
  Hello All:
 
  I've having repeatable problems copying files between
  linux machines using rsync-2.5.1 and various recent
  flavors of openssh.  The symptom when testing with a
  single 2M file is that rsync hangs when when the file
  is 97% transferred.
 
  It seems from looking at various archives that this
  problem may be non-trivial.  I tried applying the
  patch at
  http://www.clari.net/~wayne/rsync-nohang.patch to
  rsync-2.5.1, (even though it's for 2.5.0) but it
  didn't seem to make things any better.
 
  I'm wondering if there are any tips to get around this
  problem or ???
 
 I don't believe anybody else has reported a problem quite like that
 lately.  First, give us the output of netstat -a on both sides for the
 relevant connection so we can see if there is data in a send queue
 somewhere that's not being sent; that could indicate a TCP implementation
 problem which rsync has a great tendency to expose because of the way it
 stresses TCP.  Please try to give us as much information as you can so
 somebody else could possibly repeat it, including exact versions of all
 software involved on both sides, the speed of your network, and the exact
 command you're using.
 
 - Dave Dykstra




Re: rsync w/ openssh hangs on linux

2002-01-04 Thread Martin Pool

On  4 Jan 2002, Dave Dykstra [EMAIL PROTECTED] wrote:
 Well I don't see anything in the send queues so that's not likely to be the
 problem.  It doesn't seem likely that anybody else would be able to easily
 reproduce your setup.  I suspect your Internet Sharing setup since you have
 also experienced web sites stalling.

PPPOE in combination with masquerading often causes problems to do
with packet MTU with similar symptoms: heavily used connections hang
during transfers.  I don't know if this would be a problem with
WinPOET.

You could try 

  # ifconfig eth0 mtu 1200

on the firewalled Linux box.

--
Martin