Page 1 of 1

nginx restart failed‏

Posted: Wed Jul 16, 2014 11:56 pm
by droopy
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

Re: nginx restart failed‏

Posted: Thu Jul 17, 2014 9:22 am
by erldcrtz
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

Re: nginx restart failed‏

Posted: Thu Jul 17, 2014 1:14 pm
by droopy
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.

Re: nginx restart failed‏

Posted: Thu Jul 17, 2014 2:53 pm
by imperio
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

Re: nginx restart failed‏

Posted: Fri Jul 18, 2014 3:10 am
by droopy
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

Re: nginx restart failed‏

Posted: Fri Jul 18, 2014 6:13 am
by imperio
Can you give me root access to yout server?
I want to check this problem on your server

send me priwate message with password

Re: nginx restart failed‏

Posted: Sun Oct 16, 2016 12:34 am
by sirpros
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.

Re: nginx restart failed‏

Posted: Tue Mar 14, 2017 2:40 pm
by skurudo
With telepathy is bad in our days... ;-(

Re: nginx restart failed‏

Posted: Wed Feb 28, 2018 12:01 pm
by skurudo

Code: Select all

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