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

nginx restart failed (caching template)

General questions about VestaCP
Post Reply
  • Print view
Advanced search
6 posts • Page 1 of 1
hedgehog90
Posts: 25
Joined: Wed Sep 09, 2015 7:19 pm

nginx restart failed (caching template)
  • Quote

Post by hedgehog90 » Tue Dec 29, 2015 5:12 pm

I'm running Ubuntu 14.04 and Vesta 0.9.8

Whenever I try to run v-rebuild-user or service nginx restart I get this error:
Error: nginx restart failed

If I check the error log I see this:

Code: Select all

nginx: [emerg] the same path name "/var/cache/nginx/gpstudios.com" used in /etc/nginx/conf.d/01_caching_pool.conf:1 and in /etc/nginx/conf.d/01_caching_pool.conf:2
nginx: configuration file /etc/nginx/nginx.conf test failed
and my /etc/nginx/conf.d/01_caching_pool.conf contains:

Code: Select all

proxy_cache_path /var/cache/nginx/gpstudios.com levels=2 keys_zone=gpstudios.com:10m inactive=60m max_size=512m;
proxy_cache_path /var/cache/nginx/gpstudios.com levels=2 keys_zone=gpstudios.com:10m inactive=60m max_size=512m;
If I delete /etc/nginx/conf.d/01_caching_pool.conf I can run v-rebuild-user once, but then if I try to run it again it has the same error.
At one point, during my fiddling trying to debug it, the file consisted of 5 repeated lines insetad of 2.

It appears this file is getting ammended the same line every time I rebuild the user.

Why is this happening? It works if I delete 01_caching_pool.conf but this is not a clean solution.
Top

abrarahmed
Posts: 4
Joined: Mon Jun 29, 2015 11:01 pm

Re: nginx restart failed (caching template)
  • Quote

Post by abrarahmed » Sun Jan 24, 2016 4:56 pm

I hope this helps
Open

Code: Select all

/etc/nginx/conf.d/01_caching_pool.conf
and remove all the duplicate lines. And then restart nginx.
Top

ahouse
Posts: 171
Joined: Fri Sep 01, 2017 1:05 pm

Os: Ubuntu 15x
Web: apache + nginx
Re: nginx restart failed (caching template)
  • Quote

Post by ahouse » Sat Sep 02, 2017 12:11 pm

i have the same problem. When i am select a "caching" profile - nginx goes down.
Top

MiguelVESTACP
Posts: 21
Joined: Tue Sep 05, 2017 12:39 pm

Re: nginx restart failed (caching template)
  • Quote

Post by MiguelVESTACP » Mon Sep 18, 2017 2:51 pm

abrarahmed wrote:I hope this helps
Open

Code: Select all

/etc/nginx/conf.d/01_caching_pool.conf
and remove all the duplicate lines. And then restart nginx.
After change Proxy Template same problem 3 lines with the same in

Code: Select all

/etc/nginx/conf.d/01_caching_pool.conf
After delete 2 lines and only stays 1 everthing goes ok.

This is a bug?
Top

Spythe
Posts: 9
Joined: Wed Jun 21, 2017 7:15 pm

Re: nginx restart failed (caching template)
  • Quote

Post by Spythe » Mon Sep 18, 2017 3:01 pm

My experience for the past few months is when you choose a different template, nginx.conf and .conf files just get fucked up for no reason. Vesta is pretty bugged, imho..
Top

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

Re: nginx restart failed (caching template)
  • Quote

Post by imperio » Mon Sep 18, 2017 7:03 pm

https://github.com/serghey-rodin/vesta/pull/1170
Top


Post Reply
  • Print view

6 posts • Page 1 of 1

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