Hey all, I’m hoping I’ve selected the correct area for this kind of query.
My server’s SSL expired despite being setup for letsencrypt.
I’ve gone through a lot of troubleshooting without success and I must be missing something. Hopefully not too obvious.
sudo gitlab-ctl reconfigure
sudo gitlab-ctl renew-le-certs
Both of these didn’t fix the issue.
Here’s my configuration:
gitlab.rb
## GitLab URL
external_url 'https://git.DOMAINREDACTED.com'
## GitLab NGINX
##! Docs: https://docs.gitlab.com/omnibus/settings/nginx.html
################################################################################
nginx['enable'] = true
nginx['client_max_body_size'] = '500000m'
nginx['redirect_http_to_https'] = false
nginx['redirect_http_to_https_port'] = 80
# nginx['ssl_certificate'] = "/etc/gitlab/ssl/git.DOMAINREDACTED.com.crt"
# nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/git.DOMAINREDACTED.com.key"
# nginx['ssl_certificate'] = "/letsencrypt/live/git.DOMAINREDACTED.com/fullchain.pem"
# nginx['ssl_certificate_key'] = "/etc/letsencrypt/live/git.DOMAINREDACTED.com/privkey.pem"
################################################################################
# Let's Encrypt integration
################################################################################
letsencrypt['enable'] = true
# letsencrypt['contact_emails'] = ["support@DOMAINREDACTED.com", "NAME@DOMAINREDACTED.com"] # This should be an array of email addresses to add as contacts
# letsencrypt['group'] = 'root'
# letsencrypt['key_size'] = 2048
# letsencrypt['owner'] = 'root'
# letsencrypt['wwwroot'] = '/var/opt/gitlab/nginx/www'
# See http://docs.gitlab.com/omnibus/settings/ssl.html#automatic-renewal for more on these sesttings
letsencrypt['auto_renew'] = true
letsencrypt['auto_renew_hour'] = "2"
letsencrypt['auto_renew_minute'] = "30" # Should be a number or cron expression, if specified.
letsencrypt['auto_renew_day_of_month'] = "*/1"
Listening ports
systemd-r 832 systemd-resolve 13u IPv4 18687 0t0 TCP 127.0.0.53:53 (LISTEN)
sshd 1097 root 3u IPv4 20644 0t0 TCP *:22 (LISTEN)
sshd 1097 root 4u IPv6 20646 0t0 TCP *:22 (LISTEN)
xrdp-sesm 1148 root 7u IPv6 21960 0t0 TCP [::1]:3350 (LISTEN)
xrdp 1237 xrdp 11u IPv6 23747 0t0 TCP *:3389 (LISTEN)
nginx 5248 gitlab-www 7u IPv4 2478885 0t0 TCP *:80 (LISTEN)
nginx 5248 gitlab-www 8u IPv4 2478886 0t0 TCP *:8060 (LISTEN)
nginx 5249 gitlab-www 7u IPv4 2478885 0t0 TCP *:80 (LISTEN)
nginx 5249 gitlab-www 8u IPv4 2478886 0t0 TCP *:8060 (LISTEN)
ruby 5274 git 18u IPv4 2486194 0t0 TCP 127.0.0.1:8080 (LISTEN)
ruby 6053 git 18u IPv4 2486194 0t0 TCP 127.0.0.1:8080 (LISTEN)
ruby 9248 git 18u IPv4 2486194 0t0 TCP 127.0.0.1:8080 (LISTEN)
ruby 9831 git 18u IPv4 2486194 0t0 TCP 127.0.0.1:8080 (LISTEN)
ruby 12781 git 18u IPv4 2486194 0t0 TCP 127.0.0.1:8080 (LISTEN)
alertmana 32131 gitlab-prometheus 3u IPv6 2478690 0t0 TCP *:9094 (LISTEN)
alertmana 32131 gitlab-prometheus 6u IPv4 2479753 0t0 TCP 127.0.0.1:9093 (LISTEN)
gitaly 32169 git 8u IPv4 2478769 0t0 TCP 127.0.0.1:9236 (LISTEN)
gitaly 32169 git 9u IPv4 2478769 0t0 TCP 127.0.0.1:9236 (LISTEN)
gitlab-ex 32180 git 5u IPv4 2478803 0t0 TCP 127.0.0.1:9168 (LISTEN)
gitlab-ex 32180 git 6u IPv6 2478804 0t0 TCP [::1]:9168 (LISTEN)
gitlab-wo 32193 git 4u IPv4 2478796 0t0 TCP 127.0.0.1:9229 (LISTEN)
grafana-s 32208 gitlab-prometheus 6u IPv4 2479828 0t0 TCP 127.0.0.1:3000 (LISTEN)
nginx 32235 root 7u IPv4 2478885 0t0 TCP *:80 (LISTEN)
nginx 32235 root 8u IPv4 2478886 0t0 TCP *:8060 (LISTEN)
node_expo 32241 gitlab-prometheus 3u IPv4 2479852 0t0 TCP 127.0.0.1:9100 (LISTEN)
postgres_ 32249 gitlab-psql 5u IPv4 2479865 0t0 TCP 127.0.0.1:9187 (LISTEN)
prometheu 32343 gitlab-prometheus 6u IPv4 2478932 0t0 TCP 127.0.0.1:9090 (LISTEN)
redis_exp 32360 gitlab-redis 3u IPv4 2478973 0t0 TCP 127.0.0.1:9121 (LISTEN)
bundle 32374 git 19u IPv4 2481562 0t0 TCP 127.0.0.1:8082 (LISTEN)
gitlab-ctl status
run: alertmanager: (pid 32131) 1831s; run: log: (pid 1339) 73673s
run: crond: (pid 32141) 1831s; run: log: (pid 1337) 73673s
run: gitaly: (pid 32163) 1830s; run: log: (pid 1351) 73673s
run: gitlab-exporter: (pid 32180) 1829s; run: log: (pid 1356) 73673s
run: gitlab-workhorse: (pid 32193) 1829s; run: log: (pid 1353) 73673s
run: grafana: (pid 32208) 1828s; run: log: (pid 1352) 73673s
run: logrotate: (pid 32221) 1828s; run: log: (pid 1328) 73673s
run: nginx: (pid 32235) 1828s; run: log: (pid 1350) 73673s
run: node-exporter: (pid 32241) 1827s; run: log: (pid 1335) 73673s
run: postgres-exporter: (pid 32249) 1827s; run: log: (pid 1357) 73673s
run: postgresql: (pid 32334) 1826s; run: log: (pid 1329) 73673s
run: prometheus: (pid 32343) 1826s; run: log: (pid 1355) 73673s
run: redis: (pid 32356) 1825s; run: log: (pid 1338) 73673s
run: redis-exporter: (pid 32360) 1825s; run: log: (pid 1349) 73673s
run: sidekiq: (pid 32374) 1823s; run: log: (pid 1354) 73673s
run: unicorn: (pid 6447) 1090s; run: log: (pid 1336) 73673s
Unsure what else I should provide right now.
Any help would be appreciated.