From anandb at ripe.net Mon Jun 6 12:53:05 2011 From: anandb at ripe.net (Anand Buddhdev) Date: Mon, 06 Jun 2011 14:53:05 +0200 Subject: [dsc] Errors when asking for dns_ip_version graphs Message-ID: <4DECCDB1.9020408@ripe.net> Hi people, I'm running dsc-201008131729 on a CentOS 5.6 system. One of the graphs I'm asking the grapher to generate is the "IP versions" graphs. When I click on that in the UI, I get back no graphs. The web server log shows: Odd number of elements in hash assignment at /usr/lib/perl5/v endor_perl/5.8.8/DSC/extractor.pm line 247, line 1., referer: http://dsc.ripe.net/cgi-bin/dsc-grapher.pl?plot=opcode&server=K-denic There are many such lines, followed by: Use of uninitialized value in addition (+) at /usr/lib/perl5/vendor_perl/5.8.8/DSC/grapher.pm line 1251., referer: http://dsc.ripe.net/cgi-bin/dsc-grapher.pl?plot=opcode&server=K-denic Has anyone else had these errors? If so, do you know how to fix the code? -- Anand Buddhdev From wessels at measurement-factory.com Mon Jun 6 16:17:36 2011 From: wessels at measurement-factory.com (Duane Wessels) Date: Mon, 6 Jun 2011 10:17:36 -0600 (MDT) Subject: [dsc] Errors when asking for dns_ip_version graphs In-Reply-To: <4DECCDB1.9020408@ripe.net> References: <4DECCDB1.9020408@ripe.net> Message-ID: On Mon, 6 Jun 2011, Anand Buddhdev wrote: > Hi people, > > I'm running dsc-201008131729 on a CentOS 5.6 system. One of the graphs > I'm asking the grapher to generate is the "IP versions" graphs. When I > click on that in the UI, I get back no graphs. The web server log shows: > > Odd number of elements in hash assignment at /usr/lib/perl5/v > endor_perl/5.8.8/DSC/extractor.pm line 247, line 1., referer: > http://dsc.ripe.net/cgi-bin/dsc-grapher.pl?plot=opcode&server=K-denic > > There are many such lines, followed by: > > Use of uninitialized value in addition (+) at > /usr/lib/perl5/vendor_perl/5.8.8/DSC/grapher.pm line 1251., referer: > http://dsc.ripe.net/cgi-bin/dsc-grapher.pl?plot=opcode&server=K-denic > > Has anyone else had these errors? If so, do you know how to fix the code? Anand, This was fixed in a after that last release. The patch is below and I will also post a new tarball. dsc/trunk$ svn diff -r12603:12604 Index: presenter/perllib/DSC/grapher/plot.pm =================================================================== --- presenter/perllib/DSC/grapher/plot.pm (revision 12603) +++ presenter/perllib/DSC/grapher/plot.pm (revision 12604) @@ -488,7 +488,6 @@ }, dns_ip_version => { - dataset => 'dns_ip_version_vs_qtype', plot_type => 'trace', keys => [qw(IPv4 IPv6 else)], names => [qw(IPv4 IPv6 Other)],