Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Backuppc - webinterface [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
upengan78
l33t
l33t


Joined: 27 Jun 2007
Posts: 675
Location: IL

PostPosted: Tue Feb 15, 2011 8:54 pm    Post subject: Backuppc - webinterface [SOLVED] Reply with quote

Greetings,

I see lot of old threads from people who had issues getting webinterface to work for backuppc. I am having similar issue and don't know what to do.

Here is there error when I access :http://localhost/cgi-bin/BackupPC_Admin

Code:
Error: Wrong user: my userid is 81, instead of 119(backuppc)

This script needs to run as the user specified in $Conf{BackupPCUser}, which is set to backuppc.

This is an installation problem. If you are using mod_perl then it appears that Apache is not running as user backuppc. If you are not using mod_perl, then most like setuid is not working properly on BackupPC_Admin. Check the permissions on /usr/share/webapps/backuppc/2.1.2-r1/hostroot/cgi-bin//BackupPC_Admin and look at the documentation.


If I change $Conf{BackupPCUser} to apache then I get a different error :

Error: Unable to connect to BackupPC server

I must mention one more problem using apache in config.pl is that I can't start backuppc service :
Code:
/etc/init.d/backuppc restart
 * Restarting BackupPC ...
 * Stopping BackupPC ...                                                                                                                              [ ok ]
 * Starting BackupPC ...
Wrong user: my userid is 119, instead of 81 (apache)
BackupPC::Lib->new failed                                                                                                                             [ !! ]
 * Failed to restart BackupPC   


This looks similar issue as some might have seen while installing mailman (with-cgi username)..

How can I resolve this one?

[I] app-backup/backuppc
Code:
     Available versions:  (2.1.2-r1) 2.1.2-r1
   {doc samba vhosts}
     Installed versions:  2.1.2-r1(2.1.2-r1)(14:06:40 02/15/11)(-doc -samba -vhosts)



Thanks,


Last edited by upengan78 on Tue Feb 15, 2011 11:53 pm; edited 1 time in total
Back to top
View user's profile Send private message
gerdesj
Guru
Guru


Joined: 29 Sep 2005
Posts: 552
Location: Yeovil, Somerset, UK

PostPosted: Tue Feb 15, 2011 11:42 pm    Post subject: Re: Backuppc - webinterface Reply with quote

If backuppc is the only webapp then you could switch apache to run as the backuppc user.

I don't think Apache can be easily run multiple times like MySQL or OpenVPN, so you could run another webserver just for backuppc if you needed to and then proxy it in apache to integrate it into the central webspace. Bit of overkill but it will get the job done.

Have you done as the error suggests and read the docs?

Quote:

This is an installation problem. If you are using mod_perl then it appears that Apache is not running as user backuppc. If you are not using mod_perl, then most like setuid is not working properly on BackupPC_Admin. Check the permissions on /usr/share/webapps/backuppc/2.1.2-r1/hostroot/cgi-bin//BackupPC_Admin and look at the documentation.


Cheers
Jon
Back to top
View user's profile Send private message
upengan78
l33t
l33t


Joined: 27 Jun 2007
Posts: 675
Location: IL

PostPosted: Tue Feb 15, 2011 11:48 pm    Post subject: Reply with quote

Thanks for helping. I am thinking this is some sort of gentoo bug about setuid or permissions . This should work by default. I wasn't using mod_perl so setuid part looked related to my issue but I think gentoo installer should take care of setuid or perms like it does for other web apps.

I have moved to version 3.2.0-r1 from backup layman. This version installs its own backup as well backuppc-apache2 script with a /etc/backup/httpd.conf to run at port 80. I changed this port to 81 so that I can run existing apache2 at 80.

Everything in the web interface is working fine now.

Thanks to https://bugs.gentoo.org/show_bug.cgi?id=287133#c74

Thank you.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum