Rails 3 Unable to access log file on server

微笑、不失礼 提交于 2019-12-13 04:33:48

问题


I am deploying my web application to my server and everything works perfectly except I cannot find a way to get rid of the following error message below. Before deploying I have a development, and production.rb file in my log but when pushing to the server there is nothing there and I cannot create it. I have looked for other solutions but so far nothing has worked, How can I solve this error?

Rails Error: Unable to access log file. Please ensure that
/var/www/websites/public/appname/releases/20120608236602/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.

回答1:


As that error message states, the logging process cannot access the log file. This would be due to the permissions on /var/www/websites/public/appname/releases/20120608236602/log.

You can change the permissions on that dir with:

chmod -R 0666 /var/www/websites/public/appname/releases/20120608236602/log 


来源:https://stackoverflow.com/questions/10957645/rails-3-unable-to-access-log-file-on-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!