Bug 1249454 - munin-cron fails to copy /etc/munin/static to web directory
munin-cron fails to copy /etc/munin/static to web directory
Product: Fedora
Classification: Fedora
Component: munin (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: d. johnson
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2015-08-02 23:24 EDT by Alex Regan
Modified: 2015-08-03 22:23 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2015-08-03 22:23:45 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Alex Regan 2015-08-02 23:24:32 EDT
Description of problem:
munin-cron (/usr/share/munin/munin-html, actually) prints the following:

[ERROR] Could not copy contents from /etc/munin/static to /var/www/webhost/html/munin at /usr/share/perl5/vendor_perl/Munin/Master/HTMLOld.pm line 719.

Version-Release number of selected component (if applicable):

# rpm -qva|grep munin

How reproducible:
Every five minutes

Steps to Reproduce:
1. Prints from /etc/cron.d/munin

Actual results:

Expected results:
It should not print anything, and the webhost should be updated properly.

Additional info:
Comment 1 d. johnson 2015-08-03 01:11:59 EDT
Did you also change your selinux contexts when you moved the munin directory?

The above uses non-default paths, so I would expect you to have policy issues.
Comment 2 Alex Regan 2015-08-03 11:19:17 EDT
You mean the /etc/static/munin is not the default? It's what I find in the original /etc/munin/munin.conf.

If you mean, /var/www/webhost, then what is the standard path to add new webhosts, or how do I change the selinux context?

Thanks! Really appreciate your help. When it worked in fc20, I figured it was a bug, but apparently the update re-enabled selinux.
Comment 3 d. johnson 2015-08-03 21:42:43 EDT
No, what you are using is /var/www/webhost/html/munin -- this is not the default.


Long url, but that is the chapter dealing specifically with selinux and apache.


$ matchpathcon /var/www/html/munin/static /var/www/webhost/html/munin
/var/www/html/munin/static      system_u:object_r:httpd_munin_content_t:s0
/var/www/webhost/html/munin     system_u:object_r:httpd_sys_content_t:s0

The above shows the context for the default location, as well as the location you are using.  Different context for both.
Comment 4 Alex Regan 2015-08-03 22:22:58 EDT
Thanks very much.

Note You need to log in before you can comment on or make changes to this bug.