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 Restart Failed - Files Being Cut Off

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
5 posts • Page 1 of 1
cdg
Posts: 48
Joined: Sun Aug 16, 2015 3:11 am
Contact:
Contact cdg
Website

Os: Ubuntu 15x
Web: apache + nginx
NGINX Restart Failed - Files Being Cut Off
  • Quote

Post by cdg » Sun Jan 24, 2016 4:07 am

For the third time, I have received a "Nginx restart failed" message. When I tried to manually restart NGINX I am told there is an error in the user nginx.conf file. The first time this happened, it affected the nginx.conf file on two accounts on the server possibly after the aliases were changed, I thought these two incidents may have been a random error, but while changing aliases today, I received the same error.

While inspecting the nginx.conf file and consulting some experts on serverfault.com, I found that chunks of the file had been randomly removed. The first time this occurred, I was able to retype to deleted chunk, but this time it is still not fixed.

How can I fix this nginx error as I need my server back up ASAP, and how can I prevent this from happening again.
Top

tjebbeke
Collaborator
Posts: 783
Joined: Mon May 11, 2015 8:43 am
Contact:
Contact tjebbeke
Website

Os: CentOS 6x
Web: apache + nginx
Re: NGINX Restart Failed - Files Being Cut Off
  • Quote

Post by tjebbeke » Sun Jan 24, 2016 12:31 pm

Try to 'rebuild web' for the user. https://yourcpip:8083/list/user/ select the users and in the dropdown select 'rebuild web'.
Top

cdg
Posts: 48
Joined: Sun Aug 16, 2015 3:11 am
Contact:
Contact cdg
Website

Os: Ubuntu 15x
Web: apache + nginx
Re: NGINX Restart Failed - Files Being Cut Off
  • Quote

Post by cdg » Sun Jan 24, 2016 10:41 pm

This fixed the problem, but what caused this and how can I prevent this in the future?
Top

tjebbeke
Collaborator
Posts: 783
Joined: Mon May 11, 2015 8:43 am
Contact:
Contact tjebbeke
Website

Os: CentOS 6x
Web: apache + nginx
Re: NGINX Restart Failed - Files Being Cut Off
  • Quote

Post by tjebbeke » Mon Jan 25, 2016 7:59 am

One of the reasons can be that you changed some config manually and later try to change the template, or the template was changed.
Top

cdg
Posts: 48
Joined: Sun Aug 16, 2015 3:11 am
Contact:
Contact cdg
Website

Os: Ubuntu 15x
Web: apache + nginx
Re: NGINX Restart Failed - Files Being Cut Off
  • Quote

Post by cdg » Mon Jan 25, 2016 8:06 am

Its odd though, it only cuts off part of a domain's nginx config section and it never even occurred to any of the domains of which had their aliases changed
Top


Post Reply
  • Print view

5 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