Error deploying to heroku: "Application Error shows in chrome" - ruby-on-rails

When i try to deploy my test_blog to heroku. It shows "Appliction Error" in chrome.
So, i viewed heroku logs and it shows following result. Dont now what's making up the error!!
C:\Users\Nir\Desktop\my projects\blog>heroku logs
2016-10-27T22:08:15.739278+00:00 app[web.1]: from /app/vendor/ruby-2.2.4/lib/
ruby/2.2.0/tsort.rb:224:in `tsort_each'
2016-10-27T22:08:15.739309+00:00 app[web.1]: from /app/config.ru:in `new'
2016-10-27T22:08:15.739278+00:00 app[web.1]: from /app/vendor/ruby-2.2.4/lib/
ruby/2.2.0/tsort.rb:203:in `tsort_each'
2016-10-27T22:08:15.739286+00:00 app[web.1]: from /app/config.ru:3:in `requir
e_relative'
2016-10-27T22:08:15.739310+00:00 app[web.1]: from /app/config.ru:in `<main>'
2016-10-27T22:08:15.739315+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/rack-2.0.1/lib/rack/builder.rb:40:in `parse_file'
2016-10-27T22:08:15.739317+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/rack-2.0.1/lib/rack/server.rb:318:in `build_app_and_options_from_config'
2016-10-27T22:08:15.739319+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/rack-2.0.1/lib/rack/server.rb:218:in `app'
2016-10-27T22:08:15.739336+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/rack-2.0.1/lib/rack/server.rb:353:in `wrapped_app'
2016-10-27T22:08:15.739335+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/commands/server.rb:59:in `app'
2016-10-27T22:08:15.739339+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/rack-2.0.1/lib/rack/server.rb:282:in `start'
2016-10-27T22:08:15.739339+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/commands/server.rb:79:in `start'
2016-10-27T22:08:15.739340+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:90:in `block in se
rver'
2016-10-27T22:08:15.739343+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:85:in `tap'
2016-10-27T22:08:15.739345+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:85:in `server'
2016-10-27T22:08:15.739346+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:49:in `run_command
!'
2016-10-27T22:08:15.739351+00:00 app[web.1]: from bin/rails:4:in `require'
2016-10-27T22:08:15.739352+00:00 app[web.1]: from bin/rails:4:in `<main>'
2016-10-27T22:08:15.739349+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/commands.rb:18:in `<top (required)>'
2016-10-27T22:08:15.921092+00:00 heroku[web.1]: Process exited with status 1
2016-10-27T22:08:15.928895+00:00 heroku[web.1]: State changed from starting to c
rashed
2016-10-28T03:43:51.947800+00:00 heroku[web.1]: State changed from crashed to st
arting
2016-10-28T03:43:54.754771+00:00 heroku[web.1]: Starting process with command `b
in/rails server -p 33787 -e production`
2016-10-28T03:43:58.198367+00:00 app[web.1]: => Booting Puma
2016-10-28T03:43:58.198384+00:00 app[web.1]: => Rails 5.0.0.1 application starti
ng in production on http://0.0.0.0:33787
2016-10-28T03:43:58.198385+00:00 app[web.1]: => Run `rails server -h` for more s
tartup options
2016-10-28T03:43:59.147728+00:00 app[web.1]: Exiting
2016-10-28T03:43:59.147813+00:00 app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/
activerecord-5.0.0.1/lib/active_record/connection_adapters/connection_specificat
ion.rb:176:in `rescue in spec': Specified 'postgresql' for database adapter, but
the gem is not loaded. Add `gem 'pg'` to your Gemfile (and ensure its version i
s at the minimum required by ActiveRecord). (Gem::LoadError)
2016-10-28T03:43:59.147845+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/activerecord-5.0.0.1/lib/active_record/connection_adapters/connection_sp
ecification.rb:173:in `spec'
2016-10-28T03:43:59.147846+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/activerecord-5.0.0.1/lib/active_record/connection_handling.rb:53:in `est
ablish_connection'
2016-10-28T03:43:59.147880+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/activerecord-5.0.0.1/lib/active_record/railtie.rb:125:in `block (2 level
s) in <class:Railtie>'
2016-10-28T03:43:59.147882+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/activesupport-5.0.0.1/lib/active_support/lazy_load_hooks.rb:38:in `insta
nce_eval'
2016-10-28T03:43:59.147885+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/activesupport-5.0.0.1/lib/active_support/lazy_load_hooks.rb:38:in `execu
te_hook'
2016-10-28T03:43:59.147886+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/activesupport-5.0.0.1/lib/active_support/lazy_load_hooks.rb:45:in `block
in run_load_hooks'
2016-10-28T03:43:59.147886+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/activesupport-5.0.0.1/lib/active_support/lazy_load_hooks.rb:44:in `each'
2016-10-28T03:43:59.147888+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/activesupport-5.0.0.1/lib/active_support/lazy_load_hooks.rb:44:in `run_l
oad_hooks'
2016-10-28T03:43:59.147890+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/activerecord-5.0.0.1/lib/active_record/base.rb:324:in `<module:ActiveRec
ord>'
2016-10-28T03:43:59.147916+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/activerecord-5.0.0.1/lib/active_record/base.rb:24:in `<top (required)>'
2016-10-28T03:43:59.147917+00:00 app[web.1]: from /app/app/models/application
_record.rb:1:in `<top (required)>'
2016-10-28T03:43:59.147918+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `require
'
2016-10-28T03:43:59.147921+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `block i
n require'
2016-10-28T03:43:59.147922+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:259:in `load_de
pendency'
2016-10-28T03:43:59.147924+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `require
'
2016-10-28T03:43:59.147926+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:380:in `block i
n require_or_load'
2016-10-28T03:43:59.147951+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:37:in `block in
load_interlock'
2016-10-28T03:43:59.147952+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies/interlock.rb:12:in
`block in loading'
2016-10-28T03:43:59.147955+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/activesupport-5.0.0.1/lib/active_support/concurrency/share_lock.rb:117:i
n `exclusive'
2016-10-28T03:43:59.147957+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies/interlock.rb:11:in
`loading'
2016-10-28T03:43:59.147959+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:37:in `load_int
erlock'
2016-10-28T03:43:59.147982+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:358:in `require
_or_load'
2016-10-28T03:43:59.147984+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:336:in `depend_
on'
2016-10-28T03:43:59.147986+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:252:in `require
_dependency'
2016-10-28T03:43:59.147987+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/engine.rb:476:in `block (2 levels) in eager_l
oad!'
2016-10-28T03:43:59.147991+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/engine.rb:475:in `block in eager_load!'
2016-10-28T03:43:59.147989+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/engine.rb:475:in `each'
2016-10-28T03:43:59.147993+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/engine.rb:473:in `each'
2016-10-28T03:43:59.148009+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/engine.rb:473:in `eager_load!'
2016-10-28T03:43:59.148011+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/engine.rb:354:in `eager_load!'
2016-10-28T03:43:59.148013+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/application/finisher.rb:59:in `each'
2016-10-28T03:43:59.148014+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/application/finisher.rb:59:in `block in <modu
le:Finisher>'
2016-10-28T03:43:59.148015+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/initializable.rb:30:in `instance_exec'
2016-10-28T03:43:59.148017+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/initializable.rb:30:in `run'
2016-10-28T03:43:59.148019+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/initializable.rb:55:in `block in run_initiali
zers'
2016-10-28T03:43:59.148035+00:00 app[web.1]: from /app/vendor/ruby-2.2.4/lib/
ruby/2.2.0/tsort.rb:226:in `block in tsort_each'
2016-10-28T03:43:59.148036+00:00 app[web.1]: from /app/vendor/ruby-2.2.4/lib/
ruby/2.2.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_componen
t'
2016-10-28T03:43:59.148037+00:00 app[web.1]: from /app/vendor/ruby-2.2.4/lib/
ruby/2.2.0/tsort.rb:429:in `each_strongly_connected_component_from'
2016-10-28T03:43:59.148039+00:00 app[web.1]: from /app/vendor/ruby-2.2.4/lib/
ruby/2.2.0/tsort.rb:347:in `block in each_strongly_connected_component'
2016-10-28T03:43:59.148040+00:00 app[web.1]: from /app/vendor/ruby-2.2.4/lib/
ruby/2.2.0/tsort.rb:345:in `each'
2016-10-28T03:43:59.148042+00:00 app[web.1]: from /app/vendor/ruby-2.2.4/lib/
ruby/2.2.0/tsort.rb:345:in `call'
2016-10-28T03:43:59.148044+00:00 app[web.1]: from /app/vendor/ruby-2.2.4/lib/
ruby/2.2.0/tsort.rb:345:in `each_strongly_connected_component'
2016-10-28T03:43:59.148062+00:00 app[web.1]: from /app/vendor/ruby-2.2.4/lib/
ruby/2.2.0/tsort.rb:224:in `tsort_each'
2016-10-28T03:43:59.148064+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/initializable.rb:54:in `run_initializers'
2016-10-28T03:43:59.148066+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/application.rb:352:in `initialize!'
2016-10-28T03:43:59.148063+00:00 app[web.1]: from /app/vendor/ruby-2.2.4/lib/
ruby/2.2.0/tsort.rb:203:in `tsort_each'
2016-10-28T03:43:59.148068+00:00 app[web.1]: from /app/config/environment.rb:
5:in `<top (required)>'
2016-10-28T03:43:59.148070+00:00 app[web.1]: from /app/config.ru:3:in `requir
e_relative'
2016-10-28T03:43:59.148074+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/rack-2.0.1/lib/rack/builder.rb:55:in `instance_eval'
2016-10-28T03:43:59.148091+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/rack-2.0.1/lib/rack/builder.rb:55:in `initialize'
2016-10-28T03:43:59.148072+00:00 app[web.1]: from /app/config.ru:3:in `block
in <main>'
2016-10-28T03:43:59.148093+00:00 app[web.1]: from /app/config.ru:in `<main>'
2016-10-28T03:43:59.148092+00:00 app[web.1]: from /app/config.ru:in `new'
2016-10-28T03:43:59.148095+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/rack-2.0.1/lib/rack/builder.rb:49:in `eval'
2016-10-28T03:43:59.148096+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/rack-2.0.1/lib/rack/builder.rb:49:in `new_from_string'
2016-10-28T03:43:59.148100+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/rack-2.0.1/lib/rack/server.rb:318:in `build_app_and_options_from_config'
2016-10-28T03:43:59.148098+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/rack-2.0.1/lib/rack/builder.rb:40:in `parse_file'
2016-10-28T03:43:59.148102+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/rack-2.0.1/lib/rack/server.rb:218:in `app'
2016-10-28T03:43:59.148119+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/commands/server.rb:59:in `app'
2016-10-28T03:43:59.148121+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/rack-2.0.1/lib/rack/server.rb:353:in `wrapped_app'
2016-10-28T03:43:59.148123+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/rack-2.0.1/lib/rack/server.rb:282:in `start'
2016-10-28T03:43:59.148124+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/commands/server.rb:79:in `start'
2016-10-28T03:43:59.148125+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:90:in `block in se
rver'
2016-10-28T03:43:59.148127+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:85:in `tap'
2016-10-28T03:43:59.148129+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:85:in `server'
2016-10-28T03:43:59.148131+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:49:in `run_command
!'
2016-10-28T03:43:59.148148+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/commands.rb:18:in `<top (required)>'
2016-10-28T03:43:59.148149+00:00 app[web.1]: from bin/rails:4:in `require'
2016-10-28T03:43:59.148150+00:00 app[web.1]: from bin/rails:4:in `<main>'
2016-10-28T03:43:59.246397+00:00 heroku[web.1]: Process exited with status 1
2016-10-28T03:43:59.281910+00:00 heroku[web.1]: State changed from starting to c
rashed
2016-10-28T05:36:16.867365+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/" host=murmuring-falls-27437.herokuapp.com request_id=62
ddb576-529b-4742-9768-47aea9e3c7e2 fwd="120.89.103.211" dyno= connect= service=
status=503 bytes=
2016-10-28T05:36:18.306748+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/favicon.ico" host=murmuring-falls-27437.herokuapp.com re
quest_id=1d1711b1-b7a3-4885-9500-dfaac53806bd fwd="120.89.103.211" dyno= connect
= service= status=503 bytes=
This is the error shown in Chrome when i run my url:
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.

