所以我有一台运行我的网络应用程序的cloud66服务器(azure)
我正在尝试在我的网络服务器上运行rake任务来填充我的数据库(它在本地运行正常)
继承错误日志我回来了
W, [2016-07-29T23:22:55.602769 #44674] WARN -- : Failed creating logger for file /var/deploy/appname/web_head/releases/20160729211819/log/newrelic_agent.log, using standard out for logging.
W, [2016-07-29T23:22:55.610222 #44674] WARN -- : Errno::EACCES: Permission denied @ rb_sysopen - /var/deploy/appname/web_head/releases/20160729211819/log/newrelic_agent.log
D, [2016-07-29T23:22:55.610373 #44674] DEBUG -- : Debugging backtrace:
/usr/local/lib/ruby/2.2.0/open-uri.rb:36:in `initialize'
/usr/local/lib/ruby/2.2.0/open-uri.rb:36:in `open'
/usr/local/lib/ruby/2.2.0/open-uri.rb:36:in `open'
/usr/local/lib/ruby/2.2.0/logger.rb:628:in `open_logfile'
/usr/local/lib/ruby/2.2.0/logger.rb:584:in `initialize'
/usr/local/lib/ruby/2.2.0/logger.rb:318:in `new'
/usr/local/lib/ruby/2.2.0/logger.rb:318:in `initialize'
为什么会失败的任何想法?
答案 0 :(得分:0)
答案在第二行:
Permission denied @ rb_sysopen - /var/deploy/appname/web_head/releases/20160729211819/log/newrelic_agent.log
要解决此问题,您需要使用部署挂钩来更改文件夹的权限。
查看此社区页面以获取更多信息:http://community.cloud66.com/questions/rails-file-system-permissions
此外,您可能会发现此页面非常有用:http://community.cloud66.com/articles/permission-errors-during-deployment