Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

nginx restart failed‏

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Locked
  • Print view
Advanced search
9 posts • Page 1 of 1
droopy
Posts: 40
Joined: Wed Jun 11, 2014 11:50 pm

nginx restart failed‏

Post by droopy » Wed Jul 16, 2014 11:56 pm

I received this email alert from vestacp

Code: Select all

nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: [emerg] listen() to 127.0.0.2:80, backlog 511 failed (98: Address already in use)
nginx: configuration file /etc/nginx/nginx.conf test failed
Restarting nginx: nginxnginx: [emerg] listen() to 127.0.0.2:80, backlog 511 failed (98: 
Address already in use)
nginx: configuration file /etc/nginx/nginx.conf test failed 
Any idea of this problem and how to solve it?

regards
Top

erldcrtz
Posts: 73
Joined: Tue Jun 10, 2014 6:16 am

Re: nginx restart failed‏

Post by erldcrtz » Thu Jul 17, 2014 9:22 am

droopy wrote:I received this email alert from vestacp

Code: Select all

nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: [emerg] listen() to 127.0.0.2:80, backlog 511 failed (98: Address already in use)
nginx: configuration file /etc/nginx/nginx.conf test failed
Restarting nginx: nginxnginx: [emerg] listen() to 127.0.0.2:80, backlog 511 failed (98: 
Address already in use)
nginx: configuration file /etc/nginx/nginx.conf test failed 
Any idea of this problem and how to solve it?

regards
make sure no one else is using port 80 but nginx.. .make sure apache is using port 8080

or re install vestacp
Top

droopy
Posts: 40
Joined: Wed Jun 11, 2014 11:50 pm

Re: nginx restart failed‏

Post by droopy » Thu Jul 17, 2014 1:14 pm

Thanks erldcrtz.

I have this problem after i see 502 Bad gateway on nginx when i try to enter por 8083 which is vestacp.
I solve it by
/etc/init.d/vesta stop
/etc/init.d/vesta start

And then when a i try to add a new webdomain and DNS, appears that nginx error.

regards.
Top

imperio
VestaCP Team
Posts: 7000
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

Re: nginx restart failed‏

Post by imperio » Thu Jul 17, 2014 2:53 pm

Hi, droopy
What operating system on your server?

Show me result of this commands

Code: Select all

service nginx configtest
service nginx restart
service vesta restart
Top

droopy
Posts: 40
Joined: Wed Jun 11, 2014 11:50 pm

Re: nginx restart failed‏

Post by droopy » Fri Jul 18, 2014 3:10 am

Hi Imperio,

I am using Debian7 with 64bytes
-------------------------------------------
service nginx configtest
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: [emerg] listen() to 127.0.0.2:80, backlog 511 failed (98: Address already in use)
nginx: configuration file /etc/nginx/nginx.conf test failed
--------------------------------------------
service nginx restart
[....] Restarting nginx: nginxnginx: [emerg] listen() to 127.0.0.2:80, backlog 511 failed (98: Address already in use)
nginx: configuration file /etc/nginx/nginx.conf test failed
---------------------------------------------
service vesta restart
[ ok ] Restarting vesta-nginx: vesta-nginx.
[ ok ] Restarting vesta-php: vesta-php.
--------------------------------------------------

@imperio: Same problem happens to many users like vestalover
viewtopic.php?f=10&t=5350

regards
Top

imperio
VestaCP Team
Posts: 7000
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

Re: nginx restart failed‏

Post by imperio » Fri Jul 18, 2014 6:13 am

Can you give me root access to yout server?
I want to check this problem on your server

send me priwate message with password
Top

sirpros
Posts: 13
Joined: Mon Oct 21, 2013 8:29 am

Re: nginx restart failed‏

Post by sirpros » Sun Oct 16, 2016 12:34 am

It's not a good idea to always ask for passwords and not post the solution for future users to learn how it was resolved.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: nginx restart failed‏

Post by skurudo » Tue Mar 14, 2017 2:40 pm

With telepathy is bad in our days... ;-(
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: nginx restart failed‏

Post by skurudo » Wed Feb 28, 2018 12:01 pm

Code: Select all

killall -9 nginx
killall -9 apache2
service nginx start
service apache2 start
Top


Locked
  • Print view

9 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password