New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[dev.icinga.com #8868] logrotate does not work #2827
Comments
Updated by mfriedrich on 2015-03-26 16:12:24 +00:00
Show the permissions of /var/log/icinga2 and below. |
Updated by nielsk on 2015-03-27 12:29:09 +00:00 /var/log/icinga2/: icinga:icingacmd ./compat/: icinga:icingacmd ./compat/archives: icinga:icingacmd ./crash/: icinga:icinga |
Updated by gbeutner on 2015-03-31 06:29:31 +00:00
|
Updated by jflach on 2015-03-31 10:22:00 +00:00
I am not experiencing any problems now, can you confirm this? |
Updated by jflach on 2015-03-31 10:22:33 +00:00
|
Updated by arcade on 2015-03-31 12:06:59 +00:00
I can confirm this, also with Centos 7, my icinga2.log is currently 3GB |
Updated by nielsk on 2015-04-14 06:32:26 +00:00 Sorry, I was on vacation. |
Updated by gbeutner on 2015-04-17 11:41:01 +00:00 Are you able to reproduce this problem with 2.3.3. |
Updated by arcade on 2015-04-17 15:12:12 +00:00
The logrotation would work if you define a size parameter. And the 'killall' command which is used in the postrotate, isn't installed as a default packages -> needs 'psmisc' packages |
Updated by mfriedrich on 2015-04-20 08:11:29 +00:00
Resolved in #8808. |
Updated by mfriedrich on 2016-06-06 12:47:07 +00:00
|
This issue has been migrated from Redmine: https://dev.icinga.com/issues/8868
Created by nielsk on 2015-03-26 07:58:58 +00:00
Assignee: nielsk
Status: Resolved (closed on 2015-04-20 08:11:28 +00:00)
Target Version: 2.3.4
Last Update: 2015-04-20 08:11:28 +00:00 (in Redmine)
Logrotate throws the following error:
2212 error: error setting owner of /var/log/icinga2/icinga2.log-20150326 to uid 998 and gid 996: Operation not permitted
2213 error: error setting owner of /var/log/icinga2/error.log-20150326 to uid 998 and gid 996: Operation not permitted
And the logs do not get rotated, just 20 Byte-sized gz-files get created
According to the manpage of logrotate copytruncate and create are incompatible. When I remove the copytruncate-dircetive and run logrotate manually with logrotate --force I get the following error:
error: error running non-shared postrotate script for /var/log/icinga2/icinga2.log of '/var/log/icinga2/icinga2.log /var/log/icinga2/debug.log '
But log-files get moved to a file called error.log.1 and icinga2.log.1 but are not getting zipped after running it manually.
My log-files reach back to January.
OS: CentOS Linux release 7.0.1406 (Core)
Attachments
Changesets
2015-03-31 10:18:20 +00:00 by jflach a283695
2015-04-20 06:54:17 +00:00 by jflach 66dd494
Relations:
The text was updated successfully, but these errors were encountered: