Facing certbot issue in central installation/working

Hi,

So I installed central from the documentation https://docs.getodk.org/central-install-digital-ocean/. Everything is smooth, even docker modules are up and healthy. However, I am unable to access cental interface from browser, getting connection refused from server. I checked nginx logs, and getting this:

nginx_1               | + error 'Cerbot failed for htp.xxxxxx.com. Check the logs for details.'
nginx_1               | + set +x
nginx_1               | Cerbot failed for htp.xxxxxx.com. Check the logs for details.
nginx_1               | + exit_code=1
nginx_1               | + auto_enable_configs
nginx_1               | + for conf_file in /etc/nginx/conf.d/*.conf*
nginx_1               | + keyfiles_exist /etc/nginx/conf.d/certbot.conf
nginx_1               | ++ parse_keyfiles /etc/nginx/conf.d/certbot.conf
nginx_1               | ++ sed -n -e 's&^\s*ssl_certificate_key\s*\(.*\);&\1&p' /etc/nginx/conf.d/certbot.conf
nginx_1               | + return 0
nginx_1               | + '[' conf = nokey ']'
nginx_1               | + for conf_file in /etc/nginx/conf.d/*.conf*
nginx_1               | + keyfiles_exist /etc/nginx/conf.d/odk.conf.nokey
nginx_1               | ++ parse_keyfiles /etc/nginx/conf.d/odk.conf.nokey
nginx_1               | ++ sed -n -e 's&^\s*ssl_certificate_key\s*\(.*\);&\1&p' /etc/nginx/conf.d/odk.conf.nokey
nginx_1               | + for keyfile in $(parse_keyfiles $1)
nginx_1               | + currentfile=/etc/letsencrypt/live/htp.xxxxxx.com/privkey.pem
nginx_1               | + '[' '!' -f /etc/letsencrypt/live/htp.xxxxxx.com/privkey.pem ']'
nginx_1               | + echo 'Couldn'\''t find keyfile /etc/letsencrypt/live/htp.xxxxxx.com/privkey.pem for /etc/nginx/conf.d/odk.conf.nokey'
nginx_1               | + return 1
nginx_1               | Couldn't find keyfile /etc/letsencrypt/live/htp.xxxxxx.com/privkey.pem for /etc/nginx/conf.d/odk.conf.nokey
nginx_1               | + '[' nokey = conf ']'
nginx_1               | + sleep 5
nginx_1               | + kill -HUP 42
nginx_1               | + set +x

Can someone confirm if I am missing any step? Thanks!

Saad

1 Like

Got the issue. I missed '$sudo ufw disable' thing. It works now.

1 Like