FS#30390 - munin - munin-cron - Creating lock /var/lock/munin-update.lock failed: Permission denied

Attached to Project: Arch Linux
Opened by winch (winch) - Wednesday, 20 June 2012, 21:27 GMT
Last edited by Dan McGee (toofishes) - Tuesday, 04 September 2012, 12:58 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Dan McGee (toofishes)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 9
Private No

Details

Attempting to run the command munin-cron under the munin user results in the following error,

Creating lock /var/lock/munin-update.lock failed: Permission denied
at /usr/share/perl5/vendor_perl/Munin/Master/Update.pm line 128.

To reproduce,

Install munin, attempt to run munin-cron as munin user
# su - munin --shell=/bin/bash
$ munin-cron

This task depends upon

Closed by  Dan McGee (toofishes)
Tuesday, 04 September 2012, 12:58 GMT
Reason for closing:  Fixed
Comment by Daniel Wallace (gtmanfred) - Wednesday, 20 June 2012, 21:51 GMT
change your rundir in /etc/munin/munin.conf to a place where you do have permissions
Comment by Dave Reisner (falconindy) - Wednesday, 20 June 2012, 21:54 GMT
The point is that this used to work and now it doesn't, because of the changes in how /run/lock (/var/lock, really) is created. Old perms were 1777, now its 0755.
Comment by Sven-Hendrik Haase (Svenstaro) - Thursday, 12 July 2012, 02:20 GMT
Doesn't this only require minimal changes in the rc.d script and perhaps systemd ones?
Comment by winch (winch) - Thursday, 12 July 2012, 19:05 GMT
No it requires a .conf file in /usr/share/tmpfiles.d so the correct permissions are set at boot.

Something very similar to this ;)
https://projects.archlinux.org/svntogit/packages.git/tree/trunk/munin.tmpfiles.conf?h=packages/munin
Comment by Sven-Hendrik Haase (Svenstaro) - Thursday, 19 July 2012, 13:46 GMT
Dan are you still interested in maintaining munin? Otherwise I might be able to get to this one of these days.
Comment by Daniel Wallace (gtmanfred) - Thursday, 19 July 2012, 15:00 GMT
Nothing to see here, I confused myself
Comment by Dan McGee (toofishes) - Thursday, 19 July 2012, 15:43 GMT
Yes I'm still working on this. There have been commits to SVN not to mention upstream pull requests made here.

Loading...