一个80后
程序员的笔记

git升级遇见的错误

从15.4.6升级到15.11.9版本的时候遇见错误

nfra Phase failed. 0 resources updated in 03 seconds
[2023-06-23T02:45:35+00:00] FATAL: Stacktrace dumped to /opt/gitlab/embedded/cookbooks/cache/cinc-stacktrace.out
[2023-06-23T02:45:35+00:00] FATAL: ---------------------------------------------------------------------------------------
[2023-06-23T02:45:35+00:00] FATAL: PLEASE PROVIDE THE CONTENTS OF THE stacktrace.out FILE (above) IF YOU FILE A BUG REPORT
[2023-06-23T02:45:35+00:00] FATAL: ---------------------------------------------------------------------------------------
[2023-06-23T02:45:35+00:00] FATAL: RuntimeError: gitlab_rails['smtp_tls'] and gitlab_rails['smtp_enable_starttls_auto'] are mutually exclusive. Set one of them to false. SMTP providers usually use port 465 for TLS and port 587 for STARTTLS.

查看gitlab.rb配置

gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = "smtp.qiye.aliyun.com"
gitlab_rails['smtp_port'] = 465
gitlab_rails['smtp_user_name'] = "noreply1@aaaa.com"
gitlab_rails['smtp_password'] = "xxxx"
gitlab_rails['smtp_domain'] = "aaaa.com"
gitlab_rails['smtp_authentication'] = "login"
gitlab_rails['smtp_enable_starttls_auto'] = true
gitlab_rails['smtp_tls'] = true

# 这里smtp_enable_starttls_auto或smtp_tls设置一个为false。
赞(0) 打赏
未经允许不得转载:笨笨天地 » git升级遇见的错误
分享到: 更多 (0)

相关推荐

  • 暂无文章

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