Rails Error: Unable to access log file
Rails Error: Unable to access log file
我的应用程序突然出现此错误,运行 两年多没有出现问题:
Rails Error: Unable to access log file. Please ensure that .../production.log exists...
WARN -- : Errno::EACCES: Permission denied @ rb_sysopen .../log/newrelic_agent.log
这个错误的结果是我的mongoDB被杀了。在我重新启动应用程序后,一切都会再次运行,直到调用导致该行为的计划任务。
错误消息说我必须chmod到0664,但情况仍然如此。对于部署,我使用 capist运行o.
有什么想法吗?
使日志目录对其他用户可写:
chmod -R 777 specify_app_path_here/log
现在我知道了这种奇怪行为的原因:硬盘故障!!!
甚至两个磁盘同时死机 (RAID1) :(
我的应用程序突然出现此错误,运行 两年多没有出现问题:
Rails Error: Unable to access log file. Please ensure that .../production.log exists...
WARN -- : Errno::EACCES: Permission denied @ rb_sysopen .../log/newrelic_agent.log
这个错误的结果是我的mongoDB被杀了。在我重新启动应用程序后,一切都会再次运行,直到调用导致该行为的计划任务。
错误消息说我必须chmod到0664,但情况仍然如此。对于部署,我使用 capist运行o.
有什么想法吗?
使日志目录对其他用户可写:
chmod -R 777 specify_app_path_here/log
现在我知道了这种奇怪行为的原因:硬盘故障!!! 甚至两个磁盘同时死机 (RAID1) :(