Skip to content

Sync Gateway stops logging after second rotate #2149

@adamcfraser

Description

@adamcfraser

From https://forums.couchbase.com/t/sync-gateway-1-3-stops-logging-after-second-rotate.

After the second rotation sync gateway stopped logging to the newly named sync_gateway_error.log and now it is not logging anything as far as I can tell.

Platform: Ubuntu 12.04
Sync Gateway: 1.3.1

logrotate config:

/home/sync_gateway/logs/sync_gateway_error.log {
        dateext
        dateformat -%s
        rotate 20
        size 10k
        missingok
        notifempty
        compress
        postrotate
                /usr/bin/pkill -HUP sync_gateway > /dev/null
        endscript
}

This logrotate config was working with Sync Gateway 1.1.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions