Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 689558 - app-admin/logrotate: logrotate issue with "delaycompress" config option in sys-process/atop
Summary: app-admin/logrotate: logrotate issue with "delaycompress" config option in sy...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-09 18:17 UTC by Toralf Förster
Modified: 2021-12-20 02:32 UTC (History)
4 users (show)

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 Toralf Förster gentoo-dev 2019-07-09 18:17:33 UTC
I added for some reason "delaycompress" to /etc/logrotate.conf and do now get :

error: error unlinking log file /var/log/atop/dummy_before-20190708.gz: No such file or directory
error: error unlinking log file /var/log/atop/dummy_after-20190708.gz: No such file or directory

once a day from "Anacron job 'cron.daily' on <hostname>"

I do wonder if it is related to that config option and how I can avoid it?
Comment 1 Vladimir Varlamov 2020-07-07 12:12:54 UTC
/etc/logrotate.d/psaccu_atop must contain nodelaycompress
it looks like a bug in logrotate: delaycompress with rotate 0
Comment 2 Vladimir Varlamov 2020-07-07 12:18:48 UTC
https://github.com/logrotate/logrotate/issues/341
Comment 3 Vladimir Varlamov 2020-07-13 11:32:27 UTC
Fixed in logrotate 3.18 (unreleased)
Comment 4 Kamil Dudka 2020-07-13 12:31:29 UTC
upstream commit: https://github.com/logrotate/logrotate/commit/5c6b370d