Skip to content
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.

FATAL: database "boxen_development" does not exist #43

Closed
AlessioProbability opened this issue Feb 19, 2014 · 1 comment · Fixed by #46
Closed

FATAL: database "boxen_development" does not exist #43

AlessioProbability opened this issue Feb 19, 2014 · 1 comment · Fixed by #46

Comments

@AlessioProbability
Copy link

When launch script/server and go on localhost:9393 i see this :

PG::Error

FATAL: database "boxen_development" does not exist
Rails.root: /opt/boxen/src/boxen-web

Application Trace | Framework Trace | Full Trace
.bundle/ruby/2.0.0/gems/activerecord-3.2.16/lib/active_record/connection_adapters/postgresql_adapter.rb:1222:in initialize' .bundle/ruby/2.0.0/gems/activerecord-3.2.16/lib/active_record/connection_adapters/postgresql_adapter.rb:1222:innew'
.bundle/ruby/2.0.0/gems/activerecord-3.2.16/lib/active_record/connection_adapters/postgresql_adapter.rb:1222:in connect' .bundle/ruby/2.0.0/gems/activerecord-3.2.16/lib/active_record/connection_adapters/postgresql_adapter.rb:324:ininitialize'
.bundle/ruby/2.0.0/gems/activerecord-3.2.16/lib/active_record/connection_adapters/postgresql_adapter.rb:28:in new' .bundle/ruby/2.0.0/gems/activerecord-3.2.16/lib/active_record/connection_adapters/postgresql_adapter.rb:28:inpostgresql_connection'
.bundle/ruby/2.0.0/gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/connection_pool.rb:315:in new_connection' .bundle/ruby/2.0.0/gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/connection_pool.rb:325:incheckout_new_connection'
.bundle/ruby/2.0.0/gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/connection_pool.rb:247:in block (2 levels) in checkout' .bundle/ruby/2.0.0/gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/connection_pool.rb:242:inloop'
.bundle/ruby/2.0.0/gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/connection_pool.rb:242:in block in checkout' /opt/boxen/rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/monitor.rb:211:inmon_synchronize'
.bundle/ruby/2.0.0/gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/connection_pool.rb:239:in checkout' .bundle/ruby/2.0.0/gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/connection_pool.rb:102:inblock in connection'
/opt/boxen/rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/monitor.rb:211:in mon_synchronize' .bundle/ruby/2.0.0/gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/connection_pool.rb:101:inconnection'
.bundle/ruby/2.0.0/gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/connection_pool.rb:410:in retrieve_connection' .bundle/ruby/2.0.0/gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/connection_specification.rb:171:inretrieve_connection'
.bundle/ruby/2.0.0/gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/connection_specification.rb:145:in connection' .bundle/ruby/2.0.0/gems/activerecord-3.2.16/lib/active_record/query_cache.rb:67:inrescue in call'
.bundle/ruby/2.0.0/gems/activerecord-3.2.16/lib/active_record/query_cache.rb:61:in call' .bundle/ruby/2.0.0/gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/connection_pool.rb:479:incall'
.bundle/ruby/2.0.0/gems/actionpack-3.2.16/lib/action_dispatch/middleware/callbacks.rb:28:in block in call' .bundle/ruby/2.0.0/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:405:in_run__4464179330587753328__call__2196476471735244280__callbacks'
.bundle/ruby/2.0.0/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:405:in __run_callback' .bundle/ruby/2.0.0/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:385:in_run_call_callbacks'
.bundle/ruby/2.0.0/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:81:in run_callbacks' .bundle/ruby/2.0.0/gems/actionpack-3.2.16/lib/action_dispatch/middleware/callbacks.rb:27:incall'
.bundle/ruby/2.0.0/gems/actionpack-3.2.16/lib/action_dispatch/middleware/reloader.rb:65:in call' .bundle/ruby/2.0.0/gems/actionpack-3.2.16/lib/action_dispatch/middleware/remote_ip.rb:31:incall'
.bundle/ruby/2.0.0/gems/actionpack-3.2.16/lib/action_dispatch/middleware/debug_exceptions.rb:16:in call' .bundle/ruby/2.0.0/gems/actionpack-3.2.16/lib/action_dispatch/middleware/show_exceptions.rb:56:incall'
.bundle/ruby/2.0.0/gems/railties-3.2.16/lib/rails/rack/logger.rb:32:in call_app' .bundle/ruby/2.0.0/gems/railties-3.2.16/lib/rails/rack/logger.rb:16:inblock in call'
.bundle/ruby/2.0.0/gems/activesupport-3.2.16/lib/active_support/tagged_logging.rb:22:in tagged' .bundle/ruby/2.0.0/gems/railties-3.2.16/lib/rails/rack/logger.rb:16:incall'
.bundle/ruby/2.0.0/gems/actionpack-3.2.16/lib/action_dispatch/middleware/request_id.rb:22:in call' .bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/methodoverride.rb:21:incall'
.bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/runtime.rb:17:in call' .bundle/ruby/2.0.0/gems/activesupport-3.2.16/lib/active_support/cache/strategy/local_cache.rb:72:incall'
.bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/lock.rb:15:in call' .bundle/ruby/2.0.0/gems/actionpack-3.2.16/lib/action_dispatch/middleware/static.rb:63:incall'
.bundle/ruby/2.0.0/gems/railties-3.2.16/lib/rails/engine.rb:484:in call' .bundle/ruby/2.0.0/gems/railties-3.2.16/lib/rails/application.rb:231:incall'
.bundle/ruby/2.0.0/gems/railties-3.2.16/lib/rails/railtie/configurable.rb:30:in method_missing' .bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/lint.rb:48:in_call'
.bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/lint.rb:36:in call' .bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/showexceptions.rb:24:incall'
.bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/commonlogger.rb:33:in call' .bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/chunked.rb:43:incall'
.bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/content_length.rb:14:in call' .bundle/ruby/2.0.0/gems/unicorn-4.5.0/lib/unicorn/http_server.rb:552:inprocess_client'
.bundle/ruby/2.0.0/gems/unicorn-4.5.0/lib/unicorn/http_server.rb:628:in worker_loop' .bundle/ruby/2.0.0/gems/unicorn-4.5.0/lib/unicorn/http_server.rb:500:inspawn_missing_workers'
.bundle/ruby/2.0.0/gems/unicorn-4.5.0/lib/unicorn/http_server.rb:142:in start' .bundle/ruby/2.0.0/gems/unicorn-4.5.0/bin/unicorn:121:in<top (required)>'
bin/unicorn:16:in load' bin/unicorn:16:in

'
Request

Parameters:

None
Show session dump

Show env dump

HTTP_ACCEPT: "text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8"
HTTP_ACCEPT_ENCODING: "gzip, deflate"
HTTP_ACCEPT_LANGUAGE: "en-us"
REMOTE_ADDR: "127.0.0.1"
SERVER_NAME: "localhost"
SERVER_PROTOCOL: "HTTP/1.1"
Response

Headers:

None

doesn't exist a schema for this DB ???

@ghost
Copy link

ghost commented Feb 24, 2014

Running bin/rake db:schema:load fixed this for me.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant