SyntaxFix
Write A Post
Hire A Developer
Questions
If i assume that your second code is the puppet config then i have a logical explaination, if the error and log files were create before, you can try this
sudo chown -R www-data:www-data /var/log/nginx; sudo chmod -R 755 /var/log/nginx;