简体   繁体   English

当我用独角兽启动我的Rails应用程序时出现奇怪的错误

[英]Weird error when I start my rails app with unicorn

I'm getting this very strange error when I attempt to start my rails application with unicorn. 当我尝试使用独角兽启动我的Rails应用程序时,出现了一个非常奇怪的错误。 Has anyone seen this before? 谁看过这个吗?

[root@Web01 mp_app]# unicorn_rails -c config/unicorn.rb -E production -D -d
{:daemonize=>true,
 :app=>
  #<Proc:0x00002b14fff8c890@/usr/local/lib/ruby/gems/1.8/gems/unicorn-4.0.1/bin/unicorn_rails:135>,
 :unicorn_options=>{:config_file=>"config/unicorn.rb", :listeners=>[]}}
Exception `Errno::ENOENT' at /usr/local/lib/ruby/1.8/fileutils.rb:243 - No such file or directory - tmp/cache
Exception `Errno::EEXIST' at /usr/local/lib/ruby/1.8/fileutils.rb:243 - File exists - .
Exception `EOFError' at /usr/local/lib/ruby/gems/1.8/gems/unicorn-4.0.1/lib/unicorn/launcher.rb:46 - end of file reached

EDIT 编辑

Thanks to jdeseno, I've solved this by creating the tmp folder myself. 感谢jdeseno,我已经通过自己创建tmp文件夹解决了这一问题。 But now I'm getting a different error: 但是现在我得到了另一个错误:

{:daemonize=>true,
 :app=>
  #<Proc:0x00002b90ee5098a8@/usr/local/lib/ruby/gems/1.8/gems/unicorn-4.1.1/bin/unicorn_rails:135>,
 :unicorn_options=>{:config_file=>"config/unicorn.rb", :listeners=>[]}}
Exception `EOFError' at /usr/local/lib/ruby/gems/1.8/gems/unicorn-4.1.1/lib/unicorn/launcher.rb:46 - end of file reached

Any ideas on this error? 对这个错误有任何想法吗? The error message doesn't give much help. 该错误消息没有提供太多帮助。

I've encountered the EOFError from launcher.rb:46 problem twice when deploying Rails sites using Unicorn. 使用Unicorn部署Rails网站时,我两次遇到了launcher.rb:46问题中的EOFError In each case, the solution was to delete /tmp and let Unicorn create it. 在每种情况下,解决方案都是删除/tmp并让Unicorn创建它。

I know that you created /tmp manually specifically to solve a different problem... but maybe the real problem was that file permissions or something similar was stopping Unicorn from creating /tmp . 我知道您是专门为解决其他问题而手动创建的/tmp ,但是真正的问题可能是文件权限或类似的问题阻止了Unicorn创建/tmp

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 当我在Unicorn服务器上运行时,Websockets在我的Rails应用程序中不起作用,但在瘦服务器上运行 - Websockets not working in my Rails app when I run on Unicorn server, but works on a Thin server 在Gemfile中使用&#39;gem unicorn&#39;将Rails应用程序部署到Ubuntu时出错 - Error when deploying Rails app to Ubuntu with 'gem unicorn' in Gemfile 独角兽无法启动Rails App Mac - Unicorn fails to start rails app mac 在分阶段启动Rails App时出错-Unicorn - Error Starting Rails App In Staging - Unicorn capistrano独角兽无法启动我的app高手未能启动 - capistrano unicorn can't start my app master failed to start 关于我的heroku rails app上的unicorn :: clientshutdown错误,我该怎么办? - What can I do about unicorn::clientshutdown errors on my heroku rails app? 我是否需要安装Passenger 或Unicorn 才能在Nginx 下运行我的Rails 应用程序? - Do I need to install Passenger or Unicorn in order to run my Rails app under Nginx? 无法启动Unicorn,Rails和Nginx-没有这样的过程错误 - Can't start Unicorn, Rails and Nginx - no such process error 在服务器上部署Rails应用程序。 Unicorn和nginx日志似乎还可以。 但我收到301错误 - Deploy rails app on server. Unicorn and nginx logs as it seems are ok. But I get 301 error 独角兽与Rails,错误 - Unicorn with Rails, error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM