error in Ruby on Rails 6 app after deploying to Heroku - ruby-on-rails

I have successfully deployed my ruby on rails app to Heroku - it currently has 3.1.2 ruby version. I can see the homepage in Heroku but when I go to log in as current user it says there is a problem with the app. I use gem Devise for this. This is what my heroku logs comes with: has this got to do with puma's version when trying to log-in as user?
2023-01-28T12:29:28.090153+00:00 app[web.1]: [31fa87ec-45d2-4d36-9d98-ce18f17a9fd7] rack (2.2.3) lib/rack/sendfile.rb:110:in `call'
2023-01-28T12:29:28.090156+00:00 app[web.1]: [31fa87ec-45d2-4d36-9d98-ce18f17a9fd7] actionpack (6.1.4.4) lib/action_dispatch/middleware/host_authorization.rb:113:in `call'
2023-01-28T12:29:28.090157+00:00 app[web.1]: [31fa87ec-45d2-4d36-9d98-ce18f17a9fd7] railties (6.1.4.4) lib/rails/engine.rb:539:in `call'
2023-01-28T12:29:28.090157+00:00 app[web.1]: [31fa87ec-45d2-4d36-9d98-ce18f17a9fd7] puma (5.6.1) lib/puma/configuration.rb:252:in `call'
2023-01-28T12:29:28.090157+00:00 app[web.1]: [31fa87ec-45d2-4d36-9d98-ce18f17a9fd7] puma (5.6.1) lib/puma/request.rb:77:in `block in handle_request'
2023-01-28T12:29:28.090158+00:00 app[web.1]: [31fa87ec-45d2-4d36-9d98-ce18f17a9fd7] puma (5.6.1) lib/puma/thread_pool.rb:340:in `with_force_shutdown'
2023-01-28T12:29:28.090158+00:00 app[web.1]: [31fa87ec-45d2-4d36-9d98-ce18f17a9fd7] puma (5.6.1) lib/puma/request.rb:76:in `handle_request'
2023-01-28T12:29:28.090158+00:00 app[web.1]: [31fa87ec-45d2-4d36-9d98-ce18f17a9fd7] puma (5.6.1) lib/puma/server.rb:441:in `process_client'
2023-01-28T12:29:28.090159+00:00 app[web.1]: [31fa87ec-45d2-4d36-9d98-ce18f17a9fd7] puma (5.6.1) lib/puma/thread_pool.rb:147:in `block in spawn_thread'
2023-01-28T12:29:28.091751+00:00 heroku[router]: at=info method=GET path="/users/sign_in" host=driven.herokuapp.com request_id=31fa87ec-45d2-4d36-9d98-ce18f17a9fd7 fwd="37.222.199.40" dyno=web.1 connect=0ms service=1755ms status=500 bytes=1827 protocol=https
do I need to upgrade puma's version? I can see in my Gemfile.lock both puma (5.6.1) and puma (~> 5.0), or is it a question of upgrading to Rails 7?
Thanks for your help!

Related

Rails Fatal Error caused by no routing match

I noticed that when a bot is on my website looking for ways to hack it, it tries random URL.
I get the following info warning.
ActionController::RoutingError (No route matches [GET] "/.ENV"):
Immediately following the info warning, I get a fatal critical error.
I assume a no match should not cause a fatal error, so what is going on? How do I trouble shoot this and fix the fatal error?
Logs:
2022-02-17T18:31:34.137656+00:00 app[web.1]: I, [2022-02-17T18:31:34.137492 #9] INFO -- : [dc7133cd-ffca-4859-877a-c4b1c22549b4] Started GET "/.env" for 172.70.126.151 at 2022-02-17 18:31:34 +0000
2022-02-17T18:31:34.139166+00:00 app[web.1]: D, [2022-02-17T18:31:34.138940 #9] DEBUG -- : [dc7133cd-ffca-4859-877a-c4b1c22549b4] User excluded error: #<ActionController::RoutingError: No route matches [GET] "/.env">
2022-02-17T18:31:34.139941+00:00 app[web.1]: F, [2022-02-17T18:31:34.139886 #9] FATAL -- : [dc7133cd-ffca-4859-877a-c4b1c22549b4]
2022-02-17T18:31:34.139953+00:00 app[web.1]: [dc7133cd-ffca-4859-877a-c4b1c22549b4] ActionController::RoutingError (No route matches [GET] "/.env"):
2022-02-17T18:31:34.139954+00:00 app[web.1]: [dc7133cd-ffca-4859-877a-c4b1c22549b4]
2022-02-17T18:31:34.139955+00:00 app[web.1]: [dc7133cd-ffca-4859-877a-c4b1c22549b4] actionpack (6.0.3.7) lib/action_dispatch/middleware/debug_exceptions.rb:36:in `call'
2022-02-17T18:31:34.139955+00:00 app[web.1]: [dc7133cd-ffca-4859-877a-c4b1c22549b4] actionpack (6.0.3.7) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
2022-02-17T18:31:34.139955+00:00 app[web.1]: [dc7133cd-ffca-4859-877a-c4b1c22549b4] railties (6.0.3.7) lib/rails/rack/logger.rb:37:in `call_app'
2022-02-17T18:31:34.139956+00:00 app[web.1]: [dc7133cd-ffca-4859-877a-c4b1c22549b4] railties (6.0.3.7) lib/rails/rack/logger.rb:26:in `block in call'
2022-02-17T18:31:34.139956+00:00 app[web.1]: [dc7133cd-ffca-4859-877a-c4b1c22549b4] activesupport (6.0.3.7) lib/active_support/tagged_logging.rb:80:in `block in tagged'
2022-02-17T18:31:34.139957+00:00 app[web.1]: [dc7133cd-ffca-4859-877a-c4b1c22549b4] activesupport (6.0.3.7) lib/active_support/tagged_logging.rb:28:in `tagged'
2022-02-17T18:31:34.139957+00:00 app[web.1]: [dc7133cd-ffca-4859-877a-c4b1c22549b4] activesupport (6.0.3.7) lib/active_support/tagged_logging.rb:80:in `tagged'
2022-02-17T18:31:34.139958+00:00 app[web.1]: [dc7133cd-ffca-4859-877a-c4b1c22549b4] railties (6.0.3.7) lib/rails/rack/logger.rb:26:in `call'
2022-02-17T18:31:34.139958+00:00 app[web.1]: [dc7133cd-ffca-4859-877a-c4b1c22549b4] actionpack (6.0.3.7) lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
2022-02-17T18:31:34.139959+00:00 app[web.1]: [dc7133cd-ffca-4859-877a-c4b1c22549b4] actionpack (6.0.3.7) lib/action_dispatch/middleware/request_id.rb:27:in `call'
2022-02-17T18:31:34.139959+00:00 app[web.1]: [dc7133cd-ffca-4859-877a-c4b1c22549b4] rack (2.2.3) lib/rack/method_override.rb:24:in `call'
2022-02-17T18:31:34.139959+00:00 app[web.1]: [dc7133cd-ffca-4859-877a-c4b1c22549b4] rack (2.2.3) lib/rack/runtime.rb:22:in `call'
2022-02-17T18:31:34.139960+00:00 app[web.1]: [dc7133cd-ffca-4859-877a-c4b1c22549b4] activesupport (6.0.3.7) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
2022-02-17T18:31:34.139960+00:00 app[web.1]: [dc7133cd-ffca-4859-877a-c4b1c22549b4] actionpack (6.0.3.7) lib/action_dispatch/middleware/executor.rb:14:in `call'
2022-02-17T18:31:34.139961+00:00 app[web.1]: [dc7133cd-ffca-4859-877a-c4b1c22549b4] actionpack (6.0.3.7) lib/action_dispatch/middleware/static.rb:126:in `call'
2022-02-17T18:31:34.139961+00:00 app[web.1]: [dc7133cd-ffca-4859-877a-c4b1c22549b4] rack (2.2.3) lib/rack/sendfile.rb:110:in `call'
2022-02-17T18:31:34.139961+00:00 app[web.1]: [dc7133cd-ffca-4859-877a-c4b1c22549b4] actionpack (6.0.3.7) lib/action_dispatch/middleware/ssl.rb:74:in `call'
2022-02-17T18:31:34.139968+00:00 app[web.1]: [dc7133cd-ffca-4859-877a-c4b1c22549b4] actionpack (6.0.3.7) lib/action_dispatch/middleware/host_authorization.rb:76:in `call'
2022-02-17T18:31:34.139968+00:00 app[web.1]: [dc7133cd-ffca-4859-877a-c4b1c22549b4] sentry-raven (3.1.2) lib/raven/integrations/rack.rb:51:in `call'
2022-02-17T18:31:34.139968+00:00 app[web.1]: [dc7133cd-ffca-4859-877a-c4b1c22549b4] hirefire-resource (0.8.1) lib/hirefire/middleware.rb:38:in `call'
2022-02-17T18:31:34.139968+00:00 app[web.1]: [dc7133cd-ffca-4859-877a-c4b1c22549b4] railties (6.0.3.7) lib/rails/engine.rb:527:in `call'
2022-02-17T18:31:34.139969+00:00 app[web.1]: [dc7133cd-ffca-4859-877a-c4b1c22549b4] puma (4.3.9) lib/puma/configuration.rb:228:in `call'
2022-02-17T18:31:34.139969+00:00 app[web.1]: [dc7133cd-ffca-4859-877a-c4b1c22549b4] puma (4.3.9) lib/puma/server.rb:718:in `handle_request'
2022-02-17T18:31:34.139969+00:00 app[web.1]: [dc7133cd-ffca-4859-877a-c4b1c22549b4] puma (4.3.9) lib/puma/server.rb:472:in `process_client'
2022-02-17T18:31:34.139969+00:00 app[web.1]: [dc7133cd-ffca-4859-877a-c4b1c22549b4] puma (4.3.9) lib/puma/server.rb:328:in `block in run'
2022-02-17T18:31:34.139969+00:00 app[web.1]: [dc7133cd-ffca-4859-877a-c4b1c22549b4] puma (4.3.9) lib/puma/thread_pool.rb:134:in `block in spawn_thread'
2022-02-17T18:31:34.140817+00:00 heroku[router]: at=info method=GET path="/.env" host=staging.domain.com request_id=dc7133cd-ffca-4859-877a-c4b1c22549b4 fwd="2600:1700:b10:9640:f096:4739:6442:3fe3,172.70.126.151" dyno=web.1 connect=0ms service=6ms status=404 bytes=1966 protocol=https
2022-02-17T18:31:45.085231+00:00 heroku[web.1]: source=web.1 dyno=heroku.130871651.b84fda64-f10b-429f-a330-d43dfb1525fe sample#load_avg_1m=0.00 sample#load_avg_5m=0.00 sample#load_avg_15m=0.00
2022-02-17T18:31:45.115556+00:00 heroku[web.1]: source=web.1 dyno=heroku.130871651.b84fda64-f10b-429f-a330-d43dfb1525fe sample#memory_total=274.26MB sample#memory_rss=251.54MB sample#memory_cache=22.72MB sample#memory_swap=0.00MB sample#memory_pgpgin=83227pages sample#memory_pgpgout=13017pages sample#memory_quota=512.00MB
2022-02-17T18:31:48.423645+00:00 heroku[worker.1]: source=worker.1 dyno=heroku.130871651.052aee64-5021-45f3-bd0d-aa3300479f2f sample#load_avg_1m=0.00 sample#load_avg_5m=0.02 sample#load_avg_15m=0.03
2022-02-17T18:31:48.467744+00:00 heroku[worker.1]: source=worker.1 dyno=heroku.130871651.052aee64-5021-45f3-bd0d-aa3300479f2f sample#memory_total=213.85MB sample#memory_rss=213.18MB sample#memory_cache=0.68MB sample#memory_swap=0.00MB sample#memory_pgpgin=73353pages sample#memory_pgpgout=18607pages sample#memory_quota=512.00MB
2022-02-17T18:32:07.879579+00:00 heroku[web.1]: source=web.1 dyno=heroku.130871651.b84fda64-f10b-429f-a330-d43dfb1525fe sample#load_avg_1m=0.00 sample#load_avg_5m=0.00 sample#load_avg_15m=0.00
2022-02-17T18:32:07.966230+00:00 heroku[web.1]: source=web.1 dyno=heroku.130871651.b84fda64-f10b-429f-a330-d43dfb1525fe sample#memory_total=274.15MB sample#memory_rss=251.66MB sample#memory_cache=22.49MB sample#memory_swap=0.00MB sample#memory_pgpgin=83258pages sample#memory_pgpgout=13075pages sample#memory_quota=512.00MB
2022-02-17T18:32:23.521477+00:00 heroku[worker.1]: source=worker.1 dyno=heroku.130871651.052aee64-5021-45f3-bd0d-aa3300479f2f sample#load_avg_1m=0.00 sample#load_avg_5m=0.01 sample#load_avg_15m=0.03
2022-02-17T18:32:23.555014+00:00 heroku[worker.1]: source=worker.1 dyno=heroku.130871651.052aee64-5021-45f3-bd0d-aa3300479f2f sample#memory_total=213.86MB sample#memory_rss=213.18MB sample#memory_cache=0.68MB sample#memory_swap=0.00MB sample#memory_pgpgin=73355pages sample#memory_pgpgout=18607pages sample#memory_quota=512.00MB
2022-02-17T18:32:28.920515+00:00 heroku[web.1]: source=web.1 dyno=heroku.130871651.b84fda64-f10b-429f-a330-d43dfb1525fe sample#load_avg_1m=0.00 sample#load_avg_5m=0.00 sample#load_avg_15m=0.00
2022-02-17T18:32:29.070470+00:00 heroku[web.1]: source=web.1 dyno=heroku.130871651.b84fda64-f10b-429f-a330-d43dfb1525fe sample#memory_total=274.25MB sample#memory_rss=251.76MB sample#memory_cache=22.49MB sample#memory_swap=0.00MB sample#memory_pgpgin=83284pages sample#memory_pgpgout=13075pages sample#memory_quota=512.00MB
I handle my 404 errors from the application controller:
def not_found
raise ActionController::RoutingError.new("Not Found")
rescue ActionController::RoutingError
render_404
end
def render_404
render(file: Rails.root.join("public", "404.html"), status: :not_found) && return
end

