tl;dr
My app won't successfully deploy to Heroku after making some UI updates. The app works without any hiccups on my local device, though.
I followed a tutorial (https://www.railstutorial.org/book/user_microposts) through to the end. I was able to deploy the site successfully throughout the tutorial to Heroku.
However, after making some changes to the UI (and adding some images to my assets/images folder), I'm no longer able to successfully deploy the application. I've ran "rake assets:precompile" and can now get the app to successfully build in Heroku.
But when I try to load the app in Heroku, I get these error messages in the logs. Can I get some help on deploying this? Would this issue be able to be resolved if I hosted it on AWS? I've worked in Django before but not Rails.
Listed below is the error log from Heroku. These are, as far as I can tell, the more important error messages are
2017-12-31T04:20:11.298411+00:00 heroku[web.1]: Starting process with command `bundle exec puma -C config/puma.rb`
2017-12-31T04:20:14.840649+00:00 app[web.1]: [4] Puma starting in cluster mode...
2017-12-31T04:20:14.840675+00:00 app[web.1]: [4] * Version 3.9.1 (ruby 2.3.4-p301), codename: Private Caller
2017-12-31T04:20:14.840676+00:00 app[web.1]: [4] * Min threads: 5, max threads: 5
2017-12-31T04:20:14.840677+00:00 app[web.1]: [4] * Environment: production
2017-12-31T04:20:14.840677+00:00 app[web.1]: [4] * Process workers: 2
2017-12-31T04:20:14.840678+00:00 app[web.1]: [4] * Preloading application
2017-12-31T04:20:17.223050+00:00 app[web.1]: [4] ! Unable to load application: LoadError: cannot load such file -- fog
2017-12-31T04:20:17.223133+00:00 app[web.1]: bundler: failed to load command: puma (/app/vendor/bundle/ruby/2.3.0/bin/puma)
2017-12-31T04:20:17.223190+00:00 app[web.1]: LoadError: cannot load such file -- fog
&&
2017-12-31T04:21:31.835336+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=fathomless-island-79606.herokuapp.com request_id=1beb0568-2805-4108-8f19-83904ee539f1 fwd="68.109.176.138" dyno= connect= service= status=503 bytes= protocol=https
--- Entire Log Message ---
2017-12-31T04:20:07.305986+00:00 app[api]: Deploy a43d564d by user xxxxx#xxxxx.xxxx
2017-12-31T04:19:44.000000+00:00 app[api]: Build succeeded
2017-12-31T04:20:07.732043+00:00 heroku[web.1]: State changed from crashed to starting
2017-12-31T04:20:11.298411+00:00 heroku[web.1]: Starting process with command `bundle exec puma -C config/puma.rb`
2017-12-31T04:20:14.840649+00:00 app[web.1]: [4] Puma starting in cluster mode...
2017-12-31T04:20:14.840675+00:00 app[web.1]: [4] * Version 3.9.1 (ruby 2.3.4-p301), codename: Private Caller
2017-12-31T04:20:14.840676+00:00 app[web.1]: [4] * Min threads: 5, max threads: 5
2017-12-31T04:20:14.840677+00:00 app[web.1]: [4] * Environment: production
2017-12-31T04:20:14.840677+00:00 app[web.1]: [4] * Process workers: 2
2017-12-31T04:20:14.840678+00:00 app[web.1]: [4] * Preloading application
2017-12-31T04:20:17.223050+00:00 app[web.1]: [4] ! Unable to load application: LoadError: cannot load such file -- fog
2017-12-31T04:20:17.223133+00:00 app[web.1]: bundler: failed to load command: puma (/app/vendor/bundle/ruby/2.3.0/bin/puma)
2017-12-31T04:20:17.223190+00:00 app[web.1]: LoadError: cannot load such file -- fog
2017-12-31T04:20:17.223194+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.2/lib/active_support/dependencies.rb:292:in `require'
2017-12-31T04:20:17.223195+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.2/lib/active_support/dependencies.rb:292:in `block in require'
2017-12-31T04:20:17.223195+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.2/lib/active_support/dependencies.rb:258:in `load_dependency'
2017-12-31T04:20:17.223196+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.2/lib/active_support/dependencies.rb:292:in `require'
2017-12-31T04:20:17.223197+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/carrierwave-1.1.0/lib/carrierwave/uploader/configuration.rb:122:in `eager_load_fog'
2017-12-31T04:20:17.223197+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/carrierwave-1.1.0/lib/carrierwave/uploader/configuration.rb:137:in `fog_credentials='
2017-12-31T04:20:17.223198+00:00 app[web.1]: /app/config/initializers/carrier_wave.rb:3:in `block in <top (required)>'
2017-12-31T04:20:17.223198+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/carrierwave-1.1.0/lib/carrierwave/uploader/configuration.rb:159:in `configure'
2017-12-31T04:20:17.223199+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/carrierwave-1.1.0/lib/carrierwave.rb:14:in `configure'
2017-12-31T04:20:17.223200+00:00 app[web.1]: /app/config/initializers/carrier_wave.rb:2:in `<top (required)>'
2017-12-31T04:20:17.223200+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.2/lib/active_support/dependencies.rb:286:in `load'
2017-12-31T04:20:17.223201+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.2/lib/active_support/dependencies.rb:286:in `block in load'
2017-12-31T04:20:17.223201+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.2/lib/active_support/dependencies.rb:258:in `load_dependency'
2017-12-31T04:20:17.223201+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.2/lib/active_support/dependencies.rb:286:in `load'
2017-12-31T04:20:17.223202+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.2/lib/rails/engine.rb:655:in `block in load_config_initializer'
2017-12-31T04:20:17.223202+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.2/lib/active_support/notifications.rb:168:in `instrument'
2017-12-31T04:20:17.223203+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.2/lib/rails/engine.rb:654:in `load_config_initializer'
2017-12-31T04:20:17.223203+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.2/lib/rails/engine.rb:612:in `block (2 levels) in <class:Engine>'
2017-12-31T04:20:17.223203+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.2/lib/rails/engine.rb:611:in `each'
2017-12-31T04:20:17.223204+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.2/lib/rails/engine.rb:611:in `block in <class:Engine>'
2017-12-31T04:20:17.223204+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.2/lib/rails/initializable.rb:30:in `instance_exec'
2017-12-31T04:20:17.223204+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.2/lib/rails/initializable.rb:30:in `run'
2017-12-31T04:20:17.223205+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.2/lib/rails/initializable.rb:59:in `block in run_initializers'
2017-12-31T04:20:17.223205+00:00 app[web.1]: /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:228:in `block in tsort_each'
2017-12-31T04:20:17.223206+00:00 app[web.1]: /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
2017-12-31T04:20:17.223206+00:00 app[web.1]: /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
2017-12-31T04:20:17.223206+00:00 app[web.1]: /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:431:in `each_strongly_connected_component_from'
2017-12-31T04:20:17.223207+00:00 app[web.1]: /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:421:in `block in each_strongly_connected_component_from'
2017-12-31T04:20:17.223207+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.2/lib/rails/initializable.rb:48:in `each'
2017-12-31T04:20:17.223207+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.2/lib/rails/initializable.rb:48:in `tsort_each_child'
2017-12-31T04:20:17.223208+00:00 app[web.1]: /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:415:in `call'
2017-12-31T04:20:17.223209+00:00 app[web.1]: /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:415:in `each_strongly_connected_component_from'
2017-12-31T04:20:17.223209+00:00 app[web.1]: /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:349:in `block in each_strongly_connected_component'
2017-12-31T04:20:17.223209+00:00 app[web.1]: /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:347:in `each'
2017-12-31T04:20:17.223210+00:00 app[web.1]: /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:347:in `call'
2017-12-31T04:20:17.223210+00:00 app[web.1]: /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:347:in `each_strongly_connected_component'
2017-12-31T04:20:17.223211+00:00 app[web.1]: /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:226:in `tsort_each'
2017-12-31T04:20:17.223211+00:00 app[web.1]: /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:205:in `tsort_each'
2017-12-31T04:20:17.223211+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.2/lib/rails/initializable.rb:58:in `run_initializers'
2017-12-31T04:20:17.223212+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.2/lib/rails/application.rb:353:in `initialize!'
2017-12-31T04:20:17.223212+00:00 app[web.1]: /app/config/environment.rb:5:in `<top (required)>'
2017-12-31T04:20:17.223212+00:00 app[web.1]: config.ru:3:in `require_relative'
2017-12-31T04:20:17.223215+00:00 app[web.1]: config.ru:3:in `block in <main>'
2017-12-31T04:20:17.223216+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.3/lib/rack/builder.rb:55:in `instance_eval'
2017-12-31T04:20:17.223216+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.3/lib/rack/builder.rb:55:in `initialize'
2017-12-31T04:20:17.223217+00:00 app[web.1]: config.ru:in `new'
2017-12-31T04:20:17.223217+00:00 app[web.1]: config.ru:in `<main>'
2017-12-31T04:20:17.223218+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.3/lib/rack/builder.rb:49:in `eval'
2017-12-31T04:20:17.223218+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.3/lib/rack/builder.rb:49:in `new_from_string'
2017-12-31T04:20:17.223219+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.3/lib/rack/builder.rb:40:in `parse_file'
2017-12-31T04:20:17.223219+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/puma-3.9.1/lib/puma/configuration.rb:313:in `load_rackup'
2017-12-31T04:20:17.223220+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/puma-3.9.1/lib/puma/configuration.rb:242:in `app'
2017-12-31T04:20:17.223221+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/puma-3.9.1/lib/puma/runner.rb:138:in `load_and_bind'
2017-12-31T04:20:17.223221+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/puma-3.9.1/lib/puma/cluster.rb:391:in `run'
2017-12-31T04:20:17.223222+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/puma-3.9.1/lib/puma/launcher.rb:174:in `run'
2017-12-31T04:20:17.223222+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/puma-3.9.1/lib/puma/cli.rb:77:in `run'
2017-12-31T04:20:17.223223+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/puma-3.9.1/bin/puma:10:in `<top (required)>'
2017-12-31T04:20:17.223224+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/bin/puma:22:in `load'
2017-12-31T04:20:17.223224+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/bin/puma:22:in `<top (required)>'
2017-12-31T04:20:17.469078+00:00 heroku[web.1]: Process exited with status 1
2017-12-31T04:20:17.512006+00:00 heroku[web.1]: State changed from starting to crashed
2017-12-31T04:20:17.514131+00:00 heroku[web.1]: State changed from crashed to starting
2017-12-31T04:20:22.036948+00:00 heroku[web.1]: Starting process with command `bundle exec puma -C config/puma.rb`
2017-12-31T04:20:25.691539+00:00 app[web.1]: [4] Puma starting in cluster mode...
2017-12-31T04:20:25.691555+00:00 app[web.1]: [4] * Version 3.9.1 (ruby 2.3.4-p301), codename: Private Caller
2017-12-31T04:20:25.691556+00:00 app[web.1]: [4] * Min threads: 5, max threads: 5
2017-12-31T04:20:25.691557+00:00 app[web.1]: [4] * Environment: production
2017-12-31T04:20:25.691578+00:00 app[web.1]: [4] * Process workers: 2
2017-12-31T04:20:25.691579+00:00 app[web.1]: [4] * Preloading application
2017-12-31T04:20:27.830859+00:00 app[web.1]: [4] ! Unable to load application: LoadError: cannot load such file -- fog
2017-12-31T04:20:27.844160+00:00 app[web.1]: bundler: failed to load command: puma (/app/vendor/bundle/ruby/2.3.0/bin/puma)
2017-12-31T04:20:27.844174+00:00 app[web.1]: LoadError: cannot load such file -- fog
2017-12-31T04:20:27.844175+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.2/lib/active_support/dependencies.rb:292:in `require'
2017-12-31T04:20:27.844176+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.2/lib/active_support/dependencies.rb:292:in `block in require'
2017-12-31T04:20:27.844177+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.2/lib/active_support/dependencies.rb:258:in `load_dependency'
2017-12-31T04:20:27.844177+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.2/lib/active_support/dependencies.rb:292:in `require'
2017-12-31T04:20:27.844178+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/carrierwave-1.1.0/lib/carrierwave/uploader/configuration.rb:122:in `eager_load_fog'
2017-12-31T04:20:27.844179+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/carrierwave-1.1.0/lib/carrierwave/uploader/configuration.rb:137:in `fog_credentials='
2017-12-31T04:20:27.844180+00:00 app[web.1]: /app/config/initializers/carrier_wave.rb:3:in `block in <top (required)>'
2017-12-31T04:20:27.844180+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/carrierwave-1.1.0/lib/carrierwave/uploader/configuration.rb:159:in `configure'
2017-12-31T04:20:27.844181+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/carrierwave-1.1.0/lib/carrierwave.rb:14:in `configure'
2017-12-31T04:20:27.844182+00:00 app[web.1]: /app/config/initializers/carrier_wave.rb:2:in `<top (required)>'
2017-12-31T04:20:27.844182+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.2/lib/active_support/dependencies.rb:286:in `load'
2017-12-31T04:20:27.844183+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.2/lib/active_support/dependencies.rb:286:in `block in load'
2017-12-31T04:20:27.844184+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.2/lib/active_support/dependencies.rb:258:in `load_dependency'
2017-12-31T04:20:27.844184+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.2/lib/active_support/dependencies.rb:286:in `load'
2017-12-31T04:20:27.844185+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.2/lib/rails/engine.rb:655:in `block in load_config_initializer'
2017-12-31T04:20:27.844186+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.2/lib/active_support/notifications.rb:168:in `instrument'
2017-12-31T04:20:27.844186+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.2/lib/rails/engine.rb:654:in `load_config_initializer'
2017-12-31T04:20:27.844187+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.2/lib/rails/engine.rb:612:in `block (2 levels) in <class:Engine>'
2017-12-31T04:20:27.844187+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.2/lib/rails/engine.rb:611:in `each'
2017-12-31T04:20:27.844188+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.2/lib/rails/engine.rb:611:in `block in <class:Engine>'
2017-12-31T04:20:27.844188+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.2/lib/rails/initializable.rb:30:in `instance_exec'
2017-12-31T04:20:27.844189+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.2/lib/rails/initializable.rb:30:in `run'
2017-12-31T04:20:27.844190+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.2/lib/rails/initializable.rb:59:in `block in run_initializers'
2017-12-31T04:20:27.844190+00:00 app[web.1]: /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:228:in `block in tsort_each'
2017-12-31T04:20:27.844191+00:00 app[web.1]: /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
2017-12-31T04:20:27.844191+00:00 app[web.1]: /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
2017-12-31T04:20:27.844192+00:00 app[web.1]: /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:431:in `each_strongly_connected_component_from'
2017-12-31T04:20:27.844193+00:00 app[web.1]: /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:421:in `block in each_strongly_connected_component_from'
2017-12-31T04:20:27.844193+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.2/lib/rails/initializable.rb:48:in `each'
2017-12-31T04:20:27.844194+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.2/lib/rails/initializable.rb:48:in `tsort_each_child'
2017-12-31T04:20:27.844195+00:00 app[web.1]: /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:415:in `call'
2017-12-31T04:20:27.844195+00:00 app[web.1]: /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:415:in `each_strongly_connected_component_from'
2017-12-31T04:20:27.844196+00:00 app[web.1]: /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:349:in `block in each_strongly_connected_component'
2017-12-31T04:20:27.844197+00:00 app[web.1]: /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:347:in `each'
2017-12-31T04:20:27.844197+00:00 app[web.1]: /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:347:in `call'
2017-12-31T04:20:27.844198+00:00 app[web.1]: /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:347:in `each_strongly_connected_component'
2017-12-31T04:20:27.844199+00:00 app[web.1]: /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:226:in `tsort_each'
2017-12-31T04:20:27.844199+00:00 app[web.1]: /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:205:in `tsort_each'
2017-12-31T04:20:27.844200+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.2/lib/rails/initializable.rb:58:in `run_initializers'
2017-12-31T04:20:27.844200+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.2/lib/rails/application.rb:353:in `initialize!'
2017-12-31T04:20:27.844201+00:00 app[web.1]: /app/config/environment.rb:5:in `<top (required)>'
2017-12-31T04:20:27.844202+00:00 app[web.1]: config.ru:3:in `require_relative'
2017-12-31T04:20:27.844206+00:00 app[web.1]: config.ru:3:in `block in <main>'
2017-12-31T04:20:27.844206+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.3/lib/rack/builder.rb:55:in `instance_eval'
2017-12-31T04:20:27.844207+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.3/lib/rack/builder.rb:55:in `initialize'
2017-12-31T04:20:27.844208+00:00 app[web.1]: config.ru:in `new'
2017-12-31T04:20:27.844209+00:00 app[web.1]: config.ru:in `<main>'
2017-12-31T04:20:27.844209+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.3/lib/rack/builder.rb:49:in `eval'
2017-12-31T04:20:27.844210+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.3/lib/rack/builder.rb:49:in `new_from_string'
2017-12-31T04:20:27.844211+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.3/lib/rack/builder.rb:40:in `parse_file'
2017-12-31T04:20:27.844211+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/puma-3.9.1/lib/puma/configuration.rb:313:in `load_rackup'
2017-12-31T04:20:27.844212+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/puma-3.9.1/lib/puma/configuration.rb:242:in `app'
2017-12-31T04:20:27.844212+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/puma-3.9.1/lib/puma/runner.rb:138:in `load_and_bind'
2017-12-31T04:20:27.844213+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/puma-3.9.1/lib/puma/cluster.rb:391:in `run'
2017-12-31T04:20:27.844214+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/puma-3.9.1/lib/puma/launcher.rb:174:in `run'
2017-12-31T04:20:27.844214+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/puma-3.9.1/lib/puma/cli.rb:77:in `run'
2017-12-31T04:20:27.844215+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/puma-3.9.1/bin/puma:10:in `<top (required)>'
2017-12-31T04:20:27.844216+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/bin/puma:22:in `load'
2017-12-31T04:20:27.844216+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/bin/puma:22:in `<top (required)>'
2017-12-31T04:20:28.026943+00:00 heroku[web.1]: State changed from starting to crashed
2017-12-31T04:20:28.020460+00:00 heroku[web.1]: Process exited with status 1
2017-12-31T04:21:33.265574+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=xxxxxxxx.herokuapp.com request_id=xxxxxxx fwd="xxx.xxx.xxx.xxx" dyno= connect= service= status=503 bytes= protocol=https
2017-12-31T04:21:31.835336+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=xxxxxx.herokuapp.com request_id=xxxxxxxxx fwd="xxx.xxx.xxx.xxx" dyno= connect= service= status=503 bytes= protocol=https
Whenever I run into problems with Heroku and Rails, I doublecheck a couple of things: 1. Make sure I push everything to whatever repository and then push to Heroku. 2. Make sure I run db:migrate 3. Make sure that I've added the necessary config vars to Heroku. In your case, though, there seems like there's an issue with fog:
2017-12-31T04:20:17.223190+00:00 app[web.1]: LoadError: cannot load such file -- fog
I'm not familiar with that gem, but if it requires login info, make sure you add it to Heroku: https://devcenter.heroku.com/articles/config-vars
Related
on Ruby on Rails - Heroku deployment, I got a error of heroku[route]: at=error code=H10 desc="App crashed" method After some debugging the log texts, main part of the log file I got:
2022-01-08T11:12:12.754916+00:00 heroku[web.1]: Starting process with command `bin/rails server -p ${PORT:-5000} -e production`
2022-01-08T11:12:16.534794+00:00 app[web.1]: => Booting Puma
2022-01-08T11:12:16.534809+00:00 app[web.1]: => Rails 6.1.4.4 application starting in production
2022-01-08T11:12:16.534810+00:00 app[web.1]: => Run `bin/rails server --help` for more startup options
2022-01-08T11:12:17.742438+00:00 app[web.1]: Exiting
2022-01-08T11:12:17.745593+00:00 app[web.1]: /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:34:in `require': cannot load such file -- net/pop (LoadError)
2022-01-08T11:12:17.745616+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.5.3/lib/zeitwerk/kernel.rb:35:in `require'
2022-01-08T11:12:17.745630+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/mail-2.7.1/lib/mail/network/retriever_methods/pop3.rb:36:in `<class:POP3>'
2022-01-08T11:12:17.745642+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/mail-2.7.1/lib/mail/network/retriever_methods/pop3.rb:35:in `<module:Mail>'
2022-01-08T11:12:17.745655+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/mail-2.7.1/lib/mail/network/retriever_methods/pop3.rb:4:in `<main>'
2022-01-08T11:12:17.745668+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
2022-01-08T11:12:17.745681+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
2022-01-08T11:12:17.745694+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/loaded_features_index.rb:100:in `register'
2022-01-08T11:12:17.745708+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
2022-01-08T11:12:17.745720+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
2022-01-08T11:12:17.745733+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.5.3/lib/zeitwerk/kernel.rb:35:in `require'
2022-01-08T11:12:17.745745+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/mail-2.7.1/lib/mail.rb:54:in `block in eager_autoload!'
2022-01-08T11:12:17.745761+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/mail-2.7.1/lib/mail.rb:54:in `each'
2022-01-08T11:12:17.745774+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/mail-2.7.1/lib/mail.rb:54:in `eager_autoload!'
2022-01-08T11:12:17.745786+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/actionmailer-6.1.4.4/lib/action_mailer.rb:61:in `eager_load!'
2022-01-08T11:12:17.745799+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.4.4/lib/rails/application/finisher.rb:134:in `each'
2022-01-08T11:12:17.745811+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.4.4/lib/rails/application/finisher.rb:134:in `block in <module:Finisher>'
2022-01-08T11:12:17.745824+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.4.4/lib/rails/initializable.rb:32:in `instance_exec'
2022-01-08T11:12:17.745838+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.4.4/lib/rails/initializable.rb:32:in `run'
2022-01-08T11:12:17.745850+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.4.4/lib/rails/initializable.rb:61:in `block in run_initializers'
2022-01-08T11:12:17.745863+00:00 app[web.1]: from /app/vendor/ruby-3.1.0/lib/ruby/3.1.0/tsort.rb:228:in `block in tsort_each'
2022-01-08T11:12:17.745875+00:00 app[web.1]: from /app/vendor/ruby-3.1.0/lib/ruby/3.1.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
2022-01-08T11:12:17.745888+00:00 app[web.1]: from /app/vendor/ruby-3.1.0/lib/ruby/3.1.0/tsort.rb:431:in `each_strongly_connected_component_from'
2022-01-08T11:12:17.745900+00:00 app[web.1]: from /app/vendor/ruby-3.1.0/lib/ruby/3.1.0/tsort.rb:349:in `block in each_strongly_connected_component'
2022-01-08T11:12:17.745913+00:00 app[web.1]: from /app/vendor/ruby-3.1.0/lib/ruby/3.1.0/tsort.rb:347:in `each'
2022-01-08T11:12:17.745926+00:00 app[web.1]: from /app/vendor/ruby-3.1.0/lib/ruby/3.1.0/tsort.rb:347:in `call'
2022-01-08T11:12:17.745938+00:00 app[web.1]: from /app/vendor/ruby-3.1.0/lib/ruby/3.1.0/tsort.rb:347:in `each_strongly_connected_component'
2022-01-08T11:12:17.745950+00:00 app[web.1]: from /app/vendor/ruby-3.1.0/lib/ruby/3.1.0/tsort.rb:226:in `tsort_each'
2022-01-08T11:12:17.745963+00:00 app[web.1]: from /app/vendor/ruby-3.1.0/lib/ruby/3.1.0/tsort.rb:205:in `tsort_each'
2022-01-08T11:12:17.745975+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.4.4/lib/rails/initializable.rb:60:in `run_initializers'
2022-01-08T11:12:17.745988+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.4.4/lib/rails/application.rb:391:in `initialize!'
2022-01-08T11:12:17.746002+00:00 app[web.1]: from /app/config/environment.rb:5:in `<main>'
2022-01-08T11:12:17.746015+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
2022-01-08T11:12:17.746027+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
2022-01-08T11:12:17.746040+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/loaded_features_index.rb:100:in `register'
2022-01-08T11:12:17.746053+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
2022-01-08T11:12:17.746066+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
2022-01-08T11:12:17.746079+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.5.3/lib/zeitwerk/kernel.rb:35:in `require'
2022-01-08T11:12:17.746092+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.4.4/lib/active_support/dependencies.rb:332:in `block in require'
2022-01-08T11:12:17.746104+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.4.4/lib/active_support/dependencies.rb:299:in `load_dependency'
2022-01-08T11:12:17.746117+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.4.4/lib/active_support/dependencies.rb:332:in `require'
2022-01-08T11:12:17.746130+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:54:in `require_relative'
2022-01-08T11:12:17.746143+00:00 app[web.1]: from config.ru:3:in `block in <main>'
2022-01-08T11:12:17.746156+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3/lib/rack/builder.rb:116:in `eval'
2022-01-08T11:12:17.746169+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3/lib/rack/builder.rb:116:in `new_from_string'
2022-01-08T11:12:17.746181+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3/lib/rack/builder.rb:105:in `load_file'
2022-01-08T11:12:17.746194+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3/lib/rack/builder.rb:66:in `parse_file'
2022-01-08T11:12:17.746206+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3/lib/rack/server.rb:349:in `build_app_and_options_from_config'
2022-01-08T11:12:17.746219+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3/lib/rack/server.rb:249:in `app'
2022-01-08T11:12:17.746232+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3/lib/rack/server.rb:422:in `wrapped_app'
2022-01-08T11:12:17.746245+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3/lib/rack/server.rb:312:in `block in start'
2022-01-08T11:12:17.746258+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3/lib/rack/server.rb:379:in `handle_profiling'
2022-01-08T11:12:17.746270+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3/lib/rack/server.rb:311:in `start'
2022-01-08T11:12:17.746283+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.4.4/lib/rails/commands/server/server_command.rb:39:in `start'
2022-01-08T11:12:17.746297+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.4.4/lib/rails/commands/server/server_command.rb:144:in `block in perform'
2022-01-08T11:12:17.746309+00:00 app[web.1]: from <internal:kernel>:90:in `tap'
2022-01-08T11:12:17.746322+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.4.4/lib/rails/commands/server/server_command.rb:135:in `perform'
2022-01-08T11:12:17.746335+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/thor-1.2.1/lib/thor/command.rb:27:in `run'
2022-01-08T11:12:17.746348+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'
2022-01-08T11:12:17.746361+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch'
2022-01-08T11:12:17.746373+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.4.4/lib/rails/command/base.rb:69:in `perform'
2022-01-08T11:12:17.746386+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.4.4/lib/rails/command.rb:48:in `invoke'
2022-01-08T11:12:17.746399+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.4.4/lib/rails/commands.rb:18:in `<main>'
2022-01-08T11:12:17.746412+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
2022-01-08T11:12:17.746424+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
2022-01-08T11:12:17.746437+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/loaded_features_index.rb:100:in `register'
2022-01-08T11:12:17.746451+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
2022-01-08T11:12:17.746463+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
2022-01-08T11:12:17.746476+00:00 app[web.1]: from bin/rails:5:in `<main>'
2022-01-08T11:12:17.961296+00:00 heroku[web.1]: Process exited with status 1
2022-01-08T11:12:18.044550+00:00 heroku[web.1]: State changed from starting to crashed
Though this was the main topic of the full log text on production environment, but in local development environment, there was no issues found while starting the Rails server! Everything was working fine on development environment.
Besides, the URL was showing the following texts:
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. You can do this from the Heroku CLI with the command heroku logs --tail
And the console is showing this: Failed to load resource: the server responded with a status of 503 (Service Unavailable)
Solution
Ok, after a few deployments of fixing the errors found from the log file, I got that, in our Gemfile, we need to add some gem (around 3 gems) which are needed for some dependencies. Those gems are:
# Gemfile
gem 'net-smtp', require: false
gem 'net-pop', require: false
gem 'net-imap', require: false
after adding those to our gem file, run
bundle install
Then deploy the code on heroku and this will make a proper deployment.
I'm trying to deploy my ruby application to Heroku but I keep getting this message along with the "Application Error" screen on my heroku deployment. The application deploys but I get these error messages. Any help is appreciated. I'm just trying to get my project to show up on the actual webpage. My Ruby version is up to date and I didn't think I needed a Procfile.
remote: ###### WARNING:
remote:
remote: Detecting rails configuration failed
remote:
remote: ###### WARNING:
remote:
remote: There is a more recent Ruby version available for you to use:
remote:
remote: 2.7.1
remote:
remote: The latest version will include security and bug fixes, we always recommend
remote: running the latest version of your minor release.
remote:
remote: Please upgrade your Ruby version.
remote:
remote: For all available Ruby versions see:
remote: https://devcenter.heroku.com/articles/ruby-support#supported-runtimes
remote:
remote: ###### WARNING:
remote:
remote: No Procfile detected, using the default web server.
remote: We recommend explicitly declaring how to boot your server process via a Procfile.
remote: https://devcenter.heroku.com/articles/ruby-default-web-server
remote:
remote:
remote: -----> Discovering process types
remote: Procfile declares types -> (none)
remote: Default types for buildpack -> console, rake, web
remote:
remote: -----> Compressing...
remote: Done: 56M
remote: -----> Launching...
remote: Released v12
Here are my build logs involving the project and its deployment.
2020-05-04T02:29:18.008519+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/thor-1.0.1/lib/thor.rb:392:in `dispatch'
2020-05-04T02:29:18.008520+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.0/lib/rails/command/base.rb:65:in `perform'
2020-05-04T02:29:18.008521+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.0/lib/rails/command.rb:46:in `invoke'
2020-05-04T02:29:18.008523+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.0/lib/rails/commands.rb:18:in `<top (required)>'
2020-05-04T02:29:18.008541+00:00 app[web.1]: from bin/rails:4:in `require'
2020-05-04T02:29:18.008541+00:00 app[web.1]: from bin/rails:4:in `<main>'
2020-05-04T02:29:18.099375+00:00 heroku[web.1]: State changed from starting to crashed
2020-05-04T02:29:18.102099+00:00 heroku[web.1]: State changed from crashed to starting
2020-05-04T02:29:29.521757+00:00 app[web.1]: => Booting WEBrick
2020-05-04T02:29:29.521820+00:00 app[web.1]: => Rails 6.0.0 application starting in production http://0.0.0.0:42918
2020-05-04T02:29:29.521830+00:00 app[web.1]: => Run `rails server --help` for more startup options
2020-05-04T02:29:29.825740+00:00 app[web.1]: /app/vendor/bundle/ruby/2.7.0/gems/actionpack-6.0.0/lib/action_dispatch/middleware/stack.rb:37: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
2020-05-04T02:29:29.825785+00:00 app[web.1]: /app/vendor/bundle/ruby/2.7.0/gems/actionpack-6.0.0/lib/action_dispatch/middleware/static.rb:110: warning: The called method `initialize' is defined here
2020-05-04T02:29:30.454360+00:00 app[web.1]: Exiting
2020-05-04T02:29:30.510304+00:00 app[web.1]: /app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.0/lib/active_record/dynamic_matchers.rb:22:in `method_missing': undefined method `whitelist_attributes=' for #<Class:0x0000564b8b1c8978> (NoMethodError)
2020-05-04T02:29:30.510309+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.0/lib/active_record/railtie.rb:190:in `block (3 levels) in <class:Railtie>'
2020-05-04T02:29:30.510310+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.0/lib/active_record/railtie.rb:189:in `each'
2020-05-04T02:29:30.510312+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.0/lib/active_record/railtie.rb:189:in `block (2 levels) in <class:Railtie>'
2020-05-04T02:29:30.510334+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.0/lib/active_support/lazy_load_hooks.rb:72:in `class_eval'
2020-05-04T02:29:30.510335+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.0/lib/active_support/lazy_load_hooks.rb:72:in `block in execute_hook'
2020-05-04T02:29:30.510339+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.0/lib/active_support/lazy_load_hooks.rb:62:in `with_execution_control'
2020-05-04T02:29:30.510341+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.0/lib/active_support/lazy_load_hooks.rb:67:in `execute_hook'
2020-05-04T02:29:30.510361+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.0/lib/active_support/lazy_load_hooks.rb:52:in `block in run_load_hooks'
2020-05-04T02:29:30.510365+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.0/lib/active_support/lazy_load_hooks.rb:51:in `each'
2020-05-04T02:29:30.510367+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.0/lib/active_support/lazy_load_hooks.rb:51:in `run_load_hooks'
2020-05-04T02:29:30.510369+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.0/lib/active_record/base.rb:327:in `<module:ActiveRecord>'
2020-05-04T02:29:30.510372+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.0/lib/active_record/base.rb:27:in `<top (required)>'
2020-05-04T02:29:30.510392+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:325:in `require'
2020-05-04T02:29:30.510393+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:325:in `block in require'
2020-05-04T02:29:30.510397+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:291:in `load_dependency'
2020-05-04T02:29:30.510399+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:325:in `require'
2020-05-04T02:29:30.510421+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/activestorage-6.0.0/app/models/active_storage/attachment.rb:8:in `<top (required)>'
2020-05-04T02:29:30.510463+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:325:in `require'
2020-05-04T02:29:30.510464+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:325:in `block in require'
2020-05-04T02:29:30.510468+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:291:in `load_dependency'
2020-05-04T02:29:30.510468+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:325:in `require'
2020-05-04T02:29:30.510490+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:412:in `block in require_or_load'
2020-05-04T02:29:30.510493+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:40:in `block in load_interlock'
2020-05-04T02:29:30.510494+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.0/lib/active_support/dependencies/interlock.rb:14:in `block in loading'
2020-05-04T02:29:30.510497+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.0/lib/active_support/concurrency/share_lock.rb:151:in `exclusive'
2020-05-04T02:29:30.510516+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.0/lib/active_support/dependencies/interlock.rb:13:in `loading'
2020-05-04T02:29:30.510520+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:40:in `load_interlock'
2020-05-04T02:29:30.510520+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:390:in `require_or_load'
2020-05-04T02:29:30.510543+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:368:in `depend_on'
2020-05-04T02:29:30.510547+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:280:in `require_dependency'
2020-05-04T02:29:30.510547+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.0/lib/rails/engine.rb:480:in `block (2 levels) in eager_load!'
2020-05-04T02:29:30.510550+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.0/lib/rails/engine.rb:479:in `each'
2020-05-04T02:29:30.510570+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.0/lib/rails/engine.rb:479:in `block in eager_load!'
2020-05-04T02:29:30.510571+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.0/lib/rails/engine.rb:476:in `each'
2020-05-04T02:29:30.510574+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.0/lib/rails/engine.rb:476:in `eager_load!'
2020-05-04T02:29:30.510577+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.0/lib/rails/engine.rb:356:in `eager_load!'
2020-05-04T02:29:30.510608+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.0/lib/rails/application/finisher.rb:123:in `each'
2020-05-04T02:29:30.510660+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.0/lib/rails/application/finisher.rb:123:in `block in <module:Finisher>'
2020-05-04T02:29:30.510662+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.0/lib/rails/initializable.rb:32:in `instance_exec'
2020-05-04T02:29:30.510662+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.0/lib/rails/initializable.rb:32:in `run'
2020-05-04T02:29:30.510663+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.0/lib/rails/initializable.rb:61:in `block in run_initializers'
2020-05-04T02:29:30.510664+00:00 app[web.1]: from /app/vendor/ruby-2.7.0/lib/ruby/2.7.0/tsort.rb:228:in `block in tsort_each'
2020-05-04T02:29:30.510668+00:00 app[web.1]: from /app/vendor/ruby-2.7.0/lib/ruby/2.7.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
2020-05-04T02:29:30.510668+00:00 app[web.1]: from /app/vendor/ruby-2.7.0/lib/ruby/2.7.0/tsort.rb:431:in `each_strongly_connected_component_from'
2020-05-04T02:29:30.510669+00:00 app[web.1]: from /app/vendor/ruby-2.7.0/lib/ruby/2.7.0/tsort.rb:349:in `block in each_strongly_connected_component'
2020-05-04T02:29:30.510671+00:00 app[web.1]: from /app/vendor/ruby-2.7.0/lib/ruby/2.7.0/tsort.rb:347:in `each'
2020-05-04T02:29:30.510692+00:00 app[web.1]: from /app/vendor/ruby-2.7.0/lib/ruby/2.7.0/tsort.rb:347:in `call'
2020-05-04T02:29:30.510696+00:00 app[web.1]: from /app/vendor/ruby-2.7.0/lib/ruby/2.7.0/tsort.rb:347:in `each_strongly_connected_component'
2020-05-04T02:29:30.510697+00:00 app[web.1]: from /app/vendor/ruby-2.7.0/lib/ruby/2.7.0/tsort.rb:226:in `tsort_each'
2020-05-04T02:29:30.510699+00:00 app[web.1]: from /app/vendor/ruby-2.7.0/lib/ruby/2.7.0/tsort.rb:205:in `tsort_each'
2020-05-04T02:29:30.510719+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.0/lib/rails/initializable.rb:60:in `run_initializers'
2020-05-04T02:29:30.510723+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.0/lib/rails/application.rb:363:in `initialize!'
2020-05-04T02:29:30.510723+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.0/lib/rails/railtie.rb:190:in `public_send'
2020-05-04T02:29:30.510747+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.0/lib/rails/railtie.rb:190:in `method_missing'
2020-05-04T02:29:30.510748+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2020-05-04T02:29:30.510751+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:325:in `require'
2020-05-04T02:29:30.510754+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:325:in `block in require'
2020-05-04T02:29:30.510926+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:291:in `load_dependency'
2020-05-04T02:29:30.510931+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:325:in `require'
2020-05-04T02:29:30.510989+00:00 app[web.1]: from config.ru:3:in `block in <main>'
2020-05-04T02:29:30.510990+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/rack-2.2.2/lib/rack/builder.rb:116:in `eval'
2020-05-04T02:29:30.510994+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/rack-2.2.2/lib/rack/builder.rb:116:in `new_from_string'
2020-05-04T02:29:30.510995+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/rack-2.2.2/lib/rack/builder.rb:105:in `load_file'
2020-05-04T02:29:30.511015+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/rack-2.2.2/lib/rack/builder.rb:66:in `parse_file'
2020-05-04T02:29:30.511019+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/rack-2.2.2/lib/rack/server.rb:349:in `build_app_and_options_from_config'
2020-05-04T02:29:30.511020+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/rack-2.2.2/lib/rack/server.rb:249:in `app'
2020-05-04T02:29:30.511043+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/rack-2.2.2/lib/rack/server.rb:422:in `wrapped_app'
2020-05-04T02:29:30.511047+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/rack-2.2.2/lib/rack/server.rb:312:in `block in start'
2020-05-04T02:29:30.511047+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/rack-2.2.2/lib/rack/server.rb:379:in `handle_profiling'
2020-05-04T02:29:30.511050+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/rack-2.2.2/lib/rack/server.rb:311:in `start'
2020-05-04T02:29:30.511070+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.0/lib/rails/commands/server/server_command.rb:39:in `start'
2020-05-04T02:29:30.511074+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.0/lib/rails/commands/server/server_command.rb:147:in `block in perform'
2020-05-04T02:29:30.511074+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.0/lib/rails/commands/server/server_command.rb:138:in `tap'
2020-05-04T02:29:30.511094+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.0/lib/rails/commands/server/server_command.rb:138:in `perform'
2020-05-04T02:29:30.511097+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/command.rb:27:in `run'
2020-05-04T02:29:30.511098+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/invocation.rb:127:in `invoke_command'
2020-05-04T02:29:30.511145+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/thor-1.0.1/lib/thor.rb:392:in `dispatch'
2020-05-04T02:29:30.511150+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.0/lib/rails/command/base.rb:65:in `perform'
2020-05-04T02:29:30.511152+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.0/lib/rails/command.rb:46:in `invoke'
2020-05-04T02:29:30.511171+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.0/lib/rails/commands.rb:18:in `<top (required)>'
2020-05-04T02:29:30.511176+00:00 app[web.1]: from bin/rails:4:in `require'
2020-05-04T02:29:30.511176+00:00 app[web.1]: from bin/rails:4:in `<main>'
2020-05-04T02:29:30.613164+00:00 heroku[web.1]: State changed from starting to crashed
2020-05-04T02:29:32.384512+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=csci3352-final.herokuapp.com request_id=cdcd8464-c743-4623-b7f4-1f07dbbd5805 fwd="24.8.58.223" dyno= connect= service= status=503 bytes= protocol=https
2020-05-04T02:29:33.019120+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=csci3352-final.herokuapp.com request_id=2de17265-16a8-45fb-88a2-24180ddc8364 fwd="24.8.58.223" dyno= connect= service= status=503 bytes= protocol=https
I think it's related to whitelist_attributes
Do you try removing
config.active_record.whitelist_attributes = true
from config/application.rb ?
And remove all white_list_attributes in your model classes.
I've build a Rails 6 app using React via the newly integrated Webpacker for JS and can't seem to get over the final hurdle of deploying to Heroku. I don't quite understand the logs. I did create a Procfile to launch Puma and Webpack server. Would anyone mind looking at the logs and tell me what I might be missing? BTW, the first hurdle was getting rid of a Yarn vs NPM lockfile conflict.
Here are the logs:
2020-02-15T19:10:42.074186+00:00 app[web.1]: bundler: failed to load command: puma (/app/vendor/bundle/ruby/2.6.0/bin/puma)
2020-02-15T19:10:42.074256+00:00 app[web.1]: ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR: relation "outages" does not exist
2020-02-15T19:10:42.074256+00:00 app[web.1]: LINE 8: WHERE a.attrelid = '"outages"'::regclass
2020-02-15T19:10:42.074257+00:00 app[web.1]: ^
2020-02-15T19:10:42.074269+00:00 app[web.1]:
2020-02-15T19:10:42.074271+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.2.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:65:in `exec'
2020-02-15T19:10:42.074274+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.2.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:65:in `block (2 levels) in query'
2020-02-15T19:10:42.074274+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies/interlock.rb:48:in `block in permit_concurrent_loads'
2020-02-15T19:10:42.074275+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.2.1/lib/active_support/concurrency/share_lock.rb:187:in `yield_shares'
2020-02-15T19:10:42.074275+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies/interlock.rb:47:in `permit_concurrent_loads'
2020-02-15T19:10:42.074275+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.2.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:64:in `block in query'
2020-02-15T19:10:42.074276+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.2.1/lib/active_record/connection_adapters/abstract_adapter.rb:718:in `block (2 levels) in log'
2020-02-15T19:10:42.074276+00:00 app[web.1]: /app/vendor/ruby-2.6.3/lib/ruby/2.6.0/monitor.rb:230:in `mon_synchronize'
2020-02-15T19:10:42.074276+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.2.1/lib/active_record/connection_adapters/abstract_adapter.rb:717:in `block in log'
2020-02-15T19:10:42.074277+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.2.1/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
2020-02-15T19:10:42.074277+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.2.1/lib/active_record/connection_adapters/abstract_adapter.rb:708:in `log'
2020-02-15T19:10:42.074277+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.2.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:63:in `query'
2020-02-15T19:10:42.074277+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.2.1/lib/active_record/connection_adapters/postgresql_adapter.rb:817:in `column_definitions'
2020-02-15T19:10:42.074278+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.2.1/lib/active_record/connection_adapters/abstract/schema_statements.rb:114:in `columns'
2020-02-15T19:10:42.074278+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.2.1/lib/active_record/connection_adapters/schema_cache.rb:76:in `columns'
2020-02-15T19:10:42.074278+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.2.1/lib/active_record/connection_adapters/schema_cache.rb:82:in `columns_hash'
2020-02-15T19:10:42.074278+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.2.1/lib/active_record/model_schema.rb:490:in `load_schema!'
2020-02-15T19:10:42.074279+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.2.1/lib/active_record/attributes.rb:247:in `load_schema!'
2020-02-15T19:10:42.074279+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.2.1/lib/active_record/attribute_decorators.rb:51:in `load_schema!'
2020-02-15T19:10:42.074279+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.2.1/lib/active_record/model_schema.rb:480:in `block in load_schema'
2020-02-15T19:10:42.074279+00:00 app[web.1]: /app/vendor/ruby-2.6.3/lib/ruby/2.6.0/monitor.rb:230:in `mon_synchronize'
2020-02-15T19:10:42.074280+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.2.1/lib/active_record/model_schema.rb:477:in `load_schema'
2020-02-15T19:10:42.074280+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.2.1/lib/active_record/model_schema.rb:352:in `columns_hash'
2020-02-15T19:10:42.074280+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.2.1/lib/active_record/relation/query_methods.rb:1216:in `arel_column'
2020-02-15T19:10:42.074280+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.2.1/lib/active_record/relation/query_methods.rb:1203:in `block in arel_columns'
2020-02-15T19:10:42.074280+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.2.1/lib/active_record/relation/query_methods.rb:1196:in `each'
2020-02-15T19:10:42.074280+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.2.1/lib/active_record/relation/query_methods.rb:1196:in `flat_map'
2020-02-15T19:10:42.074281+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.2.1/lib/active_record/relation/query_methods.rb:1196:in `arel_columns'
2020-02-15T19:10:42.074281+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.2.1/lib/active_record/relation/query_methods.rb:1187:in `build_select'
2020-02-15T19:10:42.074281+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.2.1/lib/active_record/relation/query_methods.rb:1071:in `build_arel'
2020-02-15T19:10:42.074284+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.2.1/lib/active_record/relation/query_methods.rb:1016:in `arel'
2020-02-15T19:10:42.074284+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.2.1/lib/active_record/relation/finder_methods.rb:317:in `block in exists?'
2020-02-15T19:10:42.074284+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.2.1/lib/active_record/relation.rb:828:in `skip_query_cache_if_necessary'
2020-02-15T19:10:42.074284+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.2.1/lib/active_record/relation/finder_methods.rb:317:in `exists?'
2020-02-15T19:10:42.074285+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.2.1/lib/active_record/querying.rb:21:in `exists?'
2020-02-15T19:10:42.074285+00:00 app[web.1]: /app/app/controllers/application_controller.rb:3:in `<class:ApplicationController>'
2020-02-15T19:10:42.074285+00:00 app[web.1]: /app/app/controllers/application_controller.rb:1:in `<main>'
2020-02-15T19:10:42.074285+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
2020-02-15T19:10:42.074285+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
2020-02-15T19:10:42.074286+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
2020-02-15T19:10:42.074286+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
2020-02-15T19:10:42.074286+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
2020-02-15T19:10:42.074286+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.2.2/lib/zeitwerk/kernel.rb:16:in `require'
2020-02-15T19:10:42.074287+00:00 app[web.1]: /app/app/controllers/dashboard_controller.rb:1:in `<main>'
2020-02-15T19:10:42.074287+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
2020-02-15T19:10:42.074287+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
2020-02-15T19:10:42.074287+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
2020-02-15T19:10:42.074287+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
2020-02-15T19:10:42.074288+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
2020-02-15T19:10:42.074288+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.2.2/lib/zeitwerk/kernel.rb:16:in `require'
2020-02-15T19:10:42.074288+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.2.2/lib/zeitwerk/loader.rb:351:in `const_get'
2020-02-15T19:10:42.074288+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.2.2/lib/zeitwerk/loader.rb:351:in `block (2 levels) in eager_load'
2020-02-15T19:10:42.074289+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.2.2/lib/zeitwerk/loader.rb:685:in `block in ls'
2020-02-15T19:10:42.074289+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.2.2/lib/zeitwerk/loader.rb:682:in `foreach'
2020-02-15T19:10:42.074289+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.2.2/lib/zeitwerk/loader.rb:682:in `ls'
2020-02-15T19:10:42.074289+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.2.2/lib/zeitwerk/loader.rb:346:in `block in eager_load'
2020-02-15T19:10:42.074289+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.2.2/lib/zeitwerk/loader.rb:338:in `synchronize'
2020-02-15T19:10:42.074289+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.2.2/lib/zeitwerk/loader.rb:338:in `eager_load'
2020-02-15T19:10:42.074290+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.2.2/lib/zeitwerk/loader.rb:449:in `each'
2020-02-15T19:10:42.074290+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.2.2/lib/zeitwerk/loader.rb:449:in `eager_load_all'
2020-02-15T19:10:42.074290+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/railties-6.0.2.1/lib/rails/application/finisher.rb:122:in `block in <module:Finisher>'
2020-02-15T19:10:42.074290+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/railties-6.0.2.1/lib/rails/initializable.rb:32:in `instance_exec'
2020-02-15T19:10:42.074291+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/railties-6.0.2.1/lib/rails/initializable.rb:32:in `run'
2020-02-15T19:10:42.074291+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/railties-6.0.2.1/lib/rails/initializable.rb:61:in `block in run_initializers'
2020-02-15T19:10:42.074291+00:00 app[web.1]: /app/vendor/ruby-2.6.3/lib/ruby/2.6.0/tsort.rb:228:in `block in tsort_each'
2020-02-15T19:10:42.074291+00:00 app[web.1]: /app/vendor/ruby-2.6.3/lib/ruby/2.6.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
2020-02-15T19:10:42.074291+00:00 app[web.1]: /app/vendor/ruby-2.6.3/lib/ruby/2.6.0/tsort.rb:431:in `each_strongly_connected_component_from'
2020-02-15T19:10:42.074294+00:00 app[web.1]: /app/vendor/ruby-2.6.3/lib/ruby/2.6.0/tsort.rb:349:in `block in each_strongly_connected_component'
2020-02-15T19:10:42.074294+00:00 app[web.1]: /app/vendor/ruby-2.6.3/lib/ruby/2.6.0/tsort.rb:347:in `each'
2020-02-15T19:10:42.074294+00:00 app[web.1]: /app/vendor/ruby-2.6.3/lib/ruby/2.6.0/tsort.rb:347:in `call'
2020-02-15T19:10:42.074295+00:00 app[web.1]: /app/vendor/ruby-2.6.3/lib/ruby/2.6.0/tsort.rb:347:in `each_strongly_connected_component'
2020-02-15T19:10:42.074295+00:00 app[web.1]: /app/vendor/ruby-2.6.3/lib/ruby/2.6.0/tsort.rb:226:in `tsort_each'
2020-02-15T19:10:42.074295+00:00 app[web.1]: /app/vendor/ruby-2.6.3/lib/ruby/2.6.0/tsort.rb:205:in `tsort_each'
2020-02-15T19:10:42.074295+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/railties-6.0.2.1/lib/rails/initializable.rb:60:in `run_initializers'
2020-02-15T19:10:42.074296+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/railties-6.0.2.1/lib/rails/application.rb:363:in `initialize!'
2020-02-15T19:10:42.074296+00:00 app[web.1]: /app/config/environment.rb:5:in `<top (required)>'
2020-02-15T19:10:42.074297+00:00 app[web.1]: config.ru:3:in `require_relative'
2020-02-15T19:10:42.074297+00:00 app[web.1]: config.ru:3:in `block in <main>'
2020-02-15T19:10:42.074315+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.2/lib/rack/builder.rb:116:in `eval'
2020-02-15T19:10:42.074316+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.2/lib/rack/builder.rb:116:in `new_from_string'
2020-02-15T19:10:42.074316+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.2/lib/rack/builder.rb:105:in `load_file'
2020-02-15T19:10:42.074316+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.2/lib/rack/builder.rb:66:in `parse_file'
2020-02-15T19:10:42.074316+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-4.3.1/lib/puma/configuration.rb:321:in `load_rackup'
2020-02-15T19:10:42.074317+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-4.3.1/lib/puma/configuration.rb:246:in `app'
2020-02-15T19:10:42.074317+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-4.3.1/lib/puma/runner.rb:155:in `load_and_bind'
2020-02-15T19:10:42.074317+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-4.3.1/lib/puma/single.rb:98:in `run'
2020-02-15T19:10:42.074317+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-4.3.1/lib/puma/launcher.rb:172:in `run'
2020-02-15T19:10:42.074318+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-4.3.1/lib/puma/cli.rb:80:in `run'
2020-02-15T19:10:42.074318+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-4.3.1/bin/puma:10:in `<top (required)>'
2020-02-15T19:10:42.074318+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/bin/puma:23:in `load'
2020-02-15T19:10:42.074318+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/bin/puma:23:in `<top (required)>'
2020-02-15T19:10:42.174683+00:00 heroku[web.1]: State changed from starting to crashed
2020-02-15T19:10:42.158245+00:00 heroku[web.1]: Process exited with status 1
2020-02-15T19:10:43.902737+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=tml-dashboard.herokuapp.com request_id=c6f9e222-b62f-47e2-b5eb-5befc8af9ad2 fwd="68.194.85.143" dyno= connect= service= status=503 bytes= protocol=https
2020-02-15T19:10:45.661172+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=tml-dashboard.herokuapp.com request_id=25660d39-0184-411c-8e94-d54fcbd0d7b3 fwd="68.194.85.143" dyno= connect= service= status=503 bytes= protocol=https
Looks like you weren't run rails db:migrate after you deployed your app. Unfortunately / fortunately Heroku doesn't run migrations after deploy.
As fast fix: you can run heroku bash(you can do it in a few ways):
$heroku run bash --app your_application_name
Through GUI of Heroku
and just run it manually: rails db:migrate
To avoid it in future you can add to your Procfile release phase
where you can just set what you want to do after deploy
# Procfile
release: rake db:migrate
Your error is actually
ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR: relation "outages" does not exist
So it looks like you never ran migrations
heroku run rake db:migrate
or, if you have multiple environments, then add the flag for that env
heroku run rake db:migrate --remote production
or whatever the environment is called.
Everything was fine with my Heroku app deployment for the duration of my following the rails tutorial on railstutorial.org/ by Michael Hartl until I got to chapter 13 (Microposts). I meticulously followed the guides. However, on app deployment, I get this error
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.
I have reset the database, run migrate and seed several times over as suggested by solutions offered to similar issues and yet with no luck. Here is the log file sample:
2018-05-18T22:14:48.676937+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 10900 -e production`
2018-05-18T22:14:54.060567+00:00 heroku[web.1]: State changed from starting to crashed
2018-05-18T22:14:53.960648+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:78:in `eval': uninitialized constant CarrierWave::Storage::Fog (NameError)
2018-05-18T22:14:53.960656+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:78:in `eval'
2018-05-18T22:14:53.960657+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:78:in `storage'
2018-05-18T22:14:53.960661+00:00 app[web.1]: from /app/app/uploaders/picture_uploader.rb:8:in `<class:PictureUploader>'
2018-05-18T22:14:53.960662+00:00 app[web.1]: from /app/app/uploaders/picture_uploader.rb:1:in `<top (required)>'
2018-05-18T22:14:53.960664+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies/interlock.rb:12:in `block in loading'
2018-05-18T22:14:53.960665+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/concurrency/share_lock.rb:149:in `exclusive'
2018-05-18T22:14:53.960666+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies/interlock.rb:11:in `loading'
2018-05-18T22:14:53.960668+00:00 app[web.1]: from /app/app/models/micropost.rb:4:in `<class:Micropost>'
2018-05-18T22:14:53.960669+00:00 app[web.1]: from /app/app/models/micropost.rb:1:in `<top (required)>'
2018-05-18T22:14:53.960670+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies/interlock.rb:12:in `block in loading'
2018-05-18T22:14:53.960709+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/concurrency/share_lock.rb:149:in `exclusive'
2018-05-18T22:14:53.960763+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies/interlock.rb:11:in `loading'
2018-05-18T22:14:53.960765+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/engine.rb:476:in `block (2 levels) in eager_load!'
2018-05-18T22:14:53.960767+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/engine.rb:475:in `each'
2018-05-18T22:14:53.960769+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/engine.rb:475:in `block in eager_load!'
2018-05-18T22:14:53.960854+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/engine.rb:473:in `each'
2018-05-18T22:14:53.960857+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/engine.rb:473:in `eager_load!'
2018-05-18T22:14:53.960858+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/engine.rb:354:in `eager_load!'
2018-05-18T22:14:53.960860+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/application/finisher.rb:67:in `each'
2018-05-18T22:14:53.960861+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/application/finisher.rb:67:in `block in <module:Finisher>'
2018-05-18T22:14:53.960867+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/initializable.rb:30:in `instance_exec'
2018-05-18T22:14:53.960868+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/initializable.rb:30:in `run'
2018-05-18T22:14:53.960870+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/initializable.rb:59:in `block in run_initializers'
2018-05-18T22:14:53.960871+00:00 app[web.1]: from /app/vendor/ruby-2.3.7/lib/ruby/2.3.0/tsort.rb:228:in `block in tsort_each'
2018-05-18T22:14:53.960873+00:00 app[web.1]: from /app/vendor/ruby-2.3.7/lib/ruby/2.3.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
2018-05-18T22:14:53.960874+00:00 app[web.1]: from /app/vendor/ruby-2.3.7/lib/ruby/2.3.0/tsort.rb:431:in `each_strongly_connected_component_from'
2018-05-18T22:14:53.960876+00:00 app[web.1]: from /app/vendor/ruby-2.3.7/lib/ruby/2.3.0/tsort.rb:349:in `block in each_strongly_connected_component'
2018-05-18T22:14:53.960877+00:00 app[web.1]: from /app/vendor/ruby-2.3.7/lib/ruby/2.3.0/tsort.rb:347:in `each'
2018-05-18T22:14:53.960881+00:00 app[web.1]: from /app/vendor/ruby-2.3.7/lib/ruby/2.3.0/tsort.rb:347:in `call'
2018-05-18T22:14:53.960883+00:00 app[web.1]: from /app/vendor/ruby-2.3.7/lib/ruby/2.3.0/tsort.rb:347:in `each_strongly_connected_component'
2018-05-18T22:14:53.960884+00:00 app[web.1]: from /app/vendor/ruby-2.3.7/lib/ruby/2.3.0/tsort.rb:226:in `tsort_each'
2018-05-18T22:14:53.960887+00:00 app[web.1]: from /app/vendor/ruby-2.3.7/lib/ruby/2.3.0/tsort.rb:205:in `tsort_each'
2018-05-18T22:14:53.960888+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/initializable.rb:58:in `run_initializers'
2018-05-18T22:14:53.960889+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/application.rb:353:in `initialize!'
2018-05-18T22:14:53.960892+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2018-05-18T22:14:53.960893+00:00 app[web.1]: from config.ru:3:in `require_relative'
2018-05-18T22:14:53.960894+00:00 app[web.1]: from config.ru:3:in `block in <main>'
2018-05-18T22:14:53.960897+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.5/lib/rack/builder.rb:55:in `instance_eval'
2018-05-18T22:14:53.960898+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.5/lib/rack/builder.rb:55:in `initialize'
2018-05-18T22:14:53.960900+00:00 app[web.1]: from config.ru:in `new'
2018-05-18T22:14:53.960901+00:00 app[web.1]: from config.ru:in `<main>'
2018-05-18T22:14:53.960904+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.5/lib/rack/builder.rb:49:in `eval'
2018-05-18T22:14:53.960905+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.5/lib/rack/builder.rb:49:in `new_from_string'
2018-05-18T22:14:53.960907+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.5/lib/rack/builder.rb:40:in `parse_file'
2018-05-18T22:14:53.960908+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.5/lib/rack/server.rb:319:in `build_app_and_options_from_config'
2018-05-18T22:14:53.960911+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.5/lib/rack/server.rb:219:in `app'
2018-05-18T22:14:53.960913+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:24:in `app'
2018-05-18T22:14:53.960914+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.5/lib/rack/server.rb:354:in `wrapped_app'
2018-05-18T22:14:53.960917+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.5/lib/rack/server.rb:283:in `start'
2018-05-18T22:14:53.960919+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:44:in `start'
2018-05-18T22:14:53.960920+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:135:in `block in perform'
2018-05-18T22:14:53.960922+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:130:in `tap'
2018-05-18T22:14:53.960924+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:130:in `perform'
2018-05-18T22:14:53.960926+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/thor-0.20.0/lib/thor/command.rb:27:in `run'
2018-05-18T22:14:53.960928+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/thor-0.20.0/lib/thor/invocation.rb:126:in `invoke_command'
2018-05-18T22:14:53.960935+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/thor-0.20.0/lib/thor.rb:387:in `dispatch'
2018-05-18T22:14:53.960938+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/command/base.rb:63:in `perform'
2018-05-18T22:14:53.960939+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/command.rb:44:in `invoke'
2018-05-18T22:14:53.960941+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/commands.rb:16:in `<top (required)>'
2018-05-18T22:14:53.960944+00:00 app[web.1]: from bin/rails:9:in `require'
2018-05-18T22:14:53.960945+00:00 app[web.1]: from bin/rails:9:in `<main>'
2018-05-18T22:14:53.970120+00:00 app[web.1]: => Booting Puma
2018-05-18T22:14:53.970122+00:00 app[web.1]: => Rails 5.1.4 application starting in production
2018-05-18T22:14:53.970124+00:00 app[web.1]: => Run `rails server -h` for more startup options
2018-05-18T22:14:53.970125+00:00 app[web.1]: Exiting
2018-05-18T22:14:54.042883+00:00 heroku[web.1]: Process exited with status 1
2018-05-18T22:15:16.572035+00:00 heroku[web.1]: State changed from crashed to starting
2018-05-18T22:37:55.303199+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=stark-lowlands-20410.herokuapp.com request_id=0c17f93e-2b8d-4836-9918-d6cb6300c67f fwd="137.50.176.88" dyno= connect= service= status=503 bytes= protocol=https
2018-05-18T22:38:01.314179+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=stark-lowlands-20410.herokuapp.com request_id=ace627d1-ff26-4003-8e42-119c266420b8 fwd="137.50.176.88" dyno= connect= service= status=503 bytes= protocol=https
Somehow I think it has something to do with the image resize code here (initializers/skip_image_resizing.rb):
if Rails.env.test?
CarrierWave.configure do |config|
config.enable_processing = false
end
end
Any ideas?
I am new to ruby and rails, i am creating an application, i have implemented some code and try to upload it to Heroku. Code has been deployed but when i try to visit the page it shows the Application Error page.
I see the following in my logs:
2014-09-04T14:42:50.478707+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/commands.rb:55:in `block in <top (required)>'
2014-09-04T14:42:50.478419+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2014-09-04T14:42:50.478452+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:251:in `block in require'
2014-09-04T14:42:50.478575+00:00 app[web.1]: from /app/config.ru:in `<main>'
2014-09-04T14:42:50.478540+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'
2014-09-04T14:42:50.478691+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/commands/server.rb:70:in `start'
2014-09-04T14:42:50.478154+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:359:in `require_or_load'
2014-09-04T14:42:50.478505+00:00 app[web.1]: from /app/config.ru:3:in `block in <main>'
2014-09-04T14:42:50.478625+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:200:in `app'
2014-09-04T14:42:50.478402+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/railtie/configurable.rb:30:in `method_missing'
2014-09-04T14:42:50.478469+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:236:in `load_dependency'
2014-09-04T14:42:50.478522+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'
2014-09-04T14:42:50.478674+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:254:in `start'
2014-09-04T14:42:50.478723+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/commands.rb:50:in `tap'
2014-09-04T14:42:50.473154+00:00 app[web.1]: => Call with -d to detach
2014-09-04T14:42:50.473153+00:00 app[web.1]: => Rails 3.2.19 application starting in production on
2014-09-04T14:42:50.476663+00:00 app[web.1]: Exiting
2014-09-04T14:42:50.478740+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/commands.rb:50:in `<top (required)>'
2014-09-04T14:42:50.478756+00:00 app[web.1]: from script/rails:6:in `require'
2014-09-04T14:42:50.478772+00:00 app[web.1]: from script/rails:6:in `<main>'
2014-09-04T14:42:51.726468+00:00 heroku[web.1]: State changed from starting to crashed
2014-09-04T14:42:51.719828+00:00 heroku[web.1]: Process exited with status 1
2014-09-05T04:56:06.809647+00:00 heroku[web.1]: State changed from crashed to starting
2014-09-05T04:56:14.406322+00:00 heroku[web.1]: Starting process with command `bundle exec rails server thin -p 50156 -e production`
2014-09-05T04:56:15.594411+00:00 app[web.1]: Your Gemfile lists the gem pg (>= 0) more than once.
2014-09-05T04:56:15.594425+00:00 app[web.1]: You should probably keep only one of them.
2014-09-05T04:56:15.594427+00:00 app[web.1]: While it's not a problem now, it could cause errors if you change the version of just one of them later.
2014-09-05T04:56:18.552965+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
2014-09-05T04:56:18.553754+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
2014-09-05T04:56:19.550825+00:00 app[web.1]: [deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
2014-09-05T04:56:21.017207+00:00 app[web.1]: => Booting Thin
2014-09-05T04:56:21.017215+00:00 app[web.1]: => Ctrl-C to shutdown server
2014-09-05T04:56:21.017212+00:00 app[web.1]: => Rails 3.2.19 application starting in production on "http://:50156"
2014-09-05T04:56:21.017217+00:00 app[web.1]: Exiting
2014-09-05T04:56:21.018178+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:251:in `require': /app/app/models/contact.rb:4: syntax error, unexpected keyword_end (SyntaxError)
2014-09-05T04:56:21.018191+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:359:in `require_or_load'
2014-09-05T04:56:21.017214+00:00 app[web.1]: => Call with -d to detach
2014-09-05T04:56:21.018195+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:502:in `load_missing_constant'
2014-09-05T04:56:21.018197+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:192:in `block in const_missing'
2014-09-05T04:56:21.018183+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:251:in `block in require'
2014-09-05T04:56:21.018226+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.19/lib/action_controller/metal/params_wrapper.rb:169:in `_set_wrapper_defaults'
2014-09-05T04:56:21.018200+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:190:in `each'
2014-09-05T04:56:21.018205+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/inflector/methods.rb:230:in `block in constantize'
2014-09-05T04:56:21.018209+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/inflector/methods.rb:229:in `each'
2014-09-05T04:56:21.018212+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/inflector/methods.rb:229:in `constantize'
2014-09-05T04:56:21.018239+00:00 app[web.1]: from /app/app/controllers/contacts_controller.rb:1:in `<top (required)>'
2014-09-05T04:56:21.018185+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:236:in `load_dependency'
2014-09-05T04:56:21.018251+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:251:in `require'
2014-09-05T04:56:21.018219+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/core_ext/string/inflections.rb:66:in `safe_constantize'
2014-09-05T04:56:21.018234+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.19/lib/abstract_controller/railties/routes_helpers.rb:7:in `block (2 levels) in with'
2014-09-05T04:56:21.018230+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.19/lib/action_controller/metal/params_wrapper.rb:133:in `inherited'
2014-09-05T04:56:21.018223+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.19/lib/action_controller/metal/params_wrapper.rb:152:in `_default_wrap_model'
2014-09-05T04:56:21.018237+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.19/lib/action_controller/railties/paths.rb:7:in `block (2 levels) in with'
2014-09-05T04:56:21.018242+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:251:in `require'
2014-09-05T04:56:21.018287+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/initializable.rb:30:in `instance_exec'
2014-09-05T04:56:21.018260+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:225:in `require_dependency'
2014-09-05T04:56:21.018289+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/initializable.rb:30:in `run'
2014-09-05T04:56:21.018216+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/inflector/methods.rb:260:in `safe_constantize'
2014-09-05T04:56:21.018265+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/engine.rb:443:in `each'
2014-09-05T04:56:21.018254+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:359:in `require_or_load'
2014-09-05T04:56:21.018290+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/initializable.rb:55:in `block in run_initializers'
2014-09-05T04:56:21.018306+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:251:in `block in require'
2014-09-05T04:56:21.018189+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:251:in `require'
2014-09-05T04:56:21.018201+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:190:in `const_missing'
2014-09-05T04:56:21.018263+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/engine.rb:444:in `block (2 levels) in eager_load!'
2014-09-05T04:56:21.018298+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/application.rb:136:in `initialize!'
2014-09-05T04:56:21.018319+00:00 app[web.1]: from /app/config.ru:in `new'
2014-09-05T04:56:21.018344+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/commands.rb:50:in `tap'
2014-09-05T04:56:21.018269+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/engine.rb:443:in `block in eager_load!'
2014-09-05T04:56:21.018286+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/application/finisher.rb:53:in `block in <module:Finisher>'
2014-09-05T04:56:21.018314+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'
2014-09-05T04:56:21.018246+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:251:in `block in require'
2014-09-05T04:56:21.018280+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/engine.rb:441:in `each'
2014-09-05T04:56:21.018299+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/railtie/configurable.rb:30:in `method_missing'
2014-09-05T04:56:21.018322+00:00 app[web.1]: from /app/config.ru:in `<main>'
2014-09-05T04:56:21.018247+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:236:in `load_dependency'
2014-09-05T04:56:21.018285+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/engine.rb:441:in `eager_load!'
2014-09-05T04:56:21.018312+00:00 app[web.1]: from /app/config.ru:3:in `block in <main>'
2014-09-05T04:56:21.018304+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:251:in `require'
2014-09-05T04:56:21.018327+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:40:in `parse_file'
2014-09-05T04:56:21.018301+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2014-09-05T04:56:21.018324+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:40:in `eval'
2014-09-05T04:56:21.018346+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/commands.rb:50:in `<top (required)>'
2014-09-05T04:56:21.018311+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:251:in `require'
2014-09-05T04:56:21.018333+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:304:in `wrapped_app'
2014-09-05T04:56:21.018352+00:00 app[web.1]: from script/rails:6:in `<main>'
2014-09-05T04:56:21.018328+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:200:in `app'
2014-09-05T04:56:21.018256+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:313:in `depend_on'
2014-09-05T04:56:21.018296+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/initializable.rb:54:in `run_initializers'
2014-09-05T04:56:21.018317+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'
2014-09-05T04:56:21.018341+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/commands.rb:55:in `block in <top (required)>'
2014-09-05T04:56:21.018292+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/initializable.rb:54:in `each'
2014-09-05T04:56:21.018307+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:236:in `load_dependency'
2014-09-05T04:56:21.018331+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/commands/server.rb:46:in `app'
2014-09-05T04:56:21.018337+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/commands/server.rb:70:in `start'
2014-09-05T04:56:21.018336+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:254:in `start'
2014-09-05T04:56:21.018349+00:00 app[web.1]: from script/rails:6:in `require'
2014-09-05T04:56:21.807475+00:00 heroku[web.1]: Process exited with status 1
2014-09-05T04:56:21.819265+00:00 heroku[web.1]: State changed from starting to crashed
2014-09-05T12:38:06.227862+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=blooming-mountain-5811.herokuapp.com request_id=a661a3b1-2ce0-4aaa-b5d4-339ba724f759 fwd="94.201.235.75" dyno= connect= service= status=503 bytes=
2014-09-05T12:38:07.175574+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=blooming-mountain-5811.herokuapp.com request_id=c9faaccc-2ea4-4977-affe-7ad78b293e30 fwd="94.201.235.75" dyno= connect= service= status=503 bytes=
A couple of things:
2014-09-05T04:56:15.594411+00:00 app[web.1]: Your Gemfile lists the gem pg (>= 0) more than once.
2014-09-05T04:56:15.594425+00:00 app[web.1]: You should probably keep only one of them.
You need to remove the duplicate mention of the pg gem from your Gemfile. I don't know precisely how to do this for your Gemfile because I can't see it. You're the boss here.
Next, as the comments have mentioned, your Contact model has a syntax error. You need to fix this.