Heroku App与HashWithInDifferentAccess崩溃

时间:2012-10-09 18:02:32

标签: ruby-on-rails heroku crash

我的heroku应用程序已经运行了好几天,突然间,当我刷新页面时,它给了我“应用程序错误”消息。因此,为了找出导致突发错误的原因,我尝试运行heroku日志并获得以下输出:

2012-10-09T17:30:53+00:00 heroku[run.1]: Client connection closed. Sending SIGHU P to all processes 2012-10-09T17:30:54+00:00 heroku[run.1]: Process exited with status 1 2012-10-09T17:30:54+00:00 heroku[run.1]: State changed from up to complete 2012-10-09T17:40:16+00:00 heroku[router]: Error H10 (App crashed) -> GET relevan t-amazon.herokuapp.com/login dyno= queue= wait= service= status=503 bytes= 2012-10-09T17:40:17+00:00 heroku[router]: Error H10 (App crashed) -> GET relevan t-amazon.herokuapp.com/favicon.ico dyno= queue= wait= service= status=503 bytes=

2012-10-09T17:40:21+00:00 heroku[router]: Error H10 (App crashed) -> GET relevan t-amazon.herokuapp.com/login dyno= queue= wait= service= status=503 bytes= 2012-10-09T17:40:22+00:00 heroku[router]: Error H10 (App crashed) -> GET relevan t-amazon.herokuapp.com/favicon.ico dyno= queue= wait= service= status=503 bytes=

2012-10-09T17:40:23+00:00 heroku[router]: Error H10 (App crashed) -> GET relevan t-amazon.herokuapp.com/login dyno= queue= wait= service= status=503 bytes= 2012-10-09T17:40:24+00:00 heroku[router]: Error H10 (App crashed) -> GET relevan t-amazon.herokuapp.com/favicon.ico dyno= queue= wait= service= status=503 bytes=

2012-10-09T17:41:13+00:00 heroku[worker.1]: State changed from crashed to starti ng 2012-10-09T17:41:17+00:00 heroku[worker.1]: Starting process with command `bundl e exec rake jobs:work` 2012-10-09T17:41:18+00:00 heroku[worker.1]: State changed from starting to up 2012-10-09T17:41:22+00:00 app[worker.1]: rake aborted! 2012-10-09T17:41:22+00:00 app[worker.1]: uninitialized constant ActiveSupport::H ashWithIndifferentAccess 2012-10-09T17:41:22+00:00 app[worker.1]: 2012-10-09T17:41:22+00:00 app[worker.1]: (See full trace by running task with -- trace) 2012-10-09T17:41:23+00:00 heroku[worker.1]: State changed from up to crashed 2012-10-09T17:41:23+00:00 heroku[worker.1]: Process exited with status 1 2012-10-09T17:46:05+00:00 heroku[router]: Error H10 (App crashed) -> GET relevan t-amazon.herokuapp.com/bounces dyno= queue= wait= service= status=503 bytes= 2012-10-09T17:46:06+00:00 heroku[router]: Error H10 (App crashed) -> GET relevan t-amazon.herokuapp.com/favicon.ico dyno= queue= wait= service= status=503 bytes=

2012-10-09T17:46:07+00:00 heroku[router]: Error H10 (App crashed) -> GET relevan t-amazon.herokuapp.com/assets/application-d2b303c8a2871b77ea6ae4c3c9da41b4.js dy no= queue= wait= service= status=503 bytes= 2012-10-09T17:46:07+00:00 heroku[router]: Error H10 (App crashed) -> GET relevan t-amazon.herokuapp.com/favicon.ico dyno= queue= wait= service= status=503 bytes=

