LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Trouble with BackupPC configuration/setup - issues with config.pl (https://www.linuxquestions.org/questions/linux-server-73/trouble-with-backuppc-configuration-setup-issues-with-config-pl-618357/)

bunadm 02-03-2008 08:10 AM

Trouble with BackupPC configuration/setup - issues with config.pl
 
Hi all,

I am running:

Suse 10.3 - 2.6.22-16-0.1-default
BackupPC 3.1.0

When I access http://172.18.10.203/cgi-bin/BackupPC_Admin

I get the following error on the page.

Error: Unable to read config.pl or language strings!!

Note: $ENV{REMOTE_USER} is not set, which could mean there is an installation problem. BackupPC_Admin expects Apache to authenticate the user and pass their user name into this script as the REMOTE_USER environment variable. See the documentation.


I searched through /etc/backupPC/config.pl and I see no options for $ENV{REMOTE_USER}


I do have the following set:

$Conf{CgiAdminUserGroup} = 'users'; <--(I tried Backup too, but no diff)
$Conf{CgiAdminUsers} = 'fuentej';


Any ideas?

Thanks!

JimBass 02-03-2008 09:52 AM

BackupPC should be run as its own user and group. You're now trying to run it as a user who doesn't have the correct read/write permissions for the directories it is installed in.

You've mucked this up pretty badly. I strongly suggest you completely uninstall BackupPC, then reinstall it, and don't touch anything. The only changes you really need to make are the ones to configure how each machine is backed up.

Are you installing from source? That would be the only reason to have to edit so much. For your level of comfort, I suggest you use your package manager, which I think is Yast or something like it for Suse. That will give you an immediately functional install.

Peace,
JimBass

bunadm 02-03-2008 10:00 AM

Being that I installed from source, all i should have to do is go delete all the directories, correct?

I searched with YAST, but nothing came up... Is there a repo for it somewhere? I have the standard repos setup, OSS, non-OSS, update... All I have ever seen available is the tar.gz package?

thanks!

JimBass 02-03-2008 11:59 AM

It's fine to do it from source, but no offense, it doesn't seem that you're quite comfortable for a source install.

I don't use Suse, but BackupPC is fully OSS, and I believe Suse has an installer for it. Search here or google for backuppc and Suse, I guarantee it is able to be installed through whatever the Suse package manager is.

Peace,
JimBass

bunadm 02-06-2008 07:44 PM

Well, No luck finding an RPM or repo for backupPC for Suse.

Im quite comfortable installing from source... Most of my problem surrounded configuring apache.

I deleted all the directories it had created, recompiled it and did not touch anything.

I now get this error:

SERVER ERROR:

Premature end of script headers: BackupPC_Admin

error 500

JimBass 02-06-2008 08:05 PM

That comes as a shock to me. I wonder why nobody has packaged it up for Suse? Oh well. Here's a link to a good guide for getting it to work under Suse.

http://www.pcc-services.com/sles/backuppc2.html

Peace,
JimBass

bunadm 02-06-2008 08:12 PM

OK, Whoops I forgot to start the service!...

But when I try...

CSRBAKUP01:/home/fuentej # /etc/init.d/suse-backuppc start
Starting backuppc: ok.
CSRBAKUP01:/home/fuentej # 2008-02-06 21:03:19 Can't create a test hardlink between a file in /data/BackupPC/pc and /data/BackupPC/cpool. Either these are different file systems, or this file system doesn't support hardlinks, or these directories don't exist, or there is a permissions problem, or the file system is out of inodes or full. Use df, df -i, and ls -ld to check each of these possibilities. Quitting...
df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 7224600 2737560 4119956 40% /
udev 387696 84 387612 1% /dev
/dev/sda1 101086 15485 80382 17% /boot
/dev/sda5 105280504 192908 99739560 1% /srv
CSRBAKUP01:/home/fuentej # df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sda2 919296 161693 757603 18% /
udev 96924 1297 95627 2% /dev
/dev/sda1 26104 41 26063 1% /boot
/dev/sda5 13385728 166 13385562 1% /srv
CSRBAKUP01:/home/fuentej # ls -ld /data/BackupPC/
drwxr-x--- 6 backuppc Backup 4096 2008-02-06 20:40 /data/BackupPC/
CSRBAKUP01:/home/fuentej # ls -ld /data/BackupPC/pc
drwxr-x--- 2 backuppc Backup 4096 2008-02-06 20:40 /data/BackupPC/pc
CSRBAKUP01:/home/fuentej # ls -ld /data/BackupPC/cpool/
drwxr-x--- 2 backuppc Backup 4096 2008-02-06 20:40 /data/BackupPC/cpool/
CSRBAKUP01:/home/fuentej #

bunadm 02-06-2008 08:23 PM

Ok, I posted before I saw your response, that does look to be a good guide..

Ill go through that from the start again.

Thanks!

bunadm 02-06-2008 10:00 PM

Great guide!! Its a must have for the Suse install.. he has a custom init script that you have to have for Suse.

I already have the interface up and running... Now to configure clients.

I think I'm good from here... off to other projects.

Thanks!

turisten 04-03-2008 12:27 AM

The guide did not help me.
 
I'm stuck at the error:

Can't create a test hardlink between a file in /data/BackupPC/pc and /data/BackupPC/cpool. Either these are different file systems, or this file system doesn't support hardlinks, or these directories don't exist, or there is a permissions problem, or the file system is out of inodes or full. Use df, df -i, and ls -ld to check each of these possibilities. Quitting...

There is enough space on the disk.
Links already exists in system, so it should not be a problem.
I'm on Fedora6. Have tried the rpm package as well. Can't get it to work.

Some one have an idea?

JimBass 04-03-2008 04:41 PM

First off, this should be a new post, as your question has absolutely nothing to do with the previous questions in the thread.

The error you have tells you exactly what the problem is. You can't create hardlinks, most likely because /data/BackupPC is on an external disk/SAN and it doesn't have a proper format for linux.

If I'm wrong, start your own thread.

Peace,
JimBass

somebody7 04-08-2008 09:16 PM

I had this same issue. "Error: Unable to read config.pl or language strings!!" Not sure if this will solve your issue but I made sure that the httpd.conf username/password was backuppc.

Also, be sure that the config file under /etc/Backuppc is owned by backuppcc.

mircea.dragota 06-12-2008 04:47 AM

chmod 755 on /data solved that on my box and BackupPC started


All times are GMT -5. The time now is 03:26 AM.