Upgrade from 12.10.7 to 13.0.1 fails
Relevant logs
================================================================================
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/package/libraries/helpers/settings_helper.rb:105:in `block in from_file'
/opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/config_mash.rb:29:in `auto_vivify'
/opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/helpers/settings_helper.rb:105:in `from_file'
/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/config.rb:22:in `from_file'
/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/default.rb:26:in `from_file'
Relevant File Content:
----------------------
/opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/helpers/settings_helper.rb:
98:
99: def from_file(_file_path)
100: # Throw errors for unrecognized top level calls (usually spelling mistakes)
101: config_strict_mode true
102: # Turn on node deprecation messages
103: Gitlab::Deprecations::NodeAttribute.log_deprecations = true
104: # Allow auto mash creation during from_file call
105>> Gitlab::ConfigMash.auto_vivify { super }
106: ensure
107: config_strict_mode false
108: Gitlab::Deprecations::NodeAttribute.log_deprecations = false
109: end
110:
111: # Enhance set so strict mode errors aren't thrown as long as the setting is witin our defined config
112: def internal_set(symbol, value)
113: if configuration.key?(symbol)
114: configuration[symbol] = value
System Info:
------------
chef_version=14.14.29
platform=ubuntu
platform_version=18.04
ruby=ruby 2.6.6p146 (2020-03-31 revision 67876) [x86_64-linux]
program_name=/opt/gitlab/embedded/bin/chef-client
executable=/opt/gitlab/embedded/bin/chef-client
Running handlers:
There was an error running gitlab-ctl reconfigure:
undefined method `[]' for nil:NilClass
Running handlers complete
Chef Client failed. 0 resources updated in 01 seconds
Details of package version
Provide the package version installation details
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 +++-=======================================-========================-========================-==================================================================================== iF gitlab-ce 13.0.1-ce.0 amd64 GitLab Community Edition (including NGINX, Postgres, Redis) un gitlab-ci-multi-runner (no description available) ii gitlab-cli 1:1.3.0-2 all GitLab command-line client rc gitlab-ee 13.0.0-ee.0 amd64 GitLab Enterprise Edition (including NGINX, Postgres, Redis) ii gitlab-runner 10.5.0+dfsg-2 amd64 GitLab Runner - runs continuous integration (CI) jobs ii gitlab-shell 6.0.4-1 all handles git commands for GitLab ii gitlab-workhorse 0.8.5+debian-3 amd64 unloads Git HTTP traffic from the GitLab Rails app (Unicorn)
Environment details
- Operating System:
18.04
- Installation Target:
- Bare Metal Machine
- Installation Type:
- Upgrade from version
12.10.7-ce
- Upgrade from version
Downgrading back to 12.10 and the error is gone