#1154 new defect

How to Set [munin@A02RMCO54T15 Munin]$ /opt/munin/bin/munin-cron not a reference at /usr/lib/perl5/site_perl/5.8.8/Munin/Master/Utils.pm line 901

Reported by: East271536394 Owned by: nobody
Priority: low Milestone: Munin 3.0.0
Component: master Version: 2.0-beta4
Severity: normal Keywords: munin-cron
Cc:

Description

[munin@A02RMCO54T15 Munin]$ /opt/munin/bin/munin-cron

not a reference at /usr/lib/perl5/site_perl/5.8.8/Munin/Master/Utils.pm line 901

Change History (9)

comment:1 Changed at 2011-10-24T15:17:06+02:00 by sylr

Same problem here, same munin version :

munin@vtyv-munin:/root$ nice /opt/munin/lib/munin-html
not a reference at /usr/local/share/perl/5.10.1/Munin/Master/Utils.pm line 901
munin@vtyv-munin:/root$ cat /etc/debian_version 
6.0.2

comment:2 Changed at 2011-10-24T15:27:11+02:00 by sylr

Here a debug trace :

munin@vtyv-munin:/root$ nice /opt/munin/lib/munin-html --debug
2011/10/24 15:28:44 [DEBUG] munin_set_var_path: Setting var "version" = "2.0-beta4"
2011/10/24 15:28:44 [DEBUG] Determined that cgiurl_graph is /cgi-bin/munin-cgi-graph
2011/10/24 15:28:44 [DEBUG] Writing state to /var/lib/munin/htmlconf.storable
2011/10/24 15:28:44 [PERL WARNING] Use of uninitialized value in list assignment at /usr/local/share/perl/5.10.1/Munin/Master/Utils.pm line 111.
not a reference at /usr/local/share/perl/5.10.1/Munin/Master/Utils.pm line 901

comment:3 Changed at 2011-10-24T18:59:24+02:00 by sylr

I resolved the problem by doing "make" before doing "make install"

comment:4 Changed at 2011-11-06T18:11:40+01:00 by mowmw

Same Problem here although i've done make before "make install".
My debug-log looks exactly the same as sylr's.

comment:5 Changed at 2011-11-16T08:17:14+01:00 by hypfvieh

Just to clearify some things regarding this "error".
I wasted 2 days of work to find out why this error happens.

First of all, the make/make install thing is correct.
But even if you have done this (like me), you can run into this problem.

The thing is: This error is not really an error. I tracked down this issue to $PERLLIB/Munin/Master/HTMLOld.pm. The script trys to generate the node tree.

If you swap this file with the old version of 1.4.6, you get another "error" message, but with better information.
In 1.4 the error tells you that there are no nodes or graphs and so the script cannot continue (it also points you to an FAQ-entry).

After that message suddenly everything fits together:

In Version 2.0-beta4 you always get the "error in line 901" message if you dont have collected any data for any node. So the directory usually created in /var/opt/munin is empty.

Instead of checking this, and inform you about this problem, the new script tries to continue and fails with the error above.

So to "fix" this, you just have to start the node and wait for munin-update to be launched (or launch it manually if you dont want to wait for cron).
After that you can run munin-html without this crappy error.

For one of the next releases, it would be nice to have a better error message when no data is available.

comment:6 Changed at 2011-11-16T16:19:49+01:00 by mowmw

Sry, but reinstalled munin (deleted all files in /etc and /var/opt)
but there still is the problem with the error in line 901.
This time while executing munin-cron...

The weird thing is, that /var/opt/munin isn't empty, there are some files...

# ls -ali /var/opt/munin/
total 28K
647172 drwxr-xr-x 2 munin root  4.0K Nov 16 16:16 .
639069 drwxr-xr-x 3 root  root  4.0K Nov  6 16:57 ..
647185 -rw-r--r-- 1 munin munin   18 Nov 16 16:16 datafile
647187 -rw-r--r-- 1 munin munin   33 Nov 16 16:16 datafile.storable
647171 -rw-r--r-- 1 munin munin    0 Nov 16 16:16 htmlconf.storable
647180 -rw-r--r-- 1 munin munin   18 Nov 16 16:16 limits
647189 -rw-r--r-- 1 munin munin    9 Nov 16 16:16 munin-update.stats
647191 -rw-r--r-- 1 munin munin   11 Nov 16 16:16 state-de-wemakeweb.de.storable

comment:7 Changed at 2011-11-16T16:24:53+01:00 by mowmw

Ouh damnit... Sorry, my mistake... Could you please remove my comment and this one?

comment:8 Changed at 2011-11-16T19:03:15+01:00 by hypfvieh

The script only works if there are *.rrd files inside of /var/opt/munin.
Munin-Update creates subfolders in /var/opt/munin, usually "groupname/nodename". Inside of this folder are .rrd files.

If there are no rrd-files or the subfolders are non-existing, the munin-node configuration is not working (munin-update doesnt get any data from it).

Please be sure munin-update is working before running munin-html!

comment:9 Changed at 2012-01-31T15:25:18+01:00 by snide

  • Milestone changed from Munin 2.0 to Munin 3.0
  • Priority changed from highest to low

We should have a better error message, but since the workaround is just to wait, i'm pushing it to 3.0, and lower its priority.

Note: See TracTickets for help on using tickets.