munin fails to work after reboot (/var/run/munin missing)

Bug #538587 reported by Daniel Hahler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
munin
Fix Released
Unknown
munin (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Binary package hint: munin

I've installed munin locally on Lucid, and it fails after reboot with the following errors:

Creating lock /var/run/munin/munin-limits.lock failed: No such file or directory
 at /usr/share/perl5/Munin/Master/LimitsOld.pm line 114
Creating lock /var/run/munin/munin-graph.lock failed: No such file or directory
 at /usr/share/perl5/Munin/Master/GraphOld.pm line 248
Creating lock /var/run/munin/munin-html.lock failed: No such file or directory
 at /usr/share/perl5/Munin/Master/HTMLOld.pm line 151

The problem is that when _create_rundir_if_missing is run (from /usr/share/perl5/Munin/Master/Update.pm run()), $config->{rundir} is "/tmp" and exists).
Later however, $config->{rundir} gets mapped to $MUNIN_STATEDIR - which is /var/run/munin.

Normally, this bug gets worked around when munin-node is running on the same node, too - since the start script (upstart in Ubuntu) creates /var/run/munin.

The real bug appears to be that $config isn't properly setup when _create_rundir_if_missing is run.

A workaround might be to create an init script for munin, too, which only creates the missing directory.

Version: 1.4.3-2ubuntu2

Related branches

Daniel Hahler (blueyed)
description: updated
Daniel Hahler (blueyed)
Changed in munin (Ubuntu):
status: New → Triaged
importance: Undecided → High
milestone: none → ubuntu-10.04-beta-2
Changed in munin:
status: Unknown → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package munin - 1.4.3-2ubuntu3

---------------
munin (1.4.3-2ubuntu3) lucid; urgency=low

  * debian/munin-node.upstart: Fix upstart tweaks. (LP: #538587)
 -- Chuck Short <email address hidden> Thu, 18 Mar 2010 11:51:15 -0400

Changed in munin (Ubuntu):
status: Triaged → Fix Released
Changed in munin:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.