How to fixed undefined method error in Rails + Heroku - ruby-on-rails

My code + site were previously working and with 0 code changes I started to get this error message in my Heroku logs when trying to query the database:
(erb):19:in `<main>': undefined method `[]' for nil:NilClass (NoMethodError).
I'm not sure where to look for this error because it isn't telling me where to look or what file the error is happening in. If anyone has any advice it would be much appreciated!
I have posted the full logs for reference, the app seems to be crashing right away because of this. I am running a Rails server using Postgres with a React front end.
2019-05-16T03:18:48.031948+00:00 app[web.1]: => Booting Puma
2019-05-16T03:18:48.031951+00:00 app[web.1]: => Rails 5.2.3 application starting in production
2019-05-16T03:18:48.031953+00:00 app[web.1]: => Run `rails server -h` for more startup options
2019-05-16T03:18:48.031954+00:00 app[web.1]: Exiting
2019-05-16T03:18:51.847816+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 44489 -e production`
2019-05-16T03:18:57.042441+00:00 heroku[web.1]: State changed from starting to crashed
2019-05-16T03:18:56.943508+00:00 app[web.1]: (erb):19:in `<main>': undefined method `[]' for nil:NilClass (NoMethodError)
2019-05-16T03:18:56.943566+00:00 app[web.1]: from /app/vendor/ruby-2.6.1/lib/ruby/2.6.0/erb.rb:901:in `eval'
2019-05-16T03:18:56.943592+00:00 app[web.1]: from /app/vendor/ruby-2.6.1/lib/ruby/2.6.0/erb.rb:901:in `result'
2019-05-16T03:18:56.943624+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activestorage-5.2.3/lib/active_storage/engine.rb:95:in `block (2 levels) in <class:Engine>'
2019-05-16T03:18:56.943660+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/lazy_load_hooks.rb:71:in `instance_eval'
2019-05-16T03:18:56.943682+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/lazy_load_hooks.rb:71:in `block in execute_hook'
2019-05-16T03:18:56.943701+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/lazy_load_hooks.rb:62:in `with_execution_control'
2019-05-16T03:18:56.943720+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/lazy_load_hooks.rb:67:in `execute_hook'
2019-05-16T03:18:56.943741+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/lazy_load_hooks.rb:52:in `block in run_load_hooks'
2019-05-16T03:18:56.943772+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/lazy_load_hooks.rb:51:in `each'
2019-05-16T03:18:56.943792+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/lazy_load_hooks.rb:51:in `run_load_hooks'
2019-05-16T03:18:56.943811+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activestorage-5.2.3/app/models/active_storage/blob.rb:235:in `<class:Blob>'
2019-05-16T03:18:56.943834+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activestorage-5.2.3/app/models/active_storage/blob.rb:16:in `<main>'
2019-05-16T03:18:56.943858+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
2019-05-16T03:18:56.943892+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
2019-05-16T03:18:56.943916+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
2019-05-16T03:18:56.943941+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
2019-05-16T03:18:56.943966+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
2019-05-16T03:18:56.944003+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `block in require'
2019-05-16T03:18:56.944006+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in `load_dependency'
2019-05-16T03:18:56.944007+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `require'
2019-05-16T03:18:56.944012+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:378:in `block in require_or_load'
2019-05-16T03:18:56.944014+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:37:in `block in load_interlock'
2019-05-16T03:18:56.944015+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies/interlock.rb:14:in `block in loading'
2019-05-16T03:18:56.944019+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/concurrency/share_lock.rb:151:in `exclusive'
2019-05-16T03:18:56.944021+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies/interlock.rb:13:in `loading'
2019-05-16T03:18:56.944024+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:37:in `load_interlock'
2019-05-16T03:18:56.944028+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:356:in `require_or_load'
2019-05-16T03:18:56.944031+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/active_support.rb:48:in `block in require_or_load'
2019-05-16T03:18:56.944035+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/active_support.rb:16:in `allow_bootsnap_retry'
2019-05-16T03:18:56.944038+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/active_support.rb:47:in `require_or_load'
2019-05-16T03:18:56.944041+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:334:in `depend_on'
2019-05-16T03:18:56.944083+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/active_support.rb:85:in `depend_on'
2019-05-16T03:18:56.944102+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:246:in `require_dependency'
2019-05-16T03:18:56.944107+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/engine.rb:478:in `block (2 levels) in eager_load!'
2019-05-16T03:18:56.944118+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/engine.rb:477:in `each'
2019-05-16T03:18:56.944120+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/engine.rb:477:in `block in eager_load!'
2019-05-16T03:18:56.944122+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/engine.rb:475:in `each'
2019-05-16T03:18:56.944123+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/engine.rb:475:in `eager_load!'
2019-05-16T03:18:56.944125+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/engine.rb:356:in `eager_load!'
2019-05-16T03:18:56.944126+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/application/finisher.rb:69:in `each'
2019-05-16T03:18:56.944128+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/application/finisher.rb:69:in `block in <module:Finisher>'
2019-05-16T03:18:56.944129+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/initializable.rb:32:in `instance_exec'
2019-05-16T03:18:56.944131+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/initializable.rb:32:in `run'
2019-05-16T03:18:56.944135+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/initializable.rb:61:in `block in run_initializers'
2019-05-16T03:18:56.944137+00:00 app[web.1]: from /app/vendor/ruby-2.6.1/lib/ruby/2.6.0/tsort.rb:228:in `block in tsort_each'
2019-05-16T03:18:56.944138+00:00 app[web.1]: from /app/vendor/ruby-2.6.1/lib/ruby/2.6.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
2019-05-16T03:18:56.944140+00:00 app[web.1]: from /app/vendor/ruby-2.6.1/lib/ruby/2.6.0/tsort.rb:431:in `each_strongly_connected_component_from'
2019-05-16T03:18:56.944142+00:00 app[web.1]: from /app/vendor/ruby-2.6.1/lib/ruby/2.6.0/tsort.rb:349:in `block in each_strongly_connected_component'
2019-05-16T03:18:56.944143+00:00 app[web.1]: from /app/vendor/ruby-2.6.1/lib/ruby/2.6.0/tsort.rb:347:in `each'
2019-05-16T03:18:56.944145+00:00 app[web.1]: from /app/vendor/ruby-2.6.1/lib/ruby/2.6.0/tsort.rb:347:in `call'
2019-05-16T03:18:56.944146+00:00 app[web.1]: from /app/vendor/ruby-2.6.1/lib/ruby/2.6.0/tsort.rb:347:in `each_strongly_connected_component'
2019-05-16T03:18:56.944150+00:00 app[web.1]: from /app/vendor/ruby-2.6.1/lib/ruby/2.6.0/tsort.rb:226:in `tsort_each'
2019-05-16T03:18:56.944151+00:00 app[web.1]: from /app/vendor/ruby-2.6.1/lib/ruby/2.6.0/tsort.rb:205:in `tsort_each'
2019-05-16T03:18:56.944153+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/initializable.rb:60:in `run_initializers'
2019-05-16T03:18:56.944154+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/application.rb:361:in `initialize!'
2019-05-16T03:18:56.944158+00:00 app[web.1]: from /app/config/environment.rb:5:in `<main>'
2019-05-16T03:18:56.944160+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
2019-05-16T03:18:56.944164+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
2019-05-16T03:18:56.944167+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
2019-05-16T03:18:56.944171+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
2019-05-16T03:18:56.944174+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
2019-05-16T03:18:56.944178+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `block in require'
2019-05-16T03:18:56.944181+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in `load_dependency'
2019-05-16T03:18:56.944184+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `require'
2019-05-16T03:18:56.944213+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:48:in `require_relative'
2019-05-16T03:18:56.944215+00:00 app[web.1]: from config.ru:3:in `block in <main>'
2019-05-16T03:18:56.944220+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/rack-2.0.7/lib/rack/builder.rb:55:in `instance_eval'
2019-05-16T03:18:56.944221+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/rack-2.0.7/lib/rack/builder.rb:55:in `initialize'
2019-05-16T03:18:56.944223+00:00 app[web.1]: from config.ru:in `new'
2019-05-16T03:18:56.944227+00:00 app[web.1]: from config.ru:in `<main>'
2019-05-16T03:18:56.944229+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/rack-2.0.7/lib/rack/builder.rb:49:in `eval'
2019-05-16T03:18:56.944232+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/rack-2.0.7/lib/rack/builder.rb:49:in `new_from_string'
2019-05-16T03:18:56.944235+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/rack-2.0.7/lib/rack/builder.rb:40:in `parse_file'
2019-05-16T03:18:56.944239+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/rack-2.0.7/lib/rack/server.rb:319:in `build_app_and_options_from_config'
2019-05-16T03:18:56.944268+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/rack-2.0.7/lib/rack/server.rb:219:in `app'
2019-05-16T03:18:56.944270+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/commands/server/server_command.rb:27:in `app'
2019-05-16T03:18:56.944272+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/rack-2.0.7/lib/rack/server.rb:354:in `wrapped_app'
2019-05-16T03:18:56.944273+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/rack-2.0.7/lib/rack/server.rb:283:in `start'
2019-05-16T03:18:56.944275+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/commands/server/server_command.rb:53:in `start'
2019-05-16T03:18:56.944276+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/commands/server/server_command.rb:147:in `block in perform'
2019-05-16T03:18:56.944280+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/commands/server/server_command.rb:142:in `tap'
2019-05-16T03:18:56.944282+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/commands/server/server_command.rb:142:in `perform'
2019-05-16T03:18:56.944283+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
2019-05-16T03:18:56.944285+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
2019-05-16T03:18:56.944288+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
2019-05-16T03:18:56.944294+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/command/base.rb:65:in `perform'
2019-05-16T03:18:56.944298+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/command.rb:46:in `invoke'
2019-05-16T03:18:56.944300+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/commands.rb:18:in `<main>'
2019-05-16T03:18:56.944306+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
2019-05-16T03:18:56.944310+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
2019-05-16T03:18:56.944312+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
2019-05-16T03:18:56.944316+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
2019-05-16T03:18:56.944319+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
2019-05-16T03:18:56.944322+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `block in require'
2019-05-16T03:18:56.944326+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in `load_dependency'
2019-05-16T03:18:56.944329+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `require'
2019-05-16T03:18:56.944333+00:00 app[web.1]: from bin/rails:9:in `<main>'
2019-05-16T03:18:56.946482+00:00 app[web.1]: => Booting Puma
2019-05-16T03:18:56.946485+00:00 app[web.1]: => Rails 5.2.3 application starting in production
2019-05-16T03:18:56.946486+00:00 app[web.1]: => Run `rails server -h` for more startup options
2019-05-16T03:18:56.946488+00:00 app[web.1]: Exiting
2019-05-16T03:18:57.021770+00:00 heroku[web.1]: Process exited with status 1
2019-05-16T03:18:59.372424+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=access-health-api.herokuapp.com request_id=2d1cd2c7-26c3-4683-811d-cbda8db552dc fwd="68.198.112.113" dyno= connect= service= status=503 bytes= protocol=https
2019-05-16T03:18:59.663153+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=access-health-api.herokuapp.com request_id=56992e93-e701-4804-a9d7-69c8d8df7d7a fwd="68.198.112.113" dyno= connect= service= status=503 bytes= protocol=https
2019-05-16T03:19:02.649992+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=access-health-api.herokuapp.com request_id=31ee4ee0-7922-4aa8-a325-8e64ba6df53a fwd="68.198.112.113" dyno= connect= service= status=503 bytes= protocol=https
2019-05-16T03:19:03.021979+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=access-health-api.herokuapp.com request_id=220e35c1-a291-432a-8d6b-8d29da2767ef fwd="68.198.112.113" dyno= connect= service= status=503 bytes= protocol=https
2019-05-16T03:19:07.504379+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/api/v1/users" host=access-health-api.herokuapp.com request_id=008e3ef2-c32c-47d8-8309-699caa249e63 fwd="68.198.112.113" dyno= connect= service= status=503 bytes= protocol=https
2019-05-16T03:19:07.819506+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=access-health-api.herokuapp.com request_id=d73baebd-1589-42e5-924f-5afe337d038d fwd="68.198.112.113" dyno= connect= service= status=503 bytes= protocol=https
2019-05-16T03:21:18.522834+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/api/v1/campaigns?limit=10&offset=0" host=access-health-api.herokuapp.com request_id=e9eedb45-dc01-41f0-bbde-8b2ecc0f7961 fwd="68.198.112.113" dyno= connect= service= status=503 bytes= protocol=https
2019-05-16T03:21:18.527111+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/api/v1/donations" host=access-health-api.herokuapp.com request_id=34206172-903b-4e96-a143-8233398054eb fwd="68.198.112.113" dyno= connect= service= status=503 bytes= protocol=https
2019-05-16T03:21:18.552441+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBMZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--e302b733d6a303f98f430527e4db7d9e1c7194d0/imaeg10.jpg" host=access-health-api.herokuapp.com request_id=8517b5f3-a6de-4b59-a50e-3fd5df1d844a fwd="68.198.112.113" dyno= connect= service= status=503 bytes= protocol=https
2019-05-16T03:21:18.534909+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/api/v1/campaigns" host=access-health-api.herokuapp.com request_id=b2dd49bb-5ffe-4c69-b4da-b440152c255c fwd="68.198.112.113" dyno= connect= service= status=503 bytes= protocol=https
2019-05-16T03:21:18.558146+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBLdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--c9e2fbcef5f6da29926f88b9a59eafaf2a621902/image8.jpeg" host=access-health-api.herokuapp.com request_id=ad023112-c77f-40a0-aeb2-d27958869cf8 fwd="68.198.112.113" dyno= connect= service= status=503 bytes= protocol=https
2019-05-16T03:21:18.560544+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBNUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--434e900caca4f34c2e63005cd6820116c07a732c/image12.jpg" host=access-health-api.herokuapp.com request_id=b28c7275-2c51-4016-a1b9-a88183564334 fwd="68.198.112.113" dyno= connect= service= status=503 bytes= protocol=https
2019-05-16T03:21:18.559299+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBGZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--c9c9909537431b859cae12836c80416ea5649eeb/image7.jpeg" host=access-health-api.herokuapp.com request_id=a7b52b07-a196-46ae-a200-4c79571e32cb fwd="68.198.112.113" dyno= connect= service= status=503 bytes= protocol=https
2019-05-16T03:21:18.679112+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBNdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--956376570744f0cfdad27f52b232b51ce980f004/image14.jpg" host=access-health-api.herokuapp.com request_id=7826790c-6c3b-4d8d-b4d2-6842d3082719 fwd="68.198.112.113" dyno= connect= service= status=503 bytes= protocol=https
2019-05-16T03:21:18.525066+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/api/v1/users" host=access-health-api.herokuapp.com request_id=3136154e-d953-424c-8460-956157999cb3 fwd="68.198.112.113" dyno= connect= service= status=503 bytes= protocol=https
2019-05-16T03:21:18.554648+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBFUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--b51c526a014de8d76bb5d90f35796fb2eae84886/image3.jpg" host=access-health-api.herokuapp.com request_id=3caa2f7a-8db5-4592-b8f9-be25e2af6304 fwd="68.198.112.113" dyno= connect= service= status=503 bytes= protocol=https
2019-05-16T03:21:18.562032+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBMUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--5c47228f800d55ab9ec19b608f3222382f67280a/image9.jpeg" host=access-health-api.herokuapp.com request_id=176b645d-0eea-416b-8f7b-6f8efdf769c4 fwd="68.198.112.113" dyno= connect= service= status=503 bytes= protocol=https
2019-05-16T03:21:18.679591+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBFdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--2e0ed771252e549303c16fe6bfd23cc0b44623ac/image4.jpg" host=access-health-api.herokuapp.com request_id=08371d3f-fe83-48c3-88ff-d6e911366cb7 fwd="68.198.112.113" dyno= connect= service= status=503 bytes= protocol=https
2019-05-16T03:21:18.670224+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBNQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--76604889b9eb7c143ae9ab78a7fc1243783a77b7/image11.jpg" host=access-health-api.herokuapp.com request_id=17b2b861-0343-4a9a-8bad-ffabd1bdc9e8 fwd="68.198.112.113" dyno= connect= service= status=503 bytes= protocol=https
2019-05-16T03:21:18.677029+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBOQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--ecd1de1a884d5248751e826ea51b0b6053f36c63/image15.jpg" host=access-health-api.herokuapp.com request_id=28628a35-65f1-4247-944e-453595204b11 fwd="68.198.112.113" dyno= connect= service= status=503 bytes= protocol=https
2019-05-16T03:29:13.803733+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/api/v1/campaigns?limit=10&offset=0" host=access-health-api.herokuapp.com request_id=d6612341-e2da-48e2-a69d-8a2f77920d8f fwd="68.198.112.113" dyno= connect= service= status=503 bytes= protocol=https
2019-05-16T03:29:13.802351+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/api/v1/donations" host=access-health-api.herokuapp.com request_id=49819d09-b169-48c1-958b-0ac1ece45e2c fwd="68.198.112.113" dyno= connect= service= status=503 bytes= protocol=https
2019-05-16T03:29:13.801217+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/api/v1/users" host=access-health-api.herokuapp.com request_id=d74d9cb1-ab8f-45b2-857c-a52d5afe680c fwd="68.198.112.113" dyno= connect= service= status=503 bytes= protocol=https
2019-05-16T03:29:13.836605+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBNQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--76604889b9eb7c143ae9ab78a7fc1243783a77b7/image11.jpg" host=access-health-api.herokuapp.com request_id=c4cf28a2-f071-48df-98bd-67fa4d14c9ee fwd="68.198.112.113" dyno= connect= service= status=503 bytes= protocol=https
2019-05-16T03:29:13.807718+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/api/v1/campaigns" host=access-health-api.herokuapp.com request_id=4d22425b-0686-4702-9b67-da66846e67d6 fwd="68.198.112.113" dyno= connect= service= status=503 bytes= protocol=https
2019-05-16T03:29:13.835121+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBGZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--c9c9909537431b859cae12836c80416ea5649eeb/image7.jpeg" host=access-health-api.herokuapp.com request_id=5d8e4d55-54af-45d6-b221-8f4b62a5d42b fwd="68.198.112.113" dyno= connect= service= status=503 bytes= protocol=https
2019-05-16T03:29:13.957398+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBNdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--956376570744f0cfdad27f52b232b51ce980f004/image14.jpg" host=access-health-api.herokuapp.com request_id=6ceed2db-cbe1-4c35-83f9-1b86b43f1435 fwd="68.198.112.113" dyno= connect= service= status=503 bytes= protocol=https
2019-05-16T03:29:13.834407+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBMZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--e302b733d6a303f98f430527e4db7d9e1c7194d0/imaeg10.jpg" host=access-health-api.herokuapp.com request_id=fd8bb5a6-1c76-4dfe-b5d6-9139e4ed2ae8 fwd="68.198.112.113" dyno= connect= service= status=503 bytes= protocol=https
2019-05-16T03:29:13.945770+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBMUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--5c47228f800d55ab9ec19b608f3222382f67280a/image9.jpeg" host=access-health-api.herokuapp.com request_id=c8654612-7345-46df-a9ce-9d147a12ea2f fwd="68.198.112.113" dyno= connect= service= status=503 bytes= protocol=https
2019-05-16T03:29:13.937624+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBNUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--434e900caca4f34c2e63005cd6820116c07a732c/image12.jpg" host=access-health-api.herokuapp.com request_id=f58d4b84-7da2-47b7-ac31-afab5ad7bbeb fwd="68.198.112.113" dyno= connect= service= status=503 bytes= protocol=https
2019-05-16T03:29:13.948654+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBFdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--2e0ed771252e549303c16fe6bfd23cc0b44623ac/image4.jpg" host=access-health-api.herokuapp.com request_id=8dfb2fa6-5768-45ae-aa5c-8fbb63eae45a fwd="68.198.112.113" dyno= connect= service= status=503 bytes= protocol=https
2019-05-16T03:29:13.837688+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBLdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--c9e2fbcef5f6da29926f88b9a59eafaf2a621902/image8.jpeg" host=access-health-api.herokuapp.com request_id=d728ad22-472c-4047-827f-917ab6889b0b fwd="68.198.112.113" dyno= connect= service= status=503 bytes= protocol=https
2019-05-16T03:29:13.824566+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBFUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--b51c526a014de8d76bb5d90f35796fb2eae84886/image3.jpg" host=access-health-api.herokuapp.com request_id=092dad6d-c47e-4db7-bd41-7714563669f2 fwd="68.198.112.113" dyno= connect= service= status=503 bytes= protocol=https
2019-05-16T03:29:13.836115+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBOQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--ecd1de1a884d5248751e826ea51b0b6053f36c63/image15.jpg" host=access-health-api.herokuapp.com request_id=c5d50bb9-e35c-4c64-9cdd-4d583f9a0dd4 fwd="68.198.112.113" dyno= connect= service= status=503 bytes= protocol=https

