Error - Perl execution failed

Hello,

have just updated the server and after I logged off and logged on again, I received following errors:

HTTP/1.0 500 Perl execution failed Server: MiniServ/1.570 Date: Thu, 6 Sep 2012 15:02:36 GMT Content-type: text/html; Charset=iso-8859-1 Connection: close
Error - Perl execution failed

Undefined subroutine &virtual_server::licence_warning_message called at /usr/libexec/webmin/virtual-server-theme/right.cgi line 116.

Any idea why this happen ?

Thank You

Amel

Howdy,

That can happen if you don’t have the latest theme version installed.

What distro are you using there?

-Eric

hello,

I am using following distro.

CentOS Release 6.3 (Final)
Kernel 2.6.32-279.5.2.el6.x86_64

Amel

Howdy,

Try running this command:

yum install wbt-virtual-server-theme

And then restart Webmin:

/etc/init.d/webmin restart

Once you do that, does that error go away?

Also, out of curiosity – how did you initially install Virtualmin… did you use the install.sh script?

-Eric

Hello Eric,

thank You for reply, it`s working now :slight_smile: I issued the commands as You mentioned and it does a trick…

yum install wbt-virtual-server-theme

/etc/init.d/webmin restart

I installed Virtualmin using the install.ssh script downloaded from virtualmin.com after license purchase…

Amel

Howdy,

I know everything is working fine for you, but we’re trying to dig into how that occurred, so that we can prevent it from happening again. That same thing happened to some other folks too.

I’m curious what this command shows:

grep wbt-virtual-server-theme /var/log/yum.log

Thanks!

-Eric

hi again Eric,

right now it shows following:

[root@srv1 ~]# grep wbt-virtual-server-theme /var/log/yum.log Feb 03 18:06:00 Updated: 2:wbt-virtual-server-theme-8.2-1.noarch Apr 22 14:32:52 Updated: 2:wbt-virtual-server-theme-8.4-1.noarch Aug 12 16:25:13 Updated: 2:wbt-virtual-server-theme-8.5-1.noarch Sep 06 21:46:17 Updated: 2:wbt-virtual-server-theme-8.5-2.noarch [root@srv1 ~]#

I had the same problem, running the following instructions solved it:
yum install wbt-virtual-server-theme
/etc/init.d/webmin restart

In my case, this problem started to happen after I install the lastest updates of:
bind
postgressql
and a few other updates that I dont remember…
But, not sure if it has something to do with it…

System Specs (Vitualmin+Webmin):

Operating system CentOS Linux 5.8
Webmin version 1.590 Virtualmin version 3.94.gpl GPL
Theme version 8.5 Time on server 25/Sep/2012 07:24 , Up 10 days, 20 hours, 48 minutes
Kernel and CPU Linux 2.6.18-308.11.1.el5.centos.plus on x86_64 CPU load averages 0.51 (1 min) 0.46 (5 mins) 0.40 (15 mins)
Running processes 301 Real memory 11.72 GB total, 4.04 GB used

grep wbt-virtual-server-theme /var/log/yum.log

Feb 14 23:32:23 Updated: 2:wbt-virtual-server-theme-8.2-1.noarch Jun 01 20:52:10 Updated: 2:wbt-virtual-server-theme-8.4-1.noarch Jul 19 21:54:39 Updated: 2:wbt-virtual-server-theme-8.5-1.noarch Sep 25 07:24:28 Updated: 2:wbt-virtual-server-theme-8.5-2.noarch

Thanks for your comment!

We’re digging into how this came up, as this seemed to happen to a lot of folks.

Can you describe how you initially updated Virtualmin when this problem started happening? Did you do it from within Virtualmin, or on the command line?

-Eric

I had the same problem, running the following instructions solved it:

yum install wbt-virtual-server-theme

/etc/init.d/webmin restart

[root@HTTP01b ~]# grep wbt-virtual-server-theme /var/log/yum.log
Nov 19 08:08:50 Updated: 2:wbt-virtual-server-theme-8.7-1.noarch

Always same error :
HTTP/1.0 500 Perl execution failed Server: MiniServ/1.585 Date: Tue, 19 Nov 2013 07:09:38 GMT Content-type: text/html; Charset=iso-8859-1 Connection: close
Error - Perl execution failed

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

My system is :
CentOS release 5.10 (Final)
Kernel 2.6.18-371.1.2.el5xen on an i686

Any idea why this happen ?

Thank You

jck

I’ve got a similar situation on a Centos virtual server

I updated some packages successfully, virtualmin then offered me 3 more. One of these was PERL related, but i thought I’d do them later.

Next I clicked the System Information link and got…

HTTP/1.0 500 Perl execution failed Server: MiniServ/1.600 Date: Tue, 7 Jan 2014 22:23:57 GMT Content-type: text/html; Charset=iso-8859-1 Connection: close
Error - Perl execution failed

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

It also happens when I log in. Although most other stuff seems to still work.

Any idea what I can do to fix it?

I tried…

yum install wbt-virtual-server-theme

/etc/init.d/webmin restart

…but it didn’t help. :frowning:

I have the same problem …i think its something to do with a perl script!
I cant even get onto the main webmin/virtualmin browser page … its just blank.
Ive reinstalled the theme from another vps running webmin/virtualmin and it still does the same thing … blank screen.
I tried some of the other themes … which all partly worked, but none of the themes would show the virtualmin link.
This is so frustrating …it all started when i did module updates … but I cant remember what modules i updated now.
I tried all of the above ideas but none of them worked !
Im just lost now !
was hoping there would be some way around it … but obvioulsy there isnt!
looks like ill just have to erase the whole server and start again … months of work lost!

First up: Reinstalling is a really extreme way to solve a simple dependency problem.

Next up: This thread is several years old. I’m absolutely certain you have a different problem. All sorts of things can lead to a Perl execution error.

It usually happens when you have an old version of Webmin with a new version of Virtualmin, or an old version of Virtualmin/Webmin with new plugin modules. Errors that look like this usually mean a function has been added to Webmin or Virtualmin to support new features…but, you don’t have that new version, so the new module can’t find it.

All that said, don’t go doing something drastic like starting from scratch.

If you have Virtualmin Professional, we can help you sort it out; just open a ticket in the support tracker.

If you’re running GPL, you can ask for more help here in the forum by starting a new thread (I’m certain your problem isn’t the same as this one, as this problem was fixed ages ago, so it needs a new discussion). You need to include your OS/version, the exact error message you see, and the version of Webmin, Virtualmin, and modules you have (if the error is in a module). The theme version may also be relevant, if you’re getting a blank screen rather than an error. The /var/webmin/miniserv.error log file may also have useful information.

There’s actually a bug in the current Webmin version (or is it Virtualmin version, I’m not quite sure), that can cause the initial screen to appear blank if there’s a particular config error.

Take a look in /etc/webmin/virtual-server/domains… there, each file should have a line that looks something like “dom=example.com”.

If that line is missing for any of the files there, that can cause the problem you’re seeing.

Try moving that file elsewhere, restart Webmin, and see if you’re then able to use it properly.

-Eric