问题 启动失败

gitlab | letsencrypt_certificate[example.example.com] (letsencrypt::http_authorization line 5) had an error: RuntimeError: acme_certificate[staging] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/letsencrypt/resources/certificate.rb line 25) had an error: RuntimeError: ruby_block[create certificate for example.example.com] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/acme/resources/certificate.rb line 108) had an error: RuntimeError: [example.example.com] Validation failed, unable to request certificate

  • 原因
    1. gitlab校验ssl时检测到请求链接与配置的ssl证书不符合;由于自己手动在nginx配置了ssl证书,而gitlab自动生成了证书;导致两个证书不一致
  • 解决
    1. nginx只转发请求不配置证书;
    2. gitlab手动配置与nginx一致的证书;