Apache won't start after upgrade

MeneM

Active Member
Dec 21, 2008
20
0
41
Hi All,

I'm having some issues after just upgrading:
Restarting web server: apache2Syntax error on line 20 of /etc/apache2/sites-enabled/pve.conf:
DocumentRoot must be a directory

I've tried running "pveversion".. But it's gone these days?
There's also no /usr/share/pve-manager folder anymore. Totally gone?

Linux ds9 2.6.32-4-pve #1 SMP Mon May 9 12:59:57 CEST 2011 x86_64 GNU/Linux

I've tried on two different machines, both where fine before the upgrade, and broke afterwards... Copying the pve-manager folder from a third host did not help as perl started complaining:

Can't locate PVE/SafeSyslog.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl . /etc/apache2) at /usr/share/pve-manager/root/startup.pl line 5.\nBEGIN failed--compilation aborted at /usr/share/pve-manager/root/startup.pl line 5.\nCompilation failed in require at (eval 2) line 1.\n
[Wed May 18 22:21:53 2011] [error] Can't load Perl file: /usr/share/pve-manager/root/startup.pl for server localhost:0, exiting...

I've upgraded to "http://pve.proxmox.com/wiki/Proxmox_VE_News#New_vzctl_and_dab.2C_updated_appliances" There was also a new kernel and pve-manager packages available.

Any idea's would be apreciated.
 
Found it!

I was installing ssmtp together with the upgrade. Aparently I cannot use ssmtp only postfix. or pve-manager will be removed during the upgrade.
 
I also lost /usr/share/pve-manager
I restored it (on Debian) with:
apt-get install pve-manager

Uninstalling postfix also uninstalls pve-manager.
Try this:
apt-get remove postfix
...
The following packages will be REMOVED:
postfix pve-manager

What does postfix have to do with pve-manager?
 
That's funny... I did this exact same thing too once. I was struggling trying to get notification emails (backup confirmations, SMART Hard Disk data, etc.) sent to my Gmail account and decided to install ssmtp. Luckily, I was at version 1.7 of Proxmox, and I could do an in-place 1.8 upgrade... this fixed my Apache errors.