New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warning: <context> element has non-unique value in 'name' key attribute in bind.pm line 308. #181
Comments
I've seen a similar problem here https://rt.cpan.org/Public/Bug/Display.html?id=45025 Can you, please, change the line https://github.com/mikaku/Monitorix/blob/master/lib/bind.pm#L308 in your
and restart Monitorix. Let me know. |
Works a lot better now, but there's a new warning ;) bind_update(): Not a HASH reference at /usr/lib/monitorix/bind.pm line 330. All values, below the graphs, are "-nan" but, this might be a result of the above.... |
Can you pastebin (here or somewhere) the complete XML output you get using the same command line as in your Thanks. |
Hi, not sure how should have DLed the page, so I used curl - curl http://localhost:8053/ > a Here's the output. I haven't made any adjustments to the bind section in the conf file, which my be the culprit. |
I've removed my suggested change above:
So, I'm using the default I've put that raw into a file and then modified the I'm not seeing any error message in the log file. It looks like Sometimes, after BIND has been restarted, the XML output changes a lot and it might help to stop these annoying messages. Are you still getting the same errors? |
Yes, If I revert, they come back. |
I'm unable to reproduce your problem. 😞 |
If you email me your IP, I'll make my bind/named accessible from remote. my username at gmail. |
Ok, done. |
Around 1030h (CET) today I've started a Monitorix that collects BIND data from your IP address. So far, I've not yet seen any error message in the logs:
The following is a recent screen shot with the stats of your BIND server. This should be the same as yours. My system is an up-to-date genuine CentOS 6, and hence Monitorix is using Perl v5.10.1. |
hmmm ..... upgraded to monitorix-3.9.0-2.fc26.noarch.rpm, still seeing the element has non-unique value error. could this be related to some external functionality used by monitorix ? |
Well, the Perhaps your system has a newer version that is showing that message? |
Yeah, when the warnings come, the graphs seem to get plotted correctly. Here: perl-XML-Simple-2.22-3.fc25.noarch |
Looks like in some version after 2.18 they increased the log level.
(crossing fingers) |
nope, still the same :-| |
I resorted to commenting out "use warnings;" in bind.pm to prevent the logs from filling up. ¯\(ツ)/¯ |
Yup, That seems to solve the problem for me as well ... ;) Thnx Erreu |
Disabling global warnings might prevent from seeing other interesting warnings. |
strange enough i have similar issue on Archlinux, but i don't even get the data graphed for incoming queries, nor NameServer Statistics , but other BIND graphs works fine (like outgoing queries, resolver statistics, CacheDB RRSets..) . Monitorix 3.9 EDIT: attaching bind stats xml file |
Have You guys found any solution to this problem other than workaround to comment out "use warnings;"? I still see that issue in 3.10... |
@wmyrda, what version of Perl-XML-Simple you have there? |
@mikaku |
wow it seems Gentoo uses stone age version of it from 2012... I see how it goes with more recent |
I have tried version 2.18, 2.20, 2.22 & 2.24 with same result. It may be something changed elsewhere. In perl itself maybe? [I] dev-lang/perl |
@wmyrda, mine is perl-XML-Simple-2.18-6.el6.noarch and is working perfectly. |
@mikaku On 22 May 2017 You have said your perl version is 5.10. Is it still the case? As mine and few other people is 5.26 than difference is quite substantial. One can expect some change could have taken place that is causing the issue. |
Perl 5.26!, you guys are living on the edge! ;-) I have that module working finely either on CentOS 6 (Perl v5.10.1) and on CentOS 7 (Perl v5.16.3), so I'm afraid the latest Perl version I've tested it is v5.16.3. |
5.16 sounds more likely ;) I did not fill like checking all the way back to 5.10 :P Hence there is fewer versions to check I will do so in a bit. |
Well I used up all the portage tricks I know to install older version of perl 5.24.3, but every single time it wants to pull back 5.26.1. I didn't know downgrading perl would be that hard. I'll ask in the forums how others do it and hopefully figure out a way, but it is likely that I will install some other distro in virtualbox with older perl version to see if that is the cause of the bind.pm breakage. |
OK, keep us informed. |
I just tested Monitorix on the Ubuntu Server 16.04 LTS where they use perl 5.22 and the problem still does appear :( |
I have just noticed that there is additional difference among 5.22 & 5.26. On the Ubuntu system (perl 5.22, bind 9.10.3) even with #use warnings; I get information on all graphs while on Gentoo with (perl 5.26, bind 9.11.2) "incoming queries" and "name server statistics" are empty. That kinda makes the whole issue a bit more severe :( |
Not sure if I understood your last posts: You said:
and then:
So, it works in Ubuntu system with Perl 5.22 and BIND 9.10.3? Let me know. |
I hope this clears it up
|
OK, I have just finally installed F27 on a virtual machine. It comes with Perl v5.26.1 and BIND 9.11.2 and now I see a lot of messages like these:
So, give me some time to find out if I can fix them. |
…ple, fixing a number of long standing bugs. #181
I've rewritten the way how Please, download the latest version of Don't forget to install Perl XML-LibXML in your system. |
Enabled bind in the conf file, and monitorix started to throw these warnings:
Warning: element has non-unique value in 'name' key attribute: zonemgr-pool at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: client at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: client at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: client at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: cache at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: cache_heap at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res0 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res1 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res2 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res3 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res4 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res5 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res6 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res7 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res8 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res9 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res10 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res11 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res12 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res13 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res14 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res15 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res16 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res17 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res18 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res19 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res20 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res21 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res22 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res23 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res24 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res25 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res26 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res27 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res28 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res29 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res30 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res31 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res32 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res33 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res34 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res35 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res36 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res37 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res38 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res39 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res40 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res41 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res42 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res43 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res44 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res45 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res46 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res47 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res48 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res49 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res50 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res51 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res52 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res53 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res54 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res55 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res56 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res57 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res58 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res59 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res60 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res61 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res62 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res63 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res64 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res65 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res66 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res67 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res68 at /usr/lib/monitorix/bind.pm line 308.
Warning: element has non-unique value in 'name' key attribute: res69 at /usr/lib/monitorix/bind.pm line 308.
the attribute name differs (there's more of them, I didn't C&P all), but the error message is the same.
bind.pm is the same as the current one at github.
BIND 9.10.4-P8-RedHat-9.10.4-4.P8.fc25 is used.
The text was updated successfully, but these errors were encountered: