BackupPC-users

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

2010-04-14 08:45:09
Subject: Re: [BackupPC-users] Installation problems: BackupPC_serverMesg hangs
From: Bruce <bruce AT sqls DOT net>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Wed, 14 Apr 2010 07:42:47 -0500
Any other ideas, tests, or debugging I could try?

Is there a way to check rather the backuppc daemon is listening on the 
right ports?  Is there a way to debug the FDread variable and see if vec 
is correctly adding up all the input sources? 

Bruce wrote:
> (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/
>   


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