Adding slave zone failes

I'm getting an error when creating new virtual servers in Virtualmin. When enabling DNS on a domain, it tells me this:

Adding new DNS zone ..
.. done
Creating DNSSEC key for new domain ..
.. done

Adding slave zone on ns2.wohlfordcompany.com ..
.. BIND DNS domain failed! : Can't use string ("ns2.wohlfordcompany.com") as an ARRAY ref while "strict refs" in use at /usr/share/webmin/bind8/bind8-lib.pl line 2670.

Saving server details ..
.. done

My guess is this issue is related to the most recent update.

Please advise.

Regards,
Jason

Status: 
Active

Comments

When you login to Virtualmin (on the slave system), you should see a prompt to install an update to the BIND module which addresses this bug.

Correction, this has to be applied on the master system.

wohlford's picture
Submitted by wohlford on Mon, 08/15/2016 - 11:44 Pro Licensee

I've done a package update and then a "Refresh system information" on both systems. No message popped up. However, going to Webmin Configuration -> Upgrade Webmin -> Update modules and then unchecking "Only show which modules would be updated" allowed me up apply the fix. The "Upgrade Webmin" link wasn't present on the licensed version of Virtualmin, but I was able copy and paste the link /webmin/edit_upgrade.cgi after disabling referring checking in "Trusted Referrers."

wohlford's picture
Submitted by wohlford on Mon, 08/15/2016 - 11:46 Pro Licensee

Tested. Problem fixed with bind9 module update.

Hi Guys,

I'm having this exact issue - trying to add a domain with DNS, and getting: -

Adding slave zone on slave1.co.uk slave2.co.uk .. .. BIND DNS domain failed! : Can't use string ("slave1.co.uk slave2.co.uk") as an ARRAY ref while "strict refs" in use at /usr/share/webmin/bind8/bind8-lib.pl line 2670.

No updates are showing as available, and I'm on Ubuntu Trusty.

P

Hi,

I used the update trick with /webmin/edit_upgrade.cgi , told Webmin to "reinstall even if same version", and after installation was offered a bind8 module update (although I'm running 9?), and all is now well.

Thanks to wohlford for the clue / hope this helps someone.

P

We will likely do another webmin release shortly that includes this fix.

Hello,

I am having same issue, even after trying the above fix (updating the bind9) i still gets the same error.

I am migrating a directadmin backup file, and getting similar error:

Copying and fixing DNS records .. HTTP/1.0 500 Perl execution failed Server: MiniServ/1.810 Date: Thu, 25 Aug 2016 22:47:48 GMT Content-type: text/html; Charset=iso-8859-1 Connection: close

Error - Perl execution failed

Can't use string ("/var/named/webmastersheart.com.h") as an ARRAY ref while "strict refs" in use at /usr/libexec/webmin/bind8/records-lib.pl line 433.

Updating the bind8 module and restarting webmin on master and slaves doesn't fix the issue.

It is urgent: New customers can't create domains. Thanks!

Ok, missed the instruction to uncheck the "Only show which modules would be updated"

But after that I had to upgrade twice, as first time it upgraded the new versions the wrong way as follows:

Updating Webmin modules ..

Updating module bind8 to version 1.813.
          Fixes problem : Fixed the error : Can't use an undefined value as a symbol reference
          Downloading bind8-1.810-3.wbm.gz (459.05 kB) ..
               Received 1024 bytes (0 %)
               Received 46 kB (10 %)
               Received 92 kB (20 %)
               Received 138 kB (30 %)
               Received 184 kB (40 %)
               Received 230 kB (50 %)
               Received 276 kB (60 %)
               Received 322 kB (70 %)
               Received 368 kB (80 %)
               Received 414 kB (90 %)
               Received 459.05 kB (100 %)
          .. download complete.
          Installed module BIND DNS Server (2352 kB)

Updating module bind8 to version 1.812.
          Fixes problem : Fixes the error message : Can't use an undefined value as an ARRAY reference
          Downloading bind8-1.810-2.wbm.gz (458.98 kB) ..
               Received 1024 bytes (0 %)
               Received 46 kB (10 %)
               Received 92 kB (20 %)
               Received 138 kB (30 %)
               Received 184 kB (40 %)
               Received 230 kB (50 %)
               Received 276 kB (60 %)
               Received 322 kB (70 %)
               Received 368 kB (80 %)
               Received 414 kB (90 %)
               Received 458.98 kB (100 %)
          .. download complete.
          Installed module BIND DNS Server (2352 kB)

And 2nd time I had:

Updating Webmin modules ..

Updating module bind8 to version 1.813.
          Fixes problem : Fixed the error : Can't use an undefined value as a symbol reference
          Downloading bind8-1.810-3.wbm.gz (459.05 kB) ..
               Received 1024 bytes (0 %)
               Received 46 kB (10 %)
               Received 92 kB (20 %)
               Received 138 kB (30 %)
               Received 184 kB (40 %)
               Received 230 kB (50 %)
               Received 276 kB (60 %)
               Received 322 kB (70 %)
               Received 368 kB (80 %)
               Received 414 kB (90 %)
               Received 459.05 kB (100 %)
          .. download complete.
          Installed module BIND DNS Server (2352 kB)

After those 2 updates on the master server, creating a new virtual server with DNS services now works again.

But I think that it's still a bug that updates are not applied in the right order (if even needed to be done incrementally?)

Thanks for pointing this out - we'll remove that obsolete update.

And also fix Webmin to prevent this from happening in future..

Thanks Jamie, you rock as usual! :-)

We have too many servers to run manual updates/upgrades. Is it possible to address this issue with the next Webmin release automatically without making us to run manual updates on multiple servers?

It really sucks this issue has been there for a while and discussed in multiple threads like:

https://www.virtualmin.com/node/41899
https://www.virtualmin.com/node/41694
https://www.virtualmin.com/node/41676
https://www.virtualmin.com/node/41705
https://www.virtualmin.com/node/42128
https://www.virtualmin.com/node/41721

duplicated one. please remove

We're just about to release Webmin 1.820 which will include all these fixes.