It looks like the error is coming from Embedded Ruby. Is there a YAML configuration file with ERB tags <%= %> that is trying to access a key of a nil hash?
from /app/vendor/ruby-2.6.1/lib/ruby/2.6.0/erb.rb:901:in `eval'

I just solved possibly the same problem. Turns out, I didn't have a Rails master key set in Heroku. Here's the info that worked for me:
Before continuing on we'll take a moment to do an absolutely essential step to ensure Active Storage works with Heroku. Heroku will only be able to unencrypt your credentials.yml.enc if we add our master key (which can be found in config/master.key). However, the master key is gitignored for good reason. Do not check this file into git. We can use the heroku command line to secretly add the key to our heroku config.
$ heroku config:set RAILS_MASTER_KEY=<your-master-key-here>
If you do not do this Active Storage won't work on Heroku and will cause a ton of unhelpful errors.

Related

Deployed ruby on rails App on Heroku Successfully but app won't start, Displaying Application error

Initially, the problem was "Failed to install gems via Bundler." which i fixed by entering
by using this line
`bundle lock --add-platform x86_64-linux`
then add and commit to git, also update it on heroku, yet my couldn't app start i know you will advise me to check logs but i'm new on heroku app deployment, I can hardly find error or how to address from the logs, for example getting 503 error from my log:
2022-08-09T06:31:41.767338+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=examplerails.herokuapp.com request_id=981a1409-1e70-492c-a2ea-081a06f72ecf fwd="102.89.41.87" dyno= connect= service= status=503 bytes= protocol=https
2022-08-09T06:31:43.201958+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=examplerails.herokuapp.com request_id=8bc32463-dd26-4a1e-bc7f-483b72d91fa4 fwd="102.89.41.87" dyno= connect= service= status=503 bytes= protocol=https
2022-08-09T06:34:41.603649+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=examplerails.herokuapp.com request_id=1b7339b2-9706-479e-8ba9-3a29392a05a8 fwd="102.89.41.87" dyno= connect= service= status=503 bytes= protocol=https
2022-08-09T06:34:41.882759+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=examplerails.herokuapp.com request_id=a6ad6b2c-2cb5-4fd9-a803-1fc1ebf36b17 fwd="102.89.41.87" dyno= connect= service= status=503 bytes= protocol=https
2022-08-09T06:43:46.049127+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=examplerails.herokuapp.com request_id=c282cc3b-2f7e-4010-9f96-ddc996c87abd fwd="102.89.41.87" dyno= connect= service= status=503 bytes= protocol=https
2022-08-09T06:43:46.314701+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=examplerails.herokuapp.com request_id=3a12bb5a-2b46-433c-997e-a9b6bcdcb18f fwd="102.89.41.87" dyno= connect= service= status=503 bytes= protocol=https
2022-08-09T06:48:44.746660+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=examplerails.herokuapp.com request_id=6c61c7ce-f69e-43de-aed5-40d5f85239a1 fwd="102.89.41.87" dyno= connect= service= status=503 bytes= protocol=https
2022-08-09T06:48:45.250757+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=examplerails.herokuapp.com request_id=b4656eff-d125-4225-90fd-fb8e14cdf5ea fwd="102.89.41.87" dyno= connect= service= status=503 bytes= protocol=https
``
**or is it from this line of logs?**
``
from config.ru:3:in `require_relative'
2022-08-09T02:17:27.936748+00:00 app[web.1]: from config.ru:3:in `block in <main>'
2022-08-09T02:17:27.936755+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.4/lib/rack/builder.rb:116:in `eval'
2022-08-09T02:17:27.936764+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.4/lib/rack/builder.rb:116:in `new_from_string'
2022-08-09T02:17:27.936766+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.4/lib/rack/builder.rb:105:in `load_file'
2022-08-09T02:17:27.936773+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.4/lib/rack/builder.rb:66:in `parse_file'
2022-08-09T02:17:27.936775+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.4/lib/rack/server.rb:349:in `build_app_and_options_from_config'
2022-08-09T02:17:27.936776+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.4/lib/rack/server.rb:249:in `app'
2022-08-09T02:17:27.936791+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.4/lib/rack/server.rb:422:in `wrapped_app'
2022-08-09T02:17:27.936791+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.4/lib/rack/server.rb:312:in `block in start'
2022-08-09T02:17:27.936792+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.4/lib/rack/server.rb:379:in `handle_profiling'
2022-08-09T02:17:27.936794+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.4/lib/rack/server.rb:311:in `start'
2022-08-09T02:17:27.936794+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3.1/lib/rails/commands/server/server_command.rb:38:in `start'
2022-08-09T02:17:27.936803+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3.1/lib/rails/commands/server/server_command.rb:143:in `block in perform'
2022-08-09T02:17:27.936805+00:00 app[web.1]: from <internal:kernel>:90:in `tap'
2022-08-09T02:17:27.936807+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3.1/lib/rails/commands/server/server_command.rb:134:in `perform'
2022-08-09T02:17:27.936809+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-08-09T02:17:27.936817+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-08-09T02:17:27.936819+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-08-09T02:17:27.936820+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3.1/lib/rails/command/base.rb:87:in `perform'
2022-08-09T02:17:27.936828+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3.1/lib/rails/command.rb:48:in `invoke'
2022-08-09T02:17:27.936830+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3.1/lib/rails/commands.rb:18:in `<main>'
2022-08-09T02:17:27.936837+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
2022-08-09T02:17:27.936839+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
2022-08-09T02:17:27.936841+00:00 app[web.1]: from bin/rails:4:in `<main>'
``
Later got it solved with this command on terminal
$heroku run rails console
Thanks!

Application error on Heroku. An error occurred in the application and your page could not be served

I have deployed my first app on Heroku. The app was working. I did some css styling, added a gem and added a widget. After pushing to Heroku I started getting 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 deleted all changes and deleted the gem and I'm still getting the same error.
Can someone please help.
This is what my logs says.
Application Logs
2016-12-19T07:39:21.070388+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-12-19T07:39:21.070390+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-12-19T07:39:21.070392+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 server'
2016-12-19T07:39:21.070394+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-12-19T07:39:21.070398+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-12-19T07:39:21.070396+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-12-19T07:39:21.070400+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-12-19T07:39:21.070402+00:00 app[web.1]: from bin/rails:4:in `require'
2016-12-19T07:39:21.070421+00:00 app[web.1]: from bin/rails:4:in `<main>'
2016-12-19T12:18:12.445785+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=bark-sj.herokuapp.com request_id=b19b4989-195e-4dd9-b9d4-be040f005567 fwd="71.75.222.70" dyno= connect= service= status=503 bytes=
2016-12-19T12:18:12.883504+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=bark-sj.herokuapp.com request_id=da691f65-a247-4486-be41-5e40a24bf73d fwd="71.75.222.70" dyno= connect= service= status=503 bytes=
2016-12-19T12:19:06.946508+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=bark-sj.herokuapp.com request_id=2742ae66-fc1a-41f3-a7a1-34f19d80be2c fwd="71.75.222.70" dyno= connect= service= status=503 bytes=
2016-12-19T12:19:07.336515+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=bark-sj.herokuapp.com request_id=b0fb1a59-64b3-4b94-a5d4-cf620e3522b1 fwd="71.75.222.70" dyno= connect= service= status=503 bytes=
2016-12-19T12:19:35.432525+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=bark-sj.herokuapp.com request_id=2ec59492-b01c-48bc-85b1-d8cb836429ce fwd="71.75.222.70" dyno= connect= service= status=503 bytes=
2016-12-19T12:19:35.816449+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=bark-sj.herokuapp.com request_id=d80af4e9-e11d-4117-a2f0-c03e5a5df940 fwd="71.75.222.70" dyno= connect= service= status=503 bytes=
2016-12-19T12:19:44.824487+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=bark-sj.herokuapp.com request_id=ec97a999-1805-4755-b975-fc497ca7f4dc fwd="71.75.222.70" dyno= connect= service= status=503 bytes=
2016-12-19T12:19:45.234548+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=bark-sj.herokuapp.com request_id=a5501bea-0322-4053-8b80-9fd4a62e49ac fwd="71.75.222.70" dyno= connect= service= status=503 bytes=

Rails Tutorial Heroku App Error

I'm following the rails tutorial at railstutorial.org. My next step was to deploy my app to Heroku. When I deploy the app to Heroku, it gives me an error message saying:
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.
Here are my Heroku log files:
Your version of git is 1.9.4.. Which has serious security vulnerabilities.
More information here: https://blog.heroku.com/archives/2014/12/23/update_your_git_clients_on_windows_and_os_x
2015-10-15T23:33:50.886651+00:00 heroku[web.1]: State changed from starting to crashed
2015-10-15T23:36:42.674698+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=lit-coast-3953.herokuapp.com request_id=cbb2ea7f-a774-4ab2-960f-9c0e0717a8ea fwd="172.79.90.237" dyno= connect= service= status=503 bytes=
2015-10-15T23:36:43.560640+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=lit-coast-3953.herokuapp.com request_id=28defc83-3012-457b-985d-3b46acc61248 fwd="172.79.90.237" dyno= connect= service= status=503 bytes=
2015-10-15T23:39:07.288428+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=lit-coast-3953.herokuapp.com request_id=4ba7be07-c257-4b2a-b3f6-d67e38349eed fwd="172.79.90.237" dyno= connect= service= status=503 bytes=
2015-10-15T23:39:07.434790+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=lit-coast-3953.herokuapp.com request_id=94ba475b-1100-46ae-9a1c-400ba24da2f0 fwd="172.79.90.237" dyno= connect= service= status=503 bytes=
2015-10-15T23:39:24.953214+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=lit-coast-3953.herokuapp.com request_id=d76bc985-4a0c-4e38-91a9-0aee8a55951f fwd="172.79.90.237" dyno= connect= service= status=503 bytes=
2015-10-15T23:39:25.362551+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=lit-coast-3953.herokuapp.com request_id=a09efac9-dd70-4035-a402-d0960af92549 fwd="172.79.90.237" dyno= connect= service= status=503 bytes=
2015-10-15T23:57:26.983461+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 7986 -e production`
2015-10-15T23:57:24.121569+00:00 heroku[web.1]: State changed from crashed to starting
2015-10-15T23:57:30.953715+00:00 app[web.1]: => Booting Puma
2015-10-15T23:57:30.953742+00:00 app[web.1]: => Rails 4.2.4 application starting in production on http://0.0.0.0:7986
2015-10-15T23:57:30.953743+00:00 app[web.1]: => Run `rails server -h` for more startup options
2015-10-15T23:57:30.953744+00:00 app[web.1]: => Ctrl-C to shutdown server
2015-10-15T23:57:31.860563+00:00 app[web.1]: Exiting
2015-10-15T23:57:31.862117+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.4/lib/active_record/dynamic_matchers.rb:26:in `method_missing': undefined local variable or method `has_secured_password' for User (call 'User.connection' to establish a connection):Class (NameError)
2015-10-15T23:57:31.862138+00:00 app[web.1]: from /app/app/models/user.rb:8:in `<class:User>'
2015-10-15T23:57:31.862156+00:00 app[web.1]: from /app/app/models/user.rb:1:in `<top (required)>'
2015-10-15T23:57:31.862177+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in `require'
2015-10-15T23:57:31.862195+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in `block in require'
2015-10-15T23:57:31.862208+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:240:in `load_dependency' 2015-10-15T23:57:31.862224+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in `require'
2015-10-15T23:57:31.862239+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:360:in `require_or_load' 2015-10-15T23:57:31.862266+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:317:in `depend_on'
2015-10-15T23:57:31.862293+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:233:in `require_dependency'
2015-10-15T23:57:31.862321+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.4/lib/rails/engine.rb:471:in `each'
2015-10-15T23:57:31.862306+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.4/lib/rails/engine.rb:472:in `block (2 levels) in eager_load!'
2015-10-15T23:57:31.862350+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.4/lib/rails/engine.rb:469:in `each'
2015-10-15T23:57:31.862336+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.4/lib/rails/engine.rb:471:in `block in eager_load!'
2015-10-15T23:57:31.862366+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.4/lib/rails/engine.rb:469:in `eager_load!'
2015-10-15T23:57:31.862386+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.4/lib/rails/engine.rb:346:in `eager_load!'
2015-10-15T23:57:31.862398+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.4/lib/rails/application/finisher.rb:56:in `each'
2015-10-15T23:57:31.862411+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.4/lib/rails/application/finisher.rb:56:in `block in <module:Finisher>'
2015-10-15T23:57:31.862436+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.4/lib/rails/initializable.rb:30:in `instance_exec'
2015-10-15T23:57:31.862464+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.4/lib/rails/initializable.rb:30:in `run'
2015-10-15T23:57:31.862479+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.4/lib/rails/initializable.rb:55:in `block in run_initializers'
2015-10-15T23:57:31.862493+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:150:in `block in tsort_each'
2015-10-15T23:57:31.862504+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
2015-10-15T23:57:31.862518+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:219:in `each_strongly_connected_component_from'
2015-10-15T23:57:31.862533+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:182:in `block in each_strongly_connected_component'
2015-10-15T23:57:31.862548+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:180:in `each'
2015-10-15T23:57:31.862563+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:180:in `each_strongly_connected_component'
2015-10-15T23:57:31.862603+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:148:in `tsort_each'
2015-10-15T23:57:31.862617+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.4/lib/rails/initializable.rb:54:in `run_initializers'
2015-10-15T23:57:31.862633+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.4/lib/rails/application.rb:352:in `initialize!'
2015-10-15T23:57:31.862648+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2015-10-15T23:57:31.862679+00:00 app[web.1]: from /app/config.ru:3:in `block in <main>'
2015-10-15T23:57:31.862663+00:00 app[web.1]: from /app/config.ru:3:in `require'
2015-10-15T23:57:31.862693+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `instance_eval'
2015-10-15T23:57:31.862718+00:00 app[web.1]: from /app/config.ru:in `new'
2015-10-15T23:57:31.862706+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `initialize'
2015-10-15T23:57:31.862734+00:00 app[web.1]: from /app/config.ru:in `<main>'
2015-10-15T23:57:31.862776+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in `eval'
2015-10-15T23:57:31.862792+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in `new_from_string'
2015-10-15T23:57:31.862807+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:40:in `parse_file'
2015-10-15T23:57:31.862821+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/server.rb:299:in `build_app_and_options_from_config'
2015-10-15T23:57:31.862834+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/server.rb:208:in `app'
2015-10-15T23:57:31.862879+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/server.rb:272:in `start'
2015-10-15T23:57:31.862864+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/server.rb:336:in `wrapped_app'
2015-10-15T23:57:31.862894+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.4/lib/rails/commands/server.rb:80:in `start'
2015-10-15T23:57:31.862847+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.4/lib/rails/commands/server.rb:61:in `app'
2015-10-15T23:57:31.862921+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.4/lib/rails/commands/commands_tasks.rb:80:in `block in server'
2015-10-15T23:57:31.862948+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.4/lib/rails/commands/commands_tasks.rb:75:in `tap'
2015-10-15T23:57:31.862961+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.4/lib/rails/commands/commands_tasks.rb:75:in `server'
2015-10-15T23:57:31.862973+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.4/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
2015-10-15T23:57:31.862988+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.4/lib/rails/commands.rb:17:in `<top (required)>'
2015-10-15T23:57:31.863004+00:00 app[web.1]: from bin/rails:4:in `require'
2015-10-15T23:57:31.863018+00:00 app[web.1]: from bin/rails:4:in `<main>'
2015-10-15T23:57:32.859780+00:00 heroku[web.1]: State changed from starting to crashed
2015-10-15T23:57:32.857005+00:00 heroku[web.1]: Process exited with status 1
2015-10-16T00:01:35.819809+00:00 heroku[slug-compiler]: Slug compilation started
2015-10-16T00:01:35.819819+00:00 heroku[slug-compiler]: Slug compilation finished
2015-10-16T00:01:35.747968+00:00 heroku[api]: Deploy e6ed5b4 by butlera10#gmail.com
2015-10-16T00:01:35.747968+00:00 heroku[api]: Release v11 created by butlera10#gmail.com
2015-10-16T00:01:35.972558+00:00 heroku[web.1]: State changed from crashed to starting
2015-10-16T00:01:39.613244+00:00 heroku[web.1]: Starting process with command `bundle exec puma -C config/puma.rb`
2015-10-16T00:01:42.310288+00:00 app[web.1]: Puma starting in single mode...
2015-10-16T00:01:42.310307+00:00 app[web.1]: * Version 2.11.1 (ruby 2.0.0-p645), codename: Intrepid Squirrel
2015-10-16T00:01:42.310309+00:00 app[web.1]: * Min threads: 0, max threads: 16
2015-10-16T00:01:42.310310+00:00 app[web.1]: * Environment: production
2015-10-16T00:01:45.975901+00:00 app[web.1]: * Listening on tcp://0.0.0.0:9292
2015-10-16T00:01:45.976271+00:00 app[web.1]: Use Ctrl-C to stop
2015-10-16T00:01:49.599802+00:00 heroku[api]: Starting process with command `bundle exec rake db:migrate` by butlera10#gmail.com
2015-10-16T00:01:52.459341+00:00 heroku[run.4849]: Awaiting client
2015-10-16T00:01:52.496893+00:00 heroku[run.4849]: Starting process with command `bundle exec rake db:migrate`
2015-10-16T00:01:52.850289+00:00 heroku[run.4849]: State changed from starting to up
2015-10-16T00:01:59.668556+00:00 heroku[run.4849]: Process exited with status 0
2015-10-16T00:01:59.674461+00:00 heroku[run.4849]: State changed from up to complete
2015-10-16T00:02:39.725945+00:00 heroku[web.1]: Stopping process with SIGKILL
2015-10-16T00:02:39.725945+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2015-10-16T00:02:41.099174+00:00 heroku[web.1]: State changed from starting to crashed
2015-10-16T00:02:41.065951+00:00 heroku[web.1]: Process exited with status 137
2015-10-16T00:03:10.642913+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=lit-coast-3953.herokuapp.com request_id=441707a4-6407-48fe-9e04-35f8a7a68dd5 fwd="172.79.90.237" dyno= connect= service= status=503 bytes=
2015-10-16T00:03:10.882972+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=lit-coast-3953.herokuapp.com request_id=7d301278-0040-48a8-ae80-992936681b30 fwd="172.79.90.237" dyno= connect= service= status=503 bytes=
2015-10-16T00:03:15.576603+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=lit-coast-3953.herokuapp.com request_id=7e558323-1f30-43df-84bb-db6b7d9b6e1c fwd="172.79.90.237" dyno= connect= service= status=503 bytes=
2015-10-16T00:03:15.731893+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=lit-coast-3953.herokuapp.com request_id=db7c42e0-1ea2-4d95-8a10-07336adec3fc fwd="172.79.90.237" dyno= connect= service= status=503 bytes=
2015-10-16T00:03:17.610215+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=lit-coast-3953.herokuapp.com request_id=9dac3a5f-ee0c-49b2-b1a9-b6133ac6e862 fwd="172.79.90.237" dyno= connect= service= status=503 bytes=
2015-10-16T00:03:17.821084+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=lit-coast-3953.herokuapp.com request_id=308f51a0-0bbf-46e4-a7ca-6ab6175d4c90 fwd="172.79.90.237" dyno= connect= service= status=503 bytes=
2015-10-16T00:04:54.511133+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=lit-coast-3953.herokuapp.com request_id=53371904-5090-4ef2-b612-c5844e06b994 fwd="172.79.90.237" dyno= connect= service= status=503 bytes=
2015-10-16T00:04:54.826183+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=lit-coast-3953.herokuapp.com request_id=f3e1a015-7a40-4d20-a407-d83a13617368 fwd="172.79.90.237" dyno= connect= service= status=503 bytes=
2015-10-16T00:04:59.367280+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=lit-coast-3953.herokuapp.com request_id=f3d9a09c-2aff-4a66-86eb-a1561b68132d fwd="172.79.90.237" dyno= connect= service= status=503 bytes=
2015-10-16T00:04:59.593237+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=lit-coast-3953.herokuapp.com request_id=8456c0bc-0e0c-49ce-8d9f-9fd2de9173a4 fwd="172.79.90.237" dyno= connect= service= status=503 bytes=
I'm assuming (but not sure) the line below is the error thats in my app, but I'm not sure how to correct the error:
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.4/lib/active_record/dynamic_matchers.rb:26:in `method_missing': undefined local variable or method `has_secured_password' for User (call 'User.connection' to establish a connection):Class (NameError)
Here is my user.rb file:
class User < ActiveRecord::Base
before_save { self.email = email.downcase}
validates :name, presence: true, length: { maximum: 50 }
VALID_EMAIL_REGEX = /\A[\w+\-.]+#[a-z\d\-.]+\.[a-z]+\z/i
validates :email, presence: true, length: { maximum: 255 },
format: { with: VALID_EMAIL_REGEX },
uniqueness: {case_sensitive: false}
has_secure_password
validates :password, length: { minimum: 6 }
end
Can someone tell me what the problem is and how I can solve it? Thanks in advance!
As nayiaw pointed out, it looks like you are trying to call #has_secured_password, when you probably meant #has_secure_password. In other words it looks like there is a typo in your code. If you look at the stack trace line right below the one you copied, it points to line 8 in your user model. My guess is that the typo is there, you probably have "has_secured_password", when it should really be "has_secure_password"
You could also do something like
git grep has_secured_password
in your project directory to see where that line is coming from.

