Open vitalyzhakov opened 6 years ago
root@8da3f4eb72b2:/home/git/gitlab# /etc/cron.daily/logrotate
error: /etc/logrotate.conf:7 unknown group 'syslog'
But that's probably not just it. Logrotate needs some different default config, gitlab logs can grow a LOT over 52 weeks...
Can log rotate be fixed in upcoming release? Is it something that needs to be fixed in ubuntu base image?
The problem with "unknown group 'syslog'" has already been fixed and merged. Another possible problem is that sidekiq has its own log rotation that conflicts with logrotate.
I have solved this by disabling sidekiq rotation, modifying logrotate settings (to rotate based on size) and running logrotate hourly, not daily.
This issue has been automatically marked as stale because it has not had any activity for the last 60 days. It will be closed if no further activity occurs during the next 7 days. Thank you for your contributions.
@drujd do you do the logrotate in the host system or in the container? https://github.com/sameersbn/docker-gitlab/issues/1544#issuecomment-384103487
we have the same issue, is there any progress with this?
Hello!
I think, gitlab container takes up a lot of disk space.
May be exists cron script for cleaning up old logs?