You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2018/11/13 07:11:00 UTC

[jira] [Commented] (COUCHDB-1380) logrotate doesn't work correctly with couchdb 1.2.x

    [ https://issues.apache.org/jira/browse/COUCHDB-1380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16684798#comment-16684798 ] 

ASF subversion and git services commented on COUCHDB-1380:
----------------------------------------------------------

Commit 0565fed6b036601bb8886dca6b5dd2628fe47432 in couchdb-config's branch refs/heads/master from jiangph
[ https://git-wip-us.apache.org/repos/asf?p=couchdb-config.git;h=0565fed ]

Merge branch 'COUCHDB-1380-fix-nasty-error' of github.com:cloudant/couchdb-config


> logrotate doesn't work correctly with couchdb 1.2.x
> ---------------------------------------------------
>
>                 Key: COUCHDB-1380
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1380
>             Project: CouchDB
>          Issue Type: Bug
>    Affects Versions: 1.2
>         Environment: CentOS 5.6 x64, couchdb 1.2.x (13th Jan 2012 - 1.2.0a-08d8f89-git), logrotate 3.7.4
>            Reporter: Alex Markham
>            Assignee: Robert Newson
>            Priority: Blocker
>              Labels: logging, logrotate
>             Fix For: 1.2, 1.3
>
>
> Running logrotate -f with couchdb 1.2.x leaves null data at the start of the couch.log file, I'm guessing equal to the size of data that should have been removed and rotated into the log.1 (eg "head -c 1000000000 couch.log" is blank)
> This does not happen on couchdb 1.1.1, 1.0.2 or 1.0.3
> The log files then stay large, and when trying to grep or less them, they are reported as binary.
> This seems to have happened to another user, but no details of OS or version were reported: http://comments.gmane.org/gmane.comp.db.couchdb.user/16049 
> The logrotate config used is very similar to the one installed with couchdb -
> /var/log/couchdb/*.log {
>        size=150M
>        rotate 5
>        copytruncate
>        compress
>        delaycompress
>        notifempty
>        missingok
> }
> Has there been any changes to the interaction with log files/file handles since 1.1.1? Does couchdb need to receive a SIGHUP? Or can anyone reproduce this?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)