Please fill out the fields below so we can help you better.
My domain is: gitlab.foo.net
I ran this command: certbot renew
It produced this output: Attempting to renew cert from /etc/letsencrypt/renewal/gitlab.foo.net.conf produced an unexpected error: Failed authorization procedure. gitlab.foo.net (http-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching http://gitlab.foo.net/.well-known/acme-challenge/Xezz1O962IT62NyBIPxdnJLtklWN-ByPMvxi8uzFSpw: Timeout. Skipping.
My web server is (include version): embedded nginx (gitlab-ce 9.3.4-ce.0)
The operating system my web server runs on is (include version): ubuntu 16.04
My hosting provider, if applicable, is: NA
I can login to a root shell on my machine (yes or no, or I don’t know): yes
I’m using a control panel to manage my site (no, or provide the name and version of the control panel): no
This one seems to come up a lot.
We’re running gitlab on a server and it’s got a working letsencrypt cert. Renewal is about 10 days away.
Domain changed to “foo” for privacy/security/whatever.
letsencrypt is configured:
/etc# grep letsencrypt /etc/gitlab/gitlab.rb
set up letsencrypt
nginx[‘custom_gitlab_server_config’] = "location ^~ /.well-known { root /var/www/letsencrypt; }"
nginx[‘ssl_certificate’] = "/etc/letsencrypt/live/gitlab.foo.net/fullchain.pem"
nginx[‘ssl_certificate_key’] = “/etc/letsencrypt/live/gitlab.foo.net/privkey.pem”
Further, nginx is redirecting port 80 to 443 in gitlab.rb:
nginx[‘redirect_http_to_https’] = true
nginx[‘redirect_http_to_https_port’] = 80
When I run the renewal command I get the error above, namely “Fetching http://gitlab.foo.net/.well-known/acme-challenge/Xezz1O962IT62NyBIPxdnJLtklWN-ByPMvxi8uzFSpw: Timeout. Skipping.”
I created a test file in .well-known and using wget -S from the command line I can get using http (aka, it follows the redirect). It seems that certbot is not able to follow the redirect, I’m just not sure why.
I also tried shutting down gitlab and renewing with -standalone, but that also failed for different reasons. I’d rather have this automated so I don’t have to deal with it again, and I’m pulling my hair out figuring out why this isn’t working.
Thanks