Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 621614 - media-sound/mpd: logrotate needs delaycompress option
Summary: media-sound/mpd: logrotate needs delaycompress option
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mikle Kolyada (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-12 17:47 UTC by Ian Zimmerman
Modified: 2018-09-28 20:08 UTC (History)
2 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 Ian Zimmerman 2017-06-12 17:47:23 UTC
After I switched to running mpd system-wide, I started getting emails like the following from cron:

error: Compressing program wrote following message to stderr when compressing log
/var/lib/mpd/log-20170611:
gzip: stdin: file size changed while zipping

Looks to me the logrotate bit needs the "delaycompress" option.
Comment 1 Pertti Kosunen 2017-09-18 08:58:13 UTC
"copytruncate" logrotate option instead "postrotate, /etc/init.d/mpd reload, endscript" might also work?

Sep 17 03:10 : log: error re-opening log file: /var/lib/mpd/log

I get this error with media-sound/mpd-0.20.10 to end of gzipped log and nothing gets logged after rotate.
Comment 2 Larry the Git Cow gentoo-dev 2018-09-28 20:08:52 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=85d2b11e7ec087540d5ba07697ee5bbb93136291

commit 85d2b11e7ec087540d5ba07697ee5bbb93136291
Author:     Mikle Kolyada <zlogene@gentoo.org>
AuthorDate: 2018-09-28 20:04:13 +0000
Commit:     Mikle Kolyada <zlogene@gentoo.org>
CommitDate: 2018-09-28 20:08:06 +0000

    media-sound/mpd: revbump to fix logrotate settings
    
    Closes: https://bugs.gentoo.org/621614
    Package-Manager: Portage-2.3.49, Repoman-2.3.10

 media-sound/mpd/files/mpd-0.20.21.logrotate |   9 +
 media-sound/mpd/mpd-0.20.21-r1.ebuild       | 270 ++++++++++++++++++++++++++++
 2 files changed, 279 insertions(+)