Undefined subroutine &bind8::list_slave_servers called at virtual-server-lib-funcs.pl

I got a problem on virtualmin 3.9 GPL installed as a webmin module on webmin in 1.580. The system is debian 6.0.4 up to date.

When i try to go to edit user on each domain or if i try to add a new domaine i got the problem : Error - Perl execution failed

Undefined subroutine &bind8::list_slave_servers called at virtual-server-lib-funcs.pl line 3758.

I found a workaround : to comment lines 3758 and 3759 in virtual-server-lib-funcs.pl.

Status: 
Closed (fixed)

Comments

That can happen if Webmin was updated, but for some reason not restarted correctly during that update.

Try restarting Webmin with this command:

/etc/init,d/webmin restart

After you do that, does it that error stop occurring?

I tried that.

I tried also to reinstall virtualmin module and webmin.

Is your Webmin perhaps missing some modules? You can check if the BIND module is installed, by going to Servers -> BIND DNS Server ..

I tried too ! i had uninstall Bind webmin module and re-install bind webmin module. Same problem.

You really don't want to un-install any Webmin modules, unless your system is really low on disk space.

Do you still get this error even though you can see the BIND DNS Server module under the Servers category?

I uninstalled and reinstalled bind webmin module just for test. The problem concerned 10 debian server in production. I used the workaround at 9 and the 10 is for reproduice the bug.

The bind dns server isn't installed on the server and bind webmin module is in "Un-used Modules".

So for test, i installed Bind9, did a "Refresh Modules" in webmin, the bind webmin module went in "servers" section, but the problem was here.

Ok, I found the cause of this .. it can happen if the DNS feature is disabled globally in Virtualmin.

The work-around is to re-enable it at System Settings -> Features and Plugins, by checking the box next to the "BIND DNS domain" feature. You can un-check the box in the "Default?" column if you don't want new virtual servers to get a DNS zone by default..

We will release a proper fix for this shortly..

It appears to be not possible to turn on the "BIND DNS domain" feature either. If I check the box for that setting it generates this error:

"Failed to save enabled features : The BIND DNS server version 8 or 9 does not appear to be installed on your system, or has not yet been set up properly in Webmin's BIND DNS Server module. If your system does not use BIND, it should be disabled in Virtualmin's module configuration page."

I'm going to try the solution "comment lines 3758 and 3759 in virtual-server-lib-funcs.pl" as mentioned in the original message.

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