Forum: Ruby on Rails database configuration specifies nonexistent postgresql adapter

992f6dd317a9b164e1efc5b674623f38?d=identicon&s=25 Michael Graff (Guest)
on 2012-05-12 18:22
(Received via mailing list)
I'm hoping someone can help out with this problem I find myself having.

I am getting this error (database configuration specifies nonexistent
postgresql adapter) on "rake db:migrate" on an application that until
recently had no such issues.  Other apps I'm developing work just fine.
I
have tried this with and without "bundle exec."

I have compared a working app's config directory my broken one, as well
as
the Gemfile.  boot.rb, application.rb, the environment files, and even
initializers are basically identical.  Both Gemfiles have:

 gem 'pg'

near the top, and both database.yml files are identical other than the
database details (user, password, and database name) -- but all of the
environments use "postgresql" as the database type.

Using "rake db:migrate --trace" reports:

bigmac:eq2mission explorer$ bundle exec rake db:migrate --trace
Sass is in the process of being separated from Haml,
and will no longer be bundled at all in Haml 3.2.0.
Please install the 'sass' gem if you want to use Sass.

** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
database configuration specifies nonexistent postgresql adapter
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activerecord-3.2.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:130:in
`establish_connection'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activerecord-3.2.3/lib/active_record/railtie.rb:76:in
`block (2 levels) in <class:Railtie>'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activesupport-3.2.3/lib/active_support/lazy_load_hooks.rb:36:in
`instance_eval'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activesupport-3.2.3/lib/active_support/lazy_load_hooks.rb:36:in
`execute_hook'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activesupport-3.2.3/lib/active_support/lazy_load_hooks.rb:43:in
`block in run_load_hooks'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activesupport-3.2.3/lib/active_support/lazy_load_hooks.rb:42:in
`each'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activesupport-3.2.3/lib/active_support/lazy_load_hooks.rb:42:in
`run_load_hooks'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activerecord-3.2.3/lib/active_record/base.rb:721:in
`<top (required)>'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activerecord-3.2.3/lib/active_record/connection_adapters/postgresql_adapter.rb:11:in
`<module:ActiveRecord>'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activerecord-3.2.3/lib/active_record/connection_adapters/postgresql_adapter.rb:10:in
`<top (required)>'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in
`require'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in
`block in require'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:236:in
`load_dependency'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in
`require'
/Users/explorer/proj/rails-apps/eq2mission/config/initializers/bigint_ids.rb:1:in
`<top (required)>'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:245:in
`load'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:245:in
`block in load'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:236:in
`load_dependency'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:245:in
`load'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/railties-3.2.3/lib/rails/engine.rb:588:in
`block (2 levels) in <class:Engine>'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/railties-3.2.3/lib/rails/engine.rb:587:in
`each'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/railties-3.2.3/lib/rails/engine.rb:587:in
`block in <class:Engine>'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/railties-3.2.3/lib/rails/initializable.rb:30:in
`instance_exec'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/railties-3.2.3/lib/rails/initializable.rb:30:in
`run'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/railties-3.2.3/lib/rails/initializable.rb:55:in
`block in run_initializers'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/railties-3.2.3/lib/rails/initializable.rb:54:in
`each'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/railties-3.2.3/lib/rails/initializable.rb:54:in
`run_initializers'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/railties-3.2.3/lib/rails/application.rb:136:in
`initialize!'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/railties-3.2.3/lib/rails/railtie/configurable.rb:30:in
`method_missing'
/Users/explorer/proj/rails-apps/eq2mission/config/environment.rb:5:in
`<top
(required)>'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in
`require'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in
`block in require'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:236:in
`load_dependency'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in
`require'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/railties-3.2.3/lib/rails/application.rb:103:in
`require_environment!'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/railties-3.2.3/lib/rails/application.rb:292:in
`block (2 levels) in initialize_tasks'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/task.rb:205:in
`call'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/task.rb:205:in
`block in execute'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/task.rb:200:in
`each'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/task.rb:200:in
`execute'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/task.rb:158:in
`block in invoke_with_call_chain'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/monitor.rb:211:in
`mon_synchronize'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/task.rb:151:in
`invoke_with_call_chain'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/task.rb:176:in
`block in invoke_prerequisites'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/task.rb:174:in
`each'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/task.rb:174:in
`invoke_prerequisites'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/task.rb:157:in
`block in invoke_with_call_chain'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/monitor.rb:211:in
`mon_synchronize'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/task.rb:151:in
`invoke_with_call_chain'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/task.rb:144:in
`invoke'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/application.rb:116:in
`invoke_task'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/application.rb:94:in
`block (2 levels) in top_level'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/application.rb:94:in
`each'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/application.rb:94:in
`block in top_level'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/application.rb:133:in
`standard_exception_handling'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/application.rb:88:in
`top_level'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/application.rb:66:in
`block in run'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/application.rb:133:in
`standard_exception_handling'
/Users/explorer/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/application.rb:63:in
`run'
/Users/explorer/.rbenv/versions/1.9.3-p194/bin/rake:32:in `<main>'
Tasks: TOP => db:migrate => environment

--
(Ruby, Rails, Random) blog:  http://blog.flame.org/
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.