我正在嘗試設定一個自托管的 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,因為該站點在不受保護時是可訪問的。
希望有人能認出這個錯誤,我看了一遍,沒有看到它在任何地方彈出。
最好的祝福
uj5u.com熱心網友回復:
我在嘗試更改 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
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/408027.html
標籤:
