Skip to content

gitlab-ctl tail shows the contents of the gziped files from logrotate

  1. Summary: gitlab-ctl tail shows the contents of the gziped files from logrotate which makes it unsuable - it even breaks by tmux window.

  2. Steps to reproduce: You need to have logs that were already rotated, then:

sudo gitlab-ctl tail
  1. Expected behavior: Text logs were expected.

  2. Observed behavior: The output is garbage.

  3. Relevant logs and/or screenshots: (sample)

==> /var/log/gitlab/gitlab-rails/githost.log.1.gz <==
9�U=kཿ/Qd;_B    !����X��Դ��U�&�/B┬�\����├4�4N&�L�│
                                                  E�*��Q
��
�*◆*?֥E^�����DRπ�BF�]⎺G┼P@�c&����<Վ��J@5Ʊ�V]d�e��±��%�����84
==> /┴▒⎼/┌⎺±/±☃├┌▒b/±☃├┌▒b↑⎼▒☃┌⎽/▒⎻⎻┌☃c▒├☃⎺┼↓┌⎺±↓4↓±≥ <==
  1. Output of checks
  • Version: GitLab 7.9.0 16d6f0e3 - installed from omnibus package.
  • Neither bundle exec commands work (is this another bug?)
  1. Possible fixes: Instead of running
tail -f  *

it should be

tail -f *.log