Bug 2183484 - Permission denied for group apache on /var/log/munin
Summary: Permission denied for group apache on /var/log/munin
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: munin
Version: epel8
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Kim B. Heino
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-03-31 10:40 UTC by Gabriele Pohl
Modified: 2023-05-27 02:27 UTC (History)
4 users (show)

Fixed In Version: munin-2.0.73-1.fc38 munin-2.0.73-1.fc37 munin-2.0.73-1.el9 munin-2.0.73-1.el8 munin-2.0.73-1.el7
Clone Of:
Environment:
Last Closed: 2023-05-27 01:17:38 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Gabriele Pohl 2023-03-31 10:40:15 UTC
Description of problem:

Error message came up on Munin monitoring website:
 
Can't open /var/log/munin/munin-cgi-html.log (Permission denied) at /usr/share/perl5/vendor_perl/Log/Log4perl/Appender/File.pm line 151.

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

munin-apache-2.0.72-1.el8.noarch

How reproducible:

After upgrade munin-apache package 

Steps to Reproduce:
1. upgrade munin-apache
2. Call munin-website 


Actual results:

No website and graphs are shown

Expected results:

Working monitoring web view

Additional info:

# ls -ld /var/log/munin
drwxr-x--- 2 munin adm 4096 Mar  7 10:55 /var/log/munin

can be fixed by 

chgrp apache /var/log/munin

Comment 1 Kim B. Heino 2023-04-25 15:53:19 UTC
Only "chgrp"? Don't you also need "chmod 770 /var/log/munin"? I would assume it needs to be 770 munin:apache.

Comment 2 Gabriele Pohl 2023-04-27 19:20:34 UTC
Looks like this here and works:

[root@moni ~]# ls -ld /var/log/munin
drwxr-x---. 2 munin adm 4096 Apr 23 03:13 /var/log/munin

[root@moni ~]# ls -l /var/log/munin
total 14796
-rw-rw----. 1 munin munin       0 Jul 31  2021 munin-cgi-graph.log
-rw-rw----. 1 munin munin       0 Jul 31  2021 munin-cgi-html.log
-rw-rw----. 1 munin munin  127320 Apr 27 21:15 munin-graph.log
-rw-rw----. 1 munin munin  187488 Apr  2 03:30 munin-graph.log-20230402
-rw-rw----. 1 munin munin  187209 Apr  9 03:15 munin-graph.log-20230409
-rw-rw----. 1 munin munin  187305 Apr 16 03:10 munin-graph.log-20230416
-rw-rw----. 1 munin munin  187490 Apr 23 03:10 munin-graph.log-20230423
-rw-r-----. 1 munin adm    501054 Apr 27 21:15 munin-html.log
-rw-r-----. 1 munin adm    737856 Apr  2 03:30 munin-html.log-20230402
-rw-r-----. 1 munin adm    736758 Apr  9 03:15 munin-html.log-20230409
-rw-r-----. 1 munin adm    737124 Apr 16 03:10 munin-html.log-20230416
-rw-r-----. 1 munin adm    737856 Apr 23 03:10 munin-html.log-20230423
-rw-r-----. 1 munin adm    213564 Apr 27 21:15 munin-limits.log
-rw-r-----. 1 munin adm    314496 Apr  2 03:30 munin-limits.log-20230402
-rw-r-----. 1 munin adm    314028 Apr  9 03:15 munin-limits.log-20230409
-rw-r-----. 1 munin adm    314184 Apr 16 03:10 munin-limits.log-20230416
-rw-r-----. 1 munin adm    314496 Apr 23 03:10 munin-limits.log-20230423
-rw-r-----. 1 munin adm   1341354 Apr 27 21:15 munin-update.log
-rw-r-----. 1 munin adm   1975680 Apr  2 03:30 munin-update.log-20230402
-rw-r-----. 1 munin adm   1972740 Apr  9 03:15 munin-update.log-20230409
-rw-r-----. 1 munin adm   1973100 Apr 16 03:10 munin-update.log-20230416
-rw-r-----. 1 munin adm   1971480 Apr 23 03:10 munin-update.log-20230423

Comment 3 Gabriele Pohl 2023-04-27 19:30:09 UTC
Sorry, forget my last comment. I was looking on the wrong machine ;(
I use munin-nginx-2.0.72-1.el8.noarch there and not munin-apache.
I expect to have access to the other machine tomorrow. 
Will look it up then and report again.

Comment 4 Gabriele Pohl 2023-05-05 21:38:09 UTC
Now the report from the machine where the problem was detected:

root@.. ~]# rpm -qa munin\*
munin-node-2.0.72-1.el8.noarch
munin-apache-2.0.72-1.el8.noarch
munin-cgi-2.0.72-1.el8.noarch
munin-2.0.72-1.el8.noarch
munin-common-2.0.72-1.el8.noarch

[root@.. ~]# ls -ld /var/log/munin
drwxr-x--- 2 munin apache 4096 Apr 30 03:37 /var/log/munin

