Nginx Address is already in use

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Nginx Address is already in use

Raymundo Ramirez Mata

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.

_______________________________________________
nginx mailing list
[hidden email]
http://mailman.nginx.org/mailman/listinfo/nginx
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Nginx Address is already in use

spectre inc
 Fine the process and kill it then restart nginx 

On Sun, Jul 30, 2017 at 8:57 PM Raymundo Ramirez Mata <[hidden email]> 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.
_______________________________________________
nginx mailing list
[hidden email]
http://mailman.nginx.org/mailman/listinfo/nginx

_______________________________________________
nginx mailing list
[hidden email]
http://mailman.nginx.org/mailman/listinfo/nginx
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Nginx Address is already in use

Raymundo Ramirez Mata
I did, but the problem persists


---- On Sun, 30 Jul 2017 20:28:39 -0500 spectre inc <[hidden email]> wrote ----

 Fine the process and kill it then restart nginx 

On Sun, Jul 30, 2017 at 8:57 PM Raymundo Ramirez Mata <[hidden email]> wrote:

_______________________________________________
nginx mailing list


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.
_______________________________________________
nginx mailing list


_______________________________________________
nginx mailing list
[hidden email]
http://mailman.nginx.org/mailman/listinfo/nginx
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Nginx Address is already in use

spectre inc
 I asking my tech to see if he can help

On Sun, Jul 30, 2017 at 9:32 PM Raymundo Ramirez Mata <[hidden email]> wrote:
I did, but the problem persists


---- On Sun, 30 Jul 2017 20:28:39 -0500 spectre inc <[hidden email]> wrote ----

 Fine the process and kill it then restart nginx 

On Sun, Jul 30, 2017 at 8:57 PM Raymundo Ramirez Mata <[hidden email]> wrote:

_______________________________________________
nginx mailing list


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.
_______________________________________________
nginx mailing list
_______________________________________________
nginx mailing list
[hidden email]
http://mailman.nginx.org/mailman/listinfo/nginx

_______________________________________________
nginx mailing list
[hidden email]
http://mailman.nginx.org/mailman/listinfo/nginx
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Nginx Address is already in use

spectre inc
In reply to this post by Raymundo Ramirez Mata
Service nginx stop
Service httpd stop
Then 
Service nginx start
Service httpd start 



Sent from my iPhone

On Jul 30, 2017, at 9:32 PM, Raymundo Ramirez Mata <[hidden email]> wrote:

I did, but the problem persists


---- On Sun, 30 Jul 2017 20:28:39 -0500 spectre inc <[hidden email]> wrote ----

 Fine the process and kill it then restart nginx 

On Sun, Jul 30, 2017 at 8:57 PM Raymundo Ramirez Mata <[hidden email]> wrote:

_______________________________________________
nginx mailing list


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.
_______________________________________________
nginx mailing list

_______________________________________________
nginx mailing list
[hidden email]
http://mailman.nginx.org/mailman/listinfo/nginx

_______________________________________________
nginx mailing list
[hidden email]
http://mailman.nginx.org/mailman/listinfo/nginx
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Nginx Address is already in use

Raymundo Ramirez Mata
I do not have httpd:

sudo service httpd stop
Failed to stop httpd.service: Unit httpd.service not loaded.


---- On Sun, 30 Jul 2017 20:40:14 -0500 spectre inc <[hidden email]> wrote ----

Service nginx stop
Service httpd stop
Then 
Service nginx start
Service httpd start 



Sent from my iPhone

On Jul 30, 2017, at 9:32 PM, Raymundo Ramirez Mata <[hidden email]> wrote:

_______________________________________________
nginx mailing list
_______________________________________________
nginx mailing list
I did, but the problem persists


---- On Sun, 30 Jul 2017 20:28:39 -0500 spectre inc <[hidden email]> wrote ----

 Fine the process and kill it then restart nginx 

On Sun, Jul 30, 2017 at 8:57 PM Raymundo Ramirez Mata <[hidden email]> wrote:

_______________________________________________
nginx mailing list


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.
_______________________________________________
nginx mailing list



_______________________________________________
nginx mailing list
[hidden email]
http://mailman.nginx.org/mailman/listinfo/nginx
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Nginx Address is already in use

spectre inc
Is there contact email so I can give it my head tech 

Sent from my iPhone

On Jul 30, 2017, at 9:45 PM, Raymundo Ramirez Mata <[hidden email]> wrote:

I do not have httpd:

sudo service httpd stop
Failed to stop httpd.service: Unit httpd.service not loaded.


---- On Sun, 30 Jul 2017 20:40:14 -0500 spectre inc <[hidden email]> wrote ----

Service nginx stop
Service httpd stop
Then 
Service nginx start
Service httpd start 



Sent from my iPhone

On Jul 30, 2017, at 9:32 PM, Raymundo Ramirez Mata <[hidden email]> wrote:

_______________________________________________
nginx mailing list
_______________________________________________
nginx mailing list
I did, but the problem persists


---- On Sun, 30 Jul 2017 20:28:39 -0500 spectre inc <[hidden email]> wrote ----

 Fine the process and kill it then restart nginx 

On Sun, Jul 30, 2017 at 8:57 PM Raymundo Ramirez Mata <[hidden email]> wrote:

