1. What is the issue? Please be detailed.
Over night our EC2 instance was unreachable. I rebooted it, it is now online but we have a certificate error on the web page. Looking further at the issue I can see the nginx container has not started and is showing an exit 137 error.
Name Command State Ports
-----------------------------------------------------------------------------------
central_enketo_1 docker-entrypoint.sh /bin/ ... Up 8005/tcp
central_enketo_redis_cache_1 docker-entrypoint.sh redis ... Up 6379/tcp
central_enketo_redis_main_1 docker-entrypoint.sh redis ... Up 6379/tcp
central_mail_1 /bin/entrypoint.sh exim -b ... Up 25/tcp
central_nginx_1 /bin/bash /scripts/odk-set ... Exit 137
central_postgres_1 docker-entrypoint.sh postgres Up 5432/tcp
central_pyxform_1 gunicorn --bind 0.0.0.0:80 ... Up
central_secrets_1 docker-entrypoint.sh ./gen ... Exit 0
central_service_1 docker-entrypoint.sh ./wai ... Up 8383/tcp
When trying to restart it I get this error
ERROR: for central_nginx_1 Cannot restart container 7f1fca516f69b99fa379b664e836f31aea44f769ce2cfdf71a928cfb51dba2aa: driver failed programming exter
nal connectivity on endpoint central_nginx_1 (0725789bd4ac6aec50769d44e86b7f8db139dac03a2022c134de8c5a2c247a7e): Error starting userland proxy: listen
tcp4 0.0.0.0:443: bind: address already in use
3. What have you tried to fix the issue?
It looks like something else is using port 443 but I can't locate it or it is not clear to me as this is not my area of specialism. I used this command to check. # sudo ss -tulnap | grep :443 and this is what came back.
tcp LISTEN 0 511 0.0.0.0:443 0.0.0.0:* users:(("nginx",pid=628,fd=9),("nginx",pid=627,fd=9),("nginx",pid=578
,fd=9))
tcp ESTAB 0 3192 172.30.0.234:443 41.223.116.242:23407 users:(("nginx",pid=627,fd=15))
tcp TIME-WAIT 0 0 172.30.0.234:443 197.221.240.26:47242
tcp TIME-WAIT 0 0 172.30.0.234:443 197.221.240.26:47248
tcp TIME-WAIT 0 0 172.30.0.234:443 45.214.226.175:46078
tcp TIME-WAIT 0 0 172.30.0.234:443 41.204.44.174:29129
tcp ESTAB 0 0 172.30.0.234:443 197.221.254.102:16451 users:(("nginx",pid=627,fd=14))
tcp FIN-WAIT-1 0 1 172.30.0.234:443 41.223.117.78:39009
tcp ESTAB 0 4580 172.30.0.234:443 197.221.240.26:47250 users:(("nginx",pid=627,fd=13))
tcp TIME-WAIT 0 0 172.30.0.234:443 197.221.240.26:47246
tcp TIME-WAIT 0 0 172.30.0.234:443 197.221.240.26:47244
tcp TIME-WAIT 0 0 172.30.0.234:443 45.213.146.119:44636
tcp LISTEN 0 511 [::]:443 [::]:* users:(("nginx",pid=628,fd=8),("nginx",pid=627,fd=8),("nginx",pid=578
,fd=8))
ubuntu@ip-172-30-0-234:~$
I'd really appreciate some help please as I am stuck. Let me know if you need more information
Thanks,
Tony