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

Process Stopped on boot

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
16 posts
  • Previous
  • 1
  • 2
Ocrion
Posts: 11
Joined: Tue Nov 12, 2013 6:31 pm

Re: Process Stopped on boot
  • Quote

Post by Ocrion » Thu Nov 21, 2013 12:58 pm

skid wrote:Do you still see "(99: Cannot assign requested address)" in the error log? If yes then something is definitely listening on a port 80 and right before nginx starts. Or maybe ip is not yet initialized. You can get some info by by adding following into rc.local file

Code: Select all

ifconfig >> /tmp/debug.log
lsof -itcp:80  >> /tmp/debug.log
The error is still the same as before

Code: Select all

2013/11/21 13:26:36 [emerg] 2362#0: bind() to 192.168.0.105:80 failed (99: Cannot assign requested address)
And the output for the debug.log that we just got:

Code: Select all

root@purushost:/tmp# cat debug.log
eth0      Link encap:Ethernet  HWaddr 88:ae:1d:62:41:2e
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:16

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:67 errors:0 dropped:0 overruns:0 frame:0
          TX packets:67 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:20257 (19.7 KiB)  TX bytes:20257 (19.7 KiB)

wlan0     Link encap:Ethernet  HWaddr 70:f1:a1:bb:99:5c
          inet addr:192.168.0.105  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::72f1:a1ff:febb:995c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:918 (918.0 B)  TX bytes:2456 (2.3 KiB)
Top

skid
VestaCP Team
Posts: 1476
Joined: Wed Apr 06, 2011 11:12 pm

Re: Process Stopped on boot
  • Quote

Post by skid » Thu Nov 21, 2013 8:15 pm

So network is fine. Then it must be another process who is temporary binding port 80 and preventing nginx from boot
Top

Ocrion
Posts: 11
Joined: Tue Nov 12, 2013 6:31 pm

Re: Process Stopped on boot
  • Quote

Post by Ocrion » Sat Nov 23, 2013 11:26 am

skid wrote:So network is fine. Then it must be another process who is temporary binding port 80 and preventing nginx from boot
Yeh.. well I have no idea really, I haven't installed anything else other than the No-ip dynamic ip client and VestaCP. But I guess it's fine to restart it manually for a while.

Thanks for trying though, really appreciated! :)

Regards.
Top

manddar
Posts: 3
Joined: Sun May 25, 2014 3:27 am

Re: Process Stopped on boot
  • Quote

Post by manddar » Sat Aug 23, 2014 10:43 am

I am getting same issue with online.net dedicated servers.

Has anyone resolved this issue/bug?
Top

krok
Posts: 65
Joined: Wed Oct 01, 2014 10:58 am

Re: Process Stopped on boot
  • Quote

Post by krok » Mon Oct 06, 2014 11:24 pm

i have the same issue...
Top

laraaj
Posts: 2
Joined: Fri Oct 10, 2014 11:41 am

Re: Process Stopped on boot
  • Quote

Post by laraaj » Fri Oct 10, 2014 12:35 pm

Work around,

this seems to be a bug in VestaCP startup script, here is an easy work around i used to solve this problem on some clients
server.
create a file /usr/local/bin/restartnginx

Code: Select all


nano /usr/local/bin/restartnginx

paste this code

Code: Select all

#!/bin/sh
#

sleep 30
service nginx restart

change make the file executable

Code: Select all

chmod +x /usr/local/bin/restartnginx

edit the file /etc/rc.local

Code: Select all


nano  /etc/rc.local

then add the following code to your /etc/rc.local before the exit 0 line

Code: Select all

/usr/local/bin/restartnginx &

Top


Post Reply
  • Print view

16 posts
  • Previous
  • 1
  • 2

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