Log directory location isn't updated when tailing
Summary
When updating the gitlab-rails
log to something else:
Steps to reproduce
- Change log location
gitlab_rails['log_directory'] = "/build/log/gitlab/gitlab-rails"
- Reconfigure and restart logs
gitlab-ctl reconfigure # logs are created in the new directory
systemctl restart gitlab-runsvdir.service
- Tail
gitlab-ctl tail # logs will not update and still point to previous directory
- Remove previous log location
rm -r /var/log/gitlab/gitlab-rails
Will return
find: `/var/log/gitlab/gitlab-rails': No such file or directory
tail: cannot follow ‘-’ by name
What is the current bug behavior?
While logs are being written to the correct location, gitlab-ctl tail
does not tail the correct location
What is the expected correct behavior?
tail the new directory
Details of package version
root@devtest:/var/log/gitlab# dpkg-query -l "gitlab-*"
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============================-====================-====================-==================================================================
ii gitlab-ce 10.4.2-ce.0 amd64 GitLab Community Edition (including NGINX, Postgres, Redis)
un gitlab-ee <none> <none> (no description available)
Configuration details
gitlab_rails['log_directory'] = "/build/log/gitlab/gitlab-rails"
Edited by Cindy Pallares 🦉