[root@.. ~]# ls -l /var/log/munin
total 39476
-rw-rw---- 1 munin apache       0 Dec 12  2021 munin-cgi-graph.log
-rw-rw---- 1 munin apache  376496 Dec  9  2021 munin-cgi-graph.log-20211212
-rw-rw---- 1 munin apache    1162 May  5 17:47 munin-cgi-html.log
-rw-rw---- 1 munin apache      83 Apr  5 11:42 munin-cgi-html.log-20230408
-rw-rw---- 1 munin apache    3486 Apr 14 12:46 munin-cgi-html.log-20230415
-rw-rw---- 1 munin apache      83 Apr 24 09:17 munin-cgi-html.log-20230425
-rw-rw---- 1 munin apache      83 Apr 27 10:19 munin-cgi-html.log-20230430
-rw-rw---- 1 munin apache   89320 May  5 18:55 munin-graph.log
-rw-rw---- 1 munin apache  110715 Apr  9 03:25 munin-graph.log-20230409
-rw-rw---- 1 munin apache  110550 Apr 16 03:10 munin-graph.log-20230416
-rw-rw---- 1 munin apache  110880 Apr 23 03:10 munin-graph.log-20230423
-rw-rw---- 1 munin apache  111155 Apr 30 03:35 munin-graph.log-20230430
-rw-r----- 1 munin adm     215992 May  5 18:55 munin-html.log
-rw-r----- 1 munin adm     267729 Apr  9 03:25 munin-html.log-20230409
-rw-r----- 1 munin adm     267330 Apr 16 03:10 munin-html.log-20230416
-rw-r----- 1 munin adm     268128 Apr 23 03:10 munin-html.log-20230423
-rw-r----- 1 munin adm     268793 Apr 30 03:35 munin-html.log-20230430
-rw-r----- 1 munin adm    1358429 May  5 18:55 munin-limits.log
-rw-r----- 1 munin adm    1684743 Apr  9 03:25 munin-limits.log-20230409
-rw-r----- 1 munin adm    1681635 Apr 16 03:10 munin-limits.log-20230416
-rw-r----- 1 munin adm    1685376 Apr 23 03:10 munin-limits.log-20230423
-rw-r----- 1 munin adm    1690066 Apr 30 03:35 munin-limits.log-20230430
-rw-r----- 1 munin adm    5026487 May  5 18:55 munin-update.log
-rw-r----- 1 munin adm    6215286 Apr  9 03:25 munin-update.log-20230409
-rw-r----- 1 munin adm    6217028 Apr 16 03:10 munin-update.log-20230416
-rw-r----- 1 munin adm    6226338 Apr 23 03:10 munin-update.log-20230423
-rw-r----- 1 munin adm    6255270 Apr 30 03:35 munin-update.log-20230430

Comment 5 Fedora Update System 2023-05-18 18:46:56 UTC
FEDORA-EPEL-2023-c54b7b2e88 has been submitted as an update to Fedora EPEL 8. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-c54b7b2e88

Comment 6 Fedora Update System 2023-05-18 18:46:57 UTC
FEDORA-2023-ee0de440e1 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-ee0de440e1

Comment 7 Fedora Update System 2023-05-18 18:46:58 UTC
FEDORA-2023-74595c74a4 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-74595c74a4

Comment 8 Fedora Update System 2023-05-18 18:46:59 UTC
FEDORA-EPEL-2023-264eb822b5 has been submitted as an update to Fedora EPEL 9. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-264eb822b5

Comment 9 Kim B. Heino 2023-05-18 18:55:21 UTC
Above update 2.0.73-1 should fix this problem.

Comment 10 Fedora Update System 2023-05-19 02:00:58 UTC
FEDORA-EPEL-2023-264eb822b5 has been pushed to the Fedora EPEL 9 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-264eb822b5

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 11 Fedora Update System 2023-05-19 02:05:04 UTC
FEDORA-2023-74595c74a4 has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-74595c74a4`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-74595c74a4

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 12 Fedora Update System 2023-05-19 02:09:59 UTC
FEDORA-EPEL-2023-c54b7b2e88 has been pushed to the Fedora EPEL 8 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-c54b7b2e88

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 13 Fedora Update System 2023-05-19 02:13:56 UTC
FEDORA-EPEL-2023-d59d41f56f has been pushed to the Fedora EPEL 7 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-d59d41f56f

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 14 Fedora Update System 2023-05-19 02:20:30 UTC
FEDORA-2023-ee0de440e1 has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-ee0de440e1`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-ee0de440e1

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 15 Fedora Update System 2023-05-27 01:17:38 UTC
FEDORA-2023-ee0de440e1 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 16 Fedora Update System 2023-05-27 01:25:29 UTC
FEDORA-2023-74595c74a4 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 17 Fedora Update System 2023-05-27 01:57:33 UTC
FEDORA-EPEL-2023-264eb822b5 has been pushed to the Fedora EPEL 9 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 18 Fedora Update System 2023-05-27 02:00:42 UTC
FEDORA-EPEL-2023-c54b7b2e88 has been pushed to the Fedora EPEL 8 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 19 Fedora Update System 2023-05-27 02:27:06 UTC
FEDORA-EPEL-2023-d59d41f56f has been pushed to the Fedora EPEL 7 stable repository.
If problem still persists, please make note of it in this bug report.


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