BackupPC-users

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

2010-04-12 16:41:01
Subject: Re: [BackupPC-users] Installation problems: BackupPC_serverMesg hangs
From: Bruce <bruce AT sqls DOT net>
To: Craig Barratt <cbarratt AT users.sourceforge DOT net>
Date: Mon, 12 Apr 2010 15:39:04 -0500
(sending again.. to include the mailing list)

Craig, thanks for the response!

I have already tested with unix-domain sockets and TCP.  I disabled the 
sockets when testing the TCP connection in a method similar to what 
you've posted.

I get the same results either way.

Craig Barratt wrote:
> Bruce,
>
>   
>> BackupPC_serverMesg status info
>>
>> The command just hangs. The strace information I provided shows that 
>> it's hanging when trying to read input from the backuppc daemon.
>>     
>
> By default the BackupPC programs use a unix-domain socket to
> communicate with the BackupPC server.  Perhaps the unix-domain
> socket is broken on this system?
>
> You can use a TCP socket instead by setting $Conf{ServerPort} to
> an available port number (typically > 1024).  You should also
> set $Conf{ServerMesgSecret}.
>
> However, the code always tries to connet using the unix domain
> socket first, so you need to disable that part of the code.  Look
> in lib/BackupPC/Lib.pm, and in the function ServerConnect(),
> replace this code:
>
>     #
>     # First try the unix-domain socket
>     #
>     my $sockFile = "$bpc->{LogDir}/BackupPC.sock";
>     socket(*FH, PF_UNIX, SOCK_STREAM, 0)     || return "unix socket: $!";
>     if ( !connect(*FH, sockaddr_un($sockFile)) ) {
>
> with
>
>     #
>     # First try the unix-domain socket
>     #
>     my $sockFile = "$bpc->{LogDir}/BackupPC.sock";
>     #socket(*FH, PF_UNIX, SOCK_STREAM, 0)     || return "unix socket: $!";
>     if ( 1 ) {
>
> You will need to restart BackupPC after making these changes.
>
> Craig
>   


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
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/