reconfigure fails after cleanse
gitlab-ctl reconfigure
fails after running gitlab-ctl cleanse
gitlab-ctl reconfigure
[2017-03-31T14:36:19-04:00] FATAL: Failed to open or create log file at /var/log/gitlab/reconfigure/1490985379.log: Errno::ENOENT (No such file or directory @ rb_sysopen - /var/log/gitlab/reconfigure/1490985379.log)
[2017-03-31T14:36:19-04:00] FATAL: Aborting due to invalid 'log_location' configuration
The issue lies in cleanse
removing logging directory, which is required by chef-client run.
Since chef-client itself needs the logging directory to exist, we can make sure to create it (if needed) in bash before ever getting to chef-client, or imho more appropriately in solo.rb
, which contains log directive and sets log location
Running GitLab CE 9.0.2-ce.0 over clean Debian 8/Jessie:
$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
NAME="Debian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=debian
HOME_URL="http://www.debian.org/"
SUPPORT_URL="http://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
$ uname -a
Linux localhost 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt9-3~deb8u1 (2015-04-24) x86_64 GNU/Linux