Lets Encrypt Error

Found a work around in gitlab-ce (ee should work the same). The problem I faced was I could not upgrade the gitlab-ce packages using APT because gitlab-ctl reconfigure would fail during the upgrade and dpkg would error out. By disabling letsencrypt and SSL, this would allow you to update the gitlab to the latest version, which does not have this same malformed method error, and then reenabling SSL after and renewing the certs.

edited my /etc/gitlab/gitlab.rb file and disabled https external_url and letsencrypt settings:

external_url 'http://domain.com'
#external_url 'https://domain.com'
# letsencrypt['auto_renew'] = true
# letsencrypt['auto_renew_hour'] = 0
# letsencrypt['auto_renew_minute'] = nil # Should be a number or cron expression, if specified.
# letsencrypt['auto_renew_day_of_month'] = "*/4"

Then reconfigure gitlab

bash~# gitlab-ctl reconfigure

And upgrade gitlab to the latest version

bash~# apt update && apt upgrade

edit the /etc/gitlab/gitlab.rb file again and uncomment https/letsencrypt

external_url 'http://domain.com'
external_url 'https://domain.com'
letsencrypt['auto_renew'] = true
letsencrypt['auto_renew_hour'] = 0
letsencrypt['auto_renew_minute'] = nil # Should be a number or cron expression, if specified.
letsencrypt['auto_renew_day_of_month'] = "*/4"

Renew the certs and reconfigure (you may have to reconfigure one more time for the certs, I did for some reason)

bash~# gitlab-ce reconfigure
bash~# gitlab-ce renew-le-certs
bash~# gitlab-ce reconfigure

And now we are running the latest version of gitlab-ce and the certs have been renewed.

Hope this helps somebody!

2 Likes