appbox-cookbook icon indicating copy to clipboard operation
appbox-cookbook copied to clipboard

Production log permission error of Passenger Standalone server

Open hzmangel opened this issue 11 years ago • 1 comments

Got Production log permission error while running app under Passenger Standalone server via sv. Here is the line from log file:

Rails Error: Unable to access log file. Please ensure that /home/apps/app2/releases/20130511000523/log/production.log exists and is chmod 0666. The log level has been raised to WARN and the output directed to STDERR until the problem is fixed.

The permission of this log file is 0644 and the owner of this file is deploy:apps, which is different with others' apps:apps. I am wondering whether can change the permission of file to 0664 or change the user of the process writing log to apps.

hzmangel avatar May 13 '13 11:05 hzmangel

This log file is created by rake command during compiling assets, which is defined by :user field in Capistrano configuration file. This is not a cookbook related problem since the machine has been booted up previously. What about adding this into document to tell user updating file permission after deployment done?

hzmangel avatar May 13 '13 14:05 hzmangel