Heroku - application error (unable to see app)

Hi i have been trying to get to my heroku app but it keeps giving me application error.
Attached is my heroku logs.
2014-07-30T05:52:12.995412+00:00 heroku[web.1]: State changed from starting to crashed
2014-07-30T05:52:13.734720+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=vast-fortress-4470.herokuapp.com request_id=43cec375-c96a-46c2-adcf-c0a37fb3801e fwd="192.122.131.10" dyno= connect= service= status=503 bytes=
2014-07-30T05:52:14.507679+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=vast-fortress-4470.herokuapp.com request_id=86ff6b8e-61f0-4ea8-b0e2-022989592a32 fwd="192.122.131.10" dyno= connect= service= status=503 bytes=
2014-07-30T05:52:14.584623+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=vast-fortress-4470.herokuapp.com request_id=ac5f2cb0-a1f7-4015-8990-6725b82c4f05 fwd="192.122.131.10" dyno= connect= service= status=503 bytes=
2014-07-30T05:52:21.245102+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/homr" host=vast-fortress-4470.herokuapp.com request_id=52c4c51f-2f3d-4254-8f9a-675988896758 fwd="192.122.131.10" dyno= connect= service= status=503 bytes=
2014-07-30T05:52:21.843978+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=vast-fortress-4470.herokuapp.com request_id=431135aa-9731-4d1d-81d3-cb254e269ae0 fwd="192.122.131.10" dyno= connect= service= status=503 bytes=
2014-07-30T05:52:23.903377+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/home" host=vast-fortress-4470.herokuapp.com request_id=bfcc489f-1fab-4c3d-ad7a-1b367755dfc7 fwd="192.122.131.10" dyno= connect= service= status=503 bytes=
2014-07-30T05:52:24.521571+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=vast-fortress-4470.herokuapp.com request_id=3c145744-7509-4356-850c-5b5002cad995 fwd="192.122.131.10" dyno= connect= service= status=503 bytes=
2014-07-30T05:53:29.438004+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/home" host=vast-fortress-4470.herokuapp.com request_id=52240698-37ae-4b3f-9ded-90f7f382304c fwd="192.122.131.10" dyno= connect= service= status=503 bytes=
2014-07-30T05:53:30.303500+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=vast-fortress-4470.herokuapp.com request_id=2d436bbf-3384-4820-ba28-259f15185294 fwd="192.122.131.10" dyno= connect= service= status=503 bytes=
And this is my heroku run rails console:
Running `rails console` attached to terminal... up, run.2353
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.0.8/lib/active_record/dynamic_matchers.rb:22:in `method_missing': undefined method `dump_schema_after_migration=' for #<Class:0x007f1af45e9f00> (NoMethodError)
from /app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.0.8/lib/active_record/railtie.rb:166:in `block (3 levels) in <class:Railtie>'
from /app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.0.8/lib/active_record/railtie.rb:165:in `each'
from /app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.0.8/lib/active_record/railtie.rb:165:in `block (2 levels) in <class:Railtie>'
from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.8/lib/active_support/lazy_load_hooks.rb:38:in `instance_eval'
from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.8/lib/active_support/lazy_load_hooks.rb:38:in `execute_hook'
from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.8/lib/active_support/lazy_load_hooks.rb:45:in `block in run_load_hooks'
from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.8/lib/active_support/lazy_load_hooks.rb:44:in `each'
from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.8/lib/active_support/lazy_load_hooks.rb:44:in `run_load_hooks'
from /app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.0.8/lib/active_record/base.rb:322:in `<module:ActiveRecord>'
from /app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.0.8/lib/active_record/base.rb:22:in `<top (required)>'
from /app/app/models/documents.rb:1:in `<top (required)>'
from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.8/lib/active_support/dependencies.rb:229:in `require'
from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.8/lib/active_support/dependencies.rb:229:in `block in require'
from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.8/lib/active_support/dependencies.rb:214:in `load_dependency'
from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.8/lib/active_support/dependencies.rb:229:in `require'
from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.8/lib/active_support/dependencies.rb:330:in `require_or_load'
from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.8/lib/active_support/dependencies.rb:289:in `depend_on'
from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.8/lib/active_support/dependencies.rb:207:in `require_dependency'
from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.8/lib/rails/engine.rb:465:in `block (2 levels) in eager_load!'
from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.8/lib/rails/engine.rb:464:in `each'
Can anyone shed some light on this?

