GitLab SSL certificate error: No account exists

GitLab SSL certificate error: No account exists

我正在尝试设置一个自托管的 GitLab 实例,一切正常,除非我尝试使用 Let's encrypt 创建 https 连接。尝试重新配置 GitLab 实例时出现以下错误:

There was an error running gitlab-ctl reconfigure:

letsencrypt_certificate[gitlab.***.org] (letsencrypt::http_authorization line 6) had an error: Acme::Client::Error::AccountDoesNotExist: acme_certificate[staging] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/letsencrypt/resources/certificate.rb line 41) had an error: Acme::Client::Error::AccountDoesNotExist: No account exists with the provided key

我的 external_url=https://gitlab.***.org,在我的网络上,我为端口 :80 和 :443 设置了端口转发。我还将 DNS 设置为我的 IP,这是因为在不安全的情况下可以访问该站点。

希望有人能识别错误,我查看了所有内容,但没有看到它在任何地方弹出。

此致

我在尝试更改 GitLab 的 url 时遇到了同样的问题。

我解决了这个问题,感谢:https://gbe0.com/posts/linux/server/gitlab-acme-account-does-not-exist/,通过停用旧的 Acme 私钥然后重新加载 GitLab 配置

sudo mv /etc/acme/account_private_key.pem /etc/acme/account_private_key.pem.backup
sudo gitlab-ctl reconfigure