Koozali.org: home of the SME Server

Backuppc Installation Problem

Offline WayneJVM

  • **
  • 22
  • +0/-0
Backuppc Installation Problem
« on: January 26, 2009, 06:14:35 PM »
After following the instructions posted by Daniel about how to install backuppc.fws-3.0 multiple times over a couple of days on clean installations of SME 7.4 on a test server. I have had no luck in getting the contrib to run.

As recommended, I am using the USBManager to mount an external USB drive to /opt/backuppc. This works fine. Installed the contrib as instructed on a clean build of 7.4 (http://sme.firewall-services.com/spip.php?article44).

When I try to access backuppc from http://yourserver/backuppc or from the server-manager panel I get an error 500 Internal server error with the following message from the httpd server:

[Mon Jan 26 10:02:43 2009] [error] [client 192.168.0.67] Setuid script "/opt/backuppc/cgi-bin/BackupPC_Admin" on nosuid filesystem.
[Mon Jan 26 10:02:43 2009] [error] [client 192.168.0.67] Premature end of script headers: BackupPC_Admin

Any ideas?

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Backuppc Installation Problem
« Reply #1 on: January 26, 2009, 09:05:24 PM »
hi

could you please tell us how did you format the external disk?

and please, post the result of
Code: [Select]
mount

(naturally with external disk mounted)

Thank you
Ciao
Stefano

Offline WayneJVM

  • **
  • 22
  • +0/-0
Re: Backuppc Installation Problem
« Reply #2 on: January 26, 2009, 09:13:09 PM »
It's actually a ext3 drive that I formated some time ago on another SME 7.3 server. I don't recall the exact process that I used. I'll reformat the drive and get back with you. Is there anything that I should keep in mind for the format?

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Backuppc Installation Problem
« Reply #3 on: January 26, 2009, 09:17:18 PM »
It's actually a ext3 drive that I formated some time ago on another SME 7.3 server. I don't recall the exact process that I used. I'll reformat the drive and get back with you. Is there anything that I should keep in mind for the format?

ext3 should work..

anyway, you did not answer my request :-)

in your next post, please write also the output of
Code: [Select]
cat /etc/fstab

Ciao
Stefano

Offline WayneJVM

  • **
  • 22
  • +0/-0
Re: Backuppc Installation Problem
« Reply #4 on: January 27, 2009, 07:16:06 AM »
cat /etc/fstab:

/dev/main/root          /                       ext3    usrquota,grpquota        1 1
/dev/md1                /boot                   ext3    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /dev/shm                tmpfs   defaults        0 0
none                    /proc                   proc    defaults        0 0
none                    /sys                    sysfs   defaults        0 0
/dev/main/swap          swap                    swap    defaults        0 0
/dev/hdb                /media/cdrecorder       auto    pamconsole,exec,noauto,managed 0 0
/dev/fd0                /media/floppy           auto    pamconsole,exec,noauto,managed 0 0

the mount comand:
/dev/mapper/main-root on / type ext3 (rw,usrquota,grpquota)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/md1 on /boot type ext3 (rw)
none on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/dev/sda1 on /opt/backuppc type ext3 (rw,nosuid,nodev)

I believe the nosuid is the problem but don't know how to correct it.

Thanks!

Offline WayneJVM

  • **
  • 22
  • +0/-0
Re: Backuppc Installation Problem
« Reply #5 on: January 30, 2009, 02:57:10 AM »
Anybody have any ideas? I'm still at a loss.

Thanks!

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: Backuppc Installation Problem
« Reply #6 on: January 30, 2009, 09:01:32 AM »
Hi. I'm not sure what options are used with the contrib USB manager. Juste try to mount this disk manually (unmount it first with the USB manager contrib, then, on the command line:
Code: [Select]
mount /dev/sda1 /opt/backuppc
C'est la fin du monde !!! :lol:

Offline WayneJVM

  • **
  • 22
  • +0/-0
Re: Backuppc Installation Problem
« Reply #7 on: February 01, 2009, 09:13:30 PM »
Progress...

mounting the USB drive by hand seems to have helped in one regard, I am no longer getting the Internal Server error. However, (you knew this was coming) I am now getting "Error: Unable to connect to BackupPC server". Perhaps a permissions issue? I have tried logging in as admin and backuppc users. Both receive the same error.

Ideas?

Thanks!

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: Backuppc Installation Problem
« Reply #8 on: February 01, 2009, 09:20:56 PM »
This just means that backuppc is not started.
Code: [Select]
/etc/init.d/backuppc startwill stat it. The service should be started automatically on boot next time. I'd suggest you dont use the USB Manager contrib to mount this drive, and instead, add a line like this in /etc/fstab:
Code: [Select]
/dev/sda1    /opt/backuppc     ext3    noatime 0 0
(or if you can change the mount options with the USB Manager contrib, just remove the nosuid)
C'est la fin du monde !!! :lol:

Offline WayneJVM

  • **
  • 22
  • +0/-0
Re: Backuppc Installation Problem
« Reply #9 on: February 01, 2009, 09:29:09 PM »
That did the trick! Thanks.

The USB manager contrib seems to have been the root of this problem. Users should NOT use the USB Manager to mount a drive for use with Backuppc.

Offline chris burnat

  • *****
  • 1,135
  • +2/-0
    • http://www.burnat.com
Re: Backuppc Installation Problem
« Reply #10 on: February 01, 2009, 10:08:08 PM »
The USB manager contrib seems to have been the root of this problem. Users should NOT use the USB Manager to mount a drive for use with Backuppc.

Please let the author of the contrib know about this.  The best place to do this is the Bugtracker, there is an entry for smeserver-usbdiskmanager in the contribution section.  Ib this way it will either be fixed or documented.  Thanks.
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.