Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 570946 - net-analyzer/icinga2-2.4.1-r1 - Permission denied for /var/lib/icinga2/api
Summary: net-analyzer/icinga2-2.4.1-r1 - Permission denied for /var/lib/icinga2/api
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Matthew Thode ( prometheanfire )
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-05 10:05 UTC by WOLfgang Schricker
Modified: 2016-01-05 15:29 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description WOLfgang Schricker 2016-01-05 10:05:03 UTC
# tail -f /var/log/icinga2/icinga2.log
[2016-01-05 09:40:44 +0000] critical/ThreadPool: Exception thrown in event handler:
Error: Function call 'mkdir' failed with error code 13, 'Permission denied'

Reproducible: Always

Steps to Reproduce:
The owner of /var/lib/icinga2/api/[log,repository,zones] was root:root.
'mkdir' fails for /var/lib/icinga2/api/packages.


Actual Results:  
I have fixed with
# chown -R icinga:icingacmd /var/lib/icinga2/api

Expected Results:  
Ebuild should deal with 'fowners icinga:icingacmd /var/lib/icinga2/api'?
Comment 1 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2016-01-05 15:29:32 UTC
ya, was wondering where this was coming from.  was gonna wait for 2.4.2 for this (they print the directory in the error message), but this is better, fixed in r2