docker-gitlab icon indicating copy to clipboard operation
docker-gitlab copied to clipboard

Very large log files

Open vitalyzhakov opened this issue 7 years ago • 6 comments

Hello!

I think, gitlab container takes up a lot of disk space.

root@edc9dbd271eb:/var/log/gitlab# du --max-depth=1 -h
1.5G	./nginx
8.8G	./gitlab
286M	./gitlab-shell
735M	./supervisor
12G	.

May be exists cron script for cleaning up old logs?

vitalyzhakov avatar Mar 13 '18 11:03 vitalyzhakov

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...

drujd avatar Mar 15 '18 12:03 drujd

Can log rotate be fixed in upcoming release? Is it something that needs to be fixed in ubuntu base image?

hardikns avatar Apr 24 '18 03:04 hardikns

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.

drujd avatar Apr 24 '18 22:04 drujd

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.

stale[bot] avatar May 07 '20 04:05 stale[bot]

@drujd do you do the logrotate in the host system or in the container? https://github.com/sameersbn/docker-gitlab/issues/1544#issuecomment-384103487

josefglatz avatar Oct 06 '20 08:10 josefglatz

we have the same issue, is there any progress with this?

nullaegy avatar Sep 23 '24 08:09 nullaegy