Good Day,
Today I received an update to Webmin. After installing I am receiving perl errors when changing DNS records. I was able to add name.domain.tld but it doesnt actually resolve. I tried to remove it and receive the following error:
Error - Perl execution failed
Can't use an undefined value as an ARRAY reference at records-lib.pl line 972.
Also when looking at DNS if I click on "ALL" to see all records I get this error now:
HTTP/1.0 500 Perl execution failed Server: MiniServ/1.810 Date: Wed, 10 Aug 2016 15:28:38 GMT Content-type: text/html; Charset=iso-8859-1 Connection: close Error - Perl execution failed Can't use an undefined value as an ARRAY reference at /usr/share/webmin/bind8/edit_recs.cgi line 149.
LINE 149 READS: my @hmap = @{$hmap{$in{'type'}}};
These issues happened immediately after the upgrade. I am running on ubuntu 14.04 LTS and webmin 1.810, virtualmin 5.04 and authentic theme 18.10. This is a 4 week old box with no alterations but a redirect for webmail and some ssl config. Unfortunately for a paid pro account I find every update has broken something causing hours of research. I'm quickly coming to the realization that virtualmin is not a product for production use as much as I want it to be :(
After some research I see updates to webmin have caused these type of issues in the past but this issue has crippled DNS! Please figure this out and possibly retract this update before damaging others...
Comments
Submitted by northrich on Wed, 08/10/2016 - 12:02 Comment #1
Submitted by JamieCameron on Wed, 08/10/2016 - 15:42 Comment #2
Does this only happen if you click on ALL DNS records? You should still be able to edit records of some other type..
Submitted by gregc@netoverdr... on Wed, 08/10/2016 - 21:37 Comment #3
did update last night and got same error this morning. please let me know if you have a fix.
Submitted by andreychek on Wed, 08/10/2016 - 22:19 Comment #4
Does this particular patch here solve things for you:
https://github.com/webmin/webmin/commit/52180cea58a989fcb3e6b1a169a0bd95...
That was shared in another thread, but it appears that other thread is marked as private unfortunately.
This one is my fault. I recently converted the BIND module to include "use strict;" and "use warnings;" which helps us find and avoid some kinds of bugs, but apparently introduced a new one.
There will be a new release shortly with this patch, assuming it corrects the problem.
...hi guys.. This maybe be helpful to someone perhaps, I dont know but I just updated my install (running on debian) and was able to create subdomain and domain and it all works (same version of virtualmin, webmin. Basically it did not gave me any error and domain is pointing properly as it supposed to do.
Submitted by JamieCameron on Thu, 08/11/2016 - 22:46 Comment #8
Yes, this bug only seems to happen when using the Webmin BIND module directly.
Submitted by CodeAlpha on Fri, 08/12/2016 - 18:03 Comment #9
The patch mentioned above does not seem to solve this error. I'm still having Error - Perl execution failed when editing spf records.
Submitted by JamieCameron on Fri, 08/12/2016 - 23:56 Comment #10
We've just released a BIND module update that fixes this and the other errors. You should be prompted to install it when logging into webmin within the next few hours.
Submitted by Netiquity on Sun, 08/14/2016 - 09:44 Comment #11
Hi,
Can you advise when you will be posting a fix for this for Ubuntu 16.04.
Thanks
Submitted by JamieCameron on Sun, 08/14/2016 - 10:41 Comment #12
The fix should be available for all operating systems already, and you should be prompted to install it when logging into Webmin or Virtualmin.
Submitted by CodeAlpha on Sun, 08/14/2016 - 15:35 Comment #13
Me too I still didn't receive an update for this on my server Centos 64bit 6.8.
Submitted by Netiquity on Mon, 08/15/2016 - 14:31 Comment #14
I have just checked all three of my servers and no updates are found.
Do you have a downloadable fix that can be installed?
Submitted by Netiquity on Mon, 08/15/2016 - 14:36 Comment #15
Sorry, found the update on http://www.webmin.com/updates.html and installed, however when selecting any slave zone I still get: Can't use an undefined value as a symbol reference at records-lib.pl line 111.
Submitted by nippertje on Mon, 08/15/2016 - 16:54 Comment #16
I also updated to 1.81.0 and still get the error when adding new virtual servers. It appears as the master tries to update bind on an associated slave and create the slave zone.
Adding slave zone on dns2.itbuilder.co.uk .. .. BIND DNS domain failed! : Can't use string ("dns2.itbuilder.co.uk") as an ARRAY ref while "strict refs" in use at /usr/libexec/webmin/bind8/bind8-lib.pl line 2670..
Submitted by JamieCameron on Mon, 08/15/2016 - 20:38 Comment #17
Netiquity - what do you mean by "selecting a slave zone"? Just clicking on it from the zones list, or when showing records?
Submitted by cruiskeen on Tue, 08/16/2016 - 11:41 Comment #18
So I am a little confused. It doesn't appear that this update shows up if you've installed from rpm ---
Submitted by JamieCameron on Wed, 08/17/2016 - 00:31 Comment #19
You can also manually install the update from http://www.webmin.com/updates.html
Submitted by Netiquity on Wed, 08/17/2016 - 07:48 Comment #20
Hi,
yes, if I go to Servers > Bind DNS Server and then click on any slave zone in the list then I get:
Error - Perl execution failed Can't use an undefined value as a symbol reference at records-lib.pl line 111.
If I click on any master zone then it is fine.
Submitted by JamieCameron on Thu, 08/18/2016 - 01:47 Comment #21
Are you using binary format for slave zone files?
Submitted by numacorp on Wed, 08/24/2016 - 13:39 Comment #22
For some reason for the newest version, it does like to add the port 10000 when you click on the server. Perhaps it is causing the issues with the dns records copying to the slave servers.
??
Submitted by JamieCameron on Wed, 08/24/2016 - 22:57 Comment #23
FYI, we just released an update to the BIND module for the
Can't use an undefined value as a symbol reference
error.Submitted by numacorp on Thu, 08/25/2016 - 17:02 Comment #24
This seemed to fix my issues,
https://www.virtualmin.com/node/41721
Submitted by adlsrl on Fri, 09/02/2016 - 04:25 Comment #25
Hi !! Same problem here. Is it fix? I have got 2 servers with same error, on running centos 5 and one running centos 6. Both don't find any update available and no button "Upgrade Webmin" available, Virtualmin installed. Thanks.
Submitted by JamieCameron on Sat, 09/03/2016 - 01:14 Comment #26
You can go to Webmin -> Webmin Configuration -> Upgrade Webmin -> Update Modules, and force an update there.
Submitted by adlsrl on Mon, 09/05/2016 - 04:45 Comment #27
Sorry but Upgrade Webmin module isn't available. Virtualmin is installed there. I can only click on Update Modules but not force update. I can only Install from file or Url, Clone, Remove and Export modules. Thanks.
Submitted by adlsrl on Thu, 09/08/2016 - 07:56 Comment #28
Anyone can help me? Thanks!
I'm not sure why you wouldn't be able to update your system; all of mine offered to update automatically when the new module rolled out. Is your server able to ping webmin.com?
But, you can get a direct link to the updated module here: http://webmin.com/updates/bind8-1.810-3.wbm.gz
That can be installed in the Webmin->Webmin Configuration->Webmin Modules page.
I'll see if Jamie can roll a devel package that we can roll into our Virtualmin.com repos, just so that a fresh install doesn't have this bug for the few hours it takes to pick up the update.
Submitted by JamieCameron on Fri, 09/09/2016 - 00:22 Comment #30
I'm putting out a 1.813 devel version of Webmin now that includes this (and other) fixes.
Submitted by adlsrl on Mon, 09/12/2016 - 11:35 Comment #31
Hello, many thanks for your attention but currently I don't see any update available on my systems. Can I update the module manually using link above? Or is better to wait for the update? Thanks.
Submitted by JamieCameron on Tue, 09/13/2016 - 00:30 Comment #32
Yes, you can install using that link.
Just go to Webmin -> Webmin Configuration -> Webmin Modules, and install the module from the URL http://webmin.com/updates/bind8-1.810-3.wbm.gz
Submitted by adlsrl on Tue, 09/13/2016 - 04:49 Comment #33
Many thanks !!!! It's working now..
Submitted by skpsi on Mon, 09/19/2016 - 08:23 Pro Licensee Comment #34
Hi, After upgrde bind module i sill have an error : Can't use an undefined value as an ARRAY reference at ./bind8-lib.pl line 617.
That message show when i try edit zone options in slave zone
Submitted by JamieCameron on Mon, 09/19/2016 - 19:56 Comment #35
That's a separate bug :-( It will be fixed in the next Webmin release though.
Submitted by skpsi on Mon, 09/26/2016 - 08:26 Pro Licensee Comment #36
Another bug what i saw is in generate records i dont see any previously filed rows but when i lookup into generated record i can see them .
Submitted by ADDISON74 on Mon, 09/26/2016 - 16:19 Comment #37
I was used #32 solution and it is solving the issue with line 972. When it will be available in the new package? As I see it started about 3 months ago.