Ruby 4.0 App isn't working after changing project name through Heroku website

My app worked fine on my localhost and on Heroku until I tried changing the name of my project on Heroku through their website, not the CLI. Now, the app still works on my localhost but I get an Application Error and the message, 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.
Additionally, I was running Ruby Rails 3.2 and updated to 4.0 in the middle of my project to stay as up to date as possible but it's made the whole process much more complicated.
I just started coding and had this project almost finished - just needed to get it synced up with a host and my custom domain and it all went to crap :/ Any help would be very appreciated.
Here is what I get when I run Heroku logs --tail:
2013-10-19T04:45:55.858947+00:00 heroku[run.8369]: State changed from starting to up
2013-10-19T04:46:00.106324+00:00 heroku[run.8369]: Process exited with status 0
2013-10-19T04:46:00.144464+00:00 heroku[run.8369]: State changed from up to complete
2013-10-19T04:46:06.146445+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=lit-basin-5401.herokuapp.com fwd="98.197.58.199" dyno= connect= service= status=503 bytes=
2013-10-19T04:46:06.983600+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=lit-basin-5401.herokuapp.com fwd="98.197.58.199" dyno= connect= service= status=503 bytes=
2013-10-19T04:46:06.757189+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=lit-basin-5401.herokuapp.com fwd="98.197.58.199" dyno= connect= service= status=503 bytes=
2013-10-19T04:49:11.041661+00:00 heroku[web.1]: State changed from crashed to starting
2013-10-19T04:49:16.507236+00:00 heroku[web.1]: Starting process with command `bundle exec
rails server thin -p 51640 -e $RACK_ENV`
2013-10-19T04:49:19.896050+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `block in require'
2013-10-19T04:49:19.896050+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler.rb:20:in `block in get'
2013-10-19T04:49:19.896050+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler.rb:20:in `inject'
2013-10-19T04:49:19.896050+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require': cannot load such file -- thin (LoadError)
2013-10-19T04:49:19.896050+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213:in `load_dependency'
2013-10-19T04:49:19.896050+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'
2013-10-19T04:49:19.896050+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler/thin.rb:1:in `<top (required)>'
2013-10-19T04:49:19.896050+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler.rb:20:in `const_get'
2013-10-19T04:49:19.896050+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler.rb:20:in `each'
2013-10-19T04:49:19.896050+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler.rb:20:in `get'
2013-10-19T04:49:19.896278+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands/server.rb:63:in `start'
2013-10-19T04:49:19.896278+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:78:in `block in <top (required)>'
2013-10-19T04:49:19.896278+00:00 app[web.1]: from bin/rails:4:in `<main>'
2013-10-19T04:49:19.896278+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:268:in `server'
2013-10-19T04:49:19.896278+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:73:in `<top (required)>'
2013-10-19T04:49:19.896278+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:73:in `tap'
2013-10-19T04:49:19.896278+00:00 app[web.1]: from bin/rails:4:in `require'
2013-10-19T04:49:19.911301+00:00 app[web.1]: Exiting
2013-10-19T04:49:21.448808+00:00 heroku[web.1]: Process exited with status 1
2013-10-19T04:49:21.452988+00:00 heroku[web.1]: State changed from starting to crashed
2013-10-19T05:05:09.305097+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=www.crt.com fwd="98.197.58.199" dyno= connect= service= status=503 bytes=
2013-10-19T05:05:09.911911+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=www.crt.com fwd="98.197.58.199" dyno= connect= service= status=503 bytes=
2013-10-19T05:05:10.312640+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=www.crt.com fwd="98.197.58.199" dyno= connect= service= status=503 bytes=
2013-10-19T05:05:17.288098+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=crt.herokuapp.com fwd="98.197.58.199" dyno= connect= service= status=503 bytes=
2013-10-19T05:05:18.112302+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=crt.herokuapp.com fwd="98.197.58.199" dyno= connect= service= status=503 bytes=
2013-10-19T05:05:18.535047+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=crt.herokuapp.com fwd="98.197.58.199" dyno= connect= service= status=503 bytes=
2013-10-19T05:07:35+00:00 heroku[slug-compiler]: Slug compilation started
2013-10-19T05:08:04.559035+00:00 heroku[api]: Deploy ce44379 by sunghoster#gmail.com
2013-10-19T05:08:04.583465+00:00 heroku[api]: Release v17 created by sunghoster#gmail.com
2013-10-19T05:08:04.830493+00:00 heroku[web.1]: State changed from crashed to starting
2013-10-19T05:08:08.815396+00:00 heroku[web.1]: Starting process with command `bundle exec rails server thin -p 58476 -e $RACK_ENV`
2013-10-19T05:08:04+00:00 heroku[slug-compiler]: Slug compilation finished
2013-10-19T05:08:11.044510+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require': cannot load such file -- thin (LoadError)
2013-10-19T05:08:11.044510+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `block in require'
2013-10-19T05:08:11.044510+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler/thin.rb:1:in `<top (required)>'
2013-10-19T05:08:11.044510+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213:in `load_dependency'
2013-10-19T05:08:11.044510+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler.rb:20:in `const_get'
2013-10-19T05:08:11.044510+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'
2013-10-19T05:08:11.044708+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:73:in `tap'
2013-10-19T05:08:11.044510+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler.rb:20:in `block in get'
2013-10-19T05:08:11.044708+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:73:in `<top (required)>'
2013-10-19T05:08:11.044510+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler.rb:20:in `inject'
2013-10-19T05:08:11.044708+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:268:in `server'
2013-10-19T05:08:11.044708+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands/server.rb:63:in `start'
2013-10-19T05:08:11.044708+00:00 app[web.1]: from bin/rails:4:in `<main>'
2013-10-19T05:08:11.044708+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:78:in `block in <top (required)>'
2013-10-19T05:08:11.044510+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler.rb:20:in `each'
2013-10-19T05:08:11.044708+00:00 app[web.1]: from bin/rails:4:in `require'
2013-10-19T05:08:11.044510+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler.rb:20:in `get'
2013-10-19T05:08:11.057865+00:00 app[web.1]: Exiting
2013-10-19T05:08:12.143057+00:00 heroku[web.1]: Process exited with status 1
2013-10-19T05:08:12.152853+00:00 heroku[web.1]: State changed from starting to crashed
2013-10-19T05:08:12.154304+00:00 heroku[web.1]: State changed from crashed to starting
2013-10-19T05:08:16.644957+00:00 heroku[web.1]: Starting process with command `bundle exec rails server thin -p 44473 -e $RACK_ENV`
2013-10-19T05:08:20.604410+00:00 heroku[web.1]: State changed from starting to crashed
2013-10-19T05:08:22.393304+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=crt.herokuapp.com fwd="98.197.58.199" dyno= connect= service= status=503 bytes=
2013-10-19T05:08:22.599461+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=crt.herokuapp.com fwd="98.197.58.199" dyno= connect= service= status=503 bytes=
2013-10-19T05:08:19.316804+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler.rb:20:in `block in get'
2013-10-19T05:08:19.317076+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:268:in `server'
2013-10-19T05:08:19.316804+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler.rb:20:in `const_get'
2013-10-19T05:08:19.317076+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:73:in `tap'
2013-10-19T05:08:19.316804+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require': cannot load such file -- thin (LoadError)
2013-10-19T05:08:19.316804+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler/thin.rb:1:in `<top (required)>'
2013-10-19T05:08:19.316804+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213:in `load_dependency'
2013-10-19T05:08:19.316804+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler.rb:20:in `each'
2013-10-19T05:08:19.317076+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:78:in `block in <top (required)>'
2013-10-19T05:08:19.317076+00:00 app[web.1]: from bin/rails:4:in `<main>'
2013-10-19T05:08:19.316804+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler.rb:20:in `inject'
2013-10-19T05:08:19.317076+00:00 app[web.1]: from bin/rails:4:in `require'
2013-10-19T05:08:19.317076+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:73:in `<top (required)>'
2013-10-19T05:08:19.329850+00:00 app[web.1]: Exiting
2013-10-19T05:08:19.316804+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'
2013-10-19T05:08:19.316804+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `block in require'
2013-10-19T05:08:19.316804+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler.rb:20:in `get'
2013-10-19T05:08:19.317076+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands/server.rb:63:in `start'
2013-10-19T05:08:20.589816+00:00 heroku[web.1]: Process exited with status 1
2013-10-19T05:08:21.758023+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=crt.herokuapp.com fwd="98.197.58.199" dyno= connect= service= status=503 bytes=
2013-10-19T05:09:28.445030+00:00 heroku[api]: Starting process with command `bundle exec
rake db:migrate` by sunghoster#gmail.com
2013-10-19T05:09:32.830791+00:00 heroku[run.1104]: Awaiting client
2013-10-19T05:09:32.878270+00:00 heroku[run.1104]: Starting process with command `bundle exec rake db:migrate`
2013-10-19T05:09:33.696273+00:00 heroku[run.1104]: State changed from starting to up
2013-10-19T05:09:35.512494+00:00 heroku[run.1104]: Client connection closed. Sending SIGHUP to all processes
2013-10-19T05:09:36.469621+00:00 heroku[run.1104]: Process exited with status 0
2013-10-19T05:09:36.484133+00:00 heroku[run.1104]: State changed from up to complete
2013-10-19T05:09:41.437949+00:00 heroku[api]: Starting process with command `bundle exec rake db:migrate` by sunghoster#gmail.com
2013-10-19T05:09:46.113833+00:00 heroku[run.8756]: Awaiting client
2013-10-19T05:09:46.146484+00:00 heroku[run.8756]: Starting process with command `bundle exec rake db:migrate`
2013-10-19T05:09:46.930509+00:00 heroku[run.8756]: State changed from starting to up
2013-10-19T05:09:50.254973+00:00 heroku[run.8756]: Process exited with status 0
2013-10-19T05:09:50.264019+00:00 heroku[run.8756]: State changed from up to complete
2013-10-19T05:09:56.581611+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=crt.herokuapp.com fwd="98.197.58.199" dyno= connect= service= status=503 bytes=
2013-10-19T05:09:57.396220+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=crt.herokuapp.com fwd="98.197.58.199" dyno= connect= service= status=503 bytes=
2013-10-19T05:09:57.702612+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=crt.herokuapp.com fwd="98.197.58.199" dyno= connect= service= status=503 bytes=
Changing the name in Heroku does nothing -- but you'll have to change it in your local git repo with these lines:
git remote rm heroku
heroku git:remote -a newname
As for your errors, it seems you've got some big errors within your app. As #KepaniHaole said, you seem to have "thin" errors - do you have the gem in your GemFile?

Resources