当我尝试访问 Heroku 上最近发布的 Rails 应用程序时,它给了我以下错误:
Application Error
An error occurred in the application and your page could not be served. Please try again in a few moments.
If you are the application owner, check your logs for details.
当我检查“heroku 日志”时,我看到以下内容:
2013-02-15T18:56:06+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=olivetalk.org fwd=76.168.74.9 dyno= queue= wait= connect= service= status=503 bytes=
2013-02-15T18:56:07+00:00 heroku[run.3278]: Client connection closed. Sending SIGHUP to all processes
2013-02-15T18:56:08+00:00 heroku[run.3278]: Process exited with status 0
2013-02-15T18:56:08+00:00 heroku[run.3278]: State changed from up to complete
2013-02-15T18:56:15+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=olivetalk.org fwd=76.168.74.9 dyno= queue= wait= connect= service= status=503 bytes=
2013-02-15T18:56:17+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=olivetalk.org fwd=76.168.74.9 dyno= queue= wait= connect= service= status=503 bytes=
我无法弄清楚可能出了什么问题。有什么建议吗?
更新:这是来自 loggly 插件的错误:
2013-02-15T19:50:43.659Z,default,54.234.29.222,115 <13>1 2013-02-15T19:50:43+00:00 d.26e71b30-db64-4275-b420-db8e0213d871 app web.1 - - from /app/config.ru:in `new'
2013-02-15T19:50:43.659Z,default,54.234.29.222,176 <13>1 2013-02-15T19:50:43+00:00 d.26e71b30-db64-4275-b420-db8e0213d871 app web.1 - - from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.4/lib/rack/builder.rb:51:in `initialize'
2013-02-15T19:50:43.659Z,default,54.234.29.222,179 <13>1 2013-02-15T19:50:43+00:00 d.26e71b30-db64-4275-b420-db8e0213d871 app web.1 - - from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.4/lib/rack/builder.rb:51:in `instance_eval'
2013-02-15T19:50:43.659Z,default,54.234.29.222,129 <13>1 2013-02-15T19:50:43+00:00 d.26e71b30-db64-4275-b420-db8e0213d871 app web.1 - - from /app/config.ru:3:in `block in <main>'
2013-02-15T19:50:43.659Z,default,54.234.29.222,198 <13>1 2013-02-15T19:50:43+00:00 d.26e71b30-db64-4275-b420-db8e0213d871 app web.1 - - from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:251:in `require'
2013-02-15T19:50:43.66Z,default,54.234.29.222,177 <13>1 2013-02-15T19:50:43+00:00 d.26e71b30-db64-4275-b420-db8e0213d871 app web.1 - - from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.4/lib/rack/server.rb:304:in `wrapped_app'
2013-02-15T19:50:43.66Z,default,54.234.29.222,182 <13>1 2013-02-15T19:50:43+00:00 d.26e71b30-db64-4275-b420-db8e0213d871 app web.1 - - from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.9/lib/rails/commands/server.rb:46:in `app'
2013-02-15T19:50:43.66Z,default,54.234.29.222,169 <13>1 2013-02-15T19:50:43+00:00 d.26e71b30-db64-4275-b420-db8e0213d871 app web.1 - - from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.4/lib/rack/server.rb:200:in `app'
2013-02-15T19:50:43.66Z,default,54.234.29.222,176 <13>1 2013-02-15T19:50:43+00:00 d.26e71b30-db64-4275-b420-db8e0213d871 app web.1 - - from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.4/lib/rack/builder.rb:40:in `parse_file'
2013-02-15T19:50:43.66Z,default,54.234.29.222,170 <13>1 2013-02-15T19:50:43+00:00 d.26e71b30-db64-4275-b420-db8e0213d871 app web.1 - - from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.4/lib/rack/builder.rb:40:in `eval'
2013-02-15T19:50:43.66Z,default,54.234.29.222,118 <13>1 2013-02-15T19:50:43+00:00 d.26e71b30-db64-4275-b420-db8e0213d871 app web.1 - - from /app/config.ru:in `<main>'
2013-02-15T19:50:43.661Z,default,54.234.29.222,188 <13>1 2013-02-15T19:50:43+00:00 d.26e71b30-db64-4275-b420-db8e0213d871 app web.1 - - from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.9/lib/rails/commands.rb:50:in `<top (required)>'
2013-02-15T19:50:43.661Z,default,54.234.29.222,175 <13>1 2013-02-15T19:50:43+00:00 d.26e71b30-db64-4275-b420-db8e0213d871 app web.1 - - from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.9/lib/rails/commands.rb:50:in `tap'
2013-02-15T19:50:43.661Z,default,54.234.29.222,197 <13>1 2013-02-15T19:50:43+00:00 d.26e71b30-db64-4275-b420-db8e0213d871 app web.1 - - from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.9/lib/rails/commands.rb:55:in `block in <top (required)>'
2013-02-15T19:50:43.661Z,default,54.234.29.222,184 <13>1 2013-02-15T19:50:43+00:00 d.26e71b30-db64-4275-b420-db8e0213d871 app web.1 - - from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.9/lib/rails/commands/server.rb:70:in `start'
2013-02-15T19:50:43.661Z,default,54.234.29.222,171 <13>1 2013-02-15T19:50:43+00:00 d.26e71b30-db64-4275-b420-db8e0213d871 app web.1 - - from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.4/lib/rack/server.rb:254:in `start'
2013-02-15T19:50:43.662Z,default,54.234.29.222,118 <13>1 2013-02-15T19:50:43+00:00 d.26e71b30-db64-4275-b420-db8e0213d871 app web.1 - - from script/rails:6:in `<main>'
2013-02-15T19:50:43.662Z,default,54.234.29.222,119 <13>1 2013-02-15T19:50:43+00:00 d.26e71b30-db64-4275-b420-db8e0213d871 app web.1 - - from script/rails:6:in `require'
2013-02-15T19:50:44.749Z,default,50.17.90.179,127 <40>1 2013-02-15T19:50:44+00:00 d.26e71b30-db64-4275-b420-db8e0213d871 heroku web.1 - - State changed from starting to crashed
2013-02-15T19:50:44.924Z,default,54.234.29.222,117 <40>1 2013-02-15T19:50:44+00:00 d.26e71b30-db64-4275-b420-db8e0213d871 heroku web.1 - - Process exited with status 1