[Pkg-puppet-devel] Bug#881584: logrotate probably not needed - or at least using wrong permissions
Kilian Krause
kilian at debian.org
Mon Nov 13 08:58:45 UTC 2017
Package: puppetdb
logroate.d config seems to be unneeded. Error message is:
/etc/cron.daily/logrotate:
error: destination /var/log/puppetdb/puppetdb-access.log.1 already exists, renaming to /var/log/puppetdb/puppetdb-access.log.1-2017111306.backup
error: error setting owner of /var/log/puppetdb/puppetdb-access.log.1 to uid 109 and gid 113: Operation not permitted
error: destination /var/log/puppetdb/puppetdb.log.1 already exists, renaming to /var/log/puppetdb/puppetdb.log.1-2017111306.backup
error: error setting owner of /var/log/puppetdb/puppetdb.log.1 to uid 109 and gid 113: Operation not permitted
run-parts: /etc/cron.daily/logrotate exited with return code 1
Yet the puppetdb seems to be rotating already automagically all by itself:
# ls -l /var/log/puppetdb/
total 1216
-rw-r--r-- 1 puppetdb puppetdb 7778 Okt 31 00:00 puppetdb-2017-10-30.0.log.gz
-rw-r--r-- 1 puppetdb puppetdb 7953 Nov 1 00:00 puppetdb-2017-10-31.0.log.gz
-rw-r--r-- 1 puppetdb puppetdb 7909 Nov 2 00:00 puppetdb-2017-11-01.0.log.gz
-rw-r--r-- 1 puppetdb puppetdb 9758 Nov 3 00:01 puppetdb-2017-11-02.0.log.gz
-rw-r--r-- 1 puppetdb puppetdb 9423 Nov 4 00:00 puppetdb-2017-11-03.0.log.gz
-rw-r--r-- 1 puppetdb puppetdb 9327 Nov 5 00:00 puppetdb-2017-11-04.0.log.gz
-rw-r--r-- 1 puppetdb puppetdb 7781 Nov 6 00:00 puppetdb-2017-11-05.0.log.gz
-rw-r--r-- 1 puppetdb puppetdb 6207 Nov 7 00:00 puppetdb-2017-11-06.0.log.gz
-rw-r--r-- 1 puppetdb puppetdb 6242 Nov 8 00:00 puppetdb-2017-11-07.0.log.gz
-rw-r--r-- 1 puppetdb puppetdb 6219 Nov 9 00:00 puppetdb-2017-11-08.0.log.gz
-rw-r--r-- 1 puppetdb puppetdb 6236 Nov 10 00:00 puppetdb-2017-11-09.0.log.gz
-rw-r--r-- 1 puppetdb puppetdb 6233 Nov 11 00:01 puppetdb-2017-11-10.0.log.gz
-rw-r--r-- 1 puppetdb puppetdb 6193 Nov 12 00:01 puppetdb-2017-11-11.0.log.gz
-rw-r--r-- 1 puppetdb puppetdb 6446 Nov 13 00:01 puppetdb-2017-11-12.0.log.gz
-rw-r--r-- 1 puppetdb puppetdb 21918 Okt 31 00:00 puppetdb-access-2017-10-30.0.log.gz
-rw-r--r-- 1 puppetdb puppetdb 47625 Nov 1 00:00 puppetdb-access-2017-10-31.0.log.gz
-rw-r--r-- 1 puppetdb puppetdb 47975 Nov 2 00:00 puppetdb-access-2017-11-01.0.log.gz
-rw-r--r-- 1 puppetdb puppetdb 48470 Nov 3 00:01 puppetdb-access-2017-11-02.0.log.gz
-rw-r--r-- 1 puppetdb puppetdb 46569 Nov 4 00:01 puppetdb-access-2017-11-03.0.log.gz
-rw-r--r-- 1 puppetdb puppetdb 61288 Nov 5 00:04 puppetdb-access-2017-11-04.0.log.gz
-rw-r--r-- 1 puppetdb puppetdb 59023 Nov 6 00:03 puppetdb-access-2017-11-05.0.log.gz
-rw-r--r-- 1 puppetdb puppetdb 44198 Nov 7 00:03 puppetdb-access-2017-11-06.0.log.gz
-rw-r--r-- 1 puppetdb puppetdb 44500 Nov 8 00:03 puppetdb-access-2017-11-07.0.log.gz
-rw-r--r-- 1 puppetdb puppetdb 44487 Nov 9 00:03 puppetdb-access-2017-11-08.0.log.gz
-rw-r--r-- 1 puppetdb puppetdb 44423 Nov 10 00:03 puppetdb-access-2017-11-09.0.log.gz
-rw-r--r-- 1 puppetdb puppetdb 44634 Nov 11 00:00 puppetdb-access-2017-11-10.0.log.gz
-rw-r--r-- 1 puppetdb puppetdb 44643 Nov 12 00:00 puppetdb-access-2017-11-11.0.log.gz
-rw-r--r-- 1 puppetdb puppetdb 44900 Nov 13 00:00 puppetdb-access-2017-11-12.0.log.gz
-rw-r--r-- 1 puppetdb puppetdb 428948 Nov 13 09:55 puppetdb-access.log
-rw------- 1 puppetdb adm 0 Nov 13 06:25 puppetdb-access.log.1
-rw------- 1 puppetdb adm 0 Nov 1 06:25 puppetdb-access.log.1-2017110206.backup
-rw------- 1 puppetdb adm 0 Nov 2 06:25 puppetdb-access.log.1-2017110306.backup
-rw------- 1 puppetdb adm 0 Nov 3 06:25 puppetdb-access.log.1-2017110406.backup
-rw------- 1 puppetdb adm 0 Nov 4 06:25 puppetdb-access.log.1-2017110506.backup
-rw------- 1 puppetdb adm 0 Nov 5 06:25 puppetdb-access.log.1-2017110606.backup
-rw------- 1 puppetdb adm 0 Nov 6 06:25 puppetdb-access.log.1-2017110706.backup
-rw------- 1 puppetdb adm 0 Nov 7 06:25 puppetdb-access.log.1-2017110806.backup
-rw------- 1 puppetdb adm 0 Nov 8 06:25 puppetdb-access.log.1-2017110906.backup
-rw------- 1 puppetdb adm 0 Nov 9 06:25 puppetdb-access.log.1-2017111006.backup
-rw------- 1 puppetdb adm 0 Nov 10 06:25 puppetdb-access.log.1-2017111106.backup
-rw------- 1 puppetdb adm 0 Nov 11 06:25 puppetdb-access.log.1-2017111206.backup
-rw------- 1 puppetdb adm 0 Nov 12 06:25 puppetdb-access.log.1-2017111306.backup
-rw-r--r-- 1 puppetdb puppetdb 20357 Nov 13 09:40 puppetdb.log
-rw------- 1 puppetdb adm 0 Nov 13 06:25 puppetdb.log.1
-rw------- 1 puppetdb adm 0 Nov 1 06:25 puppetdb.log.1-2017110206.backup
-rw------- 1 puppetdb adm 0 Nov 2 06:25 puppetdb.log.1-2017110306.backup
-rw------- 1 puppetdb adm 0 Nov 3 06:25 puppetdb.log.1-2017110406.backup
-rw------- 1 puppetdb adm 0 Nov 4 06:25 puppetdb.log.1-2017110506.backup
-rw------- 1 puppetdb adm 0 Nov 5 06:25 puppetdb.log.1-2017110606.backup
-rw------- 1 puppetdb adm 0 Nov 6 06:25 puppetdb.log.1-2017110706.backup
-rw------- 1 puppetdb adm 0 Nov 7 06:25 puppetdb.log.1-2017110806.backup
-rw------- 1 puppetdb adm 0 Nov 8 06:25 puppetdb.log.1-2017110906.backup
-rw------- 1 puppetdb adm 0 Nov 9 06:25 puppetdb.log.1-2017111006.backup
-rw------- 1 puppetdb adm 0 Nov 10 06:25 puppetdb.log.1-2017111106.backup
-rw------- 1 puppetdb adm 0 Nov 11 06:25 puppetdb.log.1-2017111206.backup
-rw------- 1 puppetdb adm 0 Nov 12 06:25 puppetdb.log.1-2017111306.backup
-rw-r--r-- 1 puppetdb puppetdb 0 Okt 30 15:56 puppetdb-status.log
#
Best,
Kilian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 173 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-puppet-devel/attachments/20171113/59b5c80a/attachment.sig>
More information about the Pkg-puppet-devel
mailing list