Related

RoR app crashed, logs referrencing lots of different libraries

I used to do a lot of Ruby on Rails programming on bash but since changing over to robby russells zsh, I have not done any production level work.
I recently did a change and pushed it to heroku and I got this error when I checked heroku logs:
2020-04-07T01:51:58.557111+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.6.2/lib/active_support/inflector/methods.rb:269:in `const_get'
2020-04-07T01:51:58.557111+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.6.2/lib/active_support/inflector/methods.rb:269:in `block in constantize'
2020-04-07T01:51:58.557112+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.6.2/lib/active_support/inflector/methods.rb:267:in `each'
2020-04-07T01:51:58.557115+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.6.2/lib/active_support/inflector/methods.rb:267:in `inject'
2020-04-07T01:51:58.557118+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.6.2/lib/active_support/inflector/methods.rb:267:in `constantize'
2020-04-07T01:51:58.557136+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.6.2/lib/active_support/dependencies.rb:583:in `get'
2020-04-07T01:51:58.557144+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.6.2/lib/active_support/dependencies.rb:614:in `constantize'
2020-04-07T01:51:58.557145+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/devise-4.7.1/lib/devise.rb:320:in `get'
2020-04-07T01:51:58.557148+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/devise-4.7.1/lib/devise/mapping.rb:83:in `to'
2020-04-07T01:51:58.557149+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/devise-4.7.1/lib/devise/mapping.rb:78:in `modules'
2020-04-07T01:51:58.557149+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/devise-4.7.1/lib/devise/mapping.rb:95:in `routes'
2020-04-07T01:51:58.557152+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/devise-4.7.1/lib/devise/mapping.rb:162:in `default_used_route'
2020-04-07T01:51:58.557167+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/devise-4.7.1/lib/devise/mapping.rb:72:in `initialize'
2020-04-07T01:51:58.557167+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/devise-4.7.1/lib/devise.rb:350:in `new'
2020-04-07T01:51:58.557168+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/devise-4.7.1/lib/devise.rb:350:in `add_mapping'
2020-04-07T01:51:58.557170+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/devise-4.7.1/lib/devise/rails/routes.rb:243:in `block in devise_for'
2020-04-07T01:51:58.557184+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/devise-4.7.1/lib/devise/rails/routes.rb:242:in `each'
2020-04-07T01:51:58.557184+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/devise-4.7.1/lib/devise/rails/routes.rb:242:in `devise_for'
2020-04-07T01:51:58.557196+00:00 app[web.1]: from /app/config/routes.rb:5:in `block in <top (required)>'
2020-04-07T01:51:58.557199+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.6.2/lib/action_dispatch/routing/route_set.rb:436:in `instance_exec'
2020-04-07T01:51:58.557199+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.6.2/lib/action_dispatch/routing/route_set.rb:436:in `eval_block'
2020-04-07T01:51:58.557202+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.6.2/lib/action_dispatch/routing/route_set.rb:418:in `draw'
2020-04-07T01:51:58.557217+00:00 app[web.1]: from /app/config/routes.rb:1:in `<top (required)>'
2020-04-07T01:51:58.557217+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.6.2/lib/active_support/dependencies.rb:286:in `load'
2020-04-07T01:51:58.557220+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.6.2/lib/active_support/dependencies.rb:286:in `block in load'
2020-04-07T01:51:58.557222+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.6.2/lib/active_support/dependencies.rb:258:in `load_dependency'
2020-04-07T01:51:58.557236+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.6.2/lib/active_support/dependencies.rb:286:in `load'
2020-04-07T01:51:58.557236+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.6.2/lib/rails/application/routes_reloader.rb:55:in `block in load_paths'
2020-04-07T01:51:58.557239+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.6.2/lib/rails/application/routes_reloader.rb:55:in `each'
2020-04-07T01:51:58.557242+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.6.2/lib/rails/application/routes_reloader.rb:55:in `load_paths'
2020-04-07T01:51:58.557256+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.6.2/lib/rails/application/routes_reloader.rb:18:in `reload!'
2020-04-07T01:51:58.557256+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.6.2/lib/rails/application.rb:164:in `reload_routes!'
2020-04-07T01:51:58.557270+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/devise-4.7.1/lib/devise/rails.rb:17:in `block in <class:Engine>'
2020-04-07T01:51:58.557277+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.6.2/lib/active_support/lazy_load_hooks.rb:67:in `block in execute_hook'
2020-04-07T01:51:58.557280+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.6.2/lib/active_support/lazy_load_hooks.rb:60:in `with_execution_control'
2020-04-07T01:51:58.557281+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.6.2/lib/active_support/lazy_load_hooks.rb:65:in `execute_hook'
2020-04-07T01:51:58.557283+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.6.2/lib/active_support/lazy_load_hooks.rb:50:in `block in run_load_hooks'
2020-04-07T01:51:58.557301+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.6.2/lib/active_support/lazy_load_hooks.rb:49:in `each'
2020-04-07T01:51:58.557301+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.6.2/lib/active_support/lazy_load_hooks.rb:49:in `run_load_hooks'
2020-04-07T01:51:58.557304+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.6.2/lib/rails/application/finisher.rb:66:in `block in <module:Finisher>'
2020-04-07T01:51:58.557305+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.6.2/lib/rails/initializable.rb:30:in `instance_exec'
2020-04-07T01:51:58.557307+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.6.2/lib/rails/initializable.rb:30:in `run'
2020-04-07T01:51:58.557321+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.6.2/lib/rails/initializable.rb:59:in `block in run_initializers'
2020-04-07T01:51:58.557321+00:00 app[web.1]: from /app/vendor/ruby-2.4.0/lib/ruby/2.4.0/tsort.rb:228:in `block in tsort_each'
2020-04-07T01:51:58.557324+00:00 app[web.1]: from /app/vendor/ruby-2.4.0/lib/ruby/2.4.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
2020-04-07T01:51:58.557326+00:00 app[web.1]: from /app/vendor/ruby-2.4.0/lib/ruby/2.4.0/tsort.rb:431:in `each_strongly_connected_component_from'
2020-04-07T01:51:58.557340+00:00 app[web.1]: from /app/vendor/ruby-2.4.0/lib/ruby/2.4.0/tsort.rb:349:in `block in each_strongly_connected_component'
2020-04-07T01:51:58.557346+00:00 app[web.1]: from /app/vendor/ruby-2.4.0/lib/ruby/2.4.0/tsort.rb:347:in `each'
2020-04-07T01:51:58.557349+00:00 app[web.1]: from /app/vendor/ruby-2.4.0/lib/ruby/2.4.0/tsort.rb:347:in `call'
2020-04-07T01:51:58.557350+00:00 app[web.1]: from /app/vendor/ruby-2.4.0/lib/ruby/2.4.0/tsort.rb:347:in `each_strongly_connected_component'
2020-04-07T01:51:58.557350+00:00 app[web.1]: from /app/vendor/ruby-2.4.0/lib/ruby/2.4.0/tsort.rb:226:in `tsort_each'
2020-04-07T01:51:58.557364+00:00 app[web.1]: from /app/vendor/ruby-2.4.0/lib/ruby/2.4.0/tsort.rb:205:in `tsort_each'
2020-04-07T01:51:58.557364+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.6.2/lib/rails/initializable.rb:58:in `run_initializers'
2020-04-07T01:51:58.557367+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.6.2/lib/rails/application.rb:353:in `initialize!'
2020-04-07T01:51:58.557369+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2020-04-07T01:51:58.557388+00:00 app[web.1]: from config.ru:3:in `require_relative'
2020-04-07T01:51:58.557389+00:00 app[web.1]: from config.ru:3:in `block in <main>'
2020-04-07T01:51:58.557392+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/rack-2.0.6/lib/rack/builder.rb:55:in `instance_eval'
2020-04-07T01:51:58.557392+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/rack-2.0.6/lib/rack/builder.rb:55:in `initialize'
2020-04-07T01:51:58.557400+00:00 app[web.1]: from config.ru:in `new'
2020-04-07T01:51:58.557402+00:00 app[web.1]: from config.ru:in `<main>'
2020-04-07T01:51:58.557405+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/rack-2.0.6/lib/rack/builder.rb:49:in `eval'
2020-04-07T01:51:58.557407+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/rack-2.0.6/lib/rack/builder.rb:49:in `new_from_string'
2020-04-07T01:51:58.557422+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/rack-2.0.6/lib/rack/builder.rb:40:in `parse_file'
2020-04-07T01:51:58.557423+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/rack-2.0.6/lib/rack/server.rb:319:in `build_app_and_options_from_config'
2020-04-07T01:51:58.557426+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/rack-2.0.6/lib/rack/server.rb:219:in `app'
2020-04-07T01:51:58.557428+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.6.2/lib/rails/commands/server/server_command.rb:24:in `app'
2020-04-07T01:51:58.557441+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/rack-2.0.6/lib/rack/server.rb:354:in `wrapped_app'
2020-04-07T01:51:58.557442+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/rack-2.0.6/lib/rack/server.rb:283:in `start'
2020-04-07T01:51:58.557444+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.6.2/lib/rails/commands/server/server_command.rb:44:in `start'
2020-04-07T01:51:58.557450+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.6.2/lib/rails/commands/server/server_command.rb:135:in `block in perform'
2020-04-07T01:51:58.557452+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.6.2/lib/rails/commands/server/server_command.rb:130:in `tap'
2020-04-07T01:51:58.557455+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.6.2/lib/rails/commands/server/server_command.rb:130:in `perform'
2020-04-07T01:51:58.557469+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
2020-04-07T01:51:58.557470+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
2020-04-07T01:51:58.557473+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
2020-04-07T01:51:58.557475+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.6.2/lib/rails/command/base.rb:63:in `perform'
2020-04-07T01:51:58.557489+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.6.2/lib/rails/command.rb:44:in `invoke'
2020-04-07T01:51:58.557489+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.6.2/lib/rails/commands.rb:16:in `<top (required)>'
2020-04-07T01:51:58.557492+00:00 app[web.1]: from bin/rails:9:in `require'
2020-04-07T01:51:58.557494+00:00 app[web.1]: from bin/rails:9:in `<main>'
2020-04-07T01:51:58.563811+00:00 app[web.1]: => Booting Puma
2020-04-07T01:51:58.563812+00:00 app[web.1]: => Rails 5.1.6.2 application starting in production
2020-04-07T01:51:58.563813+00:00 app[web.1]: => Run `rails server -h` for more startup options
2020-04-07T01:51:58.563813+00:00 app[web.1]: Exiting
2020-04-07T02:36:56.635446+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/robots.txt" host=dancortes-portfolio.herokuapp.com request_id=d7acd72b-3465-4461-b067-0f51f55a289e fwd="77.88.5.192" dyno= connect= service= status=503 bytes= protocol=https
Prior to the app crashing once pushing to Heroku, I saw various warnings, one about Procfile missing, which I have never had, another about the ruby version being outdated. Could this mean I need to update my ruby version?

