Error - Perl execution failed

Today I have updated virtual server to 3.95 and now I have this error after logging in the admin panel:

HTTP/1.0 500 Perl execution failed Server: MiniServ/1.600 Date: Sun, 18 Nov 2012 13:01:07 GMT Content-type: text/html; Charset=iso-8859-1 Connection: close Error - Perl execution failed

Undefined subroutine &virtual_server::running_in_zone called at /usr/libexec/webmin/virtual-server/virtual-server-lib-funcs.pl

System info:

rpm -qa | grep webmin

webmin-1.600-1.noarch

rpm -qa | grep virtual-server

ust-virtual-server-mobile-2.1-1.noarch wbt-virtual-server-theme-8.5-2.noarch ust-virtual-server-theme-6.9-1.noarch wbt-virtual-server-mobile-2.5-1.noarch wbm-virtual-server-3.95.gpl-1.noarch

perl -v

This is perl, v5.10.1 (*) built for x86_64-linux-thread-multi

The command "/etc/init.d/webmin restart" gives me a long text of errors. File is attached.

P.S. Webmin part is working fine. Websites are also running fine.

Status: 
Active

Comments

Howdy -- those are some pretty unusual errors you're seeing, it almost sounds like you're seeing some file corruption issues.

What is the output of this command:

head -40 /usr/libexec/webmin/virtual-server/plans-lib.pl

That'll display the contents of the first 40 lines of that file. According to the errors you're seeing, there's something wrong with those first 40 lines.

Hmm, that could be. There were some errors with hdd. Attache file with output of head -40 /usr/libexec/webmin/virtual-server/plans-lib.pl

Should I reinstall virtual server?

Hmm, that's fascinating, that's nothing like the contents that file should contain :-)

What output do you receive if you run this command... this will show any recent kernel errors (including hard drive issues):

dmesg | tail -30

There are issues... We are running raid1 and one hdd was dieing today. It was during update of virtual server. I have removed it from raid, but still there are some errors, but everything at the moment works fine. Except perl problems in virtualmin :(

Could you attach the file /usr/libexec/webmin/virtual-server/virtual-server-lib-funcs.pl to this bug report, or email it to me at jcameron@virtualmin.com ? It seems like it may be corrupt or incomplete.

Send it. I have a feel that there are more files corrupted, cause when I click on "Refresh system information" I have an error: Undefined subroutine &virtual_server::collect_system_info called at /usr/libexec/webmin/virtual-server-theme/recollect.cgi line 6.

Thanks for helping, I really appreciate that!

Well, I think the disk problems you're seeing, or perhaps a similar issue, may have caused some corruption during the package installation.

You may just want to try re-installing the latest Virtualmin package, as that should overwrite all the corrupted files you have with the correct versions.

Yes, I would recommend re-installing packages like webmin and wbm-virtual-server that contain files that are possibly corrupt.

You can check for corruption by running commands like :

rpm -V webmin
rpm -V wbm-virtual-server

Any files that it outputs are corrupt.

Ok, rpm -V webmin gave me nothing.

rpm -V wbm-virtual-server gave me a lot of files :(

So I should reinstall wbm-virtual-server only? How do I do that not loosing any data (like websites, and so on)?

Reinstalling the wbm-virtual-server package won't affect your websites, that will only overwrite files within the Virtualmin package.

Hi!

It seems that we need to change HDDs :( Where virtualmin store its settings like virtualosts, emails and so on? I want to backup them. All DBs and /home already backed up.

I would highly recommend performing a full backup of all your Virtual Servers using Virtualmin.

That's the only simple way to backup (and later restore) your Virtual Server data.

You can do that using Backup and Restore -> Backup Virtual Servers.

On that screen, you'd want to perform a Full backup.

Note that in the Features and Settings area is a section named "Virtualmin settings to also backup". You'd want to make sure you check all of those too, that'll restore all your Virtualmin settings like Server Templates, Account Plans, and so on.

That will generate a set of .tar.gz files, one per domain. Just copy those to your new server, and then restore them into Virtualmin using Backup and Restore -> Restore Backup.

The problem is that Virtualmin is removed :( I cannot install it back because of HDD errors exactly in /usr/libexec :(

It may be rough going if you don't have Virtualmin backups...

But to answer your questions, emails are all stored in the user's home directory in /home.

Webmin and Virtualmin settings are in /etc/webmin.

You'd also need to make sure you copy over the users in /etc/passwd, /etc/shadow, and groups in /etc/group.

Sry for so late reply! You can close it - it was HDD probs and hopefully they were solved!

Super, I'm glad it's working now!