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 General Discussion
  • Search

Can't start nginx

General questions about VestaCP
Post Reply
  • Print view
Advanced search
23 posts
  • 1
  • 2
  • 3
  • Next
webdotapp
Posts: 33
Joined: Thu Jan 29, 2015 2:04 pm

Can't start nginx
  • Quote

Post by webdotapp » Thu Jan 29, 2015 2:07 pm

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
Top

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

Re: Can't start nginx
  • Quote

Post by skurudo » Thu Jan 29, 2015 2:56 pm

Reboot

or

/etc/init.d/nginx stop && /etc/init.d/nginx start
Top

webdotapp
Posts: 33
Joined: Thu Jan 29, 2015 2:04 pm

Re: Can't start nginx
  • Quote

Post by webdotapp » Thu Jan 29, 2015 3:09 pm

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
Top

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

Re: Can't start nginx
  • Quote

Post by imperio » Thu Jan 29, 2015 3:11 pm

Show me please result of this command

Code: Select all

service nginx configtest
Top

webdotapp
Posts: 33
Joined: Thu Jan 29, 2015 2:04 pm

Re: Can't start nginx
  • Quote

Post by webdotapp » Thu Jan 29, 2015 3:22 pm

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

Code: Select all

service nginx configtest
Top

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

Re: Can't start nginx
  • Quote

Post by imperio » Thu Jan 29, 2015 3:23 pm

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
Top

webdotapp
Posts: 33
Joined: Thu Jan 29, 2015 2:04 pm

Re: Can't start nginx
  • Quote

Post by webdotapp » Thu Jan 29, 2015 3:29 pm

Hello,

I have tried

Code: Select all

/usr/local/vesta/bin/v-update-sys-ip
, it outputs nothing, and then i tried

Code: Select all

service nginx configtest
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
Top

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

Re: Can't start nginx
  • Quote

Post by imperio » Thu Jan 29, 2015 3:56 pm

Do you have ip adress in /usr/local/vesta/data/ips ?
What operating system on your server ?
Show me result

Code: Select all

tail /etc/network/interfaces
Top

webdotapp
Posts: 33
Joined: Thu Jan 29, 2015 2:04 pm

Re: Can't start nginx
  • Quote

Post by webdotapp » Thu Jan 29, 2015 4:07 pm

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

Code: Select all

tail /etc/network/interfaces
Last edited by webdotapp on Thu Jan 29, 2015 5:16 pm, edited 1 time in total.
Top

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

Re: Can't start nginx
  • Quote

Post by skurudo » Thu Jan 29, 2015 5:16 pm

Ok, let's see what's demon on your port:

Code: Select all

netstat -tunlp | grep 80
Show output, please.
Top


Post Reply
  • Print view

23 posts
  • 1
  • 2
  • 3
  • Next

Return to “General Discussion”



  • 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