BackupPC-users

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

2009-09-18 22:10:52
Subject: Re: [BackupPC-users] Error: Unable to connect to BackupPC server
From: Bruno Faria <brunothebigb AT gmail DOT com>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Fri, 18 Sep 2009 21:06:46 -0500
Hi guys,

Thanks for the reply higuita.

Holger, I edited line 297 on Lib.pm and here's the error that I got when I went to the web interface (we're getting closer :) ):
__________

Error: Unable to connect to BackupPC server
Socket: /var/log/BackupPC/BackupPC.sock
Error was: unix connect: Permission denied
__________

Now, I still find this weird as the permission on BackupPC.sock seems fine to me:

[root@backup3 CGI]# ls -la /var/log/BackupPC/ | grep BackupPC.sock
srwxr-x---  1 backuppc backuppc     0 Sep 17 04:01 BackupPC.sock

What should I do/check now?

Kind regards,
--Bruno


On Fri, Sep 18, 2009 at 8:27 PM, Holger Parplies <wbppc AT parplies DOT de> wrote:
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/

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