Skip to content

Instantly share code, notes, and snippets.

@rhysforyou
Created November 28, 2011 08:45
Show Gist options
  • Select an option

  • Save rhysforyou/1399658 to your computer and use it in GitHub Desktop.

Select an option

Save rhysforyou/1399658 to your computer and use it in GitHub Desktop.
› rake db:migrate db:test:load
NOTICE: database "lastreads_test" does not exist, skipping
PGError: ERROR: permission denied to create database
: CREATE DATABASE "lastreads_test" ENCODING = 'unicode'
/Users/rpowell93/.rvm/gems/ruby-1.9.3-p0@lastreads/gems/activerecord-3.1.3/lib/active_record/connection_adapters/postgresql_adapter.rb:592:in `async_exec'
/Users/rpowell93/.rvm/gems/ruby-1.9.3-p0@lastreads/gems/activerecord-3.1.3/lib/active_record/connection_adapters/postgresql_adapter.rb:592:in `block in execute'
/Users/rpowell93/.rvm/gems/ruby-1.9.3-p0@lastreads/gems/activerecord-3.1.3/lib/active_record/connection_adapters/abstract_adapter.rb:244:in `block in log'
/Users/rpowell93/.rvm/gems/ruby-1.9.3-p0@lastreads/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
/Users/rpowell93/.rvm/gems/ruby-1.9.3-p0@lastreads/gems/activerecord-3.1.3/lib/active_record/connection_adapters/abstract_adapter.rb:239:in `log'
/Users/rpowell93/.rvm/gems/ruby-1.9.3-p0@lastreads/gems/activerecord-3.1.3/lib/active_record/connection_adapters/postgresql_adapter.rb:591:in `execute'
/Users/rpowell93/.rvm/gems/ruby-1.9.3-p0@lastreads/gems/activerecord-3.1.3/lib/active_record/connection_adapters/postgresql_adapter.rb:704:in `create_database'
/Users/rpowell93/.rvm/gems/ruby-1.9.3-p0@lastreads/gems/activerecord-3.1.3/lib/active_record/railties/databases.rake:110:in `rescue in create_database'
/Users/rpowell93/.rvm/gems/ruby-1.9.3-p0@lastreads/gems/activerecord-3.1.3/lib/active_record/railties/databases.rake:54:in `create_database'
/Users/rpowell93/.rvm/gems/ruby-1.9.3-p0@lastreads/gems/activerecord-3.1.3/lib/active_record/railties/databases.rake:457:in `block (3 levels) in <top (required)>'
/Users/rpowell93/.rvm/gems/ruby-1.9.3-p0@lastreads/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
/Users/rpowell93/.rvm/gems/ruby-1.9.3-p0@lastreads/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute'
/Users/rpowell93/.rvm/gems/ruby-1.9.3-p0@lastreads/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
/Users/rpowell93/.rvm/gems/ruby-1.9.3-p0@lastreads/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/Users/rpowell93/.rvm/gems/ruby-1.9.3-p0@lastreads/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain'
/Users/rpowell93/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/Users/rpowell93/.rvm/gems/ruby-1.9.3-p0@lastreads/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/Users/rpowell93/.rvm/gems/ruby-1.9.3-p0@lastreads/gems/rake-0.9.2.2/lib/rake/task.rb:176:in `block in invoke_prerequisites'
/Users/rpowell93/.rvm/gems/ruby-1.9.3-p0@lastreads/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `each'
/Users/rpowell93/.rvm/gems/ruby-1.9.3-p0@lastreads/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `invoke_prerequisites'
/Users/rpowell93/.rvm/gems/ruby-1.9.3-p0@lastreads/gems/rake-0.9.2.2/lib/rake/task.rb:157:in `block in invoke_with_call_chain'
/Users/rpowell93/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/Users/rpowell93/.rvm/gems/ruby-1.9.3-p0@lastreads/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/Users/rpowell93/.rvm/gems/ruby-1.9.3-p0@lastreads/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/Users/rpowell93/.rvm/gems/ruby-1.9.3-p0@lastreads/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
/Users/rpowell93/.rvm/gems/ruby-1.9.3-p0@lastreads/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block (2 levels) in top_level'
/Users/rpowell93/.rvm/gems/ruby-1.9.3-p0@lastreads/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
/Users/rpowell93/.rvm/gems/ruby-1.9.3-p0@lastreads/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block in top_level'
/Users/rpowell93/.rvm/gems/ruby-1.9.3-p0@lastreads/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/Users/rpowell93/.rvm/gems/ruby-1.9.3-p0@lastreads/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
/Users/rpowell93/.rvm/gems/ruby-1.9.3-p0@lastreads/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `block in run'
/Users/rpowell93/.rvm/gems/ruby-1.9.3-p0@lastreads/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/Users/rpowell93/.rvm/gems/ruby-1.9.3-p0@lastreads/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/Users/rpowell93/.rvm/gems/ruby-1.9.3-p0@lastreads/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>'
/Users/rpowell93/.rvm/gems/ruby-1.9.3-p0@lastreads/bin/rake:19:in `load'
/Users/rpowell93/.rvm/gems/ruby-1.9.3-p0@lastreads/bin/rake:19:in `<main>'
Couldn't create database for {"adapter"=>"postgresql", "encoding"=>"unicode", "database"=>"lastreads_test", "pool"=>5, "username"=>"lastreads", "password"=>nil}
rake aborted!
FATAL: database "lastreads_test" does not exist
Tasks: TOP => db:schema:load
(See full trace by running task with --trace)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment