BackupPC-users

Re: [BackupPC-users] Installation problems: BackupPC_serverMesg hangs

2009-08-27 14:38:13
Subject: Re: [BackupPC-users] Installation problems: BackupPC_serverMesg hangs
From: Les Mikesell <lesmikesell AT gmail DOT com>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Thu, 27 Aug 2009 13:34:35 -0500
Christoph wrote:
> Dear Craig,
> 
>> It turns out the code always tries the unix
>> domain socket first. 
> 
> I used the "bogus name for the sockFile" method, hence:
>         my $sockFile = "$bpc->{LogDir}/BackupPC.sockNot";
> 
> Now BackupPC obviously uses tcp, because after launching the 
> BackupPC_serverMesg command, netstat shows:
> tcp        0      0 nslu2.:2359             nslu2.:41584        ESTABLISHED
> tcp        0      0 nslu2.:41584            nslu2.:2359         ESTABLISHED
> 
> But then the execution hangs at the same line as before:
> BackupPC::Lib::ServerConnect(/mnt/usbstick/usr/local/BackupPC/lib/BackupPC/Lib.pm:698):
> 698:        sysread($bpc->{ServerFD}, $bpc->{ServerSeed}, 1024);
> 
> strace shows that again the execution hangs when trying to make the read() 
> system call:
> read(3,
> 
> So it seems that the problem is the same with the tcp connection as with the 
> unix socket.
> 
> Do you have any further idea what the problem could be?
> 
> Does anybody know why the read() system call might hang?

read() would hang until there is some data for it to return... Try an 
'strace -p' on the listening server process (in a different window) to 
see if it is getting the message and responding on it's side of the socket.

-- 
   Les Mikesell
    lesmikesell AT gmail DOT com

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/