Hi Craig,

Thank you very much for your reply.

I checked the premissions on /var/log/BackupPC/BackupPC.sock and they seem
fine:

[r...@backup3 BackupPC]# ls -la | grep BackupPC.sock
srwxr-x---  1 backuppc backuppc     0 Sep 17 04:01 BackupPC.sock

Apache is running with user backuppc and group apache, so it shouldn't have
any issues reading BackupPC.sock. Now, this leaves me with the option that
apache is looking on the wrong place for the socket file.

How can I check to see where apache is looking for the socket file?

Kind regards,
--Bruno

On Thu, Sep 17, 2009 at 5:20 PM, Craig Barratt <
[email protected]> wrote:

> Bruno,
>
> The communication with the BackupPC server happens via a unix-domain
> socket.  That's a special file that allows the server (BackupPC) to
> listen to connections from clients (eg: CGI via apache/BackupPC_admin
> or BackupPC_serverMesg or BackupPC_dump).
>
> In non-FHS installations the socket is located at TOPDIR/log/BackupPC.sock.
> In FHS installation it should be at /var/log/BackupPC/BackupPC.sock.
>
> The fact that backups are working means that programs started by
> BackupPC (eg: BackupPC_dump) can in fact connect to the server.
>
> So apache either is looking in the wrong place for the socket file
> (eg, if you had an old or second BackupPC install with different paths)
> or it no longer has permissions to read the socket (eg: it isn't
> running as the BackupPC user).
>
> You can also configure BackupPC to use a TCP socket (typically when
> the BackupPC server and apache are on different hosts).  That involves
> setting $Conf{ServerPort}, $Conf{ServerMesgSecret} and $Conf{ServerHost}.
> If that works, then your problem might not be completely solved since
> you could still have a permission or config problem (meaning you won't
> be able to access backup history and files using the CGI interface).
>
> Craig
>
------------------------------------------------------------------------------
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
[email protected]
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to