delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/03/12/14:11:30

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL,BAYES_05
X-Spam-Check-By: sourceware.org
Message-Id: <201003121900.o2CJ0XgO008714@spam.trcww.com>
Date: Fri, 12 Mar 2010 13:10:55 -0600
From: lists AT trcintl DOT com
Subject: Rsync randomly hanging until implementing socketpair solution
To: cygwin AT cygwin DOT com
X-TRC-MailScanner-Information: Please contact the ISP for more information
X-TRC-MailScanner-ID: o2CJ0XgO008714
X-TRC-MailScanner: Found to be clean
X-TRC-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=0, required 5.75, autolearn=not spam)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

I have been using rsync with cygwin for years to synchronize several relatively large data sets at several different locations.  When I 
upgraded to the cygwin 1.7 version a while back, I began noticing a random problem with rsync hanging.  It would not do it in the same 
place, but it seemed to be more prone to hang on certain data sets.  The only thing different about the data set it seems to hang on is 
that this particular data set has a great deal of subdirectories with a large number of files in them and many of the files are very 
small in size.  To make sure rsync was actually hung up, I even let it run for an entire weekend just to make sure it never came back to 
life and it did not.  By the way, I also have the timeout option set in rsync and it makes no difference.  Anyway, after doing some 
research on the problem, I discovered others have seen this issue as well.  Here are a few posts I recently ran into regarding this:

http://marc-abramowitz.com/archives/2007/10/14/solving-rsync-hangs-with-cygwin/#comment-299686
http://cygwin.com/ml/cygwin/2010-02/msg00700.html
http://www.itefix.no/i2/node/12210

The possible solution involves recompiling rsync (v3.0.7 by the way) with socketpairs turned off.  The good folks at http://www.itefix.no/ 
have a version of rsync with this modification already made and I decided to give it a try.  I want to report that this has completely 
solved my problem.  Since applying the fix, I have had no more hang-ups. 

I thought I would report this in case others run into this problem.  Thank you.

- Kyle

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019