gitlab-ctl reconfigure报错

来源:2-3 GitLab安装配置管理

命中注定i

2021-12-24

以下是报错信息

Recipe Compile Error in /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/default.rb

Mixlib::Config::UnknownConfigOptionError

Reading unsupported config value ture.

Cookbook Trace:

/opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/settings_dsl.rb:125:in internal_get' /opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/settings_dsl.rb:105:inblock in from_file’
/opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/config_mash.rb:35:in auto_vivify' /opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/settings_dsl.rb:105:infrom_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:infrom_file’

Relevant File Content:

/opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/settings_dsl.rb:

118: end
119:
120: # Enhance get so strict mode errors aren’t thrown as long as the setting is witin our defined config
121: def internal_get(symbol)
122: if configuration.key?(symbol)
123: configuration[symbol]
124: else
125>> super
126: end
127: end
128:
129: def hyphenate_config_keys
130: results = { “gitlab” => {}, “roles” => {}, “monitoring” => {} }
131:
132: # Add the settings to the results
133: sorted_settings.each do |key, value|
134: raise “Attribute parent value invalid for key: #{key} (#{value})” if value[:parent] && !results.key?(value[:parent])

System Info:

chef_version=15.17.4
platform=centos
platform_version=7.5.1804
ruby=ruby 2.7.5p203 (2021-11-24 revision f69aeb8314) [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:

Reading unsupported config value ture.

Running handlers complete
Chef Infra Client failed. 0 resources updated in 04 seconds

写回答

1回答

一路向北

2021-12-24

具体上下文提供一下

0
3
命中注定i
回复
一路向北
好的 , 我已在群里提问 谢谢
2021-12-24
共3条回复

Jenkins+Ansible+Gitlab-三剑合璧掌握自动化部署

整合三大工具解决自动化部署&持续交付问题

1290 学习 · 319 问题

查看课程