当我尝试用独角兽启动我的rails应用程序时,我收到了这个非常奇怪的错误.谁看过这个吗?
[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
编辑
感谢jdeseno,我已经通过自己创建tmp文件夹解决了这个问题.但现在我得到了一个不同的错误:
{:daemonize=>true,:app=> #<Proc:0x00002b90ee5098a8@/usr/local/lib/ruby/gems/1.8/gems/unicorn-4.1.1/bin/unicorn_rails:135>,: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