Problemas com o rake db: setup

0

Eu estou tentando puxar um arquivo GitHub usando rake db:setup , mas recebo um erro toda vez, não importa quantas vezes eu reinstale postgresql ou verifique o Rails. Aqui está o erro que estou recebendo:

hifriend@ubuntu:~/refugerestrooms$ sudo -u root -H bundle exec \
  rake db:setup --trace
** Invoke db:setup (first_time)
** Invoke db:schema:load_if_ruby (first_time)
** Invoke db:create (first_time)
** Invoke db:load_config (first_time)
** Execute db:load_config
** Execute db:create
fe_sendauth: no password supplied
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/postgresql_adapter.rb:825:in 'initialize'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/postgresql_adapter.rb:825:in 'new'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/postgresql_adapter.rb:825:in 'connect'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/postgresql_adapter.rb:542:in 'initialize'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/postgresql_adapter.rb:41:in 'new'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/postgresql_adapter.rb:41:in 'postgresql_connection'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:440:in 'new_connection'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:450:in 'checkout_new_connection'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:421:in 'acquire_connection'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:356:in 'block in checkout'
/usr/lib/ruby/2.0.0/monitor.rb:211:in 'mon_synchronize'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:355:in 'checkout'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:265:in 'block in connection'
/usr/lib/ruby/2.0.0/monitor.rb:211:in 'mon_synchronize'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:264:in 'connection'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:546:in 'retrieve_connection'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_handling.rb:79:in 'retrieve_connection'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_handling.rb:53:in 'connection'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/tasks/postgresql_database_tasks.rb:8:in 'connection'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/tasks/postgresql_database_tasks.rb:17:in 'create'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/tasks/database_tasks.rb:72:in 'create'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/tasks/database_tasks.rb:86:in 'block in create_current'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/tasks/database_tasks.rb:182:in 'block in each_current_configuration'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/tasks/database_tasks.rb:181:in 'each'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/tasks/database_tasks.rb:181:in 'each_current_configuration'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/tasks/database_tasks.rb:85:in 'create_current'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/railties/databases.rake:20:in 'block (2 levels) in <top (required)>'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:236:in 'call'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:236:in 'block in execute'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:231:in 'each'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:231:in 'execute'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:175:in 'block in invoke_with_call_chain'
/usr/lib/ruby/2.0.0/monitor.rb:211:in 'mon_synchronize'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:168:in 'invoke_with_call_chain'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:197:in 'block in invoke_prerequisites'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:195:in 'each'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:195:in 'invoke_prerequisites'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:174:in 'block in invoke_with_call_chain'
/usr/lib/ruby/2.0.0/monitor.rb:211:in 'mon_synchronize'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:168:in 'invoke_with_call_chain'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:197:in 'block in invoke_prerequisites'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:195:in 'each'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:195:in 'invoke_prerequisites'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:174:in 'block in invoke_with_call_chain'
/usr/lib/ruby/2.0.0/monitor.rb:211:in 'mon_synchronize'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:168:in 'invoke_with_call_chain'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:161:in 'invoke'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:149:in 'invoke_task'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:106:in 'block (2 levels) in top_level'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:106:in 'each'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:106:in 'block in top_level'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:115:in 'run_with_threads'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:100:in 'top_level'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:78:in 'block in run'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:165:in 'standard_exception_handling'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:75:in 'run'
/var/lib/gems/2.0.0/gems/rake-10.1.1/bin/rake:33:in '<top (required)>'
/usr/local/bin/rake:23:in 'load'
/usr/local/bin/rake:23:in '<main>'
Couldn't create database for {"adapter"=>"postgresql", "encoding"=>"unicode", "database"=>"bathrooms_development", "pool"=>5, "host"=>"localhost", "username"=>"root", "password"=>nil}
fe_sendauth: no password supplied
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/postgresql_adapter.rb:825:in 'initialize'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/postgresql_adapter.rb:825:in 'new'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/postgresql_adapter.rb:825:in 'connect'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/postgresql_adapter.rb:542:in 'initialize'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/postgresql_adapter.rb:41:in 'new'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/postgresql_adapter.rb:41:in 'postgresql_connection'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:440:in 'new_connection'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:450:in 'checkout_new_connection'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:421:in 'acquire_connection'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:356:in 'block in checkout'
/usr/lib/ruby/2.0.0/monitor.rb:211:in 'mon_synchronize'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:355:in 'checkout'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:265:in 'block in connection'
/usr/lib/ruby/2.0.0/monitor.rb:211:in 'mon_synchronize'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:264:in 'connection'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:546:in 'retrieve_connection'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_handling.rb:79:in 'retrieve_connection'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_handling.rb:53:in 'connection'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/tasks/postgresql_database_tasks.rb:8:in 'connection'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/tasks/postgresql_database_tasks.rb:17:in 'create'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/tasks/database_tasks.rb:72:in 'create'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/tasks/database_tasks.rb:86:in 'block in create_current'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/tasks/database_tasks.rb:182:in 'block in each_current_configuration'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/tasks/database_tasks.rb:181:in 'each'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/tasks/database_tasks.rb:181:in 'each_current_configuration'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/tasks/database_tasks.rb:85:in 'create_current'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/railties/databases.rake:20:in 'block (2 levels) in <top (required)>'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:236:in 'call'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:236:in 'block in execute'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:231:in 'each'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:231:in 'execute'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:175:in 'block in invoke_with_call_chain'
/usr/lib/ruby/2.0.0/monitor.rb:211:in 'mon_synchronize'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:168:in 'invoke_with_call_chain'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:197:in 'block in invoke_prerequisites'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:195:in 'each'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:195:in 'invoke_prerequisites'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:174:in 'block in invoke_with_call_chain'
/usr/lib/ruby/2.0.0/monitor.rb:211:in 'mon_synchronize'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:168:in 'invoke_with_call_chain'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:197:in 'block in invoke_prerequisites'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:195:in 'each'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:195:in 'invoke_prerequisites'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:174:in 'block in invoke_with_call_chain'
/usr/lib/ruby/2.0.0/monitor.rb:211:in 'mon_synchronize'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:168:in 'invoke_with_call_chain'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:161:in 'invoke'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:149:in 'invoke_task'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:106:in 'block (2 levels) in top_level'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:106:in 'each'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:106:in 'block in top_level'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:115:in 'run_with_threads'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:100:in 'top_level'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:78:in 'block in run'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:165:in 'standard_exception_handling'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:75:in 'run'
/var/lib/gems/2.0.0/gems/rake-10.1.1/bin/rake:33:in '<top (required)>'
/usr/local/bin/rake:23:in 'load'
/usr/local/bin/rake:23:in '<main>'
Couldn't create database for {"adapter"=>"postgresql", "encoding"=>"unicode", "database"=>"bathrooms_test", "pool"=>5, "host"=>"localhost"}
** Invoke environment (first_time)
** Execute environment
** Execute db:schema:load_if_ruby
** Invoke db:schema:load (first_time)
** Invoke environment 
** Invoke db:load_config 
** Execute db:schema:load
-- enable_extension("plpgsql")
rake aborted!
fe_sendauth: no password supplied
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/postgresql_adapter.rb:825:in 'initialize'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/postgresql_adapter.rb:825:in 'new'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/postgresql_adapter.rb:825:in 'connect'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/postgresql_adapter.rb:542:in 'initialize'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/postgresql_adapter.rb:41:in 'new'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/postgresql_adapter.rb:41:in 'postgresql_connection'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:440:in 'new_connection'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:450:in 'checkout_new_connection'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:421:in 'acquire_connection'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:356:in 'block in checkout'
/usr/lib/ruby/2.0.0/monitor.rb:211:in 'mon_synchronize'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:355:in 'checkout'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:265:in 'block in connection'
/usr/lib/ruby/2.0.0/monitor.rb:211:in 'mon_synchronize'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:264:in 'connection'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:546:in 'retrieve_connection'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_handling.rb:79:in 'retrieve_connection'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_handling.rb:53:in 'connection'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/migration.rb:611:in 'connection'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/migration.rb:624:in 'block in method_missing'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/migration.rb:597:in 'block in say_with_time'
/usr/lib/ruby/2.0.0/benchmark.rb:281:in 'measure'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/migration.rb:597:in 'say_with_time'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/migration.rb:617:in 'method_missing'
/home/hifriend/refugerestrooms/db/schema.rb:17:in 'block in <top (required)>'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/schema.rb:42:in 'instance_eval'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/schema.rb:42:in 'define'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/schema.rb:62:in 'define'
/home/hifriend/refugerestrooms/db/schema.rb:14:in '<top (required)>'
/var/lib/gems/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:222:in 'load'
/var/lib/gems/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:222:in 'block in load'
/var/lib/gems/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213:in 'load_dependency'
/var/lib/gems/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:222:in 'load'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/railties/databases.rake:253:in 'block (3 levels) in <top (required)>'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:236:in 'call'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:236:in 'block in execute'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:231:in 'each'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:231:in 'execute'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:175:in 'block in invoke_with_call_chain'
/usr/lib/ruby/2.0.0/monitor.rb:211:in 'mon_synchronize'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:168:in 'invoke_with_call_chain'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:161:in 'invoke'
/var/lib/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/railties/databases.rake:260:in 'block (3 levels) in <top (required)>'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:236:in 'call'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:236:in 'block in execute'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:231:in 'each'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:231:in 'execute'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:175:in 'block in invoke_with_call_chain'
/usr/lib/ruby/2.0.0/monitor.rb:211:in 'mon_synchronize'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:168:in 'invoke_with_call_chain'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:197:in 'block in invoke_prerequisites'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:195:in 'each'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:195:in 'invoke_prerequisites'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:174:in 'block in invoke_with_call_chain'
/usr/lib/ruby/2.0.0/monitor.rb:211:in 'mon_synchronize'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:168:in 'invoke_with_call_chain'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/task.rb:161:in 'invoke'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:149:in 'invoke_task'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:106:in 'block (2 levels) in top_level'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:106:in 'each'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:106:in 'block in top_level'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:115:in 'run_with_threads'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:100:in 'top_level'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:78:in 'block in run'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:165:in 'standard_exception_handling'
/var/lib/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:75:in 'run'
/var/lib/gems/2.0.0/gems/rake-10.1.1/bin/rake:33:in '<top (required)>'
/usr/local/bin/rake:23:in 'load'
/usr/local/bin/rake:23:in '<main>'
Tasks: TOP => db:schema:load

