We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
nginx restart failed (caching template)
-
- Posts: 25
- Joined: Wed Sep 09, 2015 7:19 pm
nginx restart failed (caching template)
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:
and my /etc/nginx/conf.d/01_caching_pool.conf contains:
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.
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
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;
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.
-
- Posts: 4
- Joined: Mon Jun 29, 2015 11:01 pm
Re: nginx restart failed (caching template)
I hope this helps
Open and remove all the duplicate lines. And then restart nginx.
Open
Code: Select all
/etc/nginx/conf.d/01_caching_pool.conf
Re: nginx restart failed (caching template)
i have the same problem. When i am select a "caching" profile - nginx goes down.
-
- Posts: 21
- Joined: Tue Sep 05, 2017 12:39 pm
Re: nginx restart failed (caching template)
After change Proxy Template same problem 3 lines with the same inabrarahmed wrote:I hope this helps
Openand remove all the duplicate lines. And then restart nginx.Code: Select all
/etc/nginx/conf.d/01_caching_pool.conf
Code: Select all
/etc/nginx/conf.d/01_caching_pool.conf
This is a bug?
Re: nginx restart failed (caching template)
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..