Error - Perl execution failed after package updates via cloudmin/virtalmin

I now get the following error message upon login, and when selecting "System Information" after recently applying the cloudmin/virtualmin package updates via the user interface:

HTTP/1.0 500 Perl execution failed Server: MiniServ/0.01 Date: Wed, 27 Jan 2010 22:05:54 GMT Content-type: text/html Connection: close Error - Perl execution failed

Undefined subroutine &server_manager::get_managed_server called at /usr/share/webmin/virtual-server-theme/right.cgi line 137.

Status: 
Closed (fixed)

Comments

Which Cloudmin version are you running there? It looks like it may be a very old version ..

You can see the version in the file /usr/share/webmin/server-manager/module.info

From that file I get "version=2.9". It was just installed last year, and has been updated via the interface. Are there additional updates that need to be done outside of the UI itself?

Also, I have discovered additional issues from the upgrade, which I'll be happy to submit separately if need be.

  1. Post upgrade Apache would not start once stopped. The error reported was "Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration". These virtual servers had only been configured via Virtualmin (not manually) and nothing in the configuration had changed other than the upgrade (i.e. no switching from mod_php to cgi etc).

  2. Similarly, on of my customer's cron jobs was failing with the following error: ".htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration" Again, no change other than the upgrade of packages via Virtualmin.

I had to comment the php_value entries out of the various Apache site.conf files, as well as commenting out the php_flag entries from the .htaccess file to get things to start up again, but would like to be able to place them again, as they were obviously there for a reason.

Ok, that's a very old version .. which would explain the problem.

How did you install Cloudmin initially? Was it via our install script, or just using a Debian package, or some other format?

Ideally you should be able to upgrade with a command like :

apt-get install webmin-server-manager

but I suspect that won't work ..

Those other two issues are due to the Debian Apache upgrade disabling mod_php - I have yet to figure out why Debian does this :-(

This fix is to go to Webmin -> Servers -> Apache -> Configure Apache Modules, re-enable the php5 module and click Save.

Jamie,

Correct, that doesn't work. In fact, I don't show a webmin-server-manager package available in the repos.

I have the following from Virtualmin Package Updates, which shows I am supposedly running the latest of everything that has been installed:

webmin A web-based administration interface for Unix systems. Running latest 1.500 Virtualmin webmin-security-updates Webmin module for 'Virtualmin Package Updates' Running latest 4.0 Virtualmin webmin-virtual-server Webmin module for 'Virtualmin Virtual Servers' Running latest 3.76 Virtualmin webmin-virtual-server-mobile Webmin theme 'Virtualmin Mobile Theme' Running latest 2.3 Virtualmin webmin-virtual-server-theme Webmin theme 'Virtualmin Framed Theme' Running latest 7.6 Virtualmin webmin-virtualmin-awstats Webmin module for 'AWstats Reporting' Running latest 4.2 Virtualmin webmin-virtualmin-dav Webmin module for 'Virtualmin DAV' Running latest 3.3 Virtualmin webmin-virtualmin-google-analytics Webmin module for 'Virtualmin Analytics' Running latest 2.4 Virtualmin webmin-virtualmin-htpasswd Webmin module for 'Virtualmin Protected Directories' Running latest 2.3 Virtualmin webmin-virtualmin-init Webmin module for 'Virtualmin Bootup Actions' Available for installation Virtualmin webmin-virtualmin-mailman Webmin module for 'Virtualmin Mailman Mailing Lists' Running latest 5.8 Virtualmin webmin-virtualmin-mailrelay Webmin module for 'Virtualmin Mail Relay' Available for installation Virtualmin webmin-virtualmin-notes Webmin module for 'Virtualmin Admin Notes' Running latest 1.2 Virtualmin webmin-virtualmin-oracle Webmin module for 'Virtualmin Oracle Databases' Available for installation Virtualmin webmin-virtualmin-password-recovery Webmin module for 'Virtualmin Password Recovery' Running latest 1.3 Virtualmin webmin-virtualmin-powerdns Webmin module for 'Virtualmin PowerDNS' Available for installation Virtualmin webmin-virtualmin-registrar Webmin module for 'Virtualmin Domain Registration' Available for installation Virtualmin webmin-virtualmin-signup Webmin module for 'Virtualmin Mailbox Signup' Available for installation Virtualmin webmin-virtualmin-slavedns Webmin module for 'Virtualmin Slave DNS Plugin' Available for installation Virtualmin webmin-virtualmin-sqlite Webmin module for 'Virtualmin SQLlite Databases' Available for installation Virtualmin webmin-virtualmin-styles-oswd Webmin module for 'Virtualmin Styles From Open Source Web Design' Running latest 1.0 Virtualmin webmin-virtualmin-support Webmin module for 'Virtualmin Technical Support' Available for installation Virtualmin webmin-virtualmin-svn Webmin module for 'Virtualmin Subversion Repositories' Running latest 4.7 Virtualmin

Do you have a line for cloudmin.virtualmin.com or vm2.virtualmin.com in /etc/apt/sources.list ?

Added that line to sources.list. Ran "apt-get update" and then:

apt-get install webmin-server-manager Reading package lists... Done Building dependency tree
Reading state information... Done The following packages were automatically installed and are no longer required: libdns35 Use 'apt-get autoremove' to remove them. The following NEW packages will be installed: webmin-server-manager 0 upgraded, 1 newly installed, 0 to remove and 37 not upgraded. Need to get 0B/1538kB of archives. After this operation, 7639kB of additional disk space will be used. (Reading database ... 63849 files and directories currently installed.) Unpacking webmin-server-manager (from .../webmin-server-manager_3.9_all.deb) ... This Webmin module is already installed on your system. dpkg: error processing /var/cache/apt/archives/webmin-server-manager_3.9_all.deb (--unpack): subprocess pre-installation script returned error exit status 1 Errors were encountered while processing: /var/cache/apt/archives/webmin-server-manager_3.9_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1)

Looks like even though the package isn't installed, the module already is. Any suggestions? Would it be more helpful for you to have a look?

Ok, looks like the module was installed from a .wbm file instead of a .deb.

The fix is to run :

rm -rf /usr/share/webmin/server-manager
apt-get install webmin-server-manager

This won't cause any data loss, as all config files are under /etc/webmin

That did the trick. Is it likely I will need to do the same with any other modules?

No, that should be the only one..

Automatically closed -- issue fixed for 2 weeks with no activity.