Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Production log permission error of Passenger Standalone server #5

Open
hzmangel opened this issue May 13, 2013 · 1 comment
Open

Production log permission error of Passenger Standalone server #5

hzmangel opened this issue May 13, 2013 · 1 comment

Comments

@hzmangel
Copy link

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
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant