Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#23802 - [munin] /var/lock/munin does not exist
Attached to Project:
Arch Linux
Opened by Holoduke (Holoduke) - Sunday, 17 April 2011, 02:47 GMT
Last edited by Dan McGee (toofishes) - Monday, 20 June 2011, 14:57 GMT
Opened by Holoduke (Holoduke) - Sunday, 17 April 2011, 02:47 GMT
Last edited by Dan McGee (toofishes) - Monday, 20 June 2011, 14:57 GMT
|
Detailsmunin 1.4.5-3:
munin-cron requires a lock directory which is /var/lock/munin by default, however that directory is not in the package. Munin-cron will fail if the lock directory does not exist. |
This task depends upon
Another, possibly simpler, solution might be to store the lock files directly under /var/lock without having a munin subdirectory.
I'm attaching the changes I did to the package. These are:
- Set LOCKDIR to '$(DESTDIR)/var/lock' in Makefile.config.
- Removed the hunk regarding Makefile.config from munin-lock-location.patch since the changes are applied to Makefile.config itself.
- Deleted references to /var/lock/munin from the install scriptlets.
Here's how I tested:
1) On a server with munin 1.4.5-4 installed, I removed the /var/lock/munin directory.
2) I ran 'sudo -u munin munin-cron' and got the expected errors:
Creating lock /var/lock/munin/munin-graph.lock failed: No such file or directory
at /usr/share/perl5/vendor_perl/Munin/Master/GraphOld.pm line 248
Creating lock /var/lock/munin/munin-limits.lock failed: No such file or directory
at /usr/share/perl5/vendor_perl/Munin/Master/LimitsOld.pm line 114
Creating lock /var/lock/munin/munin-html.lock failed: No such file or directory
at /usr/share/perl5/vendor_perl/Munin/Master/HTMLOld.pm line 151
3) Installed the modified packages (both munin and munin-node, since the latter includes the Defaults.pm file which contains the paths). I then reran 'sudo -u munin munin-cron' and the graphs were updated with no errors returned.
Sorry for the huge delay here, but I have applied this and a few other fixes, along with some upstream SVN checkins due to the lack of release, and released a new set of packages.
--8<------------------
# sudo -u munin munin-cron
Creating lock /var/run/munin/munin-update.lock failed: Permission denied
at /usr/share/perl5/vendor_perl/Munin/Master/Update.pm line 128
--8<------------------
The following is a change from the upstream SVN commits pulled into 1.4.5.stable-1:
--8<------------------
Index: master/lib/Munin/Master/Config.pm
===================================================================
--- master/lib/Munin/Master/Config.pm (.../tags/1.4.5) (revision 4208)
+++ master/lib/Munin/Master/Config.pm (.../branches/1.4-stable) (revision 4208)
@@ -148,7 +148,7 @@
local_address => 0,
logdir => $Munin::Common::Defaults::MUNIN_LOGDIR,
max_processes => $MAXINT,
- rundir => '/tmp',
+ rundir => $Munin::Common::Defaults::MUNIN_STATEDIR,
timeout => 180,
tls => 'disabled',
tls_ca_certificate => "$Munin::Common::Defaults::MUNIN_CONFDIR/cacert.pem",
--8<------------------
I think rundir should be changed to $Munin::Common::Defaults::MUNIN_LOCKDIR. That's the value mentioned as the default in /etc/munin/munin.conf, and the value used in /usr/share/perl5/vendor_perl/Munin/Master/Utils.pm.
Attached is an updated munin-lock-location.patch that works for me.
Thanks!