Page 1 of 2
Nginx & Apache not starting after reboot.
Posted: Tue Mar 10, 2015 10:26 am
by eeepurushoth
Hi to all,
thanks for the awesome software Vesta CP.
easy to use for all newbies like me.
kindly help me. after reboot the nginx and apache modules are not starting.
i tried several things as said in forum.
i'm running an ubuntu 12.04 in azure VM - with 1.5GB of RAM.
running no other softwares.. fresh install. it worked fine yesterday. but after rebooting it gets this error.
any solutions.??
thanks in advance.
Re: Nginx & Apache not starting after reboot.
Posted: Tue Mar 10, 2015 11:16 am
by skurudo
Show us error logs please from /var/log
And from screenshot you restart not system nginx/apache, but vesta nginx
Re: Nginx & Apache not starting after reboot.
Posted: Tue Mar 10, 2015 12:16 pm
by eeepurushoth
i saw the error log in which is shows its trying to bind to an ip, which is the ip address of yesterday.
apache2 also tries to bind to yesterdays ip.. so they are getting failed as todays ip is different,
kindly help me how to change an config file or something so that i can change the old ip address from the nginx and apache.
error.log below:
2015/03/10 04:53:48 [emerg] 1660#0: bind() to 100.72.228.57:80 failed (99: Cannot assign requested address)
2015/03/10 05:00:55 [emerg] 3619#0: bind() to 100.72.228.57:80 failed (99: Cannot assign requested address)
this 100.72.228.57:80 is yesterday's ip address.. todays is different.
help me
thanks in advance,.
Re: Nginx & Apache not starting after reboot.
Posted: Tue Mar 10, 2015 12:29 pm
by skurudo
In folders with apach2/httpd and nginx search for conf.d folder, in those folder find and remove/move files with old IP in name. Then you need restart nginx/apache services and check.
Re: Nginx & Apache not starting after reboot.
Posted: Tue Mar 10, 2015 1:00 pm
by eeepurushoth
root@fatert:/etc/nginx# /etc/init.d/nginx restart
* Restarting nginx nginx nginx: [emerg] bind() to 100.72.228.57:80 failed (99: Cannot assign requested address)
nginx: configuration file /etc/nginx/nginx.conf test failed.
i'm getting this
Re: Nginx & Apache not starting after reboot.
Posted: Tue Mar 10, 2015 1:59 pm
by eeepurushoth
i had removed the ip conf in apache2.. its working now.
but in case of nginx its showing the same error above..
is it getting the ip address of yesterday from somewhere???
Re: Nginx & Apache not starting after reboot.
Posted: Tue Mar 10, 2015 3:25 pm
by skurudo
Check nginx folder /etc/nginx/conf.d/ and do the same as in apache folder, then restart service.
Re: Nginx & Apache not starting after reboot.
Posted: Wed Mar 11, 2015 5:57 am
by eeepurushoth
Is there any solution to automatically change those ip address by itself.??
do i need to do it everytime.?? i'm running ubuntu vm in azure.. in which i shutdown the vm daily.. so daily i need to do it..
it will be better if VESTACP team give us a solution for this.
I even tried to jump to webmin.. but nothing is as good, easy, convient as this vestacp.
kindly help me. thank you team
Re: Nginx & Apache not starting after reboot.
Posted: Thu Apr 16, 2015 9:18 am
by skurudo
Solution for brave mans -
viewtopic.php?f=10&t=5975
Not fully auto, but... better than nothing
Re: Nginx & Apache not starting after reboot.
Posted: Thu Oct 22, 2015 3:21 pm
by protocore
My logs any help
2015/10/22 15:20:44 [emerg] 2348#0: bind() to 176.9.79.15:80 failed (99: Cannot assign requested address)
2015/10/22 15:32:42 [emerg] 11344#0: bind() to 176.9.79.15:80 failed (99: Cannot assign requested address)
2015/10/22 15:46:15 [emerg] 12553#0: bind() to 176.9.79.15:80 failed (99: Cannot assign requested address)
2015/10/22 16:11:49 [emerg] 22110#0: bind() to 176.9.79.15:80 failed (99: Cannot assign requested address)
2015/10/22 16:11:58 [emerg] 22340#0: bind() to 176.9.79.15:80 failed (99: Cannot assign requested address)
2015/10/22 16:12:02 [emerg] 22570#0: bind() to 176.9.79.15:80 failed (99: Cannot assign requested address)
2015/10/22 16:12:04 [emerg] 22800#0: bind() to 176.9.79.15:80 failed (99: Cannot assign requested address)
2015/10/22 16:18:09 [emerg] 24591#0: bind() to 176.9.79.15:80 failed (99: Cannot assign requested address)
My new IP
176.9.79.23
I changed all files
/etc/apache2/conf.d/your-old-ip.conf
/etc/nginx/conf.d/your-old-ip.conf
/usr/local/vesta/data/ips/your-old-ip