Nginx Address is already in use

Raymundo Ramirez Mata rramirezm at hatandslash.com
Tue Aug 1 02:58:11 UTC 2017


Hello everyone, 



I forgot to mention that I also installed the nginx plugin for certbot.  Looks like when configuring the server block, it added 3 snippets, on of them was for nginx ssl configuration options, some of the I was already adding them double the listeners on the ssl port.



Just removing the new snippet fixed my issue




---- On Mon, 31 Jul 2017 17:49:24 -0500 Ekaterina Kukushkina <ek at nginx.com> wrote ----




Hello, 

 

> On 31 Jul 2017, at 03:57, Raymundo Ramirez Mata <rramirezm at hatandslash.com> wrote: 

> 

> Hi, 

> 

> My nginx has stopped working, I upgraded and updated today, also purged mysql and installed mariadb, so I don't know what might broke it. when i run 

> 

> sudo nginx I get: 

> 

> nginx: [emerg] bind() to [::]:80 failed (98: Address already in use) 

> nginx: [emerg] bind() to [::]:443 failed (98: Address already in use) 

> nginx: [emerg] bind() to [::]:80 failed (98: Address already in use) 

> nginx: [emerg] bind() to [::]:443 failed (98: Address already in use) 

> nginx: [emerg] bind() to [::]:80 failed (98: Address already in use) 

> nginx: [emerg] bind() to [::]:443 failed (98: Address already in use) 

> nginx: [emerg] bind() to [::]:80 failed (98: Address already in use) 

> nginx: [emerg] bind() to [::]:443 failed (98: Address already in use) 

> nginx: [emerg] bind() to [::]:80 failed (98: Address already in use) 

> nginx: [emerg] bind() to [::]:443 failed (98: Address already in use) 

> 

> Reading some answers I looked for who is using those ports but only nginx appers using it. 

 

Please check /etc/nginx/conf.d/default.conf 

If this file is missing before upgrade, it will be installed 

And it can cause mentioned problem. 

 

Try to comment out its content and restart nginx again. 

 

 

-- 

Ekaterina Kukushkina 

_______________________________________________ 

nginx mailing list 

nginx at nginx.org 

http://mailman.nginx.org/mailman/listinfo/nginx 






-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20170731/677d3288/attachment-0001.html>


More information about the nginx mailing list