nginx restart failed (caching template)

General questions about VestaCP
hedgehog90
Posts: 14
Joined: Wed Sep 09, 2015 7:19 pm

nginx restart failed (caching template)

Postby 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.

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

Re: nginx restart failed (caching template)

Postby 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.

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

Re: nginx restart failed (caching template)

Postby ahouse » Sat Sep 02, 2017 12:11 pm

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

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

Re: nginx restart failed (caching template)

Postby 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?

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

Re: nginx restart failed (caching template)

Postby 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..

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

Re: nginx restart failed (caching template)

Postby imperio » Mon Sep 18, 2017 7:03 pm

-> DigitalOcean competition - please, support us
-> fix for phpmyadmin - nice and sweet now


Return to “General Discussion”



Who is online

Users browsing this forum: Google [Bot], intop and 9 guests

cron