Page 1 of 1

Backup error with nginx support disabled

Posted: Thu Mar 08, 2018 3:38 pm
by deadbeef
Hello. I'm running VestaCP with Apache as webserver and nginx as caching proxy. Everything was just fine until I disabled nginx support for one of my sites. After that backups are not created. I looked through the logs and obviously this is what it's all about:

Code: Select all

backup.log
2018-03-08 18:27:01

-- WEB --
2018-03-08 18:25:01 xxx.yyy.ru
2018-03-08 18:26:07 zzz.yyy.ru
2018-03-08 18:26:07 nnn.yyy.ru
grep: /usr/local/vesta/data/templates/web/nginx/.stpl: No such file or directory
wc: /usr/local/vesta/data/templates/web/nginx/.stpl: No such file or directory
Error: can't parse template /usr/local/vesta/data/templates/web/nginx/.stpl
Looks like with nginx disabled backup script is trying to process nginx template with empty name instead of ignoring it and backup failes. Right after I enabled nginx proxy for that website backup was created without any problem. It would be really nice if you could point to the script where I should make a fix, I don't really want to go too deep =)