Error deploying Rails app to heroku

I get the following error when trying to access my app on heroku. The app was deployed successfully but I could not access it. When I tried to access the app, the page said "Application error
An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details." Here is the heroku logs:
heroku logs
2017-03-21T20:28:21.577989+00:00 app[web.1]: from /app/config.ru:in `<main>'
2017-03-21T20:28:21.578004+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/rack-2.0.1/lib/rack/builder.rb:49:in `eval'
2017-03-21T20:28:21.578005+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/rack-2.0.1/lib/rack/builder.rb:49:in `new_from_string'
2017-03-21T20:28:21.578007+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/rack-2.0.1/lib/rack/builder.rb:40:in `parse_file'
2017-03-21T20:28:21.578008+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/rack-2.0.1/lib/rack/server.rb:318:in `build_app_and_options_from_config'
2017-03-21T20:28:21.578010+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/rack-2.0.1/lib/rack/server.rb:218:in `app'
2017-03-21T20:28:21.749663+00:00 heroku[web.1]: Process exited with status 1
2017-03-21T20:28:21.578012+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/commands/server.rb:59:in `app'
2017-03-21T20:28:21.578026+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/rack-2.0.1/lib/rack/server.rb:353:in `wrapped_app'
2017-03-21T20:28:21.578029+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/rack-2.0.1/lib/rack/server.rb:282:in `start'
2017-03-21T20:28:21.578030+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/commands/server.rb:79:in `start'
2017-03-21T20:28:21.578032+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:90:in `block in serv er'
2017-03-21T20:28:21.578033+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:85:in `tap'
2017-03-21T20:28:21.578035+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:85:in `server'
2017-03-21T20:28:21.578037+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:49:in `run_command!'
2017-03-21T20:28:21.578052+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/commands.rb:18:in `<top (required)>'
2017-03-21T20:28:21.578078+00:00 app[web.1]: from bin/rails:4:in `require'
2017-03-21T20:28:21.578079+00:00 app[web.1]: from bin/rails:4:in `<main>'
2017-03-21T20:28:21.768673+00:00 heroku[web.1]: State changed from starting to c rashed
2017-03-21T20:28:23.139347+00:00 heroku[router]: at=error code=H10 desc="App cra shed" method=GET path="/recipes" host=weather-consult.herokuapp.com request_id=9 801a23f-72b9-4477-8e90-93fba979e78f fwd="83.138.193.223" dyno= connect= service= status=503 bytes= protocol=https
2017-03-21T20:28:23.718785+00:00 heroku[router]: at=error code=H10 desc="App cra shed" method=GET path="/favicon.ico" host=weather-consult.herokuapp.com request_ id=100c960d-b3a1-4374-ae56-52e60b785710 fwd="83.138.193.223" dyno= connect= serv ice= status=503 bytes= protocol=https
2017-03-21T20:28:40.702732+00:00 heroku[web.1]: State changed from crashed to st arting
2017-03-21T20:28:43.480189+00:00 heroku[web.1]: Starting process with command `b in/rails server -p 41364 -e production`
2017-03-21T20:28:48.023383+00:00 app[web.1]: => Rails 5.0.2 application starting in production on http://0.0.0.0:41364
2017-03-21T20:28:48.023384+00:00 app[web.1]: => Run `rails server -h` for more s tartup options
2017-03-21T20:28:48.023369+00:00 app[web.1]: => Booting Puma
2017-03-21T20:28:48.023384+00:00 app[web.1]: Exiting
2017-03-21T20:28:48.023457+00:00 app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/ activerecord-5.0.2/lib/active_record/connection_adapters/connection_specificatio n.rb:176:in `rescue in spec': Specified 'postgresql' for database adapter, but t he gem is not loaded. Add `gem 'pg'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord). (Gem::LoadError)
2017-03-21T20:28:48.023485+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/activerecord-5.0.2/lib/active_record/connection_adapters/connection_spec ification.rb:173:in `spec'
2017-03-21T20:28:48.023486+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/activerecord-5.0.2/lib/active_record/connection_handling.rb:53:in `estab lish_connection'
2017-03-21T20:28:48.023487+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/activerecord-5.0.2/lib/active_record/railtie.rb:125:in `block (2 levels) in <class:Railtie>'
2017-03-21T20:28:48.023531+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/activesupport-5.0.2/lib/active_support/lazy_load_hooks.rb:49:in `each'
2017-03-21T20:28:48.023532+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/activesupport-5.0.2/lib/active_support/lazy_load_hooks.rb:49:in `run_loa d_hooks'
2017-03-21T20:28:48.023526+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/activesupport-5.0.2/lib/active_support/lazy_load_hooks.rb:43:in `instanc e_eval'
2017-03-21T20:28:48.023527+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/activesupport-5.0.2/lib/active_support/lazy_load_hooks.rb:43:in `execute _hook'
2017-03-21T20:28:48.023534+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/activerecord-5.0.2/lib/active_record/base.rb:324:in `<module:ActiveRecor d>'
2017-03-21T20:28:48.023528+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/activesupport-5.0.2/lib/active_support/lazy_load_hooks.rb:50:in `block i n run_load_hooks'
2017-03-21T20:28:48.023535+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/activerecord-5.0.2/lib/active_record/base.rb:24:in `<top (required)>'
2017-03-21T20:28:48.023537+00:00 app[web.1]: from /app/app/models/application _record.rb:1:in `<top (required)>'
2017-03-21T20:28:48.023539+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/activesupport-5.0.2/lib/active_support/dependencies.rb:293:in `require'
2017-03-21T20:28:48.023569+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/activesupport-5.0.2/lib/active_support/dependencies.rb:37:in `block in l oad_interlock'
2017-03-21T20:28:48.023564+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/activesupport-5.0.2/lib/active_support/dependencies.rb:293:in `block in require'
2017-03-21T20:28:48.023590+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/activesupport-5.0.2/lib/active_support/dependencies/interlock.rb:12:in ` block in loading'
2017-03-21T20:28:48.023565+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/activesupport-5.0.2/lib/active_support/dependencies.rb:259:in `load_depe ndency'
2017-03-21T20:28:48.023590+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/activesupport-5.0.2/lib/active_support/concurrency/share_lock.rb:150:in `exclusive'
2017-03-21T20:28:48.023566+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/activesupport-5.0.2/lib/active_support/dependencies.rb:293:in `require'
2017-03-21T20:28:48.023568+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/activesupport-5.0.2/lib/active_support/dependencies.rb:380:in `block in require_or_load'
2017-03-21T20:28:48.023591+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/activesupport-5.0.2/lib/active_support/dependencies/interlock.rb:11:in ` loading'
2017-03-21T20:28:48.023592+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/activesupport-5.0.2/lib/active_support/dependencies.rb:37:in `load_inter lock'
2017-03-21T20:28:48.023593+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/activesupport-5.0.2/lib/active_support/dependencies.rb:358:in `require_o r_load'
2017-03-21T20:28:48.023599+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/engine.rb:473:in `each'
2017-03-21T20:28:48.023598+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/engine.rb:475:in `block in eager_load!'
2017-03-21T20:28:48.023600+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/engine.rb:473:in `eager_load!'
2017-03-21T20:28:48.023594+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/activesupport-5.0.2/lib/active_support/dependencies.rb:336:in `depend_on '
2017-03-21T20:28:48.023594+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/activesupport-5.0.2/lib/active_support/dependencies.rb:252:in `require_d ependency'
2017-03-21T20:28:48.023597+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/engine.rb:475:in `each'
2017-03-21T20:28:48.023595+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/engine.rb:476:in `block (2 levels) in eager_loa d!'
2017-03-21T20:28:48.023602+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/engine.rb:354:in `eager_load!'
2017-03-21T20:28:48.023603+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/application/finisher.rb:59:in `each'
2017-03-21T20:28:48.023605+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/application/finisher.rb:59:in `block in <module :Finisher>'
2017-03-21T20:28:48.023606+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/initializable.rb:30:in `instance_exec'
2017-03-21T20:28:48.023626+00:00 app[web.1]: from /app/vendor/ruby-2.2.6/lib/ ruby/2.2.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_componen t'
2017-03-21T20:28:48.023608+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/initializable.rb:30:in `run'
2017-03-21T20:28:48.023628+00:00 app[web.1]: from /app/vendor/ruby-2.2.6/lib/ ruby/2.2.0/tsort.rb:429:in `each_strongly_connected_component_from'
2017-03-21T20:28:48.023639+00:00 app[web.1]: from /app/vendor/ruby-2.2.6/lib/ ruby/2.2.0/tsort.rb:347:in `block in each_strongly_connected_component'
2017-03-21T20:28:48.023610+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/initializable.rb:55:in `block in run_initialize rs'
2017-03-21T20:28:48.023612+00:00 app[web.1]: from /app/vendor/ruby-2.2.6/lib/ ruby/2.2.0/tsort.rb:226:in `block in tsort_each'
2017-03-21T20:28:48.023641+00:00 app[web.1]: from /app/vendor/ruby-2.2.6/lib/ ruby/2.2.0/tsort.rb:345:in `each'
2017-03-21T20:28:48.023643+00:00 app[web.1]: from /app/vendor/ruby-2.2.6/lib/ ruby/2.2.0/tsort.rb:345:in `call'
2017-03-21T20:28:48.023649+00:00 app[web.1]: from /app/vendor/ruby-2.2.6/lib/ ruby/2.2.0/tsort.rb:345:in `each_strongly_connected_component'
2017-03-21T20:28:48.023663+00:00 app[web.1]: from /app/config/environment.rb: 5:in `<top (required)>'
2017-03-21T20:28:48.023651+00:00 app[web.1]: from /app/vendor/ruby-2.2.6/lib/ ruby/2.2.0/tsort.rb:224:in `tsort_each'
2017-03-21T20:28:48.023653+00:00 app[web.1]: from /app/vendor/ruby-2.2.6/lib/ ruby/2.2.0/tsort.rb:203:in `tsort_each'
2017-03-21T20:28:48.023665+00:00 app[web.1]: from /app/config.ru:3:in `requir e_relative'
2017-03-21T20:28:48.023655+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/initializable.rb:54:in `run_initializers'
2017-03-21T20:28:48.023671+00:00 app[web.1]: from /app/config.ru:3:in `block in <main>'
2017-03-21T20:28:48.023661+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/application.rb:352:in `initialize!'
2017-03-21T20:28:48.023673+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/rack-2.0.1/lib/rack/builder.rb:55:in `instance_eval'
2017-03-21T20:28:48.023675+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/rack-2.0.1/lib/rack/builder.rb:55:in `initialize'
2017-03-21T20:28:48.023678+00:00 app[web.1]: from /app/config.ru:in `new'
2017-03-21T20:28:48.023683+00:00 app[web.1]: from /app/config.ru:in `<main>'
2017-03-21T20:28:48.023696+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/rack-2.0.1/lib/rack/server.rb:318:in `build_app_and_options_from_config'
2017-03-21T20:28:48.023697+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/rack-2.0.1/lib/rack/server.rb:218:in `app'
2017-03-21T20:28:48.023685+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/rack-2.0.1/lib/rack/builder.rb:49:in `eval'
2017-03-21T20:28:48.023700+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/commands/server.rb:59:in `app'
2017-03-21T20:28:48.023687+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/rack-2.0.1/lib/rack/builder.rb:49:in `new_from_string'
2017-03-21T20:28:48.023690+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/rack-2.0.1/lib/rack/builder.rb:40:in `parse_file'
2017-03-21T20:28:48.023702+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/rack-2.0.1/lib/rack/server.rb:353:in `wrapped_app'
2017-03-21T20:28:48.023704+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/rack-2.0.1/lib/rack/server.rb:282:in `start'
2017-03-21T20:28:48.023710+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/commands/server.rb:79:in `start'
2017-03-21T20:28:48.023712+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:90:in `block in serv er'
2017-03-21T20:28:48.023714+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:85:in `tap'
2017-03-21T20:28:48.023715+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:85:in `server'
2017-03-21T20:28:48.023724+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/commands.rb:18:in `<top (required)>'
2017-03-21T20:28:48.023718+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:49:in `run_command!'
2017-03-21T20:28:48.023726+00:00 app[web.1]: from bin/rails:4:in `require'
2017-03-21T20:28:48.023732+00:00 app[web.1]: from bin/rails:4:in `<main>'
2017-03-21T20:28:48.114357+00:00 heroku[web.1]: Process exited with status 1
2017-03-21T20:28:48.128920+00:00 heroku[web.1]: State changed from starting to c rashed
2017-03-21T20:28:49.680428+00:00 heroku[router]: at=error code=H10 desc="App cra shed" method=GET path="/recipes" host=weather-consult.herokuapp.com request_id=a 42f1683-8c92-412e-bc36-35bee47fd044 fwd="83.138.193.223" dyno= connect= service= status=503 bytes= protocol=https
2017-03-21T20:28:50.139167+00:00 heroku[router]: at=error code=H10 desc="App cra shed" method=GET path="/favicon.ico" host=weather-consult.herokuapp.com request_ id=70b71bcf-af11-489f-bdee-f3325249f7fe fwd="83.138.193.223" dyno= connect= serv ice= status=503 bytes= protocol=https
You must not have pg in your Gemfile which makes me think that you might be missing deployment specific stuff from your gemfile. Find the sqlite3 or equivalent development database gem and restructure it like this in your gemfile, which is typically how its done. Heroku automagically looks for that :production environment and loads the applicable configs for that.
group :development do
# Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
gem 'web-console', '>= 3.3.0'
gem 'sqlite3'
end
group :production do
gem 'pg'
gem 'rails_12factor'
gem 'letsencrypt-rails-heroku'
end
You also sometimes get that error when you forget to migrate the database when your schema changes. You can do that with heroku run rake db:migrate.
Try to restart dynos.
heroku ps:restart
or try simply heroku restart
Description: Devcenter Heroku
This also can by helpful
Heroku deployment error H10 (App crashed)
You need to update your logs in the question so they are a bit more readable. You need to add pg to your Gemfile as you are using Postgresql.
The gem is not loaded. Add `gem 'pg'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).(Gem::LoadError)

Heroku - Error H10 (App crashed) Ruby on rails

No idea what Im doing wrong. App works fine locally, but I keep getting an application error page and a H10 error. Ill post the rails console output because I read that would be more useful then just the heroku logs, but I can put that here to if needed. I really hope this is not going to be ignored as I am at a total lose right now.
Rails console:
Running `rails console` attached to terminal... up, run.8093
/app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.1/lib/active_record/dynamic_
matchers.rb:26:in `method_missing': undefined local variable or method `request'
for Session (call 'Session.connection' to establish a connection):Class (NameEr
ror)
from /app/app/models/session.rb:3:in `<class:Session>'
from /app/app/models/session.rb:1:in `<top (required)>'
from /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.1/lib/active_s
upport/dependencies.rb:274:in `require'
from /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.1/lib/active_s
upport/dependencies.rb:274:in `block in require'
from /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.1/lib/active_s
upport/dependencies.rb:240:in `load_dependency'
from /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.1/lib/active_s
upport/dependencies.rb:274:in `require'
from /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.1/lib/active_s
upport/dependencies.rb:360:in `require_or_load'
from /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.1/lib/active_s
upport/dependencies.rb:317:in `depend_on'
from /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.1/lib/active_s
upport/dependencies.rb:233:in `require_dependency'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.1/lib/rails/engine.
rb:472:in `block (2 levels) in eager_load!'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.1/lib/rails/engine.
rb:471:in `each'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.1/lib/rails/engine.
rb:471:in `block in eager_load!'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.1/lib/rails/engine.
rb:469:in `each'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.1/lib/rails/engine.
rb:469:in `eager_load!'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.1/lib/rails/engine.
rb:346:in `eager_load!'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.1/lib/rails/applica
tion/finisher.rb:56:in `each'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.1/lib/rails/applica
tion/finisher.rb:56:in `block in <module:Finisher>'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.1/lib/rails/initial
izable.rb:30:in `instance_exec'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.1/lib/rails/initial
izable.rb:30:in `run'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.1/lib/rails/initial
izable.rb:55:in `block in run_initializers'
from /app/vendor/ruby-2.1.5/lib/ruby/2.1.0/tsort.rb:226:in `block in tso
rt_each'
from /app/vendor/ruby-2.1.5/lib/ruby/2.1.0/tsort.rb:348:in `block (2 lev
els) in each_strongly_connected_component'
from /app/vendor/ruby-2.1.5/lib/ruby/2.1.0/tsort.rb:427:in `each_strongl
y_connected_component_from'
from /app/vendor/ruby-2.1.5/lib/ruby/2.1.0/tsort.rb:347:in `block in eac
h_strongly_connected_component'
from /app/vendor/ruby-2.1.5/lib/ruby/2.1.0/tsort.rb:345:in `each'
from /app/vendor/ruby-2.1.5/lib/ruby/2.1.0/tsort.rb:345:in `call'
from /app/vendor/ruby-2.1.5/lib/ruby/2.1.0/tsort.rb:345:in `each_strongl
y_connected_component'
from /app/vendor/ruby-2.1.5/lib/ruby/2.1.0/tsort.rb:224:in `tsort_each'
from /app/vendor/ruby-2.1.5/lib/ruby/2.1.0/tsort.rb:205:in `tsort_each'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.1/lib/rails/initial
izable.rb:54:in `run_initializers'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.1/lib/rails/applica
tion.rb:352:in `initialize!'
from /app/config/environment.rb:5:in `<top (required)>'
from /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.1/lib/active_s
upport/dependencies.rb:274:in `require'
from /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.1/lib/active_s
upport/dependencies.rb:274:in `block in require'
from /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.1/lib/active_s
upport/dependencies.rb:240:in `load_dependency'
from /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.1/lib/active_s
upport/dependencies.rb:274:in `require'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.1/lib/rails/applica
tion.rb:328:in `require_environment!'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.1/lib/rails/command
s/commands_tasks.rb:142:in `require_application_and_environment!'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.1/lib/rails/command
s/commands_tasks.rb:67:in `console'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.1/lib/rails/command
s/commands_tasks.rb:39:in `run_command!'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.1/lib/rails/command
s.rb:17:in `<top (required)>'
from /app/bin/rails:4:in `require'
from /app/bin/rails:4:in `<main>'
heroku logs:
2015-07-05T20:21:38.932369+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:240:in `load_depe
ndency'
2015-07-05T20:21:38.932388+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in `require'
2015-07-05T20:21:38.932407+00:00 app[web.1]: from /app/config.ru:3:in `block
in <main>'
2015-07-05T20:21:38.932426+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `instance_eval'
2015-07-05T20:21:38.932465+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `initialize'
2015-07-05T20:21:38.932485+00:00 app[web.1]: from /app/config.ru:in `new'
2015-07-05T20:21:38.932542+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in `new_from_string'
2015-07-05T20:21:38.932504+00:00 app[web.1]: from /app/config.ru:in `<main>'
2015-07-05T20:21:38.932523+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in `eval'
2015-07-05T20:21:38.932610+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/rack-1.6.4/lib/rack/server.rb:299:in `build_app_and_options_from_config'
2015-07-05T20:21:38.932579+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/rack-1.6.4/lib/rack/builder.rb:40:in `parse_file'
2015-07-05T20:21:38.932629+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/rack-1.6.4/lib/rack/server.rb:208:in `app'
2015-07-05T20:21:38.932648+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/commands/server.rb:61:in `app'
2015-07-05T20:21:38.932735+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/rack-1.6.4/lib/rack/server.rb:272:in `start'
2015-07-05T20:21:38.932675+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/rack-1.6.4/lib/rack/server.rb:336:in `wrapped_app'
2015-07-05T20:21:38.932755+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/commands/server.rb:80:in `start'
2015-07-05T20:21:38.932839+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:75:in `tap'
2015-07-05T20:21:38.932774+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:80:in `block in serv
er'
2015-07-05T20:21:38.932859+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:75:in `server'
2015-07-05T20:21:38.932878+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
2015-07-05T20:21:38.932897+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/commands.rb:17:in `<top (required)>'
2015-07-05T20:21:38.932931+00:00 app[web.1]: from bin/rails:4:in `require'
2015-07-05T20:21:38.932951+00:00 app[web.1]: from bin/rails:4:in `<main>'
2015-07-05T20:21:39.917826+00:00 heroku[web.1]: State changed from starting to c
rashed
2015-07-05T20:21:39.919080+00:00 heroku[web.1]: State changed from crashed to st
arting
2015-07-05T20:21:39.901026+00:00 heroku[web.1]: Process exited with status 1
2015-07-05T20:21:44.803632+00:00 heroku[web.1]: Starting process with command `b
in/rails server -p 4674 -e production`
2015-07-05T20:21:50.648458+00:00 app[web.1]: => Booting WEBrick
2015-07-05T20:21:50.648478+00:00 app[web.1]: => Rails 4.2.1 application starting
in production on http://0.0.0.0:4674
2015-07-05T20:21:50.648480+00:00 app[web.1]: => Run `rails server -h` for more s
tartup options
2015-07-05T20:21:50.648481+00:00 app[web.1]: => Ctrl-C to shutdown server
2015-07-05T20:21:50.648482+00:00 app[web.1]: Exiting
2015-07-05T20:21:50.648756+00:00 app[web.1]: /app/vendor/bundle/ruby/2.1.0/gems/
activerecord-4.2.1/lib/active_record/dynamic_matchers.rb:26:in `method_missing':
undefined local variable or method `request' for Session (call 'Session.connect
ion' to establish a connection):Class (NameError)
2015-07-05T20:21:50.648758+00:00 app[web.1]: from /app/app/models/session.rb:
3:in `<class:Session>'
2015-07-05T20:21:50.648762+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in `require'
2015-07-05T20:21:50.648763+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in `block in
require'
2015-07-05T20:21:50.648760+00:00 app[web.1]: from /app/app/models/session.rb:
1:in `<top (required)>'
2015-07-05T20:21:50.648766+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in `require'
2015-07-05T20:21:50.648764+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:240:in `load_depe
ndency'
2015-07-05T20:21:50.648771+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/engine.rb:472:in `block (2 levels) in eager_loa
d!'
2015-07-05T20:21:50.648767+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:360:in `require_o
r_load'
2015-07-05T20:21:50.648768+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:317:in `depend_on
'
2015-07-05T20:21:50.648770+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:233:in `require_d
ependency'
2015-07-05T20:21:50.648773+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/engine.rb:471:in `each'
2015-07-05T20:21:50.648775+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/engine.rb:471:in `block in eager_load!'
2015-07-05T20:21:50.648776+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/engine.rb:469:in `each'
2015-07-05T20:21:50.648779+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/engine.rb:346:in `eager_load!'
2015-07-05T20:21:50.648782+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/application/finisher.rb:56:in `block in <module
:Finisher>'
2015-07-05T20:21:50.648778+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/engine.rb:469:in `eager_load!'
2015-07-05T20:21:50.648784+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/initializable.rb:30:in `run'
2015-07-05T20:21:50.648781+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/application/finisher.rb:56:in `each'
2015-07-05T20:21:50.648783+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/initializable.rb:30:in `instance_exec'
2015-07-05T20:21:50.648788+00:00 app[web.1]: from /app/vendor/ruby-2.1.5/lib/
ruby/2.1.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_componen
t'
2015-07-05T20:21:50.648786+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/initializable.rb:55:in `block in run_initialize
rs'
2015-07-05T20:21:50.648787+00:00 app[web.1]: from /app/vendor/ruby-2.1.5/lib/
ruby/2.1.0/tsort.rb:226:in `block in tsort_each'
2015-07-05T20:21:50.648789+00:00 app[web.1]: from /app/vendor/ruby-2.1.5/lib/
ruby/2.1.0/tsort.rb:427:in `each_strongly_connected_component_from'
2015-07-05T20:21:50.648793+00:00 app[web.1]: from /app/vendor/ruby-2.1.5/lib/
ruby/2.1.0/tsort.rb:345:in `call'
2015-07-05T20:21:50.648799+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/initializable.rb:54:in `run_initializers'
2015-07-05T20:21:50.648790+00:00 app[web.1]: from /app/vendor/ruby-2.1.5/lib/
ruby/2.1.0/tsort.rb:347:in `block in each_strongly_connected_component'
2015-07-05T20:21:50.648795+00:00 app[web.1]: from /app/vendor/ruby-2.1.5/lib/
ruby/2.1.0/tsort.rb:345:in `each_strongly_connected_component'
2015-07-05T20:21:50.648792+00:00 app[web.1]: from /app/vendor/ruby-2.1.5/lib/
ruby/2.1.0/tsort.rb:345:in `each'
2015-07-05T20:21:50.648796+00:00 app[web.1]: from /app/vendor/ruby-2.1.5/lib/
ruby/2.1.0/tsort.rb:224:in `tsort_each'
2015-07-05T20:21:50.648798+00:00 app[web.1]: from /app/vendor/ruby-2.1.5/lib/
ruby/2.1.0/tsort.rb:205:in `tsort_each'
2015-07-05T20:21:50.648803+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in `require'
2015-07-05T20:21:50.648805+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:240:in `load_depe
ndency'
2015-07-05T20:21:50.648804+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in `block in
require'
2015-07-05T20:21:50.648806+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in `require'
2015-07-05T20:21:50.648815+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `instance_eval'
2015-07-05T20:21:50.648800+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/application.rb:352:in `initialize!'
2015-07-05T20:21:50.648813+00:00 app[web.1]: from /app/config.ru:3:in `block
in <main>'
2015-07-05T20:21:50.648801+00:00 app[web.1]: from /app/config/environment.rb:
5:in `<top (required)>'
2015-07-05T20:21:50.648817+00:00 app[web.1]: from /app/config.ru:in `new'
2015-07-05T20:21:50.648820+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in `eval'
2015-07-05T20:21:50.648825+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/rack-1.6.4/lib/rack/server.rb:208:in `app'
2015-07-05T20:21:50.648821+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in `new_from_string'
2015-07-05T20:21:50.648826+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/commands/server.rb:61:in `app'
2015-07-05T20:21:50.648829+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/rack-1.6.4/lib/rack/server.rb:272:in `start'
2015-07-05T20:21:50.648832+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:75:in `tap'
2015-07-05T20:21:50.648816+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `initialize'
2015-07-05T20:21:50.648839+00:00 app[web.1]: from bin/rails:4:in `<main>'
2015-07-05T20:21:50.648819+00:00 app[web.1]: from /app/config.ru:in `<main>'
2015-07-05T20:21:50.648823+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/rack-1.6.4/lib/rack/builder.rb:40:in `parse_file'
2015-07-05T20:21:50.648824+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/rack-1.6.4/lib/rack/server.rb:299:in `build_app_and_options_from_config'
2015-07-05T20:21:50.648828+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/rack-1.6.4/lib/rack/server.rb:336:in `wrapped_app'
2015-07-05T20:21:50.648830+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/commands/server.rb:80:in `start'
2015-07-05T20:21:50.648835+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
2015-07-05T20:21:50.648831+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:80:in `block in serv
er'
2015-07-05T20:21:50.648838+00:00 app[web.1]: from bin/rails:4:in `require'
2015-07-05T20:21:50.648834+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:75:in `server'
2015-07-05T20:21:50.648837+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/commands.rb:17:in `<top (required)>'
2015-07-05T20:21:51.832370+00:00 heroku[web.1]: Process exited with status 1
2015-07-05T20:21:51.845270+00:00 heroku[web.1]: State changed from starting to c
rashed
2015-07-05T20:23:44.683352+00:00 heroku[api]: Starting process with command `bun
dle exec rake db:migrate` by dvid1994#gmail.com
2015-07-05T20:23:49.876519+00:00 heroku[run.7443]: Awaiting client
2015-07-05T20:23:49.931116+00:00 heroku[run.7443]: Starting process with command
`bundle exec rake db:migrate`
2015-07-05T20:23:55.352150+00:00 heroku[run.7443]: Process exited with status 0
2015-07-05T20:23:55.365935+00:00 heroku[run.7443]: State changed from up to comp
lete
2015-07-05T20:23:50.311272+00:00 heroku[run.7443]: State changed from starting t
o up
2015-07-05T20:25:16.824478+00:00 heroku[api]: Scale to web=1 by dvid1994#gmail.c
om
2015-07-05T20:27:09.578310+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/" host=glacial-falls-7476.herokuapp.com request_id=6a99e
c01-98d6-45cf-bc2c-8ec05a0f7ab9 fwd="50.163.200.7" dyno= connect= service= statu
s=503 bytes=
2015-07-05T22:28:51.659970+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/" host=glacial-falls-7476.herokuapp.com request_id=13681
1f6-73cf-4708-96a9-d48e26d61dd1 fwd="50.163.200.7" dyno= connect= service= statu
s=503 bytes=
production rake:
I, [2015-07-05T16:16:54.146798 #21460] INFO -- : Writing C:/row/dev/project/public/assets/tapedek3-4343c22664d06b029040ca2311b3fc956f7fb61b1dc8aa0beb8b1e
bbe23c9e31.png
I, [2015-07-05T16:16:59.754119 #21460] INFO -- : Writing C:/row/dev/project/public/assets/application-ddbb9538bbe5eff3b50ef226fc0aa9af7da7fa937082f4ef22b
7e8c339a0bcde.js
I, [2015-07-05T16:17:07.206545 #21460] INFO -- : Writing C:/row/dev/project/public/assets/application-f0703cab74ba3b243988bfab9161553021c1568ea0daae042a2
b215f37284023.css
I, [2015-07-05T16:17:07.219546 #21460] INFO -- : Writing C:/row/dev/project/public/assets/bootstrap/glyphicons-halflings-regular-13634da87d9e23f8c3ed9108
ce1724d183a39ad072e73e1b3d8cbf646d2d0407.eot
I, [2015-07-05T16:17:07.232546 #21460] INFO -- : Writing C:/row/dev/project/public/assets/bootstrap/glyphicons-halflings-regular-42f60659d265c1a3c30f9fa4
2abcbb56bd4a53af4d83d316d6dd7a36903c43e5.svg
I, [2015-07-05T16:17:07.240547 #21460] INFO -- : Writing C:/row/dev/project/public/assets/bootstrap/glyphicons-halflings-regular-e395044093757d82afcb1389
57d06a1ea9361bdcf0b442d06a18a8051af57456.ttf
I, [2015-07-05T16:17:07.245547 #21460] INFO -- : Writing C:/row/dev/project/public/assets/bootstrap/glyphicons-halflings-regular-a26394f7ede100ca118eff2e
da08596275a9839b959c226e15439557a5a80742.woff
I, [2015-07-05T16:17:07.250547 #21460] INFO -- : Writing C:/row/dev/project/public/assets/bootstrap/glyphicons-halflings-regular-fe185d11a49676890d47bb78
3312a0cda5a44c4039214094e7957b4c040ef11c.woff2
Rails assets pipeline
This may take a few iterations to step through. The first error that Heroku flags is a failed GET on /favicon.ico
2015-07-05T17:56:19.804219+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/favicon.ico" host=glacial-falls-7476.herokuapp.com reque
st_id=091b3b97-bbab-4d13-b6a1-da24aa2b018b fwd="50.163.200.7" dyno= connect= ser
vice= status=503 bytes=
What this tell us is that there is an asset pipeline problem, because the app should be looking for something like the filename below, not the original filename:
href="/assets/favicon-17897c732521afcc30d49410042fc687.ico"
The favicon filename should be the compiled asset name. There are a number of steps to debug this:
Did you execute a production rake prior to deployment?
$bundle exec rake assets:precompile RAILS_ENV=production
Excellent, next step is to push the app to Heroku to deploy the app blob with assets properly compiled for the Rails asset pipeline.
$heroku push
If your app crashes, please post the updated Heroku log. If it runs, woohoo. That was the only problem.
So the easy solution didn't work. And it didn't even compile the .ico assets. That means there's some problem in the config, so it's not building the app blob correctly.
Aside from that there are a number of serious errors in the new log.
WEBrick should not be the server running on Heroku--that's a red flag. Do you know why WEBrick is launching?
The IP also Looks incorrect.
Rails 4.2.1 application starting in production on http://0.0.0.0:4674
Everything in this block needs to be fixed and I don't think it's going to be easy. Pushing a working app from development to Heroku is typically easy, I don't know what setting you have where that is throwing it into the weeds. I'd look at the Gemfile, production,rb, application.rb for all the differences there are for "development" versus "production"
2015-07-05T20:21:50.648458+00:00 app[web.1]: => Booting WEBrick
2015-07-05T20:21:50.648478+00:00 app[web.1]: => Rails 4.2.1 application starting
in production on http://0.0.0.0:4674
2015-07-05T20:21:50.648480+00:00 app[web.1]: => Run `rails server -h` for more s
tartup options
2015-07-05T20:21:50.648481+00:00 app[web.1]: => Ctrl-C to shutdown server
2015-07-05T20:21:50.648482+00:00 app[web.1]: Exiting
2015-07-05T20:21:50.648756+00:00 app[web.1]: /app/vendor/bundle/ruby/2.1.0/gems/
activerecord-4.2.1/lib/active_record/dynamic_matchers.rb:26:in `method_missing':
undefined local variable or method `request' for Session (call 'Session.connect
ion' to establish a connection):Class (NameError)
2015-07-05T20:21:50.648758+00:00 app[web.1]: from /app/app/models/session.rb:
3:in `<class:Session>'
I wish I had a one-line answer, but I don't. I think there are several deploy issues that will need to be worked, one at a time.
My advice is that you scale down your app, or start with a dummy test app and deploy in stages.
Or maybe someone will come along with the complete answer...
Do you have require 'pry' anywhere in your file? If so remove it and redeploy, leaving this on causes an H10 issue with heroku.

Heroku launch application error Ruby on Rails

Trying to launch an app on Heroku, but it keeps getting an application error. Here are the heroku logs, Please let me know what I can do to get it the application running. We have implemented pusher and can get the website to work on local host (even the pusher features across different localhost machines) but other than that it does not work on heroku.
2012-11-04T19:57:31+00:00 app[web.1]: Connecting to database specified by DATABASE_URL
2012-11-04T19:57:31+00:00 app[web.1]: /app/app/controllers/comments_controller.rb:2:in `<class:CommentsController>': undefined method `post' for CommentsController:Class (NoMethodError)
2012-11-04T19:57:31+00:00 app[web.1]: from /app/app/controllers/comments_controller.rb:1:in `<top (required)>'
2012-11-04T19:57:31+00:00 app[web.1]: Exiting
2012-11-04T19:57:31+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in `require'
2012-11-04T19:57:31+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:236:in `load_dependency'
2012-11-04T19:57:31+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in `block in require'
2012-11-04T19:57:31+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in `require'
2012-11-04T19:57:31+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:359:in `require_or_load'
2012-11-04T19:57:31+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:313:in `depend_on'
2012-11-04T19:57:31+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:225:in `require_dependency'
2012-11-04T19:57:31+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/engine.rb:439:in `block (2 levels) in eager_load!'
2012-11-04T19:57:31+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/engine.rb:438:in `each'
2012-11-04T19:57:31+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/engine.rb:438:in `block in eager_load!'
2012-11-04T19:57:31+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/engine.rb:436:in `each'
2012-11-04T19:57:31+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/engine.rb:436:in `eager_load!'
2012-11-04T19:57:31+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/application/finisher.rb:53:in `block in <module:Finisher>'
2012-11-04T19:57:31+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/initializable.rb:30:in `instance_exec'
2012-11-04T19:57:31+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/initializable.rb:30:in `run'
2012-11-04T19:57:31+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/initializable.rb:55:in `block in run_initializers'
2012-11-04T19:57:31+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/initializable.rb:54:in `run_initializers'
2012-11-04T19:57:31+00:00 app[web.1]: from /app/config.ru:1:in `<main>'
2012-11-04T19:57:31+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:40:in `eval'
2012-11-04T19:57:31+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:40:in `parse_file'
2012-11-04T19:57:31+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:200:in `app'
2012-11-04T19:57:31+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:301:in `wrapped_app'
2012-11-04T19:57:31+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/commands/server.rb:46:in `app'
2012-11-04T19:57:31+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/initializable.rb:54:in `each'
2012-11-04T19:57:31+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/application.rb:136:in `initialize!'
2012-11-04T19:57:31+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:252:in `start'
2012-11-04T19:57:31+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/commands/server.rb:70:in `start'
2012-11-04T19:57:31+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/railtie/configurable.rb:30:in `method_missing'
2012-11-04T19:57:31+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2012-11-04T19:57:31+00:00 app[web.1]: from /app/config.ru:4:in `require'
2012-11-04T19:57:31+00:00 app[web.1]: from /app/config.ru:4:in `block in <main>'
2012-11-04T19:57:31+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval'
2012-11-04T19:57:31+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize'
2012-11-04T19:57:31+00:00 app[web.1]: from /app/config.ru:1:in `new'
2012-11-04T19:57:31+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/commands.rb:55:in `block in <top (required)>'
2012-11-04T19:57:31+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/commands.rb:50:in `tap'
2012-11-04T19:57:31+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/commands.rb:50:in `<top (required)>'
2012-11-04T19:57:31+00:00 app[web.1]: from script/rails:6:in `require'
2012-11-04T19:57:31+00:00 app[web.1]: from script/rails:6:in `<main>'
2012-11-04T19:57:32+00:00 app[web.1]: => Booting WEBrick
2012-11-04T19:57:32+00:00 app[web.1]: => Rails 3.2.8 application starting in production on http://0.0.0.0:46992
2012-11-04T19:57:32+00:00 app[web.1]: => Call with -d to detach
2012-11-04T19:57:32+00:00 app[web.1]: => Ctrl-C to shutdown server
2012-11-04T19:57:32+00:00 app[web.1]: Connecting to database specified by DATABASE_URL
2012-11-04T19:57:32+00:00 app[web.1]: Exiting
2012-11-04T19:57:32+00:00 app[web.1]: /app/app/controllers/comments_controller.rb:2:in `<class:CommentsController>': undefined method `post' for CommentsController:Class (NoMethodError)
2012-11-04T19:57:32+00:00 app[web.1]: from /app/app/controllers/comments_controller.rb:1:in `<top (required)>'
2012-11-04T19:57:32+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in `require'
2012-11-04T19:57:32+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in `block in require'
2012-11-04T19:57:32+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:236:in `load_dependency'
2012-11-04T19:57:32+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in `require'
2012-11-04T19:57:32+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:359:in `require_or_load'
2012-11-04T19:57:32+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:313:in `depend_on'
2012-11-04T19:57:32+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:225:in `require_dependency'
2012-11-04T19:57:32+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/engine.rb:439:in `block (2 levels) in eager_load!'
2012-11-04T19:57:32+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/engine.rb:438:in `each'
2012-11-04T19:57:32+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/engine.rb:438:in `block in eager_load!'
2012-11-04T19:57:32+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/engine.rb:436:in `each'
2012-11-04T19:57:32+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/engine.rb:436:in `eager_load!'
2012-11-04T19:57:32+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/application/finisher.rb:53:in `block in <module:Finisher>'
2012-11-04T19:57:32+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/initializable.rb:30:in `instance_exec'
2012-11-04T19:57:32+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/initializable.rb:30:in `run'
2012-11-04T19:57:32+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/initializable.rb:55:in `block in run_initializers'
2012-11-04T19:57:32+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/initializable.rb:54:in `each'
2012-11-04T19:57:32+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/initializable.rb:54:in `run_initializers'
2012-11-04T19:57:32+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/application.rb:136:in `initialize!'
2012-11-04T19:57:32+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/railtie/configurable.rb:30:in `method_missing'
2012-11-04T19:57:32+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2012-11-04T19:57:32+00:00 app[web.1]: from /app/config.ru:4:in `require'
2012-11-04T19:57:32+00:00 app[web.1]: from /app/config.ru:4:in `block in <main>'
2012-11-04T19:57:32+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval'
2012-11-04T19:57:32+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize'
2012-11-04T19:57:32+00:00 app[web.1]: from /app/config.ru:1:in `new'
2012-11-04T19:57:32+00:00 app[web.1]: from /app/config.ru:1:in `<main>'
2012-11-04T19:57:32+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:200:in `app'
2012-11-04T19:57:32+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/commands/server.rb:46:in `app'
2012-11-04T19:57:32+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:301:in `wrapped_app'
2012-11-04T19:57:32+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:252:in `start'
2012-11-04T19:57:32+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/commands/server.rb:70:in `start'
2012-11-04T19:57:32+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/commands.rb:55:in `block in <top (required)>'
2012-11-04T19:57:32+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/commands.rb:50:in `tap'
2012-11-04T19:57:32+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/commands.rb:50:in `<top (required)>'
2012-11-04T19:57:32+00:00 app[web.1]: from script/rails:6:in `require'
2012-11-04T19:57:32+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:40:in `eval'
2012-11-04T19:57:32+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:40:in `parse_file'
2012-11-04T19:57:32+00:00 app[web.1]: from script/rails:6:in `<main>'
2012-11-04T19:57:33+00:00 heroku[web.1]: Process exited with status 1
2012-11-04T19:57:33+00:00 heroku[web.1]: State changed from starting to crashed
2012-11-04T19:57:33+00:00 heroku[web.1]: Process exited with status 1
2012-11-04T20:07:27+00:00 heroku[web.1]: State changed from crashed to down
2012-11-04T20:07:27+00:00 heroku[web.1]: State changed from down to starting
2012-11-04T20:07:39+00:00 heroku[web.1]: State changed from starting to crashed
2012-11-04T20:17:44+00:00 heroku[web.1]: State changed from crashed to down
2012-11-04T20:17:44+00:00 heroku[web.1]: State changed from down to starting
2012-11-04T20:17:56+00:00 heroku[web.1]: State changed from starting to crashed
2012-11-04T20:22:51+00:00 heroku[router]: Error H10 (App crashed) -> GET followalong.herokuapp.com/ dyno= queue= wait= service= status=503 bytes=
2012-11-04T20:22:52+00:00 heroku[router]: Error H10 (App crashed) -> GET followalong.herokuapp.com/favicon.ico dyno= queue= wait= service= status=503 bytes=
As you mentioned, you are not getting this error while working normally on your local host. Try to remove or comment the CommentsController call and check whether you are able to deploy the application on Heroku? And once you make the application run, then you can enable and check what is really making the cause for this error.

Heroku - Error H10 (App crashed)

Anybody can help? I'm pasting the log from heroku logs
Under development everything works fine as usual, when I upload it to heroku it crashes. I don't know why, I can't fix it despite all the solutions found in web.
MacBook-Pro-Maciej-Simm:SGHub maciejsimm$ heroku logs
2012-01-06T03:20:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:302:in
`depend_on'
2012-01-06T03:20:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in
`require'
2012-01-06T03:20:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/railtie/configurable.rb:30:in `method
_missing'
2012-01-06T03:20:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/initializable.rb:30:in `instance_exec
'
2012-01-06T03:20:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/initializable.rb:55:in `block in run_
initializers'
2012-01-06T03:20:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/initializable.rb:30:in `run'
2012-01-06T03:20:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/initializable.rb:54:in `run_initializ
ers'
2012-01-06T03:20:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/initializable.rb:54:in `each'
2012-01-06T03:20:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/application.rb:96:in `initialize!'
2012-01-06T03:20:30+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2012-01-06T03:20:30+00:00 app[web.1]: from /app/config.ru:4:in `require'
2012-01-06T03:20:30+00:00 app[web.1]: from /app/config.ru:4:in `block in <main>'
2012-01-06T03:20:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/builder.rb:51:in `instance_eval'
2012-01-06T03:20:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/builder.rb:40:in `parse_file'
2012-01-06T03:20:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/server.rb:200:in `app'
2012-01-06T03:20:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/commands/server.rb:46:in `app'
2012-01-06T03:20:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/server.rb:301:in `wrapped_app'
2012-01-06T03:20:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/commands/server.rb:70:in `start'
2012-01-06T03:20:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/commands.rb:54:in `block in <top (req
uired)>'
2012-01-06T03:20:30+00:00 app[web.1]: from /app/config.ru:1:in `<main>'
2012-01-06T03:20:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/builder.rb:51:in `initialize'
2012-01-06T03:20:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/commands.rb:49:in `tap'
2012-01-06T03:20:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/commands.rb:49:in `<top (required)>'
2012-01-06T03:20:30+00:00 app[web.1]: from script/rails:6:in `require'
2012-01-06T03:20:30+00:00 app[web.1]: from script/rails:6:in `<main>'
2012-01-06T03:20:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/builder.rb:40:in `eval'
2012-01-06T03:20:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/server.rb:252:in `start'
2012-01-06T03:20:30+00:00 app[web.1]: from /app/config.ru:1:in `new'
2012-01-06T03:20:31+00:00 heroku[web.1]: State changed from starting to crashed
2012-01-06T03:20:31+00:00 heroku[web.1]: State changed from crashed to created
2012-01-06T03:20:31+00:00 heroku[web.1]: State changed from created to starting
2012-01-06T03:20:32+00:00 heroku[web.1]: Process exited
2012-01-06T03:20:36+00:00 heroku[web.1]: Starting process with command `bundle exec rails server -p 33719`
2012-01-06T03:20:41+00:00 app[web.1]: => Booting WEBrick
2012-01-06T03:20:41+00:00 app[web.1]: => Rails 3.1.3 application starting in production on http://0.0.0.0:33719
2012-01-06T03:20:41+00:00 app[web.1]: Exiting
2012-01-06T03:20:41+00:00 app[web.1]: /app/app/helpers/sessions_helper.rb:34: invalid multibyte char (US-ASCII)
2012-01-06T03:20:41+00:00 app[web.1]: /app/app/helpers/sessions_helper.rb:34: syntax error, unexpected $end, expecting keyword_end
2012-01-06T03:20:41+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in `requir
e': /app/app/helpers/sessions_helper.rb:34: invalid multibyte char (US-ASCII) (SyntaxError)
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in
`block in require'
2012-01-06T03:20:41+00:00 app[web.1]: => Ctrl-C to shutdown server
2012-01-06T03:20:41+00:00 app[web.1]: ..._path, :notice => "Zaloguj się aby zobaczyć tą stronę"
2012-01-06T03:20:41+00:00 app[web.1]: ... ^
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:225:in
`load_dependency'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in
`require'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:302:in
`depend_on'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.3/lib/abstract_controller/helpers.rb:135:in `bl
ock in modules_for_helpers'
2012-01-06T03:20:41+00:00 app[web.1]: => Call with -d to detach
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:214:in
`require_dependency'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.3/lib/abstract_controller/helpers.rb:131:in `mo
dules_for_helpers'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.3/lib/abstract_controller/helpers.rb:95:in `hel
per'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_controller/railties/paths.rb:17:in
`block (2 levels) in with'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/app/controllers/application_controller.rb:1:in `<top (required)>'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_controller/metal/helpers.rb:89:in
`modules_for_helpers'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.3/lib/abstract_controller/helpers.rb:131:in `ma
p!'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:348:in
`require_or_load'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:214:in
`require_dependency'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:348:in
`require_or_load'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:225:in
`load_dependency'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in
`block in require'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in
`require'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:302:in
`depend_on'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in
`require'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/application/finisher.rb:51:in `block
in <module:Finisher>'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/engine.rb:414:in `each'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/engine.rb:417:in `block (2 levels) in
eager_load!'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/engine.rb:416:in `each'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/engine.rb:416:in `block in eager_load
!'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/initializable.rb:30:in `run'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/initializable.rb:55:in `block in run_
initializers'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/application.rb:96:in `initialize!'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/initializable.rb:54:in `each'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/initializable.rb:30:in `instance_exec
'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/railtie/configurable.rb:30:in `method
_missing'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/engine.rb:414:in `eager_load!'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/config.ru:4:in `require'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/builder.rb:51:in `instance_eval'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/config.ru:1:in `new'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/config.ru:4:in `block in <main>'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/builder.rb:40:in `eval'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/config.ru:1:in `<main>'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/server.rb:200:in `app'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/server.rb:252:in `start'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/commands/server.rb:70:in `start'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/commands/server.rb:46:in `app'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/initializable.rb:54:in `run_initializ
ers'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/builder.rb:40:in `parse_file'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/commands.rb:54:in `block in <top (req
uired)>'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/builder.rb:51:in `initialize'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/commands.rb:49:in `<top (required)>'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/server.rb:301:in `wrapped_app'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/commands.rb:49:in `tap'
2012-01-06T03:20:41+00:00 app[web.1]: from script/rails:6:in `require'
2012-01-06T03:20:41+00:00 app[web.1]: from script/rails:6:in `<main>'
2012-01-06T03:20:43+00:00 heroku[web.1]: State changed from starting to crashed
2012-01-06T03:20:43+00:00 heroku[web.1]: Process exited
2012-01-06T03:20:45+00:00 heroku[router]: Error H10 (App crashed) -> GET afternoon-earth-4144.herokuapp.com/ dyno= queue= wait= service= statu
s=503 bytes=
2012-01-06T03:20:46+00:00 heroku[router]: Error H10 (App crashed) -> GET afternoon-earth-4144.herokuapp.com/favicon.ico dyno= queue= wait= ser
vice= status=503 bytes=
2012-01-06T03:20:51+00:00 heroku[router]: Error H10 (App crashed) -> GET afternoon-earth-4144.herokuapp.com/ dyno= queue= wait= service= statu
s=503 bytes=
MacBook-Pro-Maciej-Simm:SGHub maciejsimm$
The problem seems to be right here:
/app/app/helpers/sessions_helper.rb:34: invalid multibyte char (US-ASCII)
...
..._path, :notice => "Zaloguj się aby zobaczyć tą stronę"
^
Note the "US-ASCII" in the error. I'm guessing that your source is actually UTF-8 so try adding this comment:
# encoding: UTF-8
at the top of app/helpers/sessions_helper.rb. That will tell Ruby that that source file is UTF-8. You'll probably need that in other source files as well.
An alternative would be to set your language at Heroku to something UTF:
$ heroku config:add LANG=pl_PL.UTF-8
I'm not sure if Heroku will be happy with Polish so you might need to use en_US.UTF-8 instead.

Resources