wmnnd / nginx-certbot

Boilerplate configuration for nginx and certbot with docker-compose
MIT License
3.16k stars 1.17k forks source link

443 address already in use #90

Open AnasKg opened 4 years ago

AnasKg commented 4 years ago

I am getting error like this on my server: Error starting userland proxy: listen tcp 0.0.0.0:443: bind: address already in use

igorssmanoel commented 4 years ago

There is probably already a service running on port 443 and probably 80. Try terminating apache.service or nginx

To see what is running on port 443, run sudo lsof -t -i:443

sudo systemctl stop apache.service or sudo systemctl stop nginx.service

if doenst work try this:

sudo kill -9 $(sudo lsof -t -i:443)

AnasKg commented 4 years ago

Thanks for the answer! Yes, nginx was running on 443, I stopped it. Now I cannot get the certificates, the following error is displayed:

Screen Shot 2020-09-14 at 10 28 13

For the domain, the current server is indicated in which I run this script. What to do?

shanedublin commented 3 years ago

running into this issue myself. My isp blocks port 80 and i think that is what's causing it.