采纳答案成功!
向帮助你的同学说点啥吧!感谢那些助人为乐的人
老师您好,我完全按照视频步骤操作的,但是 在gitlab-ctl reconfigure的时候提示这个错误,请问要怎么处理啊?
这个配置的路径有问题 nginx['ssl_dhparam'] = /etc/gitlab/dhparams.pem 应该是按照你生成pem文件的路径 nginx['ssl_dhparam'] = /etc/gitlab/ssl/dhparams.pem
[root@localhost gitlab]# gitlab-ctl reconfigure Starting Chef Infra Client, version 15.14.0 resolving cookbooks for run list: ["gitlab"] Synchronizing Cookbooks: - gitlab (0.0.1) - package (0.1.0) - logrotate (0.0.0) - postgresql (0.1.0) - redis (0.1.0) - registry (0.1.0) - gitaly (0.1.0) - praefect (0.1.0) - monitoring (0.1.0) - mattermost (0.1.0) - gitlab-kas (0.1.0) - consul (0.1.0) - nginx (0.1.0) - gitlab-pages (0.1.0) - runit (5.1.3) - letsencrypt (0.1.0) - acme (4.1.1) - crond (0.1.0) Installing Cookbook Gems: Compiling Cookbooks... ================================================================================ Recipe Compile Error in /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/default.rb ================================================================================ SyntaxError ----------- /etc/gitlab/gitlab.rb:1311: unknown regexp options - gtlab ...nx['ssl_dhparam'] = /etc/gitlab/dhparams.pem # Path to dhpar... ... ^~~~~~~ Cookbook Trace: --------------- /opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/helpers/settings_helper.rb:106: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:106: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: 99: 100: def from_file(_file_path) 101: # Throw errors for unrecognized top level calls (usually spelling mistakes) 102: config_strict_mode true 103: # Turn on node deprecation messages 104: Gitlab::Deprecations::NodeAttribute.log_deprecations = true 105: # Allow auto mash creation during from_file call 106>> Gitlab::ConfigMash.auto_vivify { super } 107: ensure 108: config_strict_mode false 109: Gitlab::Deprecations::NodeAttribute.log_deprecations = false 110: end 111: 112: # Enhance set so strict mode errors aren't thrown as long as the setting is witin our defined config 113: def internal_set(symbol, value) 114: if configuration.key?(symbol) 115: configuration[symbol] = value System Info: ------------ chef_version=15.14.0 platform=centos platform_version=7.9.2009 ruby=ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [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: /etc/gitlab/gitlab.rb:1311: unknown regexp options - gtlab ...nx['ssl_dhparam'] = /etc/gitlab/dhparams.pem # Path to dhpar... ... ^~~~~~~ Running handlers complete Chef Infra Client failed. 0 resources updated in 02 seconds
请这位同学把报错信息 直接粘贴在这里,我来看一下
你视频中配置文件前面的#号都不用去掉的吗?
默认如果没有额外复写的配置,去掉和不去掉的最终的具体配置是一致的
登录后可查看更多问答,登录/注册
整合三大工具解决自动化部署&持续交付问题
1.2k 19
1.1k 17
1.4k 12
830 11
1.2k 9