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
Related
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.
I'm working on my first Rails app. I'm in Windows, so I'm building it in Cloud9, and I deployed it to Heroku. In my Heroku dashboard, the app appears to be fine, but the app page gives me the message: The page you were looking for doesn't exist. After some searching, it seemed like I needed to run heroku run rake db:migrate to migrate the database, but that doesn't help.
Here are my Heroku logs:
heroku-cli: This CLI is deprecated. Please reinstall from https://cli.heroku.com
2017-08-11T01:43:05.558405+00:00 app[web.1]: [4ba2946c-ac27-40e5-9103-3e816be754f3] Started GET "/" for 99.120.160.17 at 2017-08-11 01:43:05 +0000
2017-08-11T01:43:05.558994+00:00 app[web.1]: [4ba2946c-ac27-40e5-9103-3e816be754f3]
2017-08-11T01:43:05.559041+00:00 app[web.1]: [4ba2946c-ac27-40e5-9103-3e816be754f3] ActionController::RoutingError (No route matches [GET] "/"):
2017-08-11T01:43:05.559084+00:00 app[web.1]: [4ba2946c-ac27-40e5-9103-3e816be754f3]
2017-08-11T01:43:05.559167+00:00 app[web.1]: [4ba2946c-ac27-40e5-9103-3e816be754f3] vendor/bundle/ruby/2.3.0/gems/actionpack-5.1.3/lib/action_dispatch/middleware/debug_exceptions.rb:63:in `call'
2017-08-11T01:43:05.559168+00:00 app[web.1]: [4ba2946c-ac27-40e5-9103-3e816be754f3] vendor/bundle/ruby/2.3.0/gems/actionpack-5.1.3/lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
2017-08-11T01:43:05.559169+00:00 app[web.1]: [4ba2946c-ac27-40e5-9103-3e816be754f3] vendor/bundle/ruby/2.3.0/gems/railties-5.1.3/lib/rails/rack/logger.rb:36:in `call_app'
2017-08-11T01:43:05.559171+00:00 app[web.1]: [4ba2946c-ac27-40e5-9103-3e816be754f3] vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.3/lib/active_support/tagged_logging.rb:69:in `block in tagged'
2017-08-11T01:43:05.559170+00:00 app[web.1]: [4ba2946c-ac27-40e5-9103-3e816be754f3] vendor/bundle/ruby/2.3.0/gems/railties-5.1.3/lib/rails/rack/logger.rb:24:in `block in call'
2017-08-11T01:43:05.559171+00:00 app[web.1]: [4ba2946c-ac27-40e5-9103-3e816be754f3] vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.3/lib/active_support/tagged_logging.rb:26:in `tagged'
2017-08-11T01:43:05.559172+00:00 app[web.1]: [4ba2946c-ac27-40e5-9103-3e816be754f3] vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.3/lib/active_support/tagged_logging.rb:69:in `tagged'
2017-08-11T01:43:05.559172+00:00 app[web.1]: [4ba2946c-ac27-40e5-9103-3e816be754f3] vendor/bundle/ruby/2.3.0/gems/railties-5.1.3/lib/rails/rack/logger.rb:24:in `call'
2017-08-11T01:43:05.559173+00:00 app[web.1]: [4ba2946c-ac27-40e5-9103-3e816be754f3] vendor/bundle/ruby/2.3.0/gems/actionpack-5.1.3/lib/action_dispatch/middleware/request_id.rb:25:in `call'
2017-08-11T01:43:05.559173+00:00 app[web.1]: [4ba2946c-ac27-40e5-9103-3e816be754f3] vendor/bundle/ruby/2.3.0/gems/actionpack-5.1.3/lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
2017-08-11T01:43:05.559174+00:00 app[web.1]: [4ba2946c-ac27-40e5-9103-3e816be754f3] vendor/bundle/ruby/2.3.0/gems/rack-2.0.3/lib/rack/method_override.rb:22:in `call'
2017-08-11T01:43:05.559174+00:00 app[web.1]: [4ba2946c-ac27-40e5-9103-3e816be754f3] vendor/bundle/ruby/2.3.0/gems/rack-2.0.3/lib/rack/runtime.rb:22:in `call'
2017-08-11T01:43:05.559176+00:00 app[web.1]: [4ba2946c-ac27-40e5-9103-3e816be754f3] vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.3/lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call'
2017-08-11T01:43:05.559177+00:00 app[web.1]: [4ba2946c-ac27-40e5-9103-3e816be754f3] vendor/bundle/ruby/2.3.0/gems/actionpack-5.1.3/lib/action_dispatch/middleware/executor.rb:12:in `call'
2017-08-11T01:43:05.559177+00:00 app[web.1]: [4ba2946c-ac27-40e5-9103-3e816be754f3] vendor/bundle/ruby/2.3.0/gems/actionpack-5.1.3/lib/action_dispatch/middleware/static.rb:125:in `call'
2017-08-11T01:43:05.559178+00:00 app[web.1]: [4ba2946c-ac27-40e5-9103-3e816be754f3] vendor/bundle/ruby/2.3.0/gems/rack-2.0.3/lib/rack/sendfile.rb:111:in `call'
2017-08-11T01:43:05.559178+00:00 app[web.1]: [4ba2946c-ac27-40e5-9103-3e816be754f3] vendor/bundle/ruby/2.3.0/gems/railties-5.1.3/lib/rails/engine.rb:522:in `call'
2017-08-11T01:43:05.559179+00:00 app[web.1]: [4ba2946c-ac27-40e5-9103-3e816be754f3] vendor/bundle/ruby/2.3.0/gems/puma-3.9.1/lib/puma/configuration.rb:224:in `call'
2017-08-11T01:43:05.559180+00:00 app[web.1]: [4ba2946c-ac27-40e5-9103-3e816be754f3] vendor/bundle/ruby/2.3.0/gems/puma-3.9.1/lib/puma/server.rb:602:in `handle_request'
2017-08-11T01:43:05.559181+00:00 app[web.1]: [4ba2946c-ac27-40e5-9103-3e816be754f3] vendor/bundle/ruby/2.3.0/gems/puma-3.9.1/lib/puma/server.rb:435:in `process_client'
2017-08-11T01:43:05.559181+00:00 app[web.1]: [4ba2946c-ac27-40e5-9103-3e816be754f3] vendor/bundle/ruby/2.3.0/gems/puma-3.9.1/lib/puma/server.rb:299:in `block in run'
2017-08-11T01:43:05.559182+00:00 app[web.1]: [4ba2946c-ac27-40e5-9103-3e816be754f3] vendor/bundle/ruby/2.3.0/gems/puma-3.9.1/lib/puma/thread_pool.rb:120:in `block in spawn_thread'
2017-08-11T01:43:05.559094+00:00 heroku[router]: at=info method=GET path="/" host=ancient-chamber-34720.herokuapp.com request_id=4ba2946c-ac27-40e5-9103-3e816be754f3 fwd="99.120.160.17" dyno=web.1 connect=0ms service=3ms status=404 bytes=1902 protocol=https
2017-08-11T01:47:57.042650+00:00 app[api]: Starting process with command `bundle exec rake db:setup` by user brandoncaples#gmail.com
2017-08-11T01:48:01.990913+00:00 heroku[run.4123]: State changed from starting to up
2017-08-11T01:48:02.024309+00:00 heroku[run.4123]: Awaiting client
2017-08-11T01:48:02.052289+00:00 heroku[run.4123]: Starting process with command `bundle exec rake db:setup`
2017-08-11T01:48:10.217218+00:00 heroku[run.4123]: Process exited with status 1
2017-08-11T01:48:10.232633+00:00 heroku[run.4123]: State changed from up to complete
2017-08-11T02:02:42.679829+00:00 app[api]: Starting process with command `bundle exec rake db:migrate` by user brandoncaples#gmail.com
2017-08-11T02:02:51.689696+00:00 heroku[run.1356]: Awaiting client
2017-08-11T02:02:51.739457+00:00 heroku[run.1356]: Starting process with command `bundle exec rake db:migrate`
2017-08-11T02:02:51.866557+00:00 heroku[run.1356]: State changed from starting to up
2017-08-11T02:02:59.292552+00:00 heroku[run.1356]: Process exited with status 0
2017-08-11T02:02:59.307200+00:00 heroku[run.1356]: State changed from up to complete
2017-08-11T02:05:52.716537+00:00 heroku[router]: at=info method=GET path="/" host=ancient-chamber-34720.herokuapp.com request_id=fd8e890f-9c20-4efb-8d70-a91ceab82aba fwd="99.120.160.17" dyno=web.1 connect=0ms service=2ms status=404 bytes=1902 protocol=https
2017-08-11T02:05:52.715968+00:00 app[web.1]: [fd8e890f-9c20-4efb-8d70-a91ceab82aba] Started GET "/" for 99.120.160.17 at 2017-08-11 02:05:52 +0000
2017-08-11T02:05:52.716458+00:00 app[web.1]: [fd8e890f-9c20-4efb-8d70-a91ceab82aba]
2017-08-11T02:05:52.716486+00:00 app[web.1]: [fd8e890f-9c20-4efb-8d70-a91ceab82aba] ActionController::RoutingError (No route matches [GET] "/"):
2017-08-11T02:05:52.716510+00:00 app[web.1]: [fd8e890f-9c20-4efb-8d70-a91ceab82aba]
2017-08-11T02:05:52.716553+00:00 app[web.1]: [fd8e890f-9c20-4efb-8d70-a91ceab82aba] vendor/bundle/ruby/2.3.0/gems/actionpack-5.1.3/lib/action_dispatch/middleware/debug_exceptions.rb:63:in `call'
2017-08-11T02:05:52.716554+00:00 app[web.1]: [fd8e890f-9c20-4efb-8d70-a91ceab82aba] vendor/bundle/ruby/2.3.0/gems/actionpack-5.1.3/lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
2017-08-11T02:05:52.716556+00:00 app[web.1]: [fd8e890f-9c20-4efb-8d70-a91ceab82aba] vendor/bundle/ruby/2.3.0/gems/railties-5.1.3/lib/rails/rack/logger.rb:36:in `call_app'
2017-08-11T02:05:52.716558+00:00 app[web.1]: [fd8e890f-9c20-4efb-8d70-a91ceab82aba] vendor/bundle/ruby/2.3.0/gems/railties-5.1.3/lib/rails/rack/logger.rb:24:in `block in call'
2017-08-11T02:05:52.716558+00:00 app[web.1]: [fd8e890f-9c20-4efb-8d70-a91ceab82aba] vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.3/lib/active_support/tagged_logging.rb:69:in `block in tagged'
2017-08-11T02:05:52.716559+00:00 app[web.1]: [fd8e890f-9c20-4efb-8d70-a91ceab82aba] vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.3/lib/active_support/tagged_logging.rb:26:in `tagged'
2017-08-11T02:05:52.716560+00:00 app[web.1]: [fd8e890f-9c20-4efb-8d70-a91ceab82aba] vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.3/lib/active_support/tagged_logging.rb:69:in `tagged'
2017-08-11T02:05:52.716561+00:00 app[web.1]: [fd8e890f-9c20-4efb-8d70-a91ceab82aba] vendor/bundle/ruby/2.3.0/gems/railties-5.1.3/lib/rails/rack/logger.rb:24:in `call'
2017-08-11T02:05:52.716561+00:00 app[web.1]: [fd8e890f-9c20-4efb-8d70-a91ceab82aba] vendor/bundle/ruby/2.3.0/gems/actionpack-5.1.3/lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
2017-08-11T02:05:52.716563+00:00 app[web.1]: [fd8e890f-9c20-4efb-8d70-a91ceab82aba] vendor/bundle/ruby/2.3.0/gems/rack-2.0.3/lib/rack/method_override.rb:22:in `call'
2017-08-11T02:05:52.716562+00:00 app[web.1]: [fd8e890f-9c20-4efb-8d70-a91ceab82aba] vendor/bundle/ruby/2.3.0/gems/actionpack-5.1.3/lib/action_dispatch/middleware/request_id.rb:25:in `call'
2017-08-11T02:05:52.716564+00:00 app[web.1]: [fd8e890f-9c20-4efb-8d70-a91ceab82aba] vendor/bundle/ruby/2.3.0/gems/rack-2.0.3/lib/rack/runtime.rb:22:in `call'
2017-08-11T02:05:52.716565+00:00 app[web.1]: [fd8e890f-9c20-4efb-8d70-a91ceab82aba] vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.3/lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call'
2017-08-11T02:05:52.716566+00:00 app[web.1]: [fd8e890f-9c20-4efb-8d70-a91ceab82aba] vendor/bundle/ruby/2.3.0/gems/actionpack-5.1.3/lib/action_dispatch/middleware/executor.rb:12:in `call'
2017-08-11T02:05:52.716567+00:00 app[web.1]: [fd8e890f-9c20-4efb-8d70-a91ceab82aba] vendor/bundle/ruby/2.3.0/gems/actionpack-5.1.3/lib/action_dispatch/middleware/static.rb:125:in `call'
2017-08-11T02:05:52.716568+00:00 app[web.1]: [fd8e890f-9c20-4efb-8d70-a91ceab82aba] vendor/bundle/ruby/2.3.0/gems/railties-5.1.3/lib/rails/engine.rb:522:in `call'
2017-08-11T02:05:52.716567+00:00 app[web.1]: [fd8e890f-9c20-4efb-8d70-a91ceab82aba] vendor/bundle/ruby/2.3.0/gems/rack-2.0.3/lib/rack/sendfile.rb:111:in `call'
2017-08-11T02:05:52.716569+00:00 app[web.1]: [fd8e890f-9c20-4efb-8d70-a91ceab82aba] vendor/bundle/ruby/2.3.0/gems/puma-3.9.1/lib/puma/configuration.rb:224:in `call'
2017-08-11T02:05:52.716569+00:00 app[web.1]: [fd8e890f-9c20-4efb-8d70-a91ceab82aba] vendor/bundle/ruby/2.3.0/gems/puma-3.9.1/lib/puma/server.rb:602:in `handle_request'
2017-08-11T02:05:52.716570+00:00 app[web.1]: [fd8e890f-9c20-4efb-8d70-a91ceab82aba] vendor/bundle/ruby/2.3.0/gems/puma-3.9.1/lib/puma/server.rb:435:in `process_client'
2017-08-11T02:05:52.716571+00:00 app[web.1]: [fd8e890f-9c20-4efb-8d70-a91ceab82aba] vendor/bundle/ruby/2.3.0/gems/puma-3.9.1/lib/puma/server.rb:299:in `block in run'
2017-08-11T02:05:52.716572+00:00 app[web.1]: [fd8e890f-9c20-4efb-8d70-a91ceab82aba] vendor/bundle/ruby/2.3.0/gems/puma-3.9.1/lib/puma/thread_pool.rb:120:in `block in spawn_thread'
2017-08-11T02:10:18.256514+00:00 heroku[router]: at=info method=GET path="/" host=ancient-chamber-34720.herokuapp.com request_id=18159048-11cd-4f4c-9bfe-e2e258376b0c fwd="99.120.160.17" dyno=web.1 connect=0ms service=2ms status=404 bytes=1902 protocol=https
2017-08-11T02:10:18.255372+00:00 app[web.1]: [18159048-11cd-4f4c-9bfe-e2e258376b0c] Started GET "/" for 99.120.160.17 at 2017-08-11 02:10:18 +0000
2017-08-11T02:10:18.255948+00:00 app[web.1]: [18159048-11cd-4f4c-9bfe-e2e258376b0c]
2017-08-11T02:10:18.256009+00:00 app[web.1]: [18159048-11cd-4f4c-9bfe-e2e258376b0c] ActionController::RoutingError (No route matches [GET] "/"):
2017-08-11T02:10:18.256060+00:00 app[web.1]: [18159048-11cd-4f4c-9bfe-e2e258376b0c]
2017-08-11T02:10:18.256151+00:00 app[web.1]: [18159048-11cd-4f4c-9bfe-e2e258376b0c] vendor/bundle/ruby/2.3.0/gems/actionpack-5.1.3/lib/action_dispatch/middleware/debug_exceptions.rb:63:in `call'
2017-08-11T02:10:18.256153+00:00 app[web.1]: [18159048-11cd-4f4c-9bfe-e2e258376b0c] vendor/bundle/ruby/2.3.0/gems/actionpack-5.1.3/lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
2017-08-11T02:10:18.256155+00:00 app[web.1]: [18159048-11cd-4f4c-9bfe-e2e258376b0c] vendor/bundle/ruby/2.3.0/gems/railties-5.1.3/lib/rails/rack/logger.rb:36:in `call_app'
2017-08-11T02:10:18.256156+00:00 app[web.1]: [18159048-11cd-4f4c-9bfe-e2e258376b0c] vendor/bundle/ruby/2.3.0/gems/railties-5.1.3/lib/rails/rack/logger.rb:24:in `block in call'
2017-08-11T02:10:18.256157+00:00 app[web.1]: [18159048-11cd-4f4c-9bfe-e2e258376b0c] vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.3/lib/active_support/tagged_logging.rb:69:in `block in tagged'
2017-08-11T02:10:18.256158+00:00 app[web.1]: [18159048-11cd-4f4c-9bfe-e2e258376b0c] vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.3/lib/active_support/tagged_logging.rb:26:in `tagged'
2017-08-11T02:10:18.256159+00:00 app[web.1]: [18159048-11cd-4f4c-9bfe-e2e258376b0c] vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.3/lib/active_support/tagged_logging.rb:69:in `tagged'
2017-08-11T02:10:18.256159+00:00 app[web.1]: [18159048-11cd-4f4c-9bfe-e2e258376b0c] vendor/bundle/ruby/2.3.0/gems/railties-5.1.3/lib/rails/rack/logger.rb:24:in `call'
2017-08-11T02:10:18.256161+00:00 app[web.1]: [18159048-11cd-4f4c-9bfe-e2e258376b0c] vendor/bundle/ruby/2.3.0/gems/actionpack-5.1.3/lib/action_dispatch/middleware/request_id.rb:25:in `call'
2017-08-11T02:10:18.256161+00:00 app[web.1]: [18159048-11cd-4f4c-9bfe-e2e258376b0c] vendor/bundle/ruby/2.3.0/gems/rack-2.0.3/lib/rack/method_override.rb:22:in `call'
2017-08-11T02:10:18.256160+00:00 app[web.1]: [18159048-11cd-4f4c-9bfe-e2e258376b0c] vendor/bundle/ruby/2.3.0/gems/actionpack-5.1.3/lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
2017-08-11T02:10:18.256162+00:00 app[web.1]: [18159048-11cd-4f4c-9bfe-e2e258376b0c] vendor/bundle/ruby/2.3.0/gems/rack-2.0.3/lib/rack/runtime.rb:22:in `call'
2017-08-11T02:10:18.256163+00:00 app[web.1]: [18159048-11cd-4f4c-9bfe-e2e258376b0c] vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.3/lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call'
2017-08-11T02:10:18.256164+00:00 app[web.1]: [18159048-11cd-4f4c-9bfe-e2e258376b0c] vendor/bundle/ruby/2.3.0/gems/actionpack-5.1.3/lib/action_dispatch/middleware/executor.rb:12:in `call'
2017-08-11T02:10:18.256165+00:00 app[web.1]: [18159048-11cd-4f4c-9bfe-e2e258376b0c] vendor/bundle/ruby/2.3.0/gems/actionpack-5.1.3/lib/action_dispatch/middleware/static.rb:125:in `call'
2017-08-11T02:10:18.256165+00:00 app[web.1]: [18159048-11cd-4f4c-9bfe-e2e258376b0c] vendor/bundle/ruby/2.3.0/gems/rack-2.0.3/lib/rack/sendfile.rb:111:in `call'
2017-08-11T02:10:18.256166+00:00 app[web.1]: [18159048-11cd-4f4c-9bfe-e2e258376b0c] vendor/bundle/ruby/2.3.0/gems/railties-5.1.3/lib/rails/engine.rb:522:in `call'
2017-08-11T02:10:18.256166+00:00 app[web.1]: [18159048-11cd-4f4c-9bfe-e2e258376b0c] vendor/bundle/ruby/2.3.0/gems/puma-3.9.1/lib/puma/configuration.rb:224:in `call'
2017-08-11T02:10:18.256167+00:00 app[web.1]: [18159048-11cd-4f4c-9bfe-e2e258376b0c] vendor/bundle/ruby/2.3.0/gems/puma-3.9.1/lib/puma/server.rb:602:in `handle_request'
2017-08-11T02:10:18.256168+00:00 app[web.1]: [18159048-11cd-4f4c-9bfe-e2e258376b0c] vendor/bundle/ruby/2.3.0/gems/puma-3.9.1/lib/puma/server.rb:435:in `process_client'
2017-08-11T02:10:18.256169+00:00 app[web.1]: [18159048-11cd-4f4c-9bfe-e2e258376b0c] vendor/bundle/ruby/2.3.0/gems/puma-3.9.1/lib/puma/server.rb:299:in `block in run'
2017-08-11T02:10:18.256169+00:00 app[web.1]: [18159048-11cd-4f4c-9bfe-e2e258376b0c] vendor/bundle/ruby/2.3.0/gems/puma-3.9.1/lib/puma/thread_pool.rb:120:in `block in spawn_thread'
2017-08-11T02:44:02.843309+00:00 heroku[web.1]: Idling
2017-08-11T02:44:02.844174+00:00 heroku[web.1]: State changed from up to down
2017-08-11T02:44:03.498485+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2017-08-11T02:44:03.512042+00:00 app[web.1]: - Gracefully stopping, waiting for requests to finish
2017-08-11T02:44:03.512960+00:00 app[web.1]: Exiting
2017-08-11T02:44:03.512921+00:00 app[web.1]: - Goodbye!
2017-08-11T02:44:03.512915+00:00 app[web.1]: === puma shutdown: 2017-08-11 02:44:03 +0000 ===
2017-08-11T02:44:03.635679+00:00 heroku[web.1]: Process exited with status 0
Any suggestions?
I think you need to compile your asset,
you can do this in your
config/environments/production.rb file:
Please change this
config.assets.compile = true
It will be very helpful if you post log from heroku.
I've deployed my Rails app running Puma on Heroku. I am using the gem websockets-rails for live chat and notifications.
I've had some issues connecting to websockets (RuntimeError (eventmachine not initialized: evma_install_oneshot_timer):) initially but I fixed that by adding
Thread.new { EventMachine.run } unless EventMachine.reactor_running? && EventMachine.reactor_thread.alive?
to a config/initializers/eventmachine.rb. Again, everything works fine locally when I run heroku local and doesn't timeout/become eventmachine not initialized after a few minutes.
However, every time I deploy/re-deploy on Heroku, WebSockets works fine for the first few minutes but fails afterwards. I get a WebSocket connection to 'wss://www.studbuds.com/websocket' failed: Error during WebSocket handshake: Unexpected response code: 500 error on the client-side and the stack trace
2016-01-20T17:59:12.672733+00:00 app[web.1]: RuntimeError (eventmachine not initialized: evma_install_oneshot_timer):
2016-01-20T17:59:12.672734+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/eventmachine-1.0.8/lib/eventmachine.rb:331:in `add_oneshot_timer'
2016-01-20T17:59:12.672735+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/eventmachine-1.0.8/lib/eventmachine.rb:331:in `add_timer'
2016-01-20T17:59:12.672735+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/eventmachine-1.0.8/lib/em/timers.rb:50:in `schedule'
2016-01-20T17:59:12.672736+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/eventmachine-1.0.8/lib/em/timers.rb:37:in `initialize'
2016-01-20T17:59:12.672736+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/websocket-rails-0.7.0/lib/websocket_rails/connection_adapters.rb:167:in `new'
2016-01-20T17:59:12.672737+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/websocket-rails-0.7.0/lib/websocket_rails/connection_adapters.rb:167:in `start_ping_timer'
2016-01-20T17:59:12.672738+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/websocket-rails-0.7.0/lib/websocket_rails/connection_adapters.rb:46:in `initialize'
2016-01-20T17:59:12.672739+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/websocket-rails-0.7.0/lib/websocket_rails/connection_adapters/web_socket.rb:10:in `initialize'
2016-01-20T17:59:12.672739+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/websocket-rails-0.7.0/lib/websocket_rails/connection_adapters.rb:14:in `new'
2016-01-20T17:59:12.672740+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/websocket-rails-0.7.0/lib/websocket_rails/connection_adapters.rb:14:in `establish_connection'
2016-01-20T17:59:12.672741+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/websocket-rails-0.7.0/lib/websocket_rails/connection_manager.rb:78:in `open_connection'
2016-01-20T17:59:12.672741+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/websocket-rails-0.7.0/lib/websocket_rails/connection_manager.rb:55:in `call'
2016-01-20T17:59:12.672742+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.1/lib/action_dispatch/routing/mapper.rb:51:in `serve'
2016-01-20T17:59:12.672742+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.1/lib/action_dispatch/journey/router.rb:43:in `block in serve'
2016-01-20T17:59:12.672743+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.1/lib/action_dispatch/journey/router.rb:30:in `each'
2016-01-20T17:59:12.672743+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.1/lib/action_dispatch/journey/router.rb:30:in `serve'
2016-01-20T17:59:12.672744+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.1/lib/action_dispatch/routing/route_set.rb:819:in `call'
2016-01-20T17:59:12.672744+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/warden-1.2.4/lib/warden/manager.rb:35:in `block in call'
2016-01-20T17:59:12.672745+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/warden-1.2.4/lib/warden/manager.rb:34:in `catch'
2016-01-20T17:59:12.672745+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/warden-1.2.4/lib/warden/manager.rb:34:in `call'
2016-01-20T17:59:12.672746+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/etag.rb:24:in `call'
2016-01-20T17:59:12.672747+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/conditionalget.rb:25:in `call'
2016-01-20T17:59:12.672747+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/head.rb:13:in `call'
2016-01-20T17:59:12.672748+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/params_parser.rb:27:in `call'
2016-01-20T17:59:12.672748+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/flash.rb:260:in `call'
2016-01-20T17:59:12.672748+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:225:in `context'
2016-01-20T17:59:12.672749+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:220:in `call'
2016-01-20T17:59:12.672749+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/cookies.rb:560:in `call'
2016-01-20T17:59:12.672749+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.1/lib/active_record/query_cache.rb:36:in `call'
2016-01-20T17:59:12.672750+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:649:in `call'
2016-01-20T17:59:12.672751+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
2016-01-20T17:59:12.672751+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:88:in `call'
2016-01-20T17:59:12.672751+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:88:in `_run_callbacks'
2016-01-20T17:59:12.672752+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:776:in `_run_call_callbacks'
2016-01-20T17:59:12.672752+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
2016-01-20T17:59:12.672752+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
2016-01-20T17:59:12.672753+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
2016-01-20T17:59:12.672753+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
2016-01-20T17:59:12.672753+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
2016-01-20T17:59:12.672757+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/rack/logger.rb:38:in `call_app'
2016-01-20T17:59:12.672757+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/rack/logger.rb:20:in `block in call'
2016-01-20T17:59:12.672758+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.1/lib/active_support/tagged_logging.rb:68:in `block in tagged'
2016-01-20T17:59:12.672758+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.1/lib/active_support/tagged_logging.rb:26:in `tagged'
2016-01-20T17:59:12.672758+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.1/lib/active_support/tagged_logging.rb:68:in `tagged'
2016-01-20T17:59:12.672759+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/rack/logger.rb:20:in `call'
2016-01-20T17:59:12.672759+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/request_store-1.3.0/lib/request_store/middleware.rb:9:in `call'
2016-01-20T17:59:12.672760+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/request_id.rb:21:in `call'
2016-01-20T17:59:12.672760+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/methodoverride.rb:22:in `call'
2016-01-20T17:59:12.672761+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/runtime.rb:18:in `call'
2016-01-20T17:59:12.672761+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.1/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
2016-01-20T17:59:12.672762+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/static.rb:113:in `call'
2016-01-20T17:59:12.672762+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/sendfile.rb:113:in `call'
2016-01-20T17:59:12.672762+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/ssl.rb:24:in `call'
2016-01-20T17:59:12.672763+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/engine.rb:518:in `call'
2016-01-20T17:59:12.672763+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/application.rb:164:in `call'
2016-01-20T17:59:12.672764+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/content_length.rb:15:in `call'
2016-01-20T17:59:12.672765+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/puma-2.15.3/lib/puma/server.rb:541:in `handle_request'
2016-01-20T17:59:12.672765+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/puma-2.15.3/lib/puma/server.rb:388:in `process_client'
2016-01-20T17:59:12.672766+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/puma-2.15.3/lib/puma/server.rb:270:in `block in run'
2016-01-20T17:59:12.672766+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/puma-2.15.3/lib/puma/thread_pool.rb:106:in `call'
2016-01-20T17:59:12.672766+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/puma-2.15.3/lib/puma/thread_pool.rb:106:in `block in spawn_thread'
If I restart the dynos, it works again but dies shortly after.
Note I'm use a Puma which is multi-threaded, so could it be that my application is not thread-safe?
I am at chapter 3 of Michael Hartl's tutorial but when I do git push heroku master and it says that it has been deployed to heroku successfully but when I go to the url: http://young-thicket-2043.herokuapp.com/ it says that the app cannot be seen.
I've checked out heroku logs and this was given:
2014-07-02T08:07:16.462137+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/sendfile.rb:112:in `call'
2014-07-02T08:07:16.462132+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/runtime.rb:17:in `call'
2014-07-02T08:07:16.462138+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.5/lib/rails/engine.rb:511:in `call'
2014-07-02T08:07:16.462148+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
2014-07-02T08:07:16.462150+00:00 app[web.1]:
2014-07-02T08:07:16.462151+00:00 app[web.1]:
2014-07-02T08:07:16.462158+00:00 app[web.1]:
2014-07-02T08:07:16.462159+00:00 app[web.1]: ActionController::RoutingError (No route matches [GET] "/"):
2014-07-02T08:07:16.462161+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.5/lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
2014-07-02T08:07:16.462162+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.5/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
2014-07-02T08:07:16.462164+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.5/lib/rails/rack/logger.rb:38:in `call_app'
2014-07-02T08:07:16.462165+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.5/lib/rails/rack/logger.rb:20:in `block in call'
2014-07-02T08:07:16.462167+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.5/lib/active_support/tagged_logging.rb:68:in `block in tagged'
2014-07-02T08:07:16.462168+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.5/lib/active_support/tagged_logging.rb:26:in `tagged'
2014-07-02T08:07:16.462170+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.5/lib/active_support/tagged_logging.rb:68:in `tagged'
2014-07-02T08:07:16.462171+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.5/lib/rails/rack/logger.rb:20:in `call'
2014-07-02T08:07:16.462173+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.5/lib/action_dispatch/middleware/request_id.rb:21:in `call'
2014-07-02T08:07:16.462174+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call'
2014-07-02T08:07:16.462176+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/runtime.rb:17:in `call'
2014-07-02T08:07:16.462177+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.5/lib/active_support/cache/strategy/local_cache.rb:83:in `call'
2014-07-02T08:07:16.462180+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/sendfile.rb:112:in `call'
2014-07-02T08:07:16.462194+00:00 app[web.1]:
2014-07-02T08:07:16.462179+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.5/lib/action_dispatch/middleware/static.rb:64:in `call'
2014-07-02T08:07:16.462184+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/lock.rb:17:in `call'
2014-07-02T08:07:16.462185+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/content_length.rb:14:in `call'
2014-07-02T08:07:16.462187+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler/webrick.rb:60:in `service'
2014-07-02T08:07:16.462181+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.5/lib/rails/engine.rb:511:in `call'
2014-07-02T08:07:16.462183+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.5/lib/rails/application.rb:97:in `call'
2014-07-02T08:07:16.462191+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
2014-07-02T08:07:16.462192+00:00 app[web.1]:
2014-07-02T08:07:16.462188+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
2014-07-02T08:07:16.462190+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
2014-07-02T08:07:16.781513+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=young-thicket-2043.herokuapp.com request_id=f65ad084-f721-4a4c-8f99-bdd1938d4dd4 fwd="192.122.131.37" dyno=web.1 connect=0ms service=5ms status=304 bytes=133
2014-07-02T08:16:35.325747+00:00 heroku[router]: at=info method=GET path="/" host=young-thicket-2043.herokuapp.com request_id=4fc6cfec-39d8-4a2c-ac04-09013042ca7b fwd="192.122.131.37" dyno=web.1 connect=1ms service=520ms status=404 bytes=1616
2014-07-02T08:16:35.319865+00:00 app[web.1]:
2014-07-02T08:16:35.319873+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.5/lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
2014-07-02T08:16:35.319874+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.5/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
2014-07-02T08:16:35.319870+00:00 app[web.1]: ActionController::RoutingError (No route matches [GET] "/"):
2014-07-02T08:16:35.217481+00:00 app[web.1]: Started GET "/" for 192.122.131.37 at 2014-07-02 08:16:35 +0000
2014-07-02T08:16:35.319876+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.5/lib/rails/rack/logger.rb:38:in `call_app'
2014-07-02T08:16:35.319891+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.5/lib/active_support/cache/strategy/local_cache.rb:83:in `call'
2014-07-02T08:16:35.319878+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.5/lib/rails/rack/logger.rb:20:in `block in call'
2014-07-02T08:16:35.319892+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.5/lib/action_dispatch/middleware/static.rb:64:in `call'
2014-07-02T08:16:35.319880+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.5/lib/active_support/tagged_logging.rb:68:in `block in tagged'
2014-07-02T08:16:35.319881+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.5/lib/active_support/tagged_logging.rb:26:in `tagged'
2014-07-02T08:16:35.319921+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
2014-07-02T08:16:35.319883+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.5/lib/active_support/tagged_logging.rb:68:in `tagged'
2014-07-02T08:16:35.319886+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.5/lib/action_dispatch/middleware/request_id.rb:21:in `call'
2014-07-02T08:16:35.319884+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.5/lib/rails/rack/logger.rb:20:in `call'
2014-07-02T08:16:35.225563+00:00 app[web.1]: Started GET "/" for 192.122.131.37 at 2014-07-02 08:16:35 +0000
2014-07-02T08:16:35.319919+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
2014-07-02T08:16:35.321135+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.5/lib/rails/rack/logger.rb:20:in `block in call'
2014-07-02T08:16:35.321133+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.5/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
2014-07-02T08:16:35.319923+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
2014-07-02T08:16:35.319887+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call'
2014-07-02T08:16:35.321127+00:00 app[web.1]:
2014-07-02T08:16:35.319895+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.5/lib/rails/engine.rb:511:in `call'
2014-07-02T08:16:35.319897+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.5/lib/rails/application.rb:97:in `call'
2014-07-02T08:16:35.319894+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/sendfile.rb:112:in `call'
2014-07-02T08:16:35.321137+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.5/lib/active_support/tagged_logging.rb:68:in `block in tagged'
2014-07-02T08:16:35.321145+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/runtime.rb:17:in `call'
2014-07-02T08:16:35.321147+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.5/lib/active_support/cache/strategy/local_cache.rb:83:in `call'
2014-07-02T08:16:35.321134+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.5/lib/rails/rack/logger.rb:38:in `call_app'
2014-07-02T08:16:35.321138+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.5/lib/active_support/tagged_logging.rb:26:in `tagged'
2014-07-02T08:16:35.319901+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler/webrick.rb:60:in `service'
2014-07-02T08:16:35.319899+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/content_length.rb:14:in `call'
2014-07-02T08:16:35.319898+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/lock.rb:17:in `call'
2014-07-02T08:16:35.319925+00:00 app[web.1]:
2014-07-02T08:16:35.319889+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/runtime.rb:17:in `call'
2014-07-02T08:16:35.319924+00:00 app[web.1]:
2014-07-02T08:16:35.321141+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.5/lib/rails/rack/logger.rb:20:in `call'
2014-07-02T08:16:35.321161+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
2014-07-02T08:16:35.321140+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.5/lib/active_support/tagged_logging.rb:68:in `tagged'
2014-07-02T08:16:35.321130+00:00 app[web.1]: ActionController::RoutingError (No route matches [GET] "/"):
2014-07-02T08:16:35.321144+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call'
2014-07-02T08:16:35.321151+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.5/lib/rails/engine.rb:511:in `call'
2014-07-02T08:16:35.321149+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/sendfile.rb:112:in `call'
2014-07-02T08:16:35.321131+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.5/lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
2014-07-02T08:16:35.321158+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
2014-07-02T08:16:35.321148+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.5/lib/action_dispatch/middleware/static.rb:64:in `call'
2014-07-02T08:16:35.321155+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/content_length.rb:14:in `call'
2014-07-02T08:16:35.321162+00:00 app[web.1]:
2014-07-02T08:16:35.321142+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.5/lib/action_dispatch/middleware/request_id.rb:21:in `call'
2014-07-02T08:16:35.321154+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/lock.rb:17:in `call'
2014-07-02T08:16:35.321152+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.5/lib/rails/application.rb:97:in `call'
2014-07-02T08:16:35.321156+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler/webrick.rb:60:in `service'
2014-07-02T08:16:35.321159+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
2014-07-02T08:16:35.321163+00:00 app[web.1]:
2014-07-02T08:16:35.764555+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=young-thicket-2043.herokuapp.com request_id=ca661424-73d7-4799-8ad7-5fed577fd9c2 fwd="192.122.131.37" dyno=web.1 connect=1ms service=52ms status=304 bytes=133
2014-07-02T08:16:40.905460+00:00 heroku[api]: Starting process with command `bundle exec rake db` by huicheese#gmail.com
2014-07-02T08:16:44.546386+00:00 heroku[run.7223]: State changed from starting to up
2014-07-02T08:16:44.833806+00:00 heroku[run.7223]: Awaiting client
2014-07-02T08:16:55.930802+00:00 heroku[api]: Starting process with command `bundle exec rake db:migrate` by huicheese#gmail.com
2014-07-02T08:16:59.934050+00:00 heroku[run.6502]: State changed from starting to up
2014-07-02T08:16:59.814001+00:00 heroku[run.6502]: Awaiting client
2014-07-02T08:17:16.236553+00:00 heroku[run.7223]: State changed from up to complete
2014-07-02T08:17:16.224283+00:00 heroku[run.7223]: Process exited with status 128
2014-07-02T08:17:14.840989+00:00 heroku[run.7223]: Error R13 (Attach error) -> Failed to attach to process
2014-07-02T08:17:31.040049+00:00 heroku[run.6502]: State changed from up to complete
2014-07-02T08:17:29.816567+00:00 heroku[run.6502]: Error R13 (Attach error) -> Failed to attach to process
2014-07-02T08:17:31.023583+00:00 heroku[run.6502]: Process exited with status 128
Can anyone shed some light on this?
If you look at your logs you can see
ActionController::RoutingError (No route matches [GET] "/")
Which basically means that you don't have any root route setup in your routes.rb. Inside your routes.rb add this line:
root 'pages#show'
By writing this you are setting your root route to Page Controllers show action
I have been working on an app locally for a while now, and I've matched my development environment to that on Heroku as closely as I can.
The app is set up for multi-tenancy using Apartment (https://github.com/influitive/apartment), and designed to use subdomains to identify tenants. Both environments use postgres, and Apartment has been using schemas to manage the 'tanants' data.
This evening, I have attempted to push the code to Heroku (the same app before it became multi-tenancy worked beautifully), and no pages load, all give an error.
I've taken a look at the logs, and the most interesting line I can find is; Apartment::SchemaNotFound (One of the following schema(s) is invalid: heroku-app-name, "public"):
This certainly seems to be a peculiarity of Heroku, but I'm struggling for ideas on where to look next.
Any suggestions or help would be appreciated.
I've included all of the logs for reference;
2014-04-04T18:27:09.884367+00:00 app[web.1]: Apartment::SchemaNotFound (One of the following schema(s) is invalid: heroku-app-name, "public"):
2014-04-04T18:27:09.884368+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/apartment-0.24.3/lib/apartment/adapters/postgresql_adapter.rb:95:in `rescue in connect_to_new'
2014-04-04T18:27:09.884384+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/etag.rb:23:in `call'
2014-04-04T18:27:09.884362+00:00 app[web.1]:
2014-04-04T18:27:09.884385+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/conditionalget.rb:25:in `call'
2014-04-04T18:27:09.884364+00:00 app[web.1]: I, [2014-04-04T18:27:09.879482 #2] INFO -- : Started GET "/favicon.ico" for 92.25.163.224 at 2014-04-04 18:27:09 +0000
2014-04-04T18:27:09.884388+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/params_parser.rb:27:in `call'
2014-04-04T18:27:09.884389+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/flash.rb:241:in `call'
2014-04-04T18:27:09.884366+00:00 app[web.1]: F, [2014-04-04T18:27:09.884136 #2] FATAL -- :
2014-04-04T18:27:09.884370+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/apartment-0.24.3/lib/apartment/adapters/postgresql_adapter.rb:88:in `connect_to_new'
2014-04-04T18:27:09.884381+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/manager.rb:34:in `catch'
2014-04-04T18:27:09.884371+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/apartment-0.24.3/lib/apartment/adapters/abstract_adapter.rb:100:in `switch'
2014-04-04T18:27:09.884383+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/manager.rb:34:in `call'
2014-04-04T18:27:09.884396+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
2014-04-04T18:27:09.884372+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/apartment-0.24.3/lib/apartment/elevators/generic.rb:20:in `call'
2014-04-04T18:27:09.884387+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/head.rb:11:in `call'
2014-04-04T18:27:09.884398+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
2014-04-04T18:27:09.884403+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
2014-04-04T18:27:09.884391+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:225:in `context'
2014-04-04T18:27:09.884392+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:220:in `call'
2014-04-04T18:27:09.884399+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/callbacks.rb:373:in `_run__2212192162733263500__call__callbacks'
2014-04-04T18:27:09.884400+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/callbacks.rb:80:in `run_callbacks'
2014-04-04T18:27:09.884393+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/cookies.rb:486:in `call'
2014-04-04T18:27:09.884402+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
2014-04-04T18:27:09.884406+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
2014-04-04T18:27:09.884379+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/manager.rb:35:in `block in call'
2014-04-04T18:27:09.884395+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/query_cache.rb:36:in `call'
2014-04-04T18:27:09.884409+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/rack/logger.rb:21:in `block in call'
2014-04-04T18:27:09.884407+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/rack/logger.rb:38:in `call_app'
2014-04-04T18:27:09.884410+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/tagged_logging.rb:67:in `block in tagged'
2014-04-04T18:27:09.884404+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
2014-04-04T18:27:09.884430+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/tagged_logging.rb:67:in `tagged'
2014-04-04T18:27:09.884431+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/rack/logger.rb:21:in `call'
2014-04-04T18:27:09.884432+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/request_id.rb:21:in `call'
2014-04-04T18:27:09.884428+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/tagged_logging.rb:25:in `tagged'
2014-04-04T18:27:09.884435+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/runtime.rb:17:in `call'
2014-04-04T18:27:09.884444+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/application.rb:97:in `call'
2014-04-04T18:27:09.884434+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call'
2014-04-04T18:27:09.884437+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/cache/strategy/local_cache.rb:83:in `call'
2014-04-04T18:27:09.884442+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/engine.rb:511:in `call'
2014-04-04T18:27:09.884445+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/lock.rb:17:in `call'
2014-04-04T18:27:09.884448+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler/webrick.rb:60:in `service'
2014-04-04T18:27:09.884446+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/content_length.rb:14:in `call'
2014-04-04T18:27:09.884450+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
2014-04-04T18:27:09.884451+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
2014-04-04T18:27:09.884452+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Take a look at your apartment initializer and remove the subdomain elevator settings. i commented out everything related to elevator. since your app is probably on a heroku subdomain, the elevator setting will try to load that particular tenant from the db and will issue that error.
it worked fine for me after i commented
# Rails.application.config.middleware.use 'Apartment::Elevators::Subdomain'