_______________________________________________
nginx mailing list


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.
_______________________________________________
nginx mailing list


_______________________________________________
nginx mailing list
[hidden email]
http://mailman.nginx.org/mailman/listinfo/nginx

_______________________________________________
nginx mailing list
[hidden email]
http://mailman.nginx.org/mailman/listinfo/nginx
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Nginx Address is already in use

Igal @ Lucee.org

Try the following to find which process listens on port 80:

  sudo netstat -tulpn | grep ':80 '


Igal Sapir
Lucee Core Developer
Lucee.org

On 7/30/2017 6:48 PM, spectre inc wrote:
Is there contact email so I can give it my head tech 

Sent from my iPhone

On Jul 30, 2017, at 9:45 PM, Raymundo Ramirez Mata <[hidden email]> wrote:

I do not have httpd:

sudo service httpd stop
Failed to stop httpd.service: Unit httpd.service not loaded.


---- On Sun, 30 Jul 2017 20:40:14 -0500 spectre inc <[hidden email]> wrote ----

Service nginx stop
Service httpd stop
Then 
Service nginx start
Service httpd start 



Sent from my iPhone

On Jul 30, 2017, at 9:32 PM, Raymundo Ramirez Mata <[hidden email]> wrote:

_______________________________________________
nginx mailing list
_______________________________________________
nginx mailing list
I did, but the problem persists


---- On Sun, 30 Jul 2017 20:28:39 -0500 spectre inc <[hidden email]> wrote ----

 Fine the process and kill it then restart nginx 

On Sun, Jul 30, 2017 at 8:57 PM Raymundo Ramirez Mata <[hidden email]> wrote:

_______________________________________________
nginx mailing list


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.
_______________________________________________
nginx mailing list


_______________________________________________
nginx mailing list
[hidden email]
http://mailman.nginx.org/mailman/listinfo/nginx


_______________________________________________
nginx mailing list
[hidden email]
http://mailman.nginx.org/mailman/listinfo/nginx


_______________________________________________
nginx mailing list
[hidden email]
http://mailman.nginx.org/mailman/listinfo/nginx
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Nginx Address is already in use

Fabian A. Santiago
In reply to this post by Raymundo Ramirez Mata
On July 30, 2017 9:45:02 PM EDT, Raymundo Ramirez Mata <[hidden email]> wrote:

>I do not have httpd:
>
>
>
>sudo service httpd stop
>
>Failed to stop httpd.service: Unit httpd.service not loaded.
>
>
>
>
>
>---- On Sun, 30 Jul 2017 20:40:14 -0500 spectre inc
>&lt;[hidden email]&gt; wrote ----
>
>
>
>
>Service nginx stop
>
>Service httpd stop
>
>Then
>
>Service nginx start
>
>Service httpd start
>
>
>
>
>
>
>
>Sent from my iPhone
>
>
>
>
>On Jul 30, 2017, at 9:32 PM, Raymundo Ramirez Mata
>&lt;[hidden email]&gt; wrote:
>
>
>
>
>_______________________________________________
>
>nginx mailing list
>
>[hidden email]
>
>http://mailman.nginx.org/mailman/listinfo/nginx
>
>
>_______________________________________________
>
>nginx mailing list
>
>[hidden email]
>
>http://mailman.nginx.org/mailman/listinfo/nginx
>
>
>I did, but the problem persists
>
>
>
>
>
>---- On Sun, 30 Jul 2017 20:28:39 -0500 spectre inc
>&lt;[hidden email]&gt; wrote ----
>
>
>
>
> Fine the process and kill it then restart nginx
>
>
>
>On Sun, Jul 30, 2017 at 8:57 PM Raymundo Ramirez Mata
>&lt;[hidden email]&gt; wrote:
>
>
>
>
>
>_______________________________________________
>
>nginx mailing list
>
>[hidden email]
>
>http://mailman.nginx.org/mailman/listinfo/nginx
>
>
>
>
>
>
>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.
>
>
>
>_______________________________________________
>
>nginx mailing list
>
>[hidden email]
>
>http://mailman.nginx.org/mailman/listinfo/nginx
It looks as though you MAY not have it installed but why are trying to restart httpd? That's Apache. You only mentioned nginx. If both are running, the ports by default would conflict. Am I missing something? Sorry if I am...

Maybe look for apache2?

--
Thanks.
Fabian S.

OpenPGP:

3c3fa072accb7ac5db0f723455502b0eeb9070fc
_______________________________________________
nginx mailing list
[hidden email]
http://mailman.nginx.org/mailman/listinfo/nginx

signature.asc (887 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Nginx Address is already in use

Ekaterina Kukushkina
In reply to this post by Raymundo Ramirez Mata
Hello,

> On 31 Jul 2017, at 03:57, Raymundo Ramirez Mata <[hidden email]> 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
[hidden email]
http://mailman.nginx.org/mailman/listinfo/nginx
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Nginx Address is already in use

Raymundo Ramirez Mata
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 <[hidden email]> wrote ----

Hello,

> On 31 Jul 2017, at 03:57, Raymundo Ramirez Mata <[hidden email]> 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 mailing list
[hidden email]
http://mailman.nginx.org/mailman/listinfo/nginx
Loading...