Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 609044 - www-apps/tt-rss logrotate file size changed while zipping
Summary: www-apps/tt-rss logrotate file size changed while zipping
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: James Le Cuirot
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-12 07:43 UTC by Fab
Modified: 2018-01-18 13:44 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 Fab 2017-02-12 07:43:30 UTC
Often when logrotate runs I'm getting this :
> error: Compressing program wrote following message to stderr
> when compressing log /var/log/ttrssd.log-20170212:
> gzip: stdin: file size changed while zipping

To workaround this the delaycompress directive should be added to /etc/logrotate.d/ttrssd :

> --- ttrssd.old  2017-02-12 08:31:48.973336759 +0100
> +++ ttrssd      2017-02-12 08:32:05.593338429 +0100
> @@ -2,6 +2,7 @@
>         daily
>         missingok
>         notifempty
> +       delaycompress
>         postrotate
>                 /etc/init.d/ttrssd restart > /dev/null
>         endscript

See also https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=718703 for a similar bug.

Reproducible: Always
Comment 1 Larry the Git Cow gentoo-dev 2018-01-18 13:44:05 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9605ea072743f9a1a27eaf8437de2a41a263bdaf

commit 9605ea072743f9a1a27eaf8437de2a41a263bdaf
Author:     James Le Cuirot <chewi@gentoo.org>
AuthorDate: 2018-01-18 13:39:08 +0000
Commit:     James Le Cuirot <chewi@gentoo.org>
CommitDate: 2018-01-18 13:43:48 +0000

    www-apps/tt-rss: Bump to 20180105, security fix, other fixes
    
    * Addresses unsafe use of recursive chown/chmod in the init script
      whilst also dealing with poor permissions handling that may have led
      to issues in the past.
    * Fixes "postgresql" misspelling in the init script.
    * Fixes logrotate issue using delaycompress directive.
    * Allows options to be passed to the daemon.
    
    Bug: https://bugs.gentoo.org/603518
    Closes: https://bugs.gentoo.org/609044
    Closes: https://bugs.gentoo.org/620878
    Closes: https://bugs.gentoo.org/627048
    Closes: https://bugs.gentoo.org/639918
    Package-Manager: Portage-2.3.19, Repoman-2.3.6

 www-apps/tt-rss/Manifest                           |  1 +
 www-apps/tt-rss/files/permissions                  | 25 ++++++
 .../tt-rss/files/postinstall-en-with-daemon-r1.txt | 14 ++++
 .../tt-rss/files/postinstall-en-with-daemon.txt    |  2 +-
 www-apps/tt-rss/files/postinstall-en.txt           |  7 +-
 www-apps/tt-rss/files/ttrssd.confd-r2              | 47 ++++++++++++
 www-apps/tt-rss/files/ttrssd.initd-r3              | 88 ++++++++++++++++++++++
 www-apps/tt-rss/files/ttrssd.logrotated            |  1 +
 www-apps/tt-rss/files/ttrssd.logrotated-r1         |  9 +++
 www-apps/tt-rss/tt-rss-20180105.ebuild             | 84 +++++++++++++++++++++
 10 files changed, 271 insertions(+), 7 deletions(-)