Been having some issues with my gitlab self hosted server.
Seem to occur every time I turn off my server and don’t turn it on for a week or so.
So I’ve had it all working but when I turned it on this morning it’s not working anymore (Had the server working for over 4 months and being turned off and on)
The issue is this
There was an error running gitlab-ctl reconfigure:
letsencrypt_certificate[git.servername.com] (letsencrypt::http_authorization line 6) had an error: RuntimeError: acme_certificate[staging] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/letsencrypt/resources/certificate.rb line 41) had an error: RuntimeError: ruby_block[create certificate for git.servername.com] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/acme/resources/certificate.rb line 108) had an error: RuntimeError: [git.servername.com] Validation failed, unable to request certificate, Errors: [{url: https://acme-staging-v02.api.letsencrypt.org/acme/chall-v3/1225710228/hgTISA, status: invalid, error: {"type"=>"urn:ietf:params:acme:error:connection", "detail"=>"Fetching http://git.servername.com/.well-known/acme-challenge/OTnoL50zGUIbm5cSGgQOBaQMJQq_8NREmKIa0oSyvQA: Timeout during connect (likely firewall problem)", "status"=>400}} ]
As it mentions in the log above - “ikely firewall problem” and probably is but I am really stumped as I’ve ported everything I needed to on the server
[ 1] OpenSSH ALLOW IN Anywhere
[ 2] 80/tcp ALLOW IN Anywhere
[ 3] 443/tcp ALLOW IN Anywhere
[ 4] Postfix ALLOW IN Anywhere
[ 5] 8082 ALLOW IN Anywhere
[ 6] 80 ALLOW IN Anywhere
[ 7] 443 ALLOW IN Anywhere
[ 8] 5000/tcp ALLOW IN Anywhere
[ 9] 22/tcp ALLOW IN Anywhere
[10] Nginx Full ALLOW IN Anywhere
[11] 8888 ALLOW IN Anywhere
[12] OpenSSH (v6) ALLOW IN Anywhere (v6)
[13] 80/tcp (v6) ALLOW IN Anywhere (v6)
[14] 443/tcp (v6) ALLOW IN Anywhere (v6)
[15] Postfix (v6) ALLOW IN Anywhere (v6)
[16] 8082 (v6) ALLOW IN Anywhere (v6)
[17] 80 (v6) ALLOW IN Anywhere (v6)
[18] 443 (v6) ALLOW IN Anywhere (v6)
[19] 5000/tcp (v6) ALLOW IN Anywhere (v6)
[20] 22/tcp (v6) ALLOW IN Anywhere (v6)
[21] Nginx Full (v6) ALLOW IN Anywhere (v6)
[22] 8888 (v6) ALLOW IN Anywhere (v6)
I have also ported on my router (Which is a Sky router)
Okay figured out why it was moaning about a firewall, my DNS on my webserver wasn’t pointed to the correct ip. Glad this tool exists https://letsdebug.net/
Okay next error
There was an error running gitlab-ctl reconfigure:
letsencrypt_certificate[git.rubberbandgames.com] (letsencrypt::http_authorization line 6) had an error: RuntimeError: acme_certificate[staging] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/letsencrypt/resources/certificate.rb line 41) had an error: RuntimeError: ruby_block[create certificate for git.rubberbandgames.com] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/acme/resources/certificate.rb line 108) had an error: RuntimeError: [git.rubberbandgames.com] Validation failed, unable to request certificate, Errors: [{url: https://acme-staging-v02.api.letsencrypt.org/acme/chall-v3/1227577588/WqpWlQ, status: invalid, error: {"type"=>"urn:ietf:params:acme:error:unauthorized", "detail"=>"Invalid response from http://git.rubberbandgames.com/.well-known/acme-challenge/aOK-6-NFE8FBmIBLKmf27oriRGtux2Rp1FuRuY_S4Ac [176.253.181.49]: \"<html>\\r\\n<head><title>404 Not Found</title></head>\\r\\n<body>\\r\\n<center><h1>404 Not Found</h1></center>\\r\\n<hr><center>nginx/1.18.0 (Ub\"", "status"=>403}} ]
So for some reason when I loaded the website it came up with “Welcome to nginx!” I found a guide on how to fix it, which was to remove the default page or something like that. I’ve done that but now I cannot access the website at all.
It’s weird because I even have Nginx as disabled in the config
I now have a “This site can’t be reached” message - This isn’t going great