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

nginx failing to restart since last night

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
youradds
Posts: 130
Joined: Tue Sep 01, 2015 10:16 am

nginx failing to restart since last night
  • Quote

Post by youradds » Tue Dec 24, 2019 8:48 am

I have a question open on SO:

https://serverfault.com/questions/99662 ... last-night

For some reason nginx is refusing to load up. The weird part is that `service nginx status` shows as inactive, yet the websites work! Is anyone else having this issue?

The server is latest Vesta, Ubuntu 16.0.4 , nginx, Apache2 (reverse proxy). I'm really stuck on what else to look at / check. If nginx wasn't booting at all, it would make more sense - but the fact it DOES seem to be running is confusing the hell out of me!

Thanks

Andy
Top

plutocrat
Posts: 232
Joined: Fri Jan 27, 2017 9:16 am

Os: Ubuntu 17x
Web: apache + nginx
Re: nginx failing to restart since last night
  • Quote

Post by plutocrat » Thu Dec 26, 2019 4:49 am

Does 'nginx -t' show any errors? It will test the nginx config.

nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

Also another thing comes to mind ... Vesta CP uses two nginx processes. One as the proxy in front of apache (running on ports 80 / 443) and one as the server that runs Vesta (running on 8083). Perhaps one of these is failing and not the other?
Top

youradds
Posts: 130
Joined: Tue Sep 01, 2015 10:16 am

Re: nginx failing to restart since last night
  • Quote

Post by youradds » Thu Dec 26, 2019 7:07 am

Thanks for the reply. -t showed no errors.

Weirdly though, after rebooting (for the 4th ort 5th time), it seems to have sorted itself out! I'll have to keep an eye on it and see if it happens again. The odd part was that both the websites, AND VestaCP admin were both working!
Top

plutocrat
Posts: 232
Joined: Fri Jan 27, 2017 9:16 am

Os: Ubuntu 17x
Web: apache + nginx
Re: nginx failing to restart since last night
  • Quote

Post by plutocrat » Fri Dec 27, 2019 3:26 am

Guess I should have suggested to try testing the vesta config too,
nginx -t -c /usr/local/vesta/nginx/conf/nginx.conf

But anyway it seems that all is good now.
Top


Post Reply
  • Print view

4 posts • Page 1 of 1

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