Error after gitlab-ce 8.13 upgrade
I recently upgraded gitlab-ce to 8.13. As per this article, I found that gitlab.rb
is updated with new template for gitlab status. Since I didn't want this feature, I made this changes mentioned here as below:
## Nginx status
nginx['status']['enable'] = false
# nginx['status']['listen_addresses'] = ['*']
# nginx['status']['fqdn'] = node['fqdn']
# nginx['status']['port'] = 8060
# nginx['status']['options'] = { # nginx_status location block options
# "stub_status" => "on", # Turn on stats
# "access_log" => "off", # Disable logs for stats
# "allow" => "127.0.0.1", # Only allow access from localhost
# "deny" => "all", # Deny access to anyone else
# }
But when I do a gitlab-ctl reconfigure
, I'm getting the following error:
Starting Chef Client, version 12.12.15
resolving cookbooks for run list: ["gitlab"]
Synchronizing Cookbooks:
- runit (0.14.2)
- package (0.0.0)
- gitlab (0.0.1)
Installing Cookbook Gems:
Compiling Cookbooks...
================================================================================
Recipe Compile Error in /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/default.rb
================================================================================
NoMethodError
-------------
undefined method `[]=' for nil:NilClass
Cookbook Trace:
---------------
/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/default.rb:28:in `from_file'
Relevant File Content:
----------------------
/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/default.rb:
21: # Default location of install-dir is /opt/gitlab/. This path is set during build time.
22: # DO NOT change this value unless you are building your own GitLab packages
23: install_dir = node['package']['install-dir']
24: ENV['PATH'] = "#{install_dir}/bin:#{install_dir}/embedded/bin:#{ENV['PATH']}"
25:
26: Gitlab[:node] = node
27: if File.exists?("/etc/gitlab/gitlab.rb")
28>> Gitlab.from_file("/etc/gitlab/gitlab.rb")
29: end
30: node.consume_attributes(Gitlab.generate_config(node['fqdn']))
31:
32: directory "/etc/gitlab" do
33: owner "root"
34: group "root"
35: mode "0775"
36: only_if { node['gitlab']['manage-storage-directories']['manage_etc'] }
37: end.run_action(:create)
Platform:
---------
x86_64-linux
Running handlers:
Running handlers complete
Chef Client failed. 0 resources updated in 01 seconds
Am I missing some other configuration to be done?