activebridge / projectr

11 stars 1 forks source link

ActiveRecord::NoDatabaseError: FATAL: database "projectr_production" does not exist #107

Closed YaroslavTupytskyi closed 7 years ago

YaroslavTupytskyi commented 7 years ago

View details in Rollbar: https://rollbar.com/yaroslavtupitskyi/ProjectR/items/43/



PG::ConnectionBad: FATAL:  database "projectr_production" does not exist

  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/connection_adapters/postgresql_adapter.rb", line 671, in initialize
  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/connection_adapters/postgresql_adapter.rb", line 671, in new
  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/connection_adapters/postgresql_adapter.rb", line 671, in connect
  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/connection_adapters/postgresql_adapter.rb", line 217, in initialize
  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/connection_adapters/postgresql_adapter.rb", line 37, in new
  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/connection_adapters/postgresql_adapter.rb", line 37, in postgresql_connection
  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/connection_adapters/abstract/connection_pool.rb", line 729, in new_connection
  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/connection_adapters/abstract/connection_pool.rb", line 773, in checkout_new_connection
  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/connection_adapters/abstract/connection_pool.rb", line 752, in try_to_checkout_new_connection
  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/connection_adapters/abstract/connection_pool.rb", line 713, in acquire_connection
  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/connection_adapters/abstract/connection_pool.rb", line 490, in checkout
  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/connection_adapters/abstract/connection_pool.rb", line 364, in connection
  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/connection_adapters/abstract/connection_pool.rb", line 883, in retrieve_connection
  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/connection_handling.rb", line 128, in retrieve_connection
  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/connection_handling.rb", line 91, in connection
  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/model_schema.rb", line 327, in table_exists?
  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/attribute_methods/primary_key.rb", line 97, in get_primary_key
  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/attribute_methods/primary_key.rb", line 85, in reset_primary_key
  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/attribute_methods/primary_key.rb", line 73, in primary_key
  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/core.rb", line 152, in find
  File "/home/yaroslav/work/projectr/app/controllers/application_controller.rb", line 7, in current_user
  File "/home/yaroslav/work/projectr/app/controllers/welcome_controller.rb", line 14, in require_guest
  File "/var/lib/gems/2.4.0/gems/activesupport-5.0.2/lib/active_support/callbacks.rb", line 382, in block in make_lambda
  File "/var/lib/gems/2.4.0/gems/activesupport-5.0.2/lib/active_support/callbacks.rb", line 150, in block (2 levels) in halting_and_conditional
  File "/var/lib/gems/2.4.0/gems/actionpack-5.0.2/lib/abstract_controller/callbacks.rb", line 12, in block (2 levels) in <module:Callbacks>
  File "/var/lib/gems/2.4.0/gems/activesupport-5.0.2/lib/active_support/callbacks.rb", line 151, in block in halting_and_conditional
  File "/var/lib/gems/2.4.0/gems/activesupport-5.0.2/lib/active_support/callbacks.rb", line 454, in block in call
  File "/var/lib/gems/2.4.0/gems/activesupport-5.0.2/lib/active_support/callbacks.rb", line 454, in each
  File "/var/lib/gems/2.4.0/gems/activesupport-5.0.2/lib/active_support/callbacks.rb", line 454, in call
  File "/var/lib/gems/2.4.0/gems/activesupport-5.0.2/lib/active_support/callbacks.rb", line 101, in __run_callbacks__
  File "/var/lib/gems/2.4.0/gems/activesupport-5.0.2/lib/active_support/callbacks.rb", line 750, in _run_process_action_callbacks
  File "/var/lib/gems/2.4.0/gems/activesupport-5.0.2/lib/active_support/callbacks.rb", line 90, in run_callbacks
  File "/var/lib/gems/2.4.0/gems/actionpack-5.0.2/lib/abstract_controller/callbacks.rb", line 19, in process_action
  File "/var/lib/gems/2.4.0/gems/actionpack-5.0.2/lib/action_controller/metal/rescue.rb", line 20, in process_action
  File "/var/lib/gems/2.4.0/gems/actionpack-5.0.2/lib/action_controller/metal/instrumentation.rb", line 32, in block in process_action
  File "/var/lib/gems/2.4.0/gems/activesupport-5.0.2/lib/active_support/notifications.rb", line 164, in block in instrument
  File "/var/lib/gems/2.4.0/gems/activesupport-5.0.2/lib/active_support/notifications/instrumenter.rb", line 21, in instrument
  File "/var/lib/gems/2.4.0/gems/activesupport-5.0.2/lib/active_support/notifications.rb", line 164, in instrument
  File "/var/lib/gems/2.4.0/gems/actionpack-5.0.2/lib/action_controller/metal/instrumentation.rb", line 30, in process_action
  File "/var/lib/gems/2.4.0/gems/actionpack-5.0.2/lib/action_controller/metal/params_wrapper.rb", line 248, in process_action
  File "/var/lib/gems/2.4.0/gems/activerecord-5.0.2/lib/active_record/railties/controller_runtime.rb", line 18, in process_action
  File "/var/lib/gems/2.4.0/gems/actionpack-5.0.2/lib/abstract_controller/base.rb", line 126, in process
  File "/var/lib/gems/2.4.0/gems/actionview-5.0.2/lib/action_view/rendering.rb", line 30, in process
  File "/var/lib/gems/2.4.0/gems/actionpack-5.0.2/lib/action_controller/metal.rb", line 190, in dispatch
  File "/var/lib/gems/2.4.0/gems/actionpack-5.0.2/lib/action_controller/metal.rb", line 262, in dispatch
  File "/var/lib/gems/2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/routing/route_set.rb", line 50, in dispatch
  File "/var/lib/gems/2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/routing/route_set.rb", line 32, in serve
  File "/var/lib/gems/2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/journey/router.rb", line 39, in block in serve
  File "/var/lib/gems/2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/journey/router.rb", line 26, in each
  File "/var/lib/gems/2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/journey/router.rb", line 26, in serve
  File "/var/lib/gems/2.4.0/gems/actionpack-5.0.2/lib/action_dispatch/routing/route_set.rb", line 725, in call
  File "/var/lib/gems/2.4.0/gems/rack-2.0.1/lib/rack/etag.rb", line 25, in call
  File "/var/lib/gems/2.4.0/gems/rack-2.0.1/lib/rack/conditional_get.rb", line 25, in call
  File "/var/lib/gems/2.4.0/gems/rack-2.0.1/lib/rack/head.rb", line 12, in call
  File "/var/lib/gems/2.4.0/gems/rack-2.0.1/lib/rack/session/abstract/id.rb", line 222, in context
  File "/var/lib/gems/2.4.0/gems/rack-2.0.1/lib/rack/session/