Alguém tem alguma ideia do que está acontecendo aqui?

    
por user254158 03.03.2014 / 03:15

2 respostas

0

Eu tenho pouca experiência com o Ruby on Rails, mas ao ler a saída, suspeito que seja um problema de senha.

a linha 8 diz:

fe_sendauth: no password supplied

E depois para o meio:

Couldn't create database for {"adapter"=>"postgresql", "encoding"=>"unicode", "database"=>"bathrooms_development", "pool"=>5, "host"=>"localhost", "username"=>"root", "password"=>nil}
fe_sendauth: no password supplied

Parece que o servidor está esperando uma senha para estabelecer a conexão, mas você não está fornecendo uma na cadeia de conexão. Se bem me lembro, é recomendável usar uma conta "aberta" (ou seja, sem senha) durante o desenvolvimento do seu aplicativo RoR.

Eu sugiro que você crie um usuário de banco de dados com todo administrador (má ideia, desculpe) create privilégios mas sem senha e use essa conta para propósitos de desenvolvimento. Faça isso em uma instância local / de teste do servidor postgres para evitar a exposição de dados.

    
por hmayag 04.03.2014 / 10:13
0

Você precisa especificar as configurações do adaptador de banco de dados para o seu servidor Postgres no arquivo config/database.yml . Use algo como:

development:
  adapter: postgresql
  host: 127.0.0.1
  database: my_app_db 
  schema_search_path: my_app_schema, public
  encoding: unicode
  pool: 5
  timeout: 5000
  username: my_user
  password: my_pass

Para mais detalhes sobre a configuração do Rails com o Postgres, você pode tentar este guia .

    
por Luís de Sousa 19.06.2014 / 11:59