Koozali.org: home of the SME Server

smeserver-backuppc.fws bug? Cannot access the web page.

Offline iltasu

  • **
  • 28
  • +0/-0
smeserver-backuppc.fws bug? Cannot access the web page.
« on: April 11, 2008, 02:11:58 PM »
Hello, some times ago, I've installed this contrib, it worked really well for a long time, but now (probably after the upgrade to sme 7.3, I can no more access the management page in server-manager, it asks for a username and password via the browser dialog, not relaying on the new php base mechanism, and after that it stays forever loading the page, it never manages to show me the admin page anymore, what could it be? is this a bug? Can I provide more informations in order to find a solution? (being without a backup makes me a bit worried!)

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: smeserver-backuppc.fws bug? Cannot access the web page.
« Reply #1 on: April 11, 2008, 02:16:41 PM »
Yes, some more info could help. I run this contrib on about 20 servers without problem, even with latest updates. Can you access the admin page with the url https://yourserver/backuppc (outside of the server-manager).
You should check the logs of apache:
Code: [Select]
tailf /var/log/httpd/error_log
You can also check the permissions on the cgi:

Code: [Select]
ll /opt/backuppc/cgi-bin/
-rwsr-x---  1 backuppc www 3993 avr 26  2007 BackupPC_Admin
C'est la fin du monde !!! :lol:

Offline iltasu

  • **
  • 28
  • +0/-0
Re: smeserver-backuppc.fws bug? Cannot access the web page.
« Reply #2 on: April 11, 2008, 02:23:13 PM »
Thanks for the prompt answer! ^_^

I cannot access https://servername/backuppc (that redirects to: https://192.168.131.3/backuppc/cgi-bin/BackupPC_Admin), after asking for username and password, it waits for a long time on a white page then it answers with this error:
Code: [Select]
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin@rokeposrl.local and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

The relevant part in the httpd logs is this:
Code: [Select]
[Fri Apr 11 13:55:32 2008] [error] [client 192.168.131.16] Premature end of script headers: BackupPC_Admin, referer: https://192.168.131.3/backuppc/
[Fri Apr 11 14:01:13 2008] [error] [client 192.168.131.16] Premature end of script headers: BackupPC_Admin, referer: https://192.168.131.3/backuppc/
[Fri Apr 11 14:03:25 2008] [error] [client 192.168.131.16] Premature end of script headers: BackupPC_Admin, referer: https://192.168.131.3/backuppc/
[Fri Apr 11 14:04:58 2008] [error] [client 192.168.131.16] AuthExtern pwauth [/usr/lib/httpd/modules/pwauth]: Failed (1) for user admin, referer: https://192.168.131.3/backuppc/
[Fri Apr 11 14:09:30 2008] [error] [client 192.168.131.16] Premature end of script headers: BackupPC_Admin, referer: https://192.168.131.3/backuppc/
[Fri Apr 11 14:10:02 2008] [error] [client 192.168.131.16] Premature end of script headers: BackupPC_Admin, referer: https://192.168.131.3/backuppc/

And this is the permission:
Code: [Select]
-rwsr-x---  1 backuppc www 3993 26 apr  2007 BackupPC_Admin

(The BackupPC_Admin part of the previuos string is red colored, don't know what it means!)

Thanks again! ^_^

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: smeserver-backuppc.fws bug? Cannot access the web page.
« Reply #3 on: April 11, 2008, 02:27:39 PM »
These error in apache logs are strange. Anyway, this line:

Code: [Select]
AuthExtern pwauth [/usr/lib/httpd/modules/pwauth]: Failed (1) for user admin, referer: https://192.168.131.3/backuppc/

Seems to indicates that your not entering the right password for admin user. Have you tried with a standard user?

I don't know where the problem comes from, but you can try to remove the contrib and install it again, it should keep all your configuration (and of course your data)
C'est la fin du monde !!! :lol:

Offline iltasu

  • **
  • 28
  • +0/-0
Re: smeserver-backuppc.fws bug? Cannot access the web page.
« Reply #4 on: April 11, 2008, 02:37:07 PM »
Ok, tried both the admin user and a normal user, both lead to the same result: white page then the error.
Already tried to uninstall the contrib and reinstall it... to make the cleanest things I can, I uninstalled the rpm, unmounted the /opt/backuppc (it's mounted via a nfs share), reinstalled backuppc, stopped via init.d the service, re-mounted the network share, then restarted the service.

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: smeserver-backuppc.fws bug? Cannot access the web page.
« Reply #5 on: April 11, 2008, 03:09:25 PM »
Ok, maybe the problem comes from the nfs share (I never tried backuppc on nfs), so maybe you can try the following:

- uninstall the contrib
- un-mount the share
- install the contrib locally (without anything mounted on /opt/backuppc)
- test if it works
C'est la fin du monde !!! :lol:

Offline iltasu

  • **
  • 28
  • +0/-0
Re: smeserver-backuppc.fws bug? Cannot access the web page.
« Reply #6 on: April 11, 2008, 03:16:11 PM »
Indeed it works, but I used this network share for more than one year.. I can't understand what's changed... (And I cannot copy the backups to the same disk where the sme server is installed, I have not enough space there for both datas and backups... and I don't feel ok sharing the same disk between actual datas and backups).