Method missing error *only* Heroku
After updating some helpers yesterday (see how to DRY this code?), I
pushed to Heroku but was met with errors:
2013-09-13T18:26:11+00:00 heroku[slug-compiler]: Slug compilation started
2013-09-13T18:27:13.840235+00:00 heroku[api]: Deploy c41f61a by ****
2013-09-13T18:27:13.876295+00:00 heroku[api]: Release v29 created by ****
2013-09-13T18:27:13.974728+00:00 heroku[web.1]: State changed from crashed
to starting
2013-09-13T18:27:15+00:00 heroku[slug-compiler]: Slug compilation finished
2013-09-13T18:27:23.440087+00:00 heroku[web.1]: Starting process with
command `bundle exec rails server -p 58965`
2013-09-13T18:27:28.455752+00:00 app[web.1]: DEPRECATION WARNING: You have
Rails 2.3-style plugins in vendor/plugins! Support for these plugins will
be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or
fold them in to your app as lib/myplugin/* and
config/initializers/myplugin.rb. See the release notes for more on this:
http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released.
(called from <top (required)> at /app/config/environment.rb:5)
2013-09-13T18:27:28.454577+00:00 app[web.1]: DEPRECATION WARNING: You have
Rails 2.3-style plugins in vendor/plugins! Support for these plugins will
be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or
fold them in to your app as lib/myplugin/* and
config/initializers/myplugin.rb. See the release notes for more on this:
http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released.
(called from <top (required)> at /app/config/environment.rb:5)
2013-09-13T18:27:29.539124+00:00 app[web.1]: ** [NewRelic][09/13/13
18:27:29 +0000 498cb047-5d8c-4377-8c23-2d8c5aeb36cd (2)] INFO : To prevent
agent startup add a NEWRELIC_ENABLE=false environment variable or modify
the "production" section of your newrelic.yml.
2013-09-13T18:27:29.539124+00:00 app[web.1]: => Rails 3.2.13 application
starting in production on http://0.0.0.0:58965
2013-09-13T18:27:29.539124+00:00 app[web.1]: => Call with -d to detach
2013-09-13T18:27:29.539124+00:00 app[web.1]: ** [NewRelic][09/13/13
18:27:29 +0000 498cb047-5d8c-4377-8c23-2d8c5aeb36cd (2)] INFO : Enabling
the Request Sampler.
2013-09-13T18:27:29.539124+00:00 app[web.1]: ** [NewRelic][09/13/13
18:27:29 +0000 498cb047-5d8c-4377-8c23-2d8c5aeb36cd (2)] INFO : Reading
configuration from config/newrelic.yml
2013-09-13T18:27:29.539124+00:00 app[web.1]: => Ctrl-C to shutdown server
2013-09-13T18:27:29.539312+00:00 app[web.1]: ** [NewRelic][09/13/13
18:27:29 +0000 498cb047-5d8c-4377-8c23-2d8c5aeb36cd (2)] INFO :
Application: ****
2013-09-13T18:27:29.539124+00:00 app[web.1]: ** [NewRelic][09/13/13
18:27:29 +0000 498cb047-5d8c-4377-8c23-2d8c5aeb36cd (2)] INFO :
Dispatcher: webrick
2013-09-13T18:27:29.539124+00:00 app[web.1]: => Booting WEBrick
2013-09-13T18:27:29.539124+00:00 app[web.1]: ** [NewRelic][09/13/13
18:27:29 +0000 498cb047-5d8c-4377-8c23-2d8c5aeb36cd (2)] INFO : Starting
the New Relic agent in "production" environment.
2013-09-13T18:27:29.539124+00:00 app[web.1]: ** [NewRelic][09/13/13
18:27:29 +0000 498cb047-5d8c-4377-8c23-2d8c5aeb36cd (2)] INFO :
Environment: production
2013-09-13T18:27:30.527353+00:00 app[web.1]: ** [NewRelic][09/13/13
18:27:30 +0000 498cb047-5d8c-4377-8c23-2d8c5aeb36cd (2)] INFO : Installing
ActiveRecord instrumentation
2013-09-13T18:27:30.527353+00:00 app[web.1]: ** [NewRelic][09/13/13
18:27:30 +0000 498cb047-5d8c-4377-8c23-2d8c5aeb36cd (2)] INFO : Installing
Net instrumentation
2013-09-13T18:27:30.527353+00:00 app[web.1]: ** [NewRelic][09/13/13
18:27:30 +0000 498cb047-5d8c-4377-8c23-2d8c5aeb36cd (2)] INFO : Installing
Rails 3 Controller instrumentation
2013-09-13T18:27:30.527353+00:00 app[web.1]: ** [NewRelic][09/13/13
18:27:30 +0000 498cb047-5d8c-4377-8c23-2d8c5aeb36cd (2)] INFO : Installing
deferred Rack instrumentation
2013-09-13T18:27:30.531396+00:00 app[web.1]: from
/app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/inflector/methods.rb:260:in
`safe_constantize'
2013-09-13T18:27:30.527353+00:00 app[web.1]: ** [NewRelic][09/13/13
18:27:30 +0000 498cb047-5d8c-4377-8c23-2d8c5aeb36cd (2)] INFO : Finished
instrumentation
2013-09-13T18:27:30.531396+00:00 app[web.1]: from
/app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/core_ext/string/inflections.rb:66:in
`safe_constantize'
2013-09-13T18:27:30.527353+00:00 app[web.1]: ** [NewRelic][09/13/13
18:27:30 +0000 498cb047-5d8c-4377-8c23-2d8c5aeb36cd (2)] INFO : Installing
Rails3 Error instrumentation
2013-09-13T18:27:30.531396+00:00 app[web.1]: from
/app/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.13/lib/action_controller/metal/params_wrapper.rb:133:in
`inherited'
2013-09-13T18:27:30.531622+00:00 app[web.1]: from
/app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/engine.rb:436:in
`eager_load!'
2013-09-13T18:27:30.531396+00:00 app[web.1]: from
/app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/inflector/methods.rb:229:in
`each'
2013-09-13T18:27:30.531764+00:00 app[web.1]: from
/app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/initializable.rb:55:in
`block in run_initializers'
2013-09-13T18:27:30.527353+00:00 app[web.1]: ** [NewRelic][09/13/13
18:27:30 +0000 498cb047-5d8c-4377-8c23-2d8c5aeb36cd (2)] INFO : Installing
Rails 3.1/3.2 view instrumentation
2013-09-13T18:27:30.531396+00:00 app[web.1]: from
/app/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.13/lib/action_controller/metal/params_wrapper.rb:152:in
`_default_wrap_model'
2013-09-13T18:27:30.531622+00:00 app[web.1]: from
/app/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.13/lib/abstract_controller/railties/routes_helpers.rb:7:in
`block (2 levels) in with'
2013-09-13T18:27:30.531622+00:00 app[web.1]: from
/app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/application/finisher.rb:53:in
`block in <module:Finisher>'
2013-09-13T18:27:30.531622+00:00 app[web.1]: from
/app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/initializable.rb:30:in
`instance_exec'
2013-09-13T18:27:30.531764+00:00 app[web.1]: from
/app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/initializable.rb:30:in
`run'
2013-09-13T18:27:30.531396+00:00 app[web.1]: from
/app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/inflector/methods.rb:230:in
`block in constantize'
2013-09-13T18:27:30.531622+00:00 app[web.1]: from
/app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/engine.rb:439:in
`block (2 levels) in eager_load!'
2013-09-13T18:27:30.531622+00:00 app[web.1]: from
/app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/engine.rb:438:in
`each'
2013-09-13T18:27:30.531764+00:00 app[web.1]: from
/app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/initializable.rb:54:in
`each'
2013-09-13T18:27:30.532233+00:00 app[web.1]: from /app/config.ru:in `new'
2013-09-13T18:27:30.532233+00:00 app[web.1]: from
/app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:200:in
`app'
2013-09-13T18:27:30.532390+00:00 app[web.1]: from script/rails:6:in
`require'
2013-09-13T18:27:30.531622+00:00 app[web.1]: from
/app/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.13/lib/action_controller/railties/paths.rb:7:in
`block (2 levels) in with'
2013-09-13T18:27:30.531622+00:00 app[web.1]: from
/app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/engine.rb:436:in
`each'
2013-09-13T18:27:30.531764+00:00 app[web.1]: from /app/config.ru:3:in
`require'
2013-09-13T18:27:30.531764+00:00 app[web.1]: from
/app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:51:in
`instance_eval'
2013-09-13T18:27:30.532233+00:00 app[web.1]: from /app/config.ru:in
`<main>'
2013-09-13T18:27:30.527353+00:00 app[web.1]: Exiting
2013-09-13T18:27:30.531396+00:00 app[web.1]: from
/app/app/models/goal.rb:13:in `<top (required)>'
2013-09-13T18:27:30.531396+00:00 app[web.1]: from
/app/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.13/lib/action_controller/metal/params_wrapper.rb:169:in
`_set_wrapper_defaults'
2013-09-13T18:27:30.528978+00:00 app[web.1]: ** [NewRelic][09/13/13
18:27:30 +0000 498cb047-5d8c-4377-8c23-2d8c5aeb36cd (2)] INFO : Starting
Agent shutdown
2013-09-13T18:27:30.531622+00:00 app[web.1]: from
/app/app/controllers/goals_controller.rb:1:in `<top (required)>'
2013-09-13T18:27:30.531764+00:00 app[web.1]: from
/app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:in
`method_missing'
2013-09-13T18:27:30.531396+00:00 app[web.1]: /app/app/models/goal.rb:14:in
`<class:Goal>': uninitialized constant Goal::Averageable (NameError)
2013-09-13T18:27:30.531396+00:00 app[web.1]: from
/app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/inflector/methods.rb:229:in
`constantize'
2013-09-13T18:27:30.531764+00:00 app[web.1]: from
/app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/application.rb:136:in
`initialize!'
2013-09-13T18:27:30.532233+00:00 app[web.1]: from
/app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:254:in
`start'
2013-09-13T18:27:30.532390+00:00 app[web.1]: from
/app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/commands.rb:50:in
`<top (required)>'
2013-09-13T18:27:30.531764+00:00 app[web.1]: from
/app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/initializable.rb:54:in
`run_initializers'
2013-09-13T18:27:30.532233+00:00 app[web.1]: from
/app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/commands/server.rb:46:in
`app'
2013-09-13T18:27:30.532233+00:00 app[web.1]: from
/app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:51:in
`initialize'
2013-09-13T18:27:30.532233+00:00 app[web.1]: from
/app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/commands/server.rb:70:in
`start'
2013-09-13T18:27:30.531764+00:00 app[web.1]: from
/app/config/environment.rb:5:in `<top (required)>'
2013-09-13T18:27:30.532233+00:00 app[web.1]: from
/app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:40:in
`eval'
2013-09-13T18:27:30.532390+00:00 app[web.1]: from script/rails:6:in
`<main>'
2013-09-13T18:27:30.531622+00:00 app[web.1]: from
/app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/engine.rb:438:in
`block in eager_load!'
2013-09-13T18:27:30.532233+00:00 app[web.1]: from
/app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:40:in
`parse_file'
2013-09-13T18:27:30.532233+00:00 app[web.1]: from
/app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:304:in
`wrapped_app'
2013-09-13T18:27:30.532390+00:00 app[web.1]: from
/app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/commands.rb:55:in
`block in <top (required)>'
2013-09-13T18:27:30.531764+00:00 app[web.1]: from /app/config.ru:3:in
`block in <main>'
2013-09-13T18:27:30.532390+00:00 app[web.1]: from
/app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/commands.rb:50:in
`tap'
2013-09-13T18:27:31.836227+00:00 heroku[web.1]: Process exited with status 1
2013-09-13T18:29:19.359735+00:00 heroku[router]: at=error code=H10
desc="App crashed" method=GET path=/ host=**** fwd="195.56.164.82" dyno=
connect= service= status=503 bytes=
A lot of the questions with errors similar to this that I've found on SO
stem from problems with a missing commit and/or absent code for whatever
reason, but this doesn't seem to be the case, as the application loads
flawlessly in the local environment ($ rails s) as well as the production
environment ($ rails server -e production).
No comments:
Post a Comment