BackupPC-users

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

2009-08-26 15:01:50
Subject: Re: [BackupPC-users] Installation problems: BackupPC_serverMesg hangs
From: Christoph <chrdr AT gmx DOT at>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Wed, 26 Aug 2009 20:57:02 +0200
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?

Christoph

------------------------------------------------------------------------------
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/