X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Matthias Meyer <Matthias.Meyer@gmx.li>
Subject:  RE: RSync random failures
Date:  Sun, 07 Dec 2008 22:22:29 +0100
Lines: 42
Message-ID:  <ghheqn$dep$1@ger.gmane.org>
References:  <99158.97760.qm@web56605.mail.re3.yahoo.com>,<gh1pt3$460$1@ger.gmane.org> <9BE596E8BDDC3443BF23B9678D03CC29263E9FA8@ECDS-CLT-MX1.ecdeliverysystems.com>
Reply-To: Matthias.Meyer@gmx.li
Mime-Version:  1.0
Content-Type:  text/plain; charset=us-ascii
Content-Transfer-Encoding:  7Bit
User-Agent: KNode/0.10.9
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Allan Schrum wrote:
> 
> Hi Matthias,
> 
> The problem is when rsync is not actively connected to a client. When
> started as a service, an instance of rsync is running listening for
> connections. When the connection occurs, the transfer takes place.
> Afterwards, the original instance remains still listening for connections.
> When running as a service waiting for a connection, something happens to
> it which causes it to fail and exit without cleaning up. This leaves a PID
> file which blocks all restart attempts. I then must manually clean up the
> PID file to allow the service to restart. Obviously, leaving the PID file
> should not take place which is the symptom of the true problem.
> 
> Something is causing rsync to fail without cleaning up the PID file.
> Sometimes it is a reboot (most often due to that). Sometimes during a
> transfer it will fail and not cleanup properly. I have not yet figured
> this out and was hoping others saw this as well.
> 
> I did notice that while debugging (with gdb) rsync that if I type Ctrl-C
> that the task stops without cleaning up. However, I'm not sure if that is
> due to how gdb works, or something else.
> 
> Again, this is with rsync-3.0.4-1. This cleanup problem did not exist with
> rsync-2.6.9-2. As a temporary solution, I am back to the older rsync on
> most of my machines until we get this current problem resolved.
> 
> Thanks,
> 
> -Allan

Hi Allen,

I didn't understand your problem.
You didn't need this PID file. Simply remove the line
pid file = xxxx
from your rsyncd.conf

br
Matthias
-- 
Don't panic


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