2012-10-09T17:47:23+00:00 heroku[slugc]: Slug compilation started 2012-10-09T17:47:47+00:00 heroku[api]: Deploy a3525b1 by hamsyari22@gmail.com 2012-10-09T17:47:47+00:00 heroku[api]: Release v107 created by hamsyari22@gmail. com 2012-10-09T17:47:47+00:00 heroku[web.1]: State changed from crashed to starting 2012-10-09T17:47:47+00:00 heroku[worker.1]: State changed from crashed to starti ng 2012-10-09T17:47:47+00:00 heroku[slugc]: Slug compilation finished 2012-10-09T17:47:51+00:00 heroku[worker.1]: Starting process with command `bundl e exec rake jobs:work` 2012-10-09T17:47:52+00:00 heroku[worker.1]: State changed from starting to up 2012-10-09T17:47:55+00:00 app[worker.1]: rake aborted! 2012-10-09T17:47:55+00:00 app[worker.1]: (See full trace by running task with -- trace) 2012-10-09T17:47:55+00:00 app[worker.1]: 2012-10-09T17:47:55+00:00 app[worker.1]: uninitialized constant ActiveSupport::H ashWithIndifferentAccess 2012-10-09T17:47:56+00:00 heroku[web.1]: Starting process with command `bundle e xec rails server -p 25358` 2012-10-09T17:47:56+00:00 heroku[worker.1]: Process exited with status 1 2012-10-09T17:47:56+00:00 heroku[worker.1]: State changed from up to crashed 2012-10-09T17:48:02+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/ bundler-1.2.1/lib/bundler/runtime.rb:55:in `each' 2012-10-09T17:48:02+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/ bundler-1.2.1/lib/bundler/runtime.rb:66:in `block in require' 2012-10-09T17:48:02+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/ bundler-1.2.1/lib/bundler.rb:128:in `require' 2012-10-09T17:48:02+00:00 app[web.1]:   from /app/config/application.rb:7:in `<t op (required)>' 2012-10-09T17:48:02+00:00 app[web.1]:   from script/rails:6:in `require' 2012-10-09T17:48:02+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/ railties-3.2.7/lib/rails/commands.rb:50:in `tap' 2012-10-09T17:48:02+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/ tinymce-rails-3.5.7/lib/tinymce-rails.rb:1:in `<top (required)>' 2012-10-09T17:48:02+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/ bundler-1.2.1/lib/bundler/runtime.rb:68:in `block (2 levels) in require' 2012-10-09T17:48:02+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/ railties-3.2.7/lib/rails/commands.rb:53:in `require' 2012-10-09T17:48:02+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/ tinymce-rails-3.5.7/lib/tinymce/rails.rb:5:in `<module:Rails>' 2012-10-09T17:48:02+00:00 app[web.1]:   from script/rails:6:in `<main>' 2012-10-09T17:48:02+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/ tinymce-rails-3.5.7/lib/tinymce/rails/configuration.rb:1:in `<top (required)>' 2012-10-09T17:48:02+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/ tinymce-rails-3.5.7/lib/tinymce/rails.rb:1:in `<top (required)>' 2012-10-09T17:48:02+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/ railties-3.2.7/lib/rails/commands.rb:50:in `<top (required)>' 2012-10-09T17:48:02+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/tinymce
-rails-3.5.7/lib/tinymce/rails/configuration.rb:88:in `<module:Rails>': uninitia lized constant ActiveSupport::HashWithIndifferentAccess (NameError) 2012-10-09T17:48:02+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/ tinymce-rails-3.5.7/lib/tinymce-rails.rb:1:in `require' 2012-10-09T17:48:02+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/ bundler-1.2.1/lib/bundler/runtime.rb:68:in `require' 2012-10-09T17:48:02+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/ tinymce-rails-3.5.7/lib/tinymce/rails.rb:5:in `require' 2012-10-09T17:48:02+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/ tinymce-rails-3.5.7/lib/tinymce/rails.rb:2:in `<module:TinyMCE>' 2012-10-09T17:48:02+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/ railties-3.2.7/lib/rails/commands.rb:53:in `block in <top (required)>' 2012-10-09T17:48:02+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/ bundler-1.2.1/lib/bundler/runtime.rb:66:in `each' 2012-10-09T17:48:02+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/ bundler-1.2.1/lib/bundler/runtime.rb:55:in `require' 2012-10-09T17:48:03+00:00 heroku[web.1]: State changed from starting to crashed 2012-10-09T17:48:03+00:00 heroku[web.1]: Process exited with status 1 2012-10-09T17:48:03+00:00 heroku[web.1]: State changed from crashed to starting 2012-10-09T17:48:08+00:00 heroku[web.1]: Starting process with command `bundle e xec rails server -p 52306` 2012-10-09T17:48:14+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/tinymce
-rails-3.5.7/lib/tinymce/rails/configuration.rb:88:in `<module:Rails>': uninitia lized constant ActiveSupport::HashWithIndifferentAccess (NameError) 2012-10-09T17:48:14+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/ tinymce-rails-3.5.7/lib/tinymce/rails/configuration.rb:1:in `<top (required)>' 2012-10-09T17:48:14+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/ tinymce-rails-3.5.7/lib/tinymce/rails.rb:5:in `require' 2012-10-09T17:48:14+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/ tinymce-rails-3.5.7/lib/tinymce/rails.rb:5:in `<module:Rails>' 2012-10-09T17:48:14+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/ tinymce-rails-3.5.7/lib/tinymce/rails.rb:2:in `<module:TinyMCE>' 2012-10-09T17:48:14+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/ tinymce-rails-3.5.7/lib/tinymce-rails.rb:1:in `require' 2012-10-09T17:48:14+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/ tinymce-rails-3.5.7/lib/tinymce/rails.rb:1:in `<top (required)>' 2012-10-09T17:48:14+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/ tinymce-rails-3.5.7/lib/tinymce-rails.rb:1:in `<top (required)>' 2012-10-09T17:48:14+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/ bundler-1.2.1/lib/bundler/runtime.rb:68:in `require' 2012-10-09T17:48:14+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/ bundler-1.2.1/lib/bundler/runtime.rb:68:in `block (2 levels) in require' 2012-10-09T17:48:14+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/ bundler-1.2.1/lib/bundler/runtime.rb:66:in `each' 2012-10-09T17:48:14+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/ bundler-1.2.1/lib/bundler/runtime.rb:66:in `block in require' 2012-10-09T17:48:14+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/ bundler-1.2.1/lib/bundler/runtime.rb:55:in `each' 2012-10-09T17:48:14+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/ bundler-1.2.1/lib/bundler/runtime.rb:55:in `require' 2012-10-09T17:48:14+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/ bundler-1.2.1/lib/bundler.rb:128:in `require' 2012-10-09T17:48:14+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/ railties-3.2.7/lib/rails/commands.rb:53:in `block in <top (required)>' 2012-10-09T17:48:14+00:00 app[web.1]:   from /app/config/application.rb:7:in `<t op (required)>' 2012-10-09T17:48:14+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/ railties-3.2.7/lib/rails/commands.rb:53:in `require' 2012-10-09T17:48:14+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/ railties-3.2.7/lib/rails/commands.rb:50:in `tap' 2012-10-09T17:48:14+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/ railties-3.2.7/lib/rails/commands.rb:50:in `<top (required)>' 2012-10-09T17:48:14+00:00 app[web.1]:   from script/rails:6:in `require' 2012-10-09T17:48:14+00:00 app[web.1]:   from script/rails:6:in `<main>' 2012-10-09T17:48:15+00:00 heroku[web.1]: Process exited with status 1 2012-10-09T17:48:15+00:00 heroku[web.1]: State changed from starting to crashed 2012-10-09T17:49:34+00:00 heroku[router]: Error H10 (App crashed) -> GET relevan t-amazon.herokuapp.com/login dyno= queue= wait= service= status=503 bytes= 2012-10-09T17:49:35+00:00 heroku[router]: Error H10 (App crashed) -> GET relevan t-amazon.herokuapp.com/favicon.ico dyno= queue= wait= service= status=503 bytes=

2012-10-09T17:49:37+00:00 heroku[router]: Error H10 (App crashed) -> GET relevan t-amazon.herokuapp.com/login dyno= queue= wait= service= status=503 bytes= 2012-10-09T17:49:37+00:00 heroku[router]: Error H10 (App crashed) -> GET relevan t-amazon.herokuapp.com/login dyno= queue= wait= service= status=503 bytes= 2012-10-09T17:49:38+00:00 heroku[router]: Error H10 (App crashed) -> GET relevan t-amazon.herokuapp.com/login dyno= queue= wait= service= status=503 bytes= 2012-10-09T17:49:38+00:00 heroku[router]: Error H10 (App crashed) -> GET relevan t-amazon.herokuapp.com/login dyno= queue= wait= service= status=503 bytes= 2012-10-09T17:49:45+00:00 heroku[router]: Error H10 (App crashed) -> GET relevan t-amazon.herokuapp.com/favicon.ico dyno= queue= wait= service= status=503 bytes=

2012-10-09T17:49:45+00:00 heroku[router]: Error H10 (App crashed) -> GET relevan t-amazon.herokuapp.com/favicon.ico dyno= queue= wait= service= status=503 bytes=

2012-10-09T17:49:45+00:00 heroku[router]: Error H10 (App crashed) -> GET relevan t-amazon.herokuapp.com/favicon.ico dyno= queue= wait= service= status=503 bytes=

2012-10-09T17:49:45+00:00 heroku[router]: Error H10 (App crashed) -> GET relevan t-amazon.herokuapp.com/favicon.ico dyno= queue= wait= service= status=503 bytes=

2012-10-09T17:51:41+00:00 heroku[router]: Error H10 (App crashed) -> GET relevan t-amazon.herokuapp.com/login dyno= queue= wait= service= status=503 bytes= 2012-10-09T17:51:42+00:00 heroku[router]: Error H10 (App crashed) -> GET relevan t-amazon.herokuapp.com/favicon.ico dyno= queue= wait= service= status=503 bytes=

2012-10-09T17:51:43+00:00 heroku[router]: Error H10 (App crashed) -> GET relevan t-amazon.herokuapp.com/login dyno= queue= wait= service= status=503 bytes= 2012-10-09T17:51:44+00:00 heroku[router]: Error H10 (App crashed) -> GET relevan t-amazon.herokuapp.com/favicon.ico dyno= queue= wait= service= status=503 bytes=

当我尝试运行'heroku run rake jobs:work'或任何命令(例如heroku运行控制台)时,它会给我同样的错误:

uninitialized constant ActiveSupport::HashWithIndifferentAccess (NameError)

尽管我的本地主机上的一切正常。只有heroku上的应用程序不断崩溃。它一直让我得到错误未初始化的常量ActiveSupport :: HashWithInDifferentAccess。我尝试在Google和各种论坛上搜索答案,但我似乎无法找到解决方案。任何人都可以告诉我我的应用程序可能有什么问题,为什么这么突然?谢谢! :)

0 个答案:

没有答案