[Bug 538587] Re: munin fails to work after reboot (/var/run/munin missing)

Daniel Hahler launchpad at thequod.de
Sun Mar 14 00:29:07 GMT 2010


** Description changed:

  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
+ 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

** Bug watch added: munin-monitoring.org/ #887
   http://munin-monitoring.org/ticket/887

** Also affects: munin via
   http://munin-monitoring.org/ticket/887
   Importance: Unknown
       Status: Unknown

** Changed in: munin (Ubuntu)
       Status: New => Triaged

** Changed in: munin (Ubuntu)
   Importance: Undecided => High

** Changed in: munin (Ubuntu)
    Milestone: None => ubuntu-10.04-beta-2

-- 
munin fails to work after reboot (/var/run/munin missing)
https://bugs.launchpad.net/bugs/538587
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to munin in ubuntu.



More information about the Ubuntu-server-bugs mailing list