Web Management : Internal Server Error

maxprox

Renowned Member
Aug 23, 2011
420
53
93
Germany - Nordhessen
fair-comp.de
Hello,

last week (10.09.2011) I have performed updates - (aptitude update & aptitude dist-upgrade)
After that, the frontend was normally accessible, but if I change a setting appears "Internal Server Error"
For example, if I increase the memory of a VM and then click on Save ...

Code:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, root and inform them of the time the error occurred, and anything you might have done that may have caused the error.
 [TABLE]
[TR="bgcolor: #EEEEEE"]
[TD]  [3069]ERR:  24:  Error in Perl code: permission denied at /usr/share/pve-manager/root/base.epl line 76.[/TD]
[/TR]
[/TABLE]



Apache Embperl 2.2.0 [Tue Sep 13 15:04:35 2011]

Code:
Line 76 of the file

#75 if ($fdat{action} || ($req_rec->method ne 'GET')) {
#76   die "permission denied" if !$fdat{ptoken} || !PVE::Utils::verify_page_token($fdat{ptoken});
#77 }

Code:
proxmox:~# pveversion -v
pve-manager: 1.8-23 (pve-manager/1.8/6533)
running kernel: 2.6.35-2-pve
proxmox-ve-2.6.35: 1.8-13
pve-kernel-2.6.32-4-pve: 2.6.32-33
pve-kernel-2.6.35-2-pve: 2.6.35-13
qemu-server: 1.1-32
pve-firmware: 1.0-13
libpve-storage-perl: 1.0-19
vncterm: 0.9-2
vzctl: 3.0.28-1pve5
vzdump: 1.2-15
vzprocps: 2.0.11-2
vzquota: 3.0.11-1
pve-qemu-kvm: 0.15.0-1
ksm-control-daemon: 1.0-6
proxmox:~#
What I've modified the default installation is the installation of additional
kernel 2.6.35er
(and I've installed the newes Intel e1000e drivers)
my /etc/apt/sources.list:

Code:
deb [URL]http://ftp.de.debian.org/debian[/URL] lenny main contrib

## packages von ubuntu von dem der Kernel *35 stammt
## deb [URL]http://ubuntu.mirror.cambrium.nl/ubuntu/[/URL] maverick main universe
## deb-src [URL]http://ubuntu.mirror.cambrium.nl/ubuntu/[/URL] maverick main universe


# PVE packages provided by proxmox.com
deb [URL]http://download.proxmox.com/debian[/URL] lenny pve pvetest

# security updates
deb [URL]http://security.debian.org/[/URL] lenny/updates main contrib
~

The problem with the webfrontend I've with both Kernel 2.6.32 + 2.6.35
with this /etc/apt/sources.list - from despair - I've done the following:
(have a look in this thread there is the same error)

Code:
dpkg --force-all -P perl perl-base perl-modules perl-suid libperl5.10
libalgorithm-diff-xs-perl
aptitude install perl perl-base perl-modules libperl5.10 libcompress-zlib-perl
libio-compress-zlib-perl libio-compress-base-perl
aptitude autoremove
Regards,
maxprox
 
Last edited:
I suggest you move to latest 2.6.32 released today - includes latest 1.5.1 e1000e. If you force third party kernels you probably removed/changed Proxmox VE packages, not recommended.
 
I suggest you move to latest 2.6.32 released today - includes latest 1.5.1 e1000e. If you force third party kernels you probably removed/changed Proxmox VE packages, not recommended.
Hello Tom,
the reason was to build a bonding System with my Intel Server Board and this
two NICs, mode=4 (802.3ad, it goes well). It was recommended to take for this the latest
driver.

Code:
proxmox:~# modinfo e1000e
filename:       /lib/modules/2.6.35-2-pve/kernel/drivers/net/e1000e/e1000e.ko
version:        1.4.4-NAPI
license:        GPL
description:    Intel(R) PRO/1000 Network Driver
author:         Intel Corporation, <linux.nics@intel.com>
srcversion:     773F7AD95ACF1AF6252A58E

I did not mean that by installing of the e1000e modules the pve-kernel changed ...

Please, can you tell me how to
"move to latest 2.6.32 released today - includes latest 1.5.1 e1000e."
Or can I get it simply by (aptitude update & aptitude dist-upgrade) tonight?
(this e1000e modul is now newer than mine ... A few weeks ago it was 1.2 .*)

regards
maxprox
 
Last edited:
Hello,

it does not work

I have removed the 2.6.35er Kernel (purge)
Then I install after aptitude update & aptitude dist-upgrade
the new 2.6.32 Kernel.
As before Web Management was normally accessible. I can see everything,
but if I change a setting appears "Internal Server Error"
For example, if I increase the memory of a VM and then click on Save ... see below
Code:
proxmox:~# pveversion -v
pve-manager: 1.9-24 (pve-manager/1.9/6542)
running kernel: 2.6.32-6-pve
proxmox-ve-2.6.32: 1.9-43
pve-kernel-2.6.32-4-pve: 2.6.32-33
pve-kernel-2.6.32-6-pve: 2.6.32-43
qemu-server: 1.1-32
pve-firmware: 1.0-13
libpve-storage-perl: 1.0-19
vncterm: 0.9-2
vzctl: 3.0.28-1pve5
vzdump: 1.2-15
vzprocps: 2.0.11-2
vzquota: 3.0.11-1
pve-qemu-kvm: 0.15.0-1
ksm-control-daemon: 1.0-6
proxmox:~#
the newer NIC modules!
Code:
proxmox:~# modinfo e1000e
filename:       /lib/modules/2.6.32-6-pve/kernel/drivers/net/e1000e/e1000e.ko
version:        1.5.1-NAPI
license:        GPL
description:    Intel(R) PRO/1000 Network Driver
author:         Intel Corporation, <linux.nics@intel.com>
srcversion:     2EE586A2A1672B0452748CD

my /etc/apt/sources.list

Code:
proxmox:~# cat /etc/apt/sources.list
deb http://ftp.de.debian.org/debian lenny main contrib

##  PVE packages provided by proxmox.com testing
## deb http://download.proxmox.com/debian lenny pve pvetest
# PVE packages provided by proxmox.com
deb http://download.proxmox.com/debian lenny pve

# security updates
deb http://security.debian.org/ lenny/updates main contrib
 
And what web browser?
On the workstation NOT on Proxmox (!) I work with squeeze Debian Linux with Iceweacel (=firefox) 3.5.16
But I will dry all the other Browser in my zoo and I'll get back again
EDIT:
Also with Win.XP and Firefox 6.01 and IExplorer the same "Internal Server Error"

I had already one strangely error. Perhaps there is a connection:
errors-on-usr-share-perl5

The software that I just installed additionally on Proxmox kept within limits:
there is vim, hddtemp, stress, and some tools to burn DVDs and BDs on console (cdrecord, dvd-rw-tools)
 
Last edited:
Hello,

maybe there a way to uninstall it and then install again?
but what? purge something and reinstall?

what I've done is:
Code:
dpkg --force-all -P perl perl-base perl-modules perl-suid libperl5.10
libalgorithm-diff-xs-perl
aptitude install perl perl-base perl-modules libperl5.10 libcompress-zlib-perl
libio-compress-zlib-perl libio-compress-base-perl
aptitude autoremove
But without help, without change of the error

Would appreciate any help.
 
Just in case if of help we are suddenly having similar issues and we are revising in case it has to do with a "forced" installation of squeeze for the package rsnapshot. This had some dependencies related to perl that might be related.
In case it helps clarify this is the apt install log that likely caused the issue.
We are trying to revert Perl:

dpkg: libio-compress-base-perl: dependency problems, but removing anyway as you request:
libcompress-zlib-perl depends on libio-compress-base-perl (>= 2.012).
libcompress-zlib-perl depends on libio-compress-base-perl (<< 2.012.~).
libcompress-zlib-perl depends on libio-compress-base-perl (>= 2.012).
libcompress-zlib-perl depends on libio-compress-base-perl (<< 2.012.~).
libio-compress-zlib-perl depends on libio-compress-base-perl (>= 2.012).
libio-compress-zlib-perl depends on libio-compress-base-perl (<< 2.012.~).
libio-compress-zlib-perl depends on libio-compress-base-perl (>= 2.012).
libio-compress-zlib-perl depends on libio-compress-base-perl (<< 2.012.~).
(Reading database ... 48523 files and directories currently installed.)
Removing libio-compress-base-perl ...
dpkg: libcompress-zlib-perl: dependency problems, but removing anyway as you request:
libsoap-lite-perl depends on libcompress-zlib-perl.
Removing libcompress-zlib-perl ...
Removing libio-compress-zlib-perl ...
Removing libcompress-raw-zlib-perl ...
Processing triggers for man-db ...
(Reading database ... 48430 files and directories currently installed.)
Preparing to replace perl-modules 5.10.0-19lenny5 (using .../perl-modules_5.10.1-17squeeze2_all.deb) ...
Unpacking replacement perl-modules ...
Selecting previously deselected package libdb4.7.
Unpacking libdb4.7 (from .../libdb4.7_4.7.25-9_amd64.deb) ...
Preparing to replace perl-suid 5.10.0-19lenny5 (using .../perl-suid_5.10.1-17squeeze2_amd64.deb) ...
Unpacking replacement perl-suid ...
Preparing to replace perl 5.10.0-19lenny5 (using .../perl_5.10.1-17squeeze2_amd64.deb) ...
Unpacking replacement perl ...
Preparing to replace libperl5.10 5.10.0-19lenny5 (using .../libperl5.10_5.10.1-17squeeze2_amd64.deb) ...
Unpacking replacement libperl5.10 ...
Preparing to replace perl-base 5.10.0-19lenny5 (using .../perl-base_5.10.1-17squeeze2_amd64.deb) ...
Unpacking replacement perl-base ...
Processing triggers for man-db ...
Setting up perl-base (5.10.1-17squeeze2) ...
Selecting previously deselected package liblchown-perl.
(Reading database ... 48604 files and directories currently installed.)
Unpacking liblchown-perl (from .../liblchown-perl_1.01-1_amd64.deb) ...
Preparing to replace rsnapshot 1.3.0-2 (using .../rsnapshot_1.3.1-1_all.deb) ...
Unpacking replacement rsnapshot ...
Processing triggers for man-db ...
Setting up libdb4.7 (4.7.25-9) ...
Setting up libperl5.10 (5.10.1-17squeeze2) ...
Setting up perl-modules (5.10.1-17squeeze2) ...
Setting up perl (5.10.1-17squeeze2) ...
Setting up perl-suid (5.10.1-17squeeze2) ...
Setting up liblchown-perl (1.01-1) ...
Setting up rsnapshot (1.3.1-1) ...
 
Last edited:
Hello,

I think that does not help me - unfortunately

I never install something with "force". My "dpkg --force-all" I describe in Post no.4 was after and because the error.

rsnapshot was not installed in my configuration, if I install it there are no problems with dependencies:

Code:
proxmox:~# aptitude 
Wähle vormals abgewähltes Paket rsnapshot.
(Lese Datenbank ... 55931 Dateien und Verzeichnisse sind derzeit installiert.)
Entpacke rsnapshot (aus .../rsnapshot_1.3.0-2_all.deb) ...
Verarbeite Trigger für man-db ...
Richte rsnapshot ein (1.3.0-2) ...
Drücken Sie zum Fortsetzen die Eingabetaste.

I think I have to migrate (or copy the dumps) to a other server, make a new clean proxmox install, and migrate (or restore the vzdumps of) the VMs back.
:(

regards
maxprox
 
Last edited:
The problem seems obviously related with some perl libs or perl itself.
So far we've managed to fix it on a virtualized environment by downgrading perl:

apt-get install perl=5.10.0-19lenny5 perl-base=5.10.0-19lenny5 perl-modules=5.10.0-19lenny5

We'll now try on the failing server to confirm.
 
here are my perl versions:

dpkg -l | grep -i perl
libapache-authcookie-perl3.12-1
libapache-session-perl1.86-1
libapache-sessionx-perl2.01-1.1
libapache2-mod-perl22.0.4-5+lenny1
libapache2-request-perl2.08-5+b1
libauthen-pam-perl0.16-1.1+b1
libcgi-fast-perl5.10.0-19lenny5
libcgi-pm-perl3.38-2lenny3
libcompress-raw-zlib-perl2.012-1lenny1
libcompress-zlib-perl2.012-1
libconvert-asn1-perl0.21-1
libconvert-binhex-perl1.119+pristine-3
libcrypt-ssleay-perl0.57-1+b1
libdevel-symdump-perl2.08-1
libdigest-hmac-perl1.01-7
libdigest-sha1-perl2.11-2+b1
libembperl-perl2.2.0-3.1
libfcgi-perl0.67-2.1+b1
libfile-sync-perl0.09-4+b1
libfilesys-df-perl0.92-3+b1
libfilesys-smbclient-perl3.1-3+b1
libgd-gd2-perl1:2.39-2
libgd-graph-perl1.44-3
libgd-text-perl0.86-5
libhtml-parser-perl3.56-1+lenny1
libhtml-tagset-perl3.20-2
libhtml-tree-perl3.23-1
libintl-perl1.16-4
libio-compress-base-perl2.012-1
libio-compress-zlib-perl2.012-1
libio-multiplex-perl1.09-2
libio-socket-ssl-perl1.16-1+lenny1
libio-stringy-perl2.110-4
libjson-perl2.07-1
liblinux-inotify2-perl1:1.1-2.1+b1
liblocale-gettext-perl1.05-4
liblockfile-simple-perl0.206-1
liblog-agent-perl0.307-1
libmailtools-perl2.03-1
libmime-tools-perl5.427-1
libnet-dns-perl0.63-2
libnet-ip-perl1.25-2
libnet-ldap-perl1:0.36-1
libnet-ssleay-perl1.35-1
libossp-uuid-perl1.5.1-1.1+b1
libpcre37.6-2.1
libperl5.105.10.0-19lenny5
libpve-storage-perl1.0-19
libsoap-lite-perl0.710.08-1
libsys-hostname-long-perl1.4-2
libterm-readline-gnu-perl1.17a-2+b1
libtext-charwidth-perl0.04-5+b1
libtext-iconv-perl1.7-1+b1
libtext-wrapi18n-perl0.06-6
libtimedate-perl1.1600-9
liburi-perl1.35.dfsg.1-1
libwww-perl5.813-1+lenny2
libxml-parser-perl2.36-1.1+b1
perl5.10.0-19lenny5
perl-base5.10.0-19lenny5
perl-modules5.10.0-19lenny5
 
Just to confirm for anyone interested that downgrading Perl and reinstalling PVE packages did the trick for us finally:

apt-get install perl=5.10.0-19lenny5 perl-base=5.10.0-19lenny5 perl-modules=5.10.0-19lenny5

A bit scaring as "everything" gets removed from the system but so far so good. Other roots by uninstalling certain packages, etc did not work.
 
Just to confirm for anyone interested that downgrading Perl and reinstalling PVE packages did the trick for us finally:

apt-get install perl=5.10.0-19lenny5 perl-base=5.10.0-19lenny5 perl-modules=5.10.0-19lenny5

A bit scaring as "everything" gets removed from the system but so far so good. Other roots by uninstalling certain packages, etc did not work.

I don't understand this correct
As you see in my post before, I reinstall Perl (a tip from an other thread here) and my Perl versions are 5.10.0-19lenny5
All this has not changed the problem

regards,
maxprox
 
Back to this issue again but now on a clean OVH server with no Debian upgrade.
Clean OVH install of PVE.
Upgraded kernel via apt-get to 2.6.32-6 and I understand pve-manager at the same time.
After restart, back to the perl issues when listing vz machines. It seems an issue between PVE and VZ likely related to a perl library.

As it worked when we had similar issues as of this post, we tried removing perl completely and then reinstalling pve-manager which reinstalled all perl dependencies.
During installation we get an error on the pve.conf apache:

Configurando apache2-mpm-prefork (2.2.9-10+lenny11) ...
Starting web server: apache2Syntax error on line 50 of /etc/apache2/sites-en
Invalid command 'PerlModule', perhaps misspelled or defined by a module not failed!
invoke-rc.d: initscript apache2, action "start" failed.

Which leads to:
PerlModule Embperl
EMBPERL_SESSION_ARGS "config=DB_File Lock=Semaphore"

Checked the module is correctly installed, no permissions issues, etc
Also compared Perl and pve.conf with another local system and all seems the same.

We did also tried to add the config as of this post to pve.conf
EMBPERL_OPTIONS 0

Nothing. When we try to access the web interface for a machine we get:

[h=1]Internal Server Error[/h] The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, root and inform them of the time the error occurred, and anything you might have done that may have caused the error.

[13992]ERR: 24: Error in Perl code: unable to get openvz vm list?

Apache Embperl 2.2.0 [Thu Dec 22 11:39:11 2011]

Having to reconsider ever doing upgrades at OVH or on production machines??

pveversion:

pve-manager: 1.9-26 (pve-manager/1.9/6567)
running kernel: 2.6.32-6-pve
pve-kernel-2.6.32-6-pve: 2.6.32-55
qemu-server: 1.1-32
pve-firmware: 1.0-14
libpve-storage-perl: 1.0-19
vncterm: 0.9-2
vzctl: 3.0.29-3pve1
vzdump: not correctly installed
vzprocps: 2.0.11-2
vzquota: 3.0.11-1dso1
 
a fresh install of pve from the OVH should without issues, at least I peronally tested this a few weeks ago without issues.

your pveversion -v shows a lot of missing packages, so I doubt that you did the OVH proxmox installation.

try to fix with:

Code:
aptitude update

and

Code:
aptitude install proxmox-ve-2.6.32
 
Thanks. Truly some packets were missing on reinstall.

Nevertheless the problem got solved before that. Although not sure, we believe it had to do with a warning we had on pve restart regarding an iptables_modules directive either at vz.conf or one of the machines confs that could not be parsed. That likely affects some kind of communications of the web/perl application with VZ.
 
helo there

I also run into the same problem and Im sure its caused by wrong perl packages (which are not from lenny repo)
problem is that lenny repos are removed from debian main servers.
I would like to use apt without any 404 errors, even if lenny repo is not up2date.
so i made me a repo which works and uses lenny (from debian archive)
--- /etc/apt/sources.list ---
# debian lenny from debian archive server
deb http://archive.debian.org/debian lenny main contrib

# PVE packages provided by proxmox.com
deb http://download.proxmox.com/debian lenny pve

# security updates for lenny from debian archive server
deb http://archive.debian.org/debian-security lenny/updates main contrib
------
this seems to me to be the right way to continue proxmox 1.9 package manager.

of course you probably have to downgrade some packages.

hope this helps somebody
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!