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 webminwebmin-1.600-1.noarch
rpm -qa | grep virtual-serverust-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 -vThis 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.
Comments
Submitted by andreychek on Sun, 11/18/2012 - 08:20 Comment #1
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.
Submitted by bzz0 on Sun, 11/18/2012 - 08:49 Comment #2
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?
Submitted by andreychek on Sun, 11/18/2012 - 08:55 Comment #3
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
Submitted by bzz0 on Sun, 11/18/2012 - 13:23 Comment #4
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 :(
Submitted by JamieCameron on Sun, 11/18/2012 - 13:53 Comment #5
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.
Submitted by bzz0 on Sun, 11/18/2012 - 14:37 Comment #6
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!
Submitted by andreychek on Sun, 11/18/2012 - 14:42 Comment #7
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.
Submitted by JamieCameron on Sun, 11/18/2012 - 16:09 Comment #8
Yes, I would recommend re-installing packages like
webmin
andwbm-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.
Submitted by bzz0 on Sun, 11/18/2012 - 16:30 Comment #9
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)?
Submitted by andreychek on Sun, 11/18/2012 - 17:23 Comment #10
Reinstalling the wbm-virtual-server package won't affect your websites, that will only overwrite files within the Virtualmin package.
Submitted by bzz0 on Sat, 11/24/2012 - 06:51 Comment #11
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.
Submitted by andreychek on Sat, 11/24/2012 - 08:46 Comment #12
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.
Submitted by bzz0 on Sat, 11/24/2012 - 09:24 Comment #13
The problem is that Virtualmin is removed :( I cannot install it back because of HDD errors exactly in /usr/libexec :(
Submitted by andreychek on Sat, 11/24/2012 - 09:33 Comment #14
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.
Submitted by bzz0 on Mon, 01/07/2013 - 15:00 Comment #15
Sry for so late reply! You can close it - it was HDD probs and hopefully they were solved!
Submitted by andreychek on Mon, 01/07/2013 - 15:19 Comment #16
Super, I'm glad it's working now!