heroku.com page can't be found - app is rails api

I have a rails api with react client. my rails api works fine locally.
When i pushed it to heroku it deployed but when went to view it said my page couldn't be found.
i added a root route which is what it was asking for(?) but to no avail... any help would be appreciated!
i also tested heroku by deploying test rails apps.
If they were made with --api, the page once again couldn't be found.
I made one without --api, it worked initially but when tried to migrate db it resulted in debug #4 errors...
Prefix Verb URI Pattern Controller#Action
api_v1_users GET /api/v1/users(.:format) api/v1/users#index
POST /api/v1/users(.:format) api/v1/users#create
api_v1_user GET /api/v1/users/:id(.:format) api/v1/users#show
PATCH /api/v1/users/:id(.:format) api/v1/users#update
PUT /api/v1/users/:id(.:format) api/v1/users#update
DELETE /api/v1/users/:id(.:format) api/v1/users#destroy
api_v1_pets GET /api/v1/pets(.:format) api/v1/pets#index
POST /api/v1/pets(.:format) api/v1/pets#create
api_v1_pet GET /api/v1/pets/:id(.:format) api/v1/pets#show
PATCH /api/v1/pets/:id(.:format) api/v1/pets#update
PUT /api/v1/pets/:id(.:format) api/v1/pets#update
DELETE /api/v1/pets/:id(.:format) api/v1/pets#destroy
api_v1 PATCH /api/v1/pets/:id/toggle_adopt(.:format) api/v1/pets#toggle_adopt
POST /api/v1/pets/:id/adopt(.:format) api/v1/pets#adopt
POST /api/v1/users/:id/get_pet(.:format) api/v1/users#get_pet
GET /api/v1(.:format) api/v1/pets#index
api_v1_login POST /api/v1/login(.:format) api/v1/auth#login
api_v1_auto_login GET /api/v1/auto_login(.:format) api/v1/auth#auto_login
rails_mandrill_inbound_emails POST /rails/action_mailbox/mandrill/inbound_emails(.:format) action_mailbox/ingresses/mandrill/inbound_emails#create
rails_postmark_inbound_emails POST /rails/action_mailbox/postmark/inbound_emails(.:format) action_mailbox/ingresses/postmark/inbound_emails#create
rails_relay_inbound_emails POST /rails/action_mailbox/relay/inbound_emails(.:format) action_mailbox/ingresses/relay/inbound_emails#create
rails_sendgrid_inbound_emails POST /rails/action_mailbox/sendgrid/inbound_emails(.:format) action_mailbox/ingresses/sendgrid/inbound_emails#create
rails_mailgun_inbound_emails POST /rails/action_mailbox/mailgun/inbound_emails/mime(.:format) action_mailbox/ingresses/mailgun/inbound_emails#create
rails_conductor_inbound_emails GET /rails/conductor/action_mailbox/inbound_emails(.:format) rails/conductor/action_mailbox/inbound_emails#index
POST /rails/conductor/action_mailbox/inbound_emails(.:format) rails/conductor/action_mailbox/inbound_emails#create
rails_conductor_inbound_email GET /rails/conductor/action_mailbox/inbound_emails/:id(.:format) rails/conductor/action_mailbox/inbound_emails#show
PATCH /rails/conductor/action_mailbox/inbound_emails/:id(.:format) rails/conductor/action_mailbox/inbound_emails#update
PUT /rails/conductor/action_mailbox/inbound_emails/:id(.:format) rails/conductor/action_mailbox/inbound_emails#update
DELETE /rails/conductor/action_mailbox/inbound_emails/:id(.:format) rails/conductor/action_mailbox/inbound_emails#destroy
rails_conductor_inbound_email_reroute POST /rails/conductor/action_mailbox/:inbound_email_id/reroute(.:format) rails/conductor/action_mailbox/reroutes#create
rails_service_blob GET /rails/active_storage/blobs/:signed_id/*filename(.:format) active_storage/blobs#show
rails_blob_representation GET /rails/active_storage/representations/:signed_blob_id/:variation_key/*filename(.:format) active_storage/representations#show
rails_disk_service GET /rails/active_storage/disk/:encoded_key/*filename(.:format) active_storage/disk#show
update_rails_disk_service PUT /rails/active_storage/disk/:encoded_token(.:format) active_storage/disk#update
rails_direct_uploads POST /rails/active_storage/direct_uploads(.:format) active_storage/direct_uploads#create
// ♥ heroku logs
2020-02-19T16:44:53.897044+00:00 app[web.1]: [0e32db7c-e3cb-4afb-a003-d73b769ce813] actionpack (6.0.2.1) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
2020-02-19T16:44:53.897044+00:00 app[web.1]: [0e32db7c-e3cb-4afb-a003-d73b769ce813] railties (6.0.2.1) lib/rails/rack/logger.rb:38:in `call_app'
2020-02-19T16:44:53.897044+00:00 app[web.1]: [0e32db7c-e3cb-4afb-a003-d73b769ce813] railties (6.0.2.1) lib/rails/rack/logger.rb:26:in `block in call'
2020-02-19T16:44:53.897044+00:00 app[web.1]: [0e32db7c-e3cb-4afb-a003-d73b769ce813] activesupport (6.0.2.1) lib/active_support/tagged_logging.rb:80:in `block in tagged'
2020-02-19T16:44:53.897045+00:00 app[web.1]: [0e32db7c-e3cb-4afb-a003-d73b769ce813] activesupport (6.0.2.1) lib/active_support/tagged_logging.rb:28:in `tagged'
2020-02-19T16:44:53.897045+00:00 app[web.1]: [0e32db7c-e3cb-4afb-a003-d73b769ce813] activesupport (6.0.2.1) lib/active_support/tagged_logging.rb:80:in `tagged'
2020-02-19T16:44:53.897045+00:00 app[web.1]: [0e32db7c-e3cb-4afb-a003-d73b769ce813] railties (6.0.2.1) lib/rails/rack/logger.rb:26:in `call'
2020-02-19T16:44:53.897046+00:00 app[web.1]: [0e32db7c-e3cb-4afb-a003-d73b769ce813] actionpack (6.0.2.1) lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
2020-02-19T16:44:53.897046+00:00 app[web.1]: [0e32db7c-e3cb-4afb-a003-d73b769ce813] actionpack (6.0.2.1) lib/action_dispatch/middleware/request_id.rb:27:in `call'
2020-02-19T16:44:53.897046+00:00 app[web.1]: [0e32db7c-e3cb-4afb-a003-d73b769ce813] rack (2.2.2) lib/rack/runtime.rb:22:in `call'
2020-02-19T16:44:53.897047+00:00 app[web.1]: [0e32db7c-e3cb-4afb-a003-d73b769ce813] activesupport (6.0.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
2020-02-19T16:44:53.897047+00:00 app[web.1]: [0e32db7c-e3cb-4afb-a003-d73b769ce813] actionpack (6.0.2.1) lib/action_dispatch/middleware/executor.rb:14:in `call'
2020-02-19T16:44:53.897047+00:00 app[web.1]: [0e32db7c-e3cb-4afb-a003-d73b769ce813] actionpack (6.0.2.1) lib/action_dispatch/middleware/static.rb:126:in `call'
2020-02-19T16:44:53.897047+00:00 app[web.1]: [0e32db7c-e3cb-4afb-a003-d73b769ce813] rack (2.2.2) lib/rack/sendfile.rb:110:in `call'
2020-02-19T16:44:53.897047+00:00 app[web.1]: [0e32db7c-e3cb-4afb-a003-d73b769ce813] actionpack (6.0.2.1) lib/action_dispatch/middleware/host_authorization.rb:77:in `call'
2020-02-19T16:44:53.897048+00:00 app[web.1]: [0e32db7c-e3cb-4afb-a003-d73b769ce813] rack-cors (1.1.1) lib/rack/cors.rb:100:in `call'
2020-02-19T16:44:53.897048+00:00 app[web.1]: [0e32db7c-e3cb-4afb-a003-d73b769ce813] railties (6.0.2.1) lib/rails/engine.rb:526:in `call'
2020-02-19T16:44:53.897048+00:00 app[web.1]: [0e32db7c-e3cb-4afb-a003-d73b769ce813] puma (4.3.1) lib/puma/configuration.rb:228:in `call'
2020-02-19T16:44:53.897048+00:00 app[web.1]: [0e32db7c-e3cb-4afb-a003-d73b769ce813] puma (4.3.1) lib/puma/server.rb:681:in `handle_request'
2020-02-19T16:44:53.897049+00:00 app[web.1]: [0e32db7c-e3cb-4afb-a003-d73b769ce813] puma (4.3.1) lib/puma/server.rb:472:in `process_client'
2020-02-19T16:44:53.897049+00:00 app[web.1]: [0e32db7c-e3cb-4afb-a003-d73b769ce813] puma (4.3.1) lib/puma/server.rb:328:in `block in run'
2020-02-19T16:44:53.897049+00:00 app[web.1]: [0e32db7c-e3cb-4afb-a003-d73b769ce813] puma (4.3.1) lib/puma/thread_pool.rb:134:in `block in spawn_thread'
2020-02-19T17:22:24.570026+00:00 heroku[web.1]: Idling
2020-02-19T17:22:24.573775+00:00 heroku[web.1]: State changed from up to down
2020-02-19T17:22:25.738188+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2020-02-19T17:22:25.771134+00:00 app[web.1]: - Gracefully stopping, waiting for requests to finish
2020-02-19T17:22:25.773522+00:00 app[web.1]: === puma shutdown: 2020-02-19 17:22:25 +0000 ===
2020-02-19T17:22:25.773546+00:00 app[web.1]: - Goodbye!
2020-02-19T17:22:25.866786+00:00 heroku[web.1]: Process exited with status 143
2020-02-19T18:47:00.519301+00:00 heroku[web.1]: Unidling
2020-02-19T18:47:00.536382+00:00 heroku[web.1]: State changed from down to starting
2020-02-19T18:47:03.058431+00:00 heroku[web.1]: Starting process with command `bundle exec puma -t 5:5 -p ${PORT:-3000} -e ${RACK_ENV:-development}`
2020-02-19T18:47:05.399248+00:00 app[web.1]: Puma starting in single mode...
2020-02-19T18:47:05.399262+00:00 app[web.1]: * Version 4.3.1 (ruby 2.6.5-p114), codename: Mysterious Traveller
2020-02-19T18:47:05.399263+00:00 app[web.1]: * Min threads: 5, max threads: 5
2020-02-19T18:47:05.399263+00:00 app[web.1]: * Environment: production
2020-02-19T18:47:11.357442+00:00 app[web.1]: * Listening on tcp://0.0.0.0:54444
2020-02-19T18:47:11.357812+00:00 app[web.1]: Use Ctrl-C to stop
2020-02-19T18:47:11.926899+00:00 heroku[web.1]: State changed from starting to up
2020-02-19T18:47:12.591966+00:00 heroku[router]: at=info method=OPTIONS path="/api/v1/auto_login" host=boiling-garden-61294.herokuapp.com request_id=63546cfe-0db6-4273-88ff-652097e7432c fwd="184.153.22.244" dyno=web.1 connect=1ms service=1ms status=200 bytes=307 protocol=https
2020-02-19T19:02:50.855756+00:00 app[web.1]: I, [2020-02-19T19:02:50.855651 #4] INFO -- : [3c337a3b-162b-4362-8d16-0ed2f50318c5] Started GET "/api/v1/auto_login" for 184.153.22.244 at 2020-02-19 19:02:50 +0000
2020-02-19T19:02:50.857404+00:00 app[web.1]: I, [2020-02-19T19:02:50.857329 #4] INFO -- : [3c337a3b-162b-4362-8d16-0ed2f50318c5] Processing by Api::V1::AuthController#auto_login as */*
2020-02-19T19:02:52.341221+00:00 app[web.1]: D, [2020-02-19T19:02:52.341059 #4] DEBUG -- : [3c337a3b-162b-4362-8d16-0ed2f50318c5] User Load (17.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]]
2020-02-19T19:02:52.426916+00:00 app[web.1]: D, [2020-02-19T19:02:52.426791 #4] DEBUG -- : [3c337a3b-162b-4362-8d16-0ed2f50318c5] CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]]
2020-02-19T19:02:52.473014+00:00 app[web.1]: D, [2020-02-19T19:02:52.472882 #4] DEBUG -- : [3c337a3b-162b-4362-8d16-0ed2f50318c5] [active_model_serializers] Pet Load (35.6ms) SELECT "pets".* FROM "pets" WHERE "pets"."owner_id" = $1 [["owner_id", 4]]
2020-02-19T19:02:52.493448+00:00 app[web.1]: I, [2020-02-19T19:02:52.493334 #4] INFO -- : [3c337a3b-162b-4362-8d16-0ed2f50318c5] [active_model_serializers] Rendered UserSerializer with ActiveModelSerializers::Adapter::Attributes (65.55ms)
2020-02-19T19:02:52.493828+00:00 app[web.1]: I, [2020-02-19T19:02:52.493752 #4] INFO -- : [3c337a3b-162b-4362-8d16-0ed2f50318c5] Completed 200 OK in 1636ms (Views: 23.2ms | ActiveRecord: 1558.9ms | Allocations: 17956)
2020-02-19T19:02:52.495894+00:00 heroku[router]: at=info method=GET path="/api/v1/auto_login" host=boiling-garden-61294.herokuapp.com request_id=3c337a3b-162b-4362-8d16-0ed2f50318c5 fwd="184.153.22.244" dyno=web.1 connect=0ms service=1641ms status=304 bytes=636 protocol=https
2020-02-19T19:38:32.700667+00:00 heroku[web.1]: Idling
2020-02-19T19:38:32.705096+00:00 heroku[web.1]: State changed from up to down
2020-02-19T19:38:33.831696+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2020-02-19T19:38:33.852410+00:00 app[web.1]: - Gracefully stopping, waiting for requests to finish
2020-02-19T19:38:33.858074+00:00 app[web.1]: === puma shutdown: 2020-02-19 19:38:33 +0000 ===
2020-02-19T19:38:33.858355+00:00 app[web.1]: - Goodbye!
2020-02-19T19:38:33.969920+00:00 heroku[web.1]: Process exited with status 143
2020-02-19T20:07:07.613633+00:00 heroku[web.1]: Unidling
2020-02-19T20:07:07.628601+00:00 heroku[web.1]: State changed from down to starting
2020-02-19T20:07:10.629524+00:00 heroku[web.1]: Starting process with command `bundle exec puma -t 5:5 -p ${PORT:-3000} -e ${RACK_ENV:-development}`
2020-02-19T20:07:13.443149+00:00 app[web.1]: Puma starting in single mode...
2020-02-19T20:07:13.443242+00:00 app[web.1]: * Version 4.3.1 (ruby 2.6.5-p114), codename: Mysterious Traveller
2020-02-19T20:07:13.443243+00:00 app[web.1]: * Min threads: 5, max threads: 5
2020-02-19T20:07:13.443244+00:00 app[web.1]: * Environment: production
2020-02-19T20:07:19.064575+00:00 app[web.1]: * Listening on tcp://0.0.0.0:26954
2020-02-19T20:07:19.065126+00:00 app[web.1]: Use Ctrl-C to stop
2020-02-19T20:07:19.389039+00:00 heroku[web.1]: State changed from starting to up
2020-02-19T20:07:21.691904+00:00 app[web.1]: I, [2020-02-19T20:07:21.691780 #4] INFO -- : [de344029-a862-437f-8eeb-e7c3092c3894] Started GET "/" for 184.153.22.244 at 2020-02-19 20:07:21 +0000
2020-02-19T20:07:21.693363+00:00 app[web.1]: F, [2020-02-19T20:07:21.693281 #4] FATAL -- : [de344029-a862-437f-8eeb-e7c3092c3894]
2020-02-19T20:07:21.693364+00:00 app[web.1]: [de344029-a862-437f-8eeb-e7c3092c3894] ActionController::RoutingError (No route matches [GET] "/"):
2020-02-19T20:07:21.693365+00:00 app[web.1]: [de344029-a862-437f-8eeb-e7c3092c3894]
2020-02-19T20:07:21.693379+00:00 app[web.1]: [de344029-a862-437f-8eeb-e7c3092c3894] actionpack (6.0.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:36:in `call'
2020-02-19T20:07:21.693379+00:00 app[web.1]: [de344029-a862-437f-8eeb-e7c3092c3894] actionpack (6.0.2.1) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
2020-02-19T20:07:21.693380+00:00 app[web.1]: [de344029-a862-437f-8eeb-e7c3092c3894] railties (6.0.2.1) lib/rails/rack/logger.rb:38:in `call_app'
2020-02-19T20:07:21.693380+00:00 app[web.1]: [de344029-a862-437f-8eeb-e7c3092c3894] railties (6.0.2.1) lib/rails/rack/logger.rb:26:in `block in call'
2020-02-19T20:07:21.693381+00:00 app[web.1]: [de344029-a862-437f-8eeb-e7c3092c3894] activesupport (6.0.2.1) lib/active_support/tagged_logging.rb:80:in `block in tagged'
2020-02-19T20:07:21.693381+00:00 app[web.1]: [de344029-a862-437f-8eeb-e7c3092c3894] activesupport (6.0.2.1) lib/active_support/tagged_logging.rb:28:in `tagged'
2020-02-19T20:07:21.693381+00:00 app[web.1]: [de344029-a862-437f-8eeb-e7c3092c3894] activesupport (6.0.2.1) lib/active_support/tagged_logging.rb:80:in `tagged'
2020-02-19T20:07:21.693382+00:00 app[web.1]: [de344029-a862-437f-8eeb-e7c3092c3894] railties (6.0.2.1) lib/rails/rack/logger.rb:26:in `call'
2020-02-19T20:07:21.693382+00:00 app[web.1]: [de344029-a862-437f-8eeb-e7c3092c3894] actionpack (6.0.2.1) lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
2020-02-19T20:07:21.693382+00:00 app[web.1]: [de344029-a862-437f-8eeb-e7c3092c3894] actionpack (6.0.2.1) lib/action_dispatch/middleware/request_id.rb:27:in `call'
2020-02-19T20:07:21.693383+00:00 app[web.1]: [de344029-a862-437f-8eeb-e7c3092c3894] rack (2.2.2) lib/rack/runtime.rb:22:in `call'
2020-02-19T20:07:21.693384+00:00 app[web.1]: [de344029-a862-437f-8eeb-e7c3092c3894] activesupport (6.0.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
2020-02-19T20:07:21.693385+00:00 app[web.1]: [de344029-a862-437f-8eeb-e7c3092c3894] actionpack (6.0.2.1) lib/action_dispatch/middleware/executor.rb:14:in `call'
2020-02-19T20:07:21.693385+00:00 app[web.1]: [de344029-a862-437f-8eeb-e7c3092c3894] actionpack (6.0.2.1) lib/action_dispatch/middleware/static.rb:126:in `call'
2020-02-19T20:07:21.693385+00:00 app[web.1]: [de344029-a862-437f-8eeb-e7c3092c3894] rack (2.2.2) lib/rack/sendfile.rb:110:in `call'
2020-02-19T20:07:21.693386+00:00 app[web.1]: [de344029-a862-437f-8eeb-e7c3092c3894] actionpack (6.0.2.1) lib/action_dispatch/middleware/host_authorization.rb:77:in `call'
2020-02-19T20:07:21.693386+00:00 app[web.1]: [de344029-a862-437f-8eeb-e7c3092c3894] rack-cors (1.1.1) lib/rack/cors.rb:100:in `call'
2020-02-19T20:07:21.693387+00:00 app[web.1]: [de344029-a862-437f-8eeb-e7c3092c3894] railties (6.0.2.1) lib/rails/engine.rb:526:in `call'
2020-02-19T20:07:21.693387+00:00 app[web.1]: [de344029-a862-437f-8eeb-e7c3092c3894] puma (4.3.1) lib/puma/configuration.rb:228:in `call'
2020-02-19T20:07:21.693387+00:00 app[web.1]: [de344029-a862-437f-8eeb-e7c3092c3894] puma (4.3.1) lib/puma/server.rb:681:in `handle_request'
2020-02-19T20:07:21.693388+00:00 app[web.1]: [de344029-a862-437f-8eeb-e7c3092c3894] puma (4.3.1) lib/puma/server.rb:472:in `process_client'
2020-02-19T20:07:21.693388+00:00 app[web.1]: [de344029-a862-437f-8eeb-e7c3092c3894] puma (4.3.1) lib/puma/server.rb:328:in `block in run'
2020-02-19T20:07:21.693389+00:00 app[web.1]: [de344029-a862-437f-8eeb-e7c3092c3894] puma (4.3.1) lib/puma/thread_pool.rb:134:in `block in spawn_thread'
2020-02-19T20:07:21.695902+00:00 heroku[router]: at=info method=GET path="/" host=boiling-garden-61294.herokuapp.com request_id=de344029-a862-437f-8eeb-e7c3092c3894 fwd="184.153.22.244" dyno=web.1 connect=1ms service=7ms status=404 bytes=191 protocol=https
2020-02-19T20:38:22.500446+00:00 heroku[web.1]: Idling
2020-02-19T20:38:22.505029+00:00 heroku[web.1]: State changed from up to down
2020-02-19T20:38:23.149591+00:00 app[web.1]: - Gracefully stopping, waiting for requests to finish
2020-02-19T20:38:23.150452+00:00 app[web.1]: === puma shutdown: 2020-02-19 20:38:23 +0000 ===
2020-02-19T20:38:23.150454+00:00 app[web.1]: - Goodbye!
2020-02-19T20:38:23.141795+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2020-02-19T20:38:23.197413+00:00 heroku[web.1]: Process exited with status 143```
This is a normal behavior in --api only applications, simply rails doesn't know what to serve. In API only applications ApplicationController inherits from ActionController::API instead of ActionController::Base which removes some functionality required by browsers.
An API Controller is different from a normal controller in the sense that by default it doesn't include some features that are usually required by browser access only: layouts and templates rendering, flash, assets, and so on. This makes the entire controller stack thinner, suitable for API applications. It doesn't mean you won't have such features if you need them: they're all available for you to include in your application, they're just not part of the default API controller stack.
Source: https://api.rubyonrails.org/classes/ActionController/API.html
If you have designed the application as json api, all json format urls should work fine.

Page not displaying on heroku - heroku[router]: status = 500

Could one advise me on how to correct this error, i have no clue and i have tried all helps from other pages on stackoverflow.
i have tried all the below recommended suggestions by others:
suggestion1: log entries
gem 'rails_12factor'
changing config.log_level = :debug
rake db:migrate
heroku config:set
but i am unsure why i get the below error. Your help and advise would be much appreciated.
error message in console:
2018-06-05T16:57:24.444942+00:00 heroku[router]: at=info method=GET path="/adverts/product-manager" host=www.africanjober.com request_id=f4308437-df4b-435e-a4d9-ee4080c86de9 fwd="178.239.106.244" dyno=web.1 connect=1ms service=29ms status=500 bytes=1754 protocol=http
2018-06-05T16:57:24.674917+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=www.africanjober.com request_id=7d28bd15-a173-4a7f-8f0d-79bb5ebddadd fwd="178.239.106.244" dyno=web.1 connect=1ms service=3ms status=304 bytes=133 protocol=http
complete console message:
018-06-05T16:57:24.443367+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/activerecord-4.1.10/lib/active_record/persistence.rb:484:in `create_or_update'
2018-06-05T16:57:24.443369+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/activerecord-4.1.10/lib/active_record/callbacks.rb:302:in `block in create_or_update'
2018-06-05T16:57:24.443371+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/activesupport-4.1.10/lib/active_support/callbacks.rb:113:in `call'
2018-06-05T16:57:24.443373+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/activesupport-4.1.10/lib/active_support/callbacks.rb:552:in `block (2 levels) in compile'
2018-06-05T16:57:24.443374+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/activesupport-4.1.10/lib/active_support/callbacks.rb:502:in `call'
2018-06-05T16:57:24.443376+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/activesupport-4.1.10/lib/active_support/callbacks.rb:86:in `run_callbacks'
2018-06-05T16:57:24.443377+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/activerecord-4.1.10/lib/active_record/callbacks.rb:302:in `create_or_update'
2018-06-05T16:57:24.443379+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/activerecord-4.1.10/lib/active_record/persistence.rb:103:in `save'
2018-06-05T16:57:24.443381+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/activerecord-4.1.10/lib/active_record/validations.rb:51:in `save'
2018-06-05T16:57:24.443382+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/activerecord-4.1.10/lib/active_record/attribute_methods/dirty.rb:21:in `save'
2018-06-05T16:57:24.443383+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/activerecord-4.1.10/lib/active_record/transactions.rb:268:in `block (2 levels) in save'
2018-06-05T16:57:24.443385+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/activerecord-4.1.10/lib/active_record/transactions.rb:329:in `block in with_transaction_returning_status'
2018-06-05T16:57:24.443387+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/activerecord-4.1.10/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `block in transaction'
2018-06-05T16:57:24.443395+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/activerecord-4.1.10/lib/active_record/connection_adapters/abstract/database_statements.rb:209:in `within_new_transaction'
2018-06-05T16:57:24.443397+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/activerecord-4.1.10/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `transaction'
2018-06-05T16:57:24.443398+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/activerecord-4.1.10/lib/active_record/transactions.rb:208:in `transaction'
2018-06-05T16:57:24.443400+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/activerecord-4.1.10/lib/active_record/transactions.rb:326:in `with_transaction_returning_status'
2018-06-05T16:57:24.443402+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/activerecord-4.1.10/lib/active_record/transactions.rb:268:in `block in save'
2018-06-05T16:57:24.443404+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/activerecord-4.1.10/lib/active_record/transactions.rb:283:in `rollback_active_record_state!'
2018-06-05T16:57:24.443406+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/activerecord-4.1.10/lib/active_record/transactions.rb:267:in `save'
2018-06-05T16:57:24.443407+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/activerecord-4.1.10/lib/active_record/persistence.rb:34:in `create'
2018-06-05T16:57:24.443409+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/impressionist-1.6.1/app/controllers/impressionist_controller.rb:45:in `impressionist_subapp_filter'
2018-06-05T16:57:24.443411+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/impressionist-1.6.1/app/controllers/impressionist_controller.rb:9:in `block in impressionist'
2018-06-05T16:57:24.443412+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/activesupport-4.1.10/lib/active_support/callbacks.rb:445:in `instance_exec'
2018-06-05T16:57:24.443414+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/activesupport-4.1.10/lib/active_support/callbacks.rb:445:in `block in make_lambda'
2018-06-05T16:57:24.443416+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/activesupport-4.1.10/lib/active_support/callbacks.rb:161:in `block in halting'
2018-06-05T16:57:24.443418+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/activesupport-4.1.10/lib/active_support/callbacks.rb:501:in `block in call'
2018-06-05T16:57:24.443420+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/activesupport-4.1.10/lib/active_support/callbacks.rb:501:in `each'
2018-06-05T16:57:24.443422+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/activesupport-4.1.10/lib/active_support/callbacks.rb:501:in `call'
2018-06-05T16:57:24.443423+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/activesupport-4.1.10/lib/active_support/callbacks.rb:495:in `block (2 levels) in around'
2018-06-05T16:57:24.443425+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/activesupport-4.1.10/lib/active_support/callbacks.rb:306:in `block (2 levels) in halting'
2018-06-05T16:57:24.443427+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/public_activity-1.5.0/lib/public_activity/utility/store_controller.rb:25:in `store_controller_for_public_activity'
2018-06-05T16:57:24.443429+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/activesupport-4.1.10/lib/active_support/callbacks.rb:429:in `block in make_lambda'
2018-06-05T16:57:24.443430+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/activesupport-4.1.10/lib/active_support/callbacks.rb:305:in `block in halting'
2018-06-05T16:57:24.443432+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/activesupport-4.1.10/lib/active_support/callbacks.rb:494:in `block in around'
2018-06-05T16:57:24.443434+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/activesupport-4.1.10/lib/active_support/callbacks.rb:502:in `call'
2018-06-05T16:57:24.443436+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/activesupport-4.1.10/lib/active_support/callbacks.rb:86:in `run_callbacks'
2018-06-05T16:57:24.443437+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/actionpack-4.1.10/lib/abstract_controller/callbacks.rb:19:in `process_action'
2018-06-05T16:57:24.443439+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/actionpack-4.1.10/lib/action_controller/metal/rescue.rb:29:in `process_action'
2018-06-05T16:57:24.443440+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/actionpack-4.1.10/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
2018-06-05T16:57:24.443442+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/activesupport-4.1.10/lib/active_support/notifications.rb:159:in `block in instrument'
2018-06-05T16:57:24.443444+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/activesupport-4.1.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
2018-06-05T16:57:24.443445+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/activesupport-4.1.10/lib/active_support/notifications.rb:159:in `instrument'
2018-06-05T16:57:24.443447+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/actionpack-4.1.10/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
2018-06-05T16:57:24.443449+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/actionpack-4.1.10/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
2018-06-05T16:57:24.443451+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/activerecord-4.1.10/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
2018-06-05T16:57:24.443454+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/actionview-4.1.10/lib/action_view/rendering.rb:30:in `process'
2018-06-05T16:57:24.443452+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/actionpack-4.1.10/lib/abstract_controller/base.rb:136:in `process'
2018-06-05T16:57:24.443462+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/actionpack-4.1.10/lib/action_controller/metal.rb:196:in `dispatch'
2018-06-05T16:57:24.443464+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/actionpack-4.1.10/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
2018-06-05T16:57:24.443466+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/actionpack-4.1.10/lib/action_controller/metal.rb:232:in `block in action'
2018-06-05T16:57:24.443468+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/actionpack-4.1.10/lib/action_dispatch/routing/route_set.rb:82:in `dispatch'
2018-06-05T16:57:24.443469+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/actionpack-4.1.10/lib/action_dispatch/routing/route_set.rb:50:in `call'
2018-06-05T16:57:24.443471+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/actionpack-4.1.10/lib/action_dispatch/journey/router.rb:73:in `block in call'
2018-06-05T16:57:24.443473+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/actionpack-4.1.10/lib/action_dispatch/journey/router.rb:59:in `each'
2018-06-05T16:57:24.443475+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/actionpack-4.1.10/lib/action_dispatch/journey/router.rb:59:in `call'
2018-06-05T16:57:24.443476+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/actionpack-4.1.10/lib/action_dispatch/routing/route_set.rb:692:in `call'
2018-06-05T16:57:24.443478+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/warden-1.2.7/lib/warden/manager.rb:36:in `block in call'
2018-06-05T16:57:24.443480+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/warden-1.2.7/lib/warden/manager.rb:35:in `catch'
2018-06-05T16:57:24.443482+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/warden-1.2.7/lib/warden/manager.rb:35:in `call'
2018-06-05T16:57:24.443483+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/rack-1.5.5/lib/rack/etag.rb:23:in `call'
2018-06-05T16:57:24.443485+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/rack-1.5.5/lib/rack/conditionalget.rb:25:in `call'
2018-06-05T16:57:24.443487+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/rack-1.5.5/lib/rack/head.rb:11:in `call'
2018-06-05T16:57:24.443488+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/actionpack-4.1.10/lib/action_dispatch/middleware/params_parser.rb:27:in `call'
2018-06-05T16:57:24.443490+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/actionpack-4.1.10/lib/action_dispatch/middleware/flash.rb:254:in `call'
2018-06-05T16:57:24.443492+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/rack-1.5.5/lib/rack/session/abstract/id.rb:225:in `context'
2018-06-05T16:57:24.443493+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/rack-1.5.5/lib/rack/session/abstract/id.rb:220:in `call'
2018-06-05T16:57:24.443495+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/actionpack-4.1.10/lib/action_dispatch/middleware/cookies.rb:562:in `call'
2018-06-05T16:57:24.443497+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/activerecord-4.1.10/lib/active_record/query_cache.rb:36:in `call'
2018-06-05T16:57:24.443498+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/activerecord-4.1.10/lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'
2018-06-05T16:57:24.443500+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/actionpack-4.1.10/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
2018-06-05T16:57:24.443501+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/activesupport-4.1.10/lib/active_support/callbacks.rb:82:in `run_callbacks'
2018-06-05T16:57:24.443505+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/actionpack-4.1.10/lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
2018-06-05T16:57:24.443503+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/actionpack-4.1.10/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
2018-06-05T16:57:24.443507+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/actionpack-4.1.10/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
2018-06-05T16:57:24.443509+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/actionpack-4.1.10/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
2018-06-05T16:57:24.443511+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/railties-4.1.10/lib/rails/rack/logger.rb:38:in `call_app'
2018-06-05T16:57:24.443512+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/railties-4.1.10/lib/rails/rack/logger.rb:20:in `block in call'
2018-06-05T16:57:24.443514+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/activesupport-4.1.10/lib/active_support/tagged_logging.rb:68:in `block in tagged'
2018-06-05T16:57:24.443516+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/activesupport-4.1.10/lib/active_support/tagged_logging.rb:26:in `tagged'
2018-06-05T16:57:24.443518+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/activesupport-4.1.10/lib/active_support/tagged_logging.rb:68:in `tagged'
2018-06-05T16:57:24.443520+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/railties-4.1.10/lib/rails/rack/logger.rb:20:in `call'
2018-06-05T16:57:24.443521+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/actionpack-4.1.10/lib/action_dispatch/middleware/request_id.rb:21:in `call'
2018-06-05T16:57:24.443523+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/rack-1.5.5/lib/rack/methodoverride.rb:21:in `call'
2018-06-05T16:57:24.443525+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/rack-1.5.5/lib/rack/runtime.rb:17:in `call'
2018-06-05T16:57:24.443527+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/activesupport-4.1.10/lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
2018-06-05T16:57:24.443530+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/rack-1.5.5/lib/rack/sendfile.rb:112:in `call'
2018-06-05T16:57:24.443528+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/actionpack-4.1.10/lib/action_dispatch/middleware/static.rb:84:in `call'
2018-06-05T16:57:24.443531+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/railties-4.1.10/lib/rails/engine.rb:514:in `call'
2018-06-05T16:57:24.443538+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/railties-4.1.10/lib/rails/application.rb:144:in `call'
2018-06-05T16:57:24.443540+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/rack-1.5.5/lib/rack/lock.rb:17:in `call'
2018-06-05T16:57:24.443542+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/rack-1.5.5/lib/rack/content_length.rb:14:in `call'
2018-06-05T16:57:24.443544+00:00 app[web.1]: vendor/bundle/ruby/2.3.0/gems/rack-1.5.5/lib/rack/handler/webrick.rb:60:in `service'
2018-06-05T16:57:24.443545+00:00 app[web.1]: vendor/ruby-2.3.0/lib/ruby/2.3.0/webrick/httpserver.rb:140:in `service'
2018-06-05T16:57:24.443547+00:00 app[web.1]: vendor/ruby-2.3.0/lib/ruby/2.3.0/webrick/httpserver.rb:96:in `run'
2018-06-05T16:57:24.443549+00:00 app[web.1]: vendor/ruby-2.3.0/lib/ruby/2.3.0/webrick/server.rb:296:in `block in start_thread'
2018-06-05T16:57:24.443551+00:00 app[web.1]:
2018-06-05T16:57:24.443552+00:00 app[web.1]:
2018-06-05T16:57:24.444942+00:00 heroku[router]: at=info method=GET path="/adverts/product-manager" host=www.africanjober.com request_id=f4308437-df4b-435e-a4d9-ee4080c86de9 fwd="178.239.106.244" dyno=web.1 connect=1ms service=29ms status=500 bytes=1754 protocol=http
2018-06-05T16:57:24.674917+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=www.africanjober.com request_id=7d28bd15-a173-4a7f-8f0d-79bb5ebddadd fwd="178.239.106.244" dyno=web.1 connect=1ms service=3ms status=304 bytes=133 protocol=http
It looks to be a database error which typically happens when you only run migrations on your local and forget to run migrations on the heroku
box. Run
heroku run rake db:migrate
to run migrations on your deployed box after you've pushed your latest git commit to it.
This has been resolved. Thank you to everyone
This was due to restricted access to the database using heroku.
I was on the heroku DATABASE_URL which permitted a maximum on 10'000 rows of code. i had 10'891 rows of code
to find out more on your pg database, type: heroku pg:info --app yourAppName
i had to upgrade [in the admin panel] to HEROKU_POSTGRESQL_GOLD_URL or you can simply type in the terminal heroku pg:upgrade HEROKU_POSTGRESQL_GOLD --app yourAppName
before you upgrade ensure maintenance is on. in the terminal type: heroku maintenance:on
new database url i selected is currently $9/mth - this permits more rows of code
once you've upgraded in the terminal, type: heroku pg:promote HEROKU_POSTGRESQL_GOLD to set it as the default database
if you currently have data stored in the previous, type: heroku pg:copy DATABASE_URL HEROKU_POSTGRESQL_GOLD --app yourAppName to transfer data
for more detailed info checkout this link: upgrading-heroku-postgres-databases

Heroku & Rails We're sorry, but something went wrong

I created a project. It works correct at localhost, but when i'm trying to deploy it on heroku, it returns me "We're sorry, but something went wrong". It's quity simple project from tutorial and i don't know where's problem.
Here is my logs:
2013-03-22T19:31:10+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:245:in `fetch'
2013-03-22T19:31:10+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.12/lib/rails/engine.rb:479:in `call'
2013-03-22T19:31:10+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.12/lib/rails/rack/log_tailer.rb:17:in `call'
2013-03-22T19:31:10+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/lock.rb:15:in `call'
2013-03-22T19:31:10+00:00 app[web.1]: /usr/local/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
2013-03-22T19:31:10+00:00 app[web.1]:
2013-03-22T19:31:10+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:136:in `forward'
2013-03-22T19:31:10+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/content_length.rb:14:in `call'
2013-03-22T19:31:10+00:00 app[web.1]: /usr/local/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'
2013-03-22T19:31:10+00:00 app[web.1]:
2013-03-22T19:31:10+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:51:in `call'
2013-03-22T19:31:10+00:00 heroku[router]: at=info method=GET path=/ host=ancient-cliffs-5913.herokuapp.com fwd="46.72.70.205" dyno=web.1 queue=0 wait=0ms connect=2ms service=18ms status=500 bytes=643
2013-03-22T19:31:10+00:00 heroku[router]: at=info method=GET path=/favicon.ico host=ancient-cliffs-5913.herokuapp.com fwd="46.72.70.205" dyno=web.1 queue=0 wait=15ms connect=7ms service=23ms status=304 bytes=0
2013-03-22T19:31:13+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/query_cache.rb:67:in `rescue in call'
2013-03-22T19:31:13+00:00 app[web.1]: ActiveRecord::ConnectionNotEstablished (ActiveRecord::ConnectionNotEstablished):
2013-03-22T19:31:13+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/connection_specification.rb:171:in `retrieve_connection'
2013-03-22T19:31:13+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/query_cache.rb:61:in `call'
2013-03-22T19:31:13+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.12/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
2013-03-22T19:31:13+00:00 app[web.1]:
2013-03-22T19:31:13+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/connection_specification.rb:145:in `connection'
2013-03-22T19:31:13+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:405:in `__run_callback'
2013-03-22T19:31:13+00:00 app[web.1]: Started GET "/" for 46.72.70.205 at 2013-03-22 19:31:13 +0000
2013-03-22T19:31:13+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
2013-03-22T19:31:13+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/connection_pool.rb:410:in `retrieve_connection'
2013-03-22T19:31:13+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:405:in `_run__3995827767081244094__call__3680287303298643332__callbacks'
2013-03-22T19:31:13+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:81:in `run_callbacks'
2013-03-22T19:31:13+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
2013-03-22T19:31:13+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.12/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
2013-03-22T19:31:13+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.12/lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
2013-03-22T19:31:13+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.12/lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
2013-03-22T19:31:13+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.12/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
2013-03-22T19:31:13+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.12/lib/rails/rack/logger.rb:16:in `block in call'
2013-03-22T19:31:13+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.12/lib/active_support/tagged_logging.rb:22:in `tagged'
2013-03-22T19:31:13+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.12/lib/rails/rack/logger.rb:32:in `call_app'
2013-03-22T19:31:13+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.12/lib/action_dispatch/middleware/request_id.rb:22:in `call'
2013-03-22T19:31:13+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/runtime.rb:17:in `call'
2013-03-22T19:31:13+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.12/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
2013-03-22T19:31:13+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:185:in `lookup'
2013-03-22T19:31:13+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.12/lib/rails/rack/logger.rb:16:in `call'
2013-03-22T19:31:13+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/lock.rb:15:in `call'
2013-03-22T19:31:13+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:245:in `fetch'
2013-03-22T19:31:13+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:66:in `call!'
2013-03-22T19:31:13+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/methodoverride.rb:21:in `call'
2013-03-22T19:31:13+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/content_length.rb:14:in `call'
2013-03-22T19:31:13+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/handler/webrick.rb:59:in `service'
2013-03-22T19:31:13+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.12/lib/rails/application.rb:223:in `call'
2013-03-22T19:31:13+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.12/lib/action_dispatch/middleware/static.rb:62:in `call'
2013-03-22T19:31:13+00:00 app[web.1]:
2013-03-22T19:31:13+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.12/lib/rails/engine.rb:479:in `call'
2013-03-22T19:31:13+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:136:in `forward'
2013-03-22T19:31:13+00:00 app[web.1]:
2013-03-22T19:31:13+00:00 app[web.1]: /usr/local/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
2013-03-22T19:31:13+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:51:in `call'
2013-03-22T19:31:13+00:00 app[web.1]: /usr/local/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'
2013-03-22T19:31:13+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.12/lib/rails/rack/log_tailer.rb:17:in `call'
2013-03-22T19:31:13+00:00 app[web.1]: /usr/local/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
2013-03-22T19:31:14+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/query_cache.rb:67:in `rescue in call'
2013-03-22T19:31:14+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/query_cache.rb:61:in `call'
2013-03-22T19:31:14+00:00 app[web.1]: Started GET "/" for 46.72.70.205 at 2013-03-22 19:31:14 +0000
2013-03-22T19:31:14+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/connection_specification.rb:145:in `connection'
2013-03-22T19:31:14+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
2013-03-22T19:31:14+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/connection_pool.rb:410:in `retrieve_connection'
2013-03-22T19:31:14+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/connection_specification.rb:171:in `retrieve_connection'
2013-03-22T19:31:14+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/lock.rb:15:in `call'
2013-03-22T19:31:14+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.12/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
2013-03-22T19:31:14+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:136:in `forward'
2013-03-22T19:31:14+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.12/lib/rails/application.rb:223:in `call'
2013-03-22T19:31:14+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:51:in `call'
2013-03-22T19:31:14+00:00 app[web.1]: /usr/local/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
2013-03-22T19:31:14+00:00 app[web.1]: /usr/local/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
2013-03-22T19:31:14+00:00 app[web.1]:
2013-03-22T19:31:14+00:00 app[web.1]: ActiveRecord::ConnectionNotEstablished (ActiveRecord::ConnectionNotEstablished):
2013-03-22T19:31:14+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/handler/webrick.rb:59:in `service'
2013-03-22T19:31:14+00:00 app[web.1]: /usr/local/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'
2013-03-22T19:31:14+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.12/lib/action_dispatch/middleware/request_id.rb:22:in `call'
2013-03-22T19:31:14+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/runtime.rb:17:in `call'
2013-03-22T19:31:14+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.12/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
2013-03-22T19:31:14+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:245:in `fetch'
2013-03-22T19:31:14+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:405:in `_run__3995827767081244094__call__3680287303298643332__callbacks'
2013-03-22T19:31:14+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.12/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
2013-03-22T19:31:14+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
2013-03-22T19:31:14+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.12/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
2013-03-22T19:31:14+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:405:in `__run_callback'
2013-03-22T19:31:14+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:81:in `run_callbacks'
2013-03-22T19:31:14+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/methodoverride.rb:21:in `call'
2013-03-22T19:31:14+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.12/lib/action_dispatch/middleware/static.rb:62:in `call'
2013-03-22T19:31:14+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.12/lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
2013-03-22T19:31:14+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.12/lib/rails/rack/logger.rb:32:in `call_app'
2013-03-22T19:31:14+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/content_length.rb:14:in `call'
2013-03-22T19:31:14+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.12/lib/rails/rack/log_tailer.rb:17:in `call'
2013-03-22T19:31:14+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.12/lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
2013-03-22T19:31:14+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.12/lib/rails/rack/logger.rb:16:in `block in call'
2013-03-22T19:31:14+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:66:in `call!'
2013-03-22T19:31:14+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.12/lib/rails/rack/logger.rb:16:in `call'
2013-03-22T19:31:14+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.12/lib/active_support/tagged_logging.rb:22:in `tagged'
2013-03-22T19:31:14+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:185:in `lookup'
2013-03-22T19:31:14+00:00 app[web.1]:
2013-03-22T19:31:14+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.12/lib/rails/engine.rb:479:in `call'
2013-03-22T19:31:14+00:00 app[web.1]:
2013-03-22T19:31:14+00:00 heroku[router]: at=info method=GET path=/ host=ancient-cliffs-5913.herokuapp.com fwd="46.72.70.205" dyno=web.1 queue=0 wait=11ms connect=22ms service=20ms status=500 bytes=643
2013-03-22T19:31:13+00:00 heroku[router]: at=info method=GET path=/ host=ancient-cliffs-5913.herokuapp.com fwd="46.72.70.205" dyno=web.1 queue=0 wait=0ms connect=10ms service=5ms status=500 bytes=643
Here is my gem file:
source 'https://rubygems.org'
gem 'rails', '3.2.12'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
group :development, :test do
gem 'sqlite3-ruby', :require => 'sqlite3'
end
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', :platforms => :ruby
gem 'uglifier', '>= 1.0.3'
end
gem 'jquery-rails'
# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
# To use Jbuilder templates for JSON
# gem 'jbuilder'
# Use unicorn as the app server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger
# gem 'debugger'
group :test do
gem 'rspec-rails', '2.6.1'
gem 'webrat', '0.7.1'
end
You don't have
gem 'pg'
in your Gemfile. You can continue to use sqlite3 locally for development but you either need to use postgres, mysql, mongo on Heroku.

Ruby on Rails App deployed to heroku showing "We're sorry, but something went wrong"

I'm still quite a newb to this, but to provide some background:
I built up a decent app and followed the proper steps to deploy it to Heroku, when I run the 'Heroku open' command, I get:
*"We're sorry, but something went wrong."
(in the opened window.)
Hope we can solve this! I've attached the Heroku logs:
To git#heroku.com:startupblog.git
390c9dc..37f5a3d master -> master
[StartupBlog]$heroku open
Opening startupblog... done
[StartupBlog]$heroku log
! `log` is not a heroku command.
! Perhaps you meant `logs`.
! See `heroku help` for a list of available commands.
[StartupBlog]$heroku logs
2013-02-26T08:25:42+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.11/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
2013-02-26T08:25:42+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:405:in `_run__3231968123246769760__call__1023772550130159371__callbacks'
2013-02-26T08:25:42+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
2013-02-26T08:25:42+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:405:in `__run_callback'
2013-02-26T08:25:42+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.11/lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
2013-02-26T08:25:42+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:81:in `run_callbacks'
2013-02-26T08:25:42+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.11/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
2013-02-26T08:25:42+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.11/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
2013-02-26T08:25:42+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.11/lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
2013-02-26T08:25:42+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.11/lib/rails/rack/logger.rb:32:in `call_app'
2013-02-26T08:25:42+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.11/lib/active_support/tagged_logging.rb:22:in `tagged'
2013-02-26T08:25:42+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.11/lib/rails/rack/logger.rb:16:in `call'
2013-02-26T08:25:42+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.11/lib/action_dispatch/middleware/request_id.rb:22:in `call'
2013-02-26T08:25:42+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/methodoverride.rb:21:in `call'
2013-02-26T08:25:42+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.11/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
2013-02-26T08:25:42+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/lock.rb:15:in `call'
2013-02-26T08:25:42+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.11/lib/action_dispatch/middleware/static.rb:62:in `call'
2013-02-26T08:25:42+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:136:in `forward'
2013-02-26T08:25:42+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.11/lib/rails/rack/logger.rb:16:in `block in call'
2013-02-26T08:25:42+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/runtime.rb:17:in `call'
2013-02-26T08:25:42+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:185:in `lookup'
2013-02-26T08:25:42+00:00 app[web.1]:
2013-02-26T08:25:42+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:245:in `fetch'
2013-02-26T08:25:42+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:66:in `call!'
2013-02-26T08:25:42+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:51:in `call'
2013-02-26T08:25:42+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.11/lib/rails/engine.rb:479:in `call'
2013-02-26T08:25:42+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.11/lib/rails/application.rb:223:in `call'
2013-02-26T08:25:42+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.11/lib/rails/rack/log_tailer.rb:17:in `call'
2013-02-26T08:25:42+00:00 app[web.1]: /usr/local/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
2013-02-26T08:25:42+00:00 app[web.1]:
2013-02-26T08:25:42+00:00 app[web.1]: /usr/local/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
2013-02-26T08:25:42+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/content_length.rb:14:in `call'
2013-02-26T08:25:42+00:00 app[web.1]: /usr/local/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'
2013-02-26T08:25:42+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/handler/webrick.rb:59:in `service'
2013-02-26T08:30:59+00:00 heroku[slugc]: Slug compilation started
2013-02-26T08:31:30+00:00 heroku[api]: Release v7 created by anthony.panepinto101#gmail.com
2013-02-26T08:31:30+00:00 heroku[api]: Deploy 37f5a3d by anthony.panepinto101#gmail.com
2013-02-26T08:31:30+00:00 heroku[web.1]: State changed from up to starting
2013-02-26T08:31:31+00:00 heroku[slugc]: Slug compilation finished
2013-02-26T08:31:32+00:00 heroku[web.1]: Starting process with command `bundle exec rails server -p 41761`
2013-02-26T08:31:34+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2013-02-26T08:31:35+00:00 app[web.1]: [2013-02-26 08:31:35] ERROR SignalException: SIGTERM
2013-02-26T08:31:35+00:00 app[web.1]: /usr/local/lib/ruby/1.9.1/webrick/server.rb:90:in `select'
2013-02-26T08:31:36+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
2013-02-26T08:31:36+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
2013-02-26T08:31:40+00:00 app[web.1]: [2013-02-26 08:31:40] INFO WEBrick 1.3.1
2013-02-26T08:31:40+00:00 app[web.1]: [2013-02-26 08:31:40] INFO ruby 1.9.2 (2011-07-09) [x86_64-linux]
2013-02-26T08:31:40+00:00 app[web.1]: [2013-02-26 08:31:40] INFO WEBrick::HTTPServer#start: pid=2 port=41761
2013-02-26T08:31:41+00:00 heroku[web.1]: State changed from starting to up
2013-02-26T08:31:45+00:00 heroku[web.1]: Error R12 (Exit timeout) -> At least one process failed to exit within 10 seconds of SIGTERM
2013-02-26T08:31:45+00:00 heroku[web.1]: Stopping remaining processes with SIGKILL
2013-02-26T08:31:46+00:00 app[web.1]: => Call with -d to detach
2013-02-26T08:31:46+00:00 app[web.1]: => Ctrl-C to shutdown server
2013-02-26T08:31:46+00:00 app[web.1]: => Booting WEBrick
2013-02-26T08:31:46+00:00 app[web.1]: => Rails 3.2.11 application starting in production on http://0.0.0.0:41761
2013-02-26T08:31:46+00:00 app[web.1]: Started GET "/" for 174.95.207.136 at 2013-02-26 08:31:46 +0000
2013-02-26T08:31:47+00:00 heroku[web.1]: Process exited with status 137
2013-02-26T08:31:47+00:00 app[web.1]: Connecting to database specified by DATABASE_URL
2013-02-26T08:31:47+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/query_cache.rb:67:in `rescue in call'
2013-02-26T08:31:47+00:00 heroku[router]: at=info method=GET path=/ host=startupblog.herokuapp.com fwd="174.95.207.136" dyno=web.1 queue=0 wait=0ms connect=2ms service=1011ms status=500 bytes=643
2013-02-26T08:31:47+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
2013-02-26T08:31:47+00:00 app[web.1]:
2013-02-26T08:31:47+00:00 app[web.1]: ActiveRecord::ConnectionNotEstablished (ActiveRecord::ConnectionNotEstablished):
2013-02-26T08:31:47+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/connection_adapters/abstract/connection_pool.rb:410:in `retrieve_connection'
2013-02-26T08:31:47+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/connection_adapters/abstract/connection_specification.rb:171:in `retrieve_connection'
2013-02-26T08:31:47+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/connection_adapters/abstract/connection_specification.rb:145:in `connection'
2013-02-26T08:31:47+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.11/lib/action_dispatch/middleware/request_id.rb:22:in `call'
2013-02-26T08:31:47+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/methodoverride.rb:21:in `call'
2013-02-26T08:31:47+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.11/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
2013-02-26T08:31:47+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.11/lib/action_dispatch/middleware/static.rb:62:in `call'
2013-02-26T08:31:47+00:00 app[web.1]: vendor/bundl
e/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:51:in `call'
2013-02-26T08:31:47+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.11/lib/rails/rack/logger.rb:32:in `call_app'
2013-02-26T08:31:47+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:136:in `forward'
2013-02-26T08:31:47+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:66:in `call!'
2013-02-26T08:31:47+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:405:in `_run__646234206873509914__call__2059469811213840144__callbacks'
2013-02-26T08:31:47+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.11/lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
2013-02-26T08:31:47+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/runtime.rb:17:in `call'
2013-02-26T08:31:47+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:405:in `__run_callback'
2013-02-26T08:31:47+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/handler/webrick.rb:59:in `service'
2013-02-26T08:31:47+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/lock.rb:15:in `call'
2013-02-26T08:31:47+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.11/lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
2013-02-26T08:31:47+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.11/lib/rails/rack/log_tailer.rb:17:in `call'
2013-02-26T08:31:47+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/content_length.rb:14:in `call'
2013-02-26T08:31:47+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.11/lib/rails/rack/logger.rb:16:in `block in call'
2013-02-26T08:31:47+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/query_cache.rb:61:in `call'
2013-02-26T08:31:47+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
2013-02-26T08:31:47+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.11/lib/rails/engine.rb:479:in `call'
2013-02-26T08:31:47+00:00 app[web.1]: /usr/local/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
2013-02-26T08:31:47+00:00 app[web.1]: /usr/local/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
2013-02-26T08:31:47+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.11/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
2013-02-26T08:31:47+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.11/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
2013-02-26T08:31:47+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:185:in `lookup'
2013-02-26T08:31:47+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:245:in `fetch'
2013-02-26T08:31:47+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:81:in `run_callbacks'
2013-02-26T08:31:47+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.11/lib/active_support/tagged_logging.rb:22:in `tagged'
2013-02-26T08:31:47+00:00 app[web.1]:
2013-02-26T08:31:47+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.11/lib/rails/application.rb:223:in `call'
2013-02-26T08:31:47+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.11/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
2013-02-26T08:31:47+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.11/lib/rails/rack/logger.rb:16:in `call'
2013-02-26T08:31:47+00:00 app[web.1]: /usr/local/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'
2013-02-26T08:31:47+00:00 app[web.1]:
Gemfile contents:
source 'https://rubygems.org'
gem 'rails', '3.2.11'
group :development do
gem 'sqlite3', '1.3.5'
end
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '3.2.5'
gem 'bootstrap-sass', '~> 2.3.0.1'
gem 'coffee-rails', '3.2.2'
gem 'uglifier', '1.2.3'
end
gem 'jquery-rails', '2.0.2'
You should create a production database (probably pg) and then initiate the database. You should probably run heroku run rake db:migrate

Resources