Error Creating Virtual Servers after Upgrading Webmin (Virtualmin GPL)

Hey,

While this is also related to Virtualmin, I decided to post it as a Webmin bug as it happened after the upgrade to the latest version of Webmin 1.490-1

I am given the following error upon submitting the form to create a new "virtual server" through Virtualmin GPL.

Error - Perl execution failed

Undefined subroutine &virtual_server::check_webmin_port_clash called at /usr/libexec/webmin/virtual-server/feature-web.pl line 948.

Thanks in advance for a fix to this!

Status: 
Closed (fixed)

Comments

That's surprising, as a check of the code doesn't show that function as missing.

Which OS are you running Webmin on there?

Also, does restarting Webmin with the command /etc/webmin/restart run as root fix it?

tpnsolutions's picture
Submitted by tpnsolutions on Sat, 10/03/2009 - 16:53

CentoOS 5.3, and no I tried that before submitting the bug report.

I just tried this on a fully-updated CentOS 5.3 system, but couldn't re-produce this error.

If you go to System Settings -> Features and Plugins, is the " SSL website" feature enabled? If not, does enabling it help?

tpnsolutions's picture
Submitted by tpnsolutions on Sat, 10/03/2009 - 21:18

Jamie,

I don't use SSL at all, so it is disabled by default, which has been the case for a long time.

However, in looking around the system I did notice a problem which may relate to this issue.

System Settings > Server Templates > Default Settings > Apache Website

There is a field on this page labeled "Port number for SSL virtual hosts"

This field is blank, which should reflect "443" if memory serves me correct. However changing the value and saving, does not actually update the field.

I'm not sure how long this has been an issue, or if it is like this intensionally.

Anyways, the on-going issue happens when I try to enable "Web virtual server" during the "Create Virtual Server" operation.

Again this only started happening after upgrading to the latest Webmin/Usermin earlier today.

Hopefully we can find a solution, as I may need to create a few new Virtual Servers shortly.

Thanks again!

tpnsolutions's picture
Submitted by tpnsolutions on Sun, 10/04/2009 - 00:08

Ok, I did a test to see if Webmin itself was really causing the problem.

I downgraded back to 1.480-1, but the issue seemed to persist. So I upgraded back to the current version of 1.490-1.

This whole thing has got me confused.

Is there anyway to reinstall Virtualmin over top the existing install, perhaps to fix any broken or corrupt files?

I'm sort of pulling at straws here, cause I really need to get this fixed ASAP.

Any suggestions would be appreciated.

I don't think the SSL port number is a direct cause of this, but may be a symptom of the same problem.

Does it help if you enable the SSL feature though? You don't have to actually use it in any domains, but due to the way the code is written it may need to be enabled to allow virtual server creation to work..

One option would be to force-reinstall the Virtualmin RPM package, with a command like :

rpm -U --force http://download.webmin.com/download/virtualmin/wbm-virtual-server-3.73.gpl-1.noarch.rpm

this would fix any missing files.

tpnsolutions's picture
Submitted by tpnsolutions on Sun, 10/04/2009 - 00:38

I did the forced upgrade, and things seem to be working fine again.

Now I've just got to tweak a few settings that were changed as a result (nothing major)

Thank so much Jamie for your dedication towards offering this amazing support!

If there is anything I can do for you, in terms of helping, I'd be happy to contribute whatever I can!

Kudos!

tpnsolutions's picture
Submitted by tpnsolutions on Sun, 10/04/2009 - 01:05

BTW, this also fixed the missing 443 port number on the "Apache Websites" configuration page.

Cool, glad that worked! My guess is that the file /usr/libexec/webmin/virtual-server/feature-ssl.pl got deleted or corrupted somehow.. and the RPM re-install fixed it.

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