从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。