ユニコーンでレールアプリケーションを起動しようとすると、この非常に奇妙なエラーが発生します。誰もこれを見たことがありますか? jdesenoへユニコーンでレールアプリを起動すると奇妙なエラーが発生する
[[email protected] mp_app]# unicorn_rails -c config/unicorn.rb -E production -D -d
{:daemonize=>true,
:app=>
#<Proc:[email protected]/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
おかげで、私は、tmpフォルダを自分で作成することによって、これを解決してきました。しかし今、別のエラーが発生しています:
{:daemonize=>true,
:app=>
#<Proc:[email protected]/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
このエラーに関するお考えは?エラーメッセージはあまり役に立ちません。
エラーは、 'tmp'ディレクトリが存在せず、ユニコーンが作成しないことを意味します。それを作成するか、unicorn設定の 'working_dir'設定を確認してください。 – jdeseno