视频里修改了gitlab.rb配置,怎么没有看你取消#注释生效,就直接gitlab-ctl reconfigure

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

王子正

2018-09-29

视频里修改了gitlab.rb配置,怎么没有看你取消#注释生效,就直接gitlab-ctl reconfigure

写回答

2回答

一路向北

2018-09-30

感谢这位同学的关注,这里gitlab因为默认使用gitlab.example.com作为初始域名,这里注释去掉或者不去掉实际是一样的效果,这里报错可以查看下证书是否生成正确,以及权限是否为600,最后查看gitlab配置文件的路径是否和你生成的证书文件一致。

0
5
一路向北
回复
qq_大活神仙_03456270
为了保证gitlab读取证书时不会报错
2020-02-19
共5条回复

王子正

提问者

2018-09-29

Recipe: gitlab::postgres-exporter
  * service[postgres-exporter] action restart
    - restart service service[postgres-exporter]
  * ruby_block[restart postgres-exporter svlogd configuration] action create
    - execute the ruby block restart postgres-exporter svlogd configuration
  * ruby_block[reload postgres-exporter svlogd configuration] action create
    - execute the ruby block reload postgres-exporter svlogd configuration

Running handlers:
There was an error running gitlab-ctl reconfigure:

letsencrypt_certificate[gitlab.qqqq.com] (letsencrypt::http_authorization line 3) had an error: RuntimeError: acme_certificate[staging] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/letsencrypt/resources/certificate.rb line 20) had an error: RuntimeError: [gitlab.qqqq.com] Validation failed for domain gitlab.qqqq.com

Running handlers complete
Chef Client failed. 442 resources updated in 04 minutes 25 seconds



失败了,不知道什么原因,,,

0
1
一路向北
发一下你的gitlab配置文件gitlab.rb具体内容.
2018-12-02
共1条回复

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

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

1290 学习 · 319 问题

查看课程