Page 1 of 3
Can't start nginx
Posted: Thu Jan 29, 2015 2:07 pm
by webdotapp
Hello,
I am getting following error while running 'service nginx restart' in ssh...
Code: Select all
* Restarting nginx nginx nginx: [emerg] bind() to 192.168.103.9:80 failed (99: Cannot assign requested address)
nginx: configuration file /etc/nginx/nginx.conf test failed
Websites are not loading and apache config file got empty somehow, i have tried to
rebuild web and
rebuild dns but nothing helped. Please suggest a way to fix this issue.
Thanks
Re: Can't start nginx
Posted: Thu Jan 29, 2015 2:56 pm
by skurudo
Reboot
or
/etc/init.d/nginx stop && /etc/init.d/nginx start
Re: Can't start nginx
Posted: Thu Jan 29, 2015 3:09 pm
by webdotapp
Thanks for your reply. I am still getting following error...
Code: Select all
nginx: [emerg] bind() to 192.168.103.9:80 failed (99: Cannot assign requested address)
skurudo wrote:Reboot
or
/etc/init.d/nginx stop && /etc/init.d/nginx start
Re: Can't start nginx
Posted: Thu Jan 29, 2015 3:11 pm
by imperio
Show me please result of this command
Re: Can't start nginx
Posted: Thu Jan 29, 2015 3:22 pm
by webdotapp
Here is the reply for
service nginx configtest
Code: Select all
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: [emerg] bind() to 192.168.103.9:80 failed (99: Cannot assign requested address)
nginx: configuration file /etc/nginx/nginx.conf test failed
imperio wrote:Show me please result of this command
Re: Can't start nginx
Posted: Thu Jan 29, 2015 3:23 pm
by imperio
I think you have problem with ip on your server
Try to use this command
Code: Select all
/usr/local/vesta/bin/v-update-sys-ip
Re: Can't start nginx
Posted: Thu Jan 29, 2015 3:29 pm
by webdotapp
Hello,
I have tried
Code: Select all
/usr/local/vesta/bin/v-update-sys-ip
, it outputs nothing, and then i tried
but still getting same error...
Code: Select all
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: [emerg] bind() to 192.168.103.9:80 failed (99: Cannot assign requested address)
nginx: configuration file /etc/nginx/nginx.conf test failed
* Restarting nginx nginx
nginx: [emerg] bind() to 192.168.103.9:80 failed (99: Cannot assign requested address)
nginx: configuration file /etc/nginx/nginx.conf test failed
imperio wrote:I think you have problem with ip on your server
Try to use this command
Code: Select all
/usr/local/vesta/bin/v-update-sys-ip
Re: Can't start nginx
Posted: Thu Jan 29, 2015 3:56 pm
by imperio
Do you have ip adress in /usr/local/vesta/data/ips ?
What operating system on your server ?
Show me result
Re: Can't start nginx
Posted: Thu Jan 29, 2015 4:07 pm
by webdotapp
Operating System: Ubuntu 14.04
Yes, there are 3 ips in
/usr/local/vesta/data/ips
tail /etc/network/interfaces outputs following...
Code: Select all
netmask 255.255.255.128
gateway 209.187.25.1
auto eth1:1
iface eth1:1 inet static
name Ethernet alias LAN card
address 209.187.25.116
netmask 255.255.255.128
Please note i am able to access VESTA CP.
imperio wrote:Do you have ip adress in /usr/local/vesta/data/ips ?
What operating system on your server ?
Show me result
Re: Can't start nginx
Posted: Thu Jan 29, 2015 5:16 pm
by skurudo
Ok, let's see what's demon on your port:
Show output, please.