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
Submitted by JamieCameron on Mon, 08/15/2016 - 10:54 Comment #1
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.
Submitted by JamieCameron on Mon, 08/15/2016 - 10:55 Comment #2
Correction, this has to be applied on the master system.
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."
Tested. Problem fixed with bind9 module update.
Submitted by glimmung on Tue, 08/23/2016 - 10:10 Pro Licensee Comment #5
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
Submitted by glimmung on Tue, 08/23/2016 - 11:06 Pro Licensee Comment #6
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
:-)
Submitted by JamieCameron on Tue, 08/23/2016 - 23:52 Comment #8
We will likely do another webmin release shortly that includes this fix.
Submitted by kv8390 on Thu, 08/25/2016 - 17:48 Comment #9
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.
Submitted by beat on Fri, 08/26/2016 - 08:19 Comment #10
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!
Submitted by beat on Fri, 08/26/2016 - 10:18 Comment #11
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?)
Submitted by JamieCameron on Sat, 08/27/2016 - 11:49 Comment #12
Thanks for pointing this out - we'll remove that obsolete update.
Submitted by JamieCameron on Sat, 08/27/2016 - 19:48 Comment #13
And also fix Webmin to prevent this from happening in future..
Submitted by beat on Sun, 08/28/2016 - 16:25 Comment #14
Thanks Jamie, you rock as usual! :-)
Submitted by yngens on Sat, 10/01/2016 - 15:40 Comment #15
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
Submitted by yngens on Sat, 10/01/2016 - 15:39 Comment #16
duplicated one. please remove
Submitted by JamieCameron on Sat, 10/01/2016 - 17:02 Comment #17
We're just about to release Webmin 1.820 which will include all these fixes.