BackupPC-users

Re: [BackupPC-users] Error: Unable to connect to BackupPC server

2009-09-18 21:32:22
Subject: Re: [BackupPC-users] Error: Unable to connect to BackupPC server
From: Holger Parplies <wbppc AT parplies DOT de>
To: higuita <higuita AT GMX DOT net>
Date: Sat, 19 Sep 2009 03:27:30 +0200
Hi,

higuita wrote on 2009-09-18 22:28:46 +0100 [Re: [BackupPC-users] Error: Unable 
to connect to BackupPC server]:
> Hi 
> 
> On Fri, 18 Sep 2009 13:53:42 -0500, Bruno Faria <brunothebigb AT gmail DOT 
> com> wrote:
> > How can I check to see where apache is looking for the socket file?
> 
>       You can strace -fefile -p (pid of the backuppc -d) for debugginh
>       the backuppc side (i'm assuming a linux machine)
> 
>       For the apache side, you can start it in single thread mode with
>       the -X option... with it, you can gdb or strace the apache and
>       requests.

err, no. Not even maybe. You edit BackupPC/CGI/Lib.pm and change line 297 ...

-            
ErrorExit(eval("qq{$Lang->{Unable_to_connect_to_BackupPC_server}}"));
+            ErrorExit(eval("qq{$Lang->{Unable_to_connect_to_BackupPC_server}}")
+                      . "<br>Socket: $bpc->{LogDir}/BackupPC.sock<br>"
+                      . "Error was: $err<br>");

(possibly add the same text to $content in line 292). Then you look at the web
page. But I'd be surprised if the result was anything other than
/var/log/BackupPC/BackupPC.sock (but the error might be interesting).

[Line numbers are for 3.2.0beta0/3.1.0 and differ for other versions.]

>       here is a good apache debugging resource:

[OT]
Aside from that, I totally agree on your remark about quoting practises from
August 27th, but I find *your* quoting style confusing, too, because your
replies tend to be more indented than the quotes they refer to. Sure, there's
no (or less) quotation in front, but that's not what catches the eye
(especially when quoted, like above).
[/OT]

Hope that helps.

Regards,
Holger

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
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/