Error Criação de Tabelas


#1

Olá pessoal !
Não estou conseguindo executar este comando “rake db:schema:load”


rake aborted!
Failed to connect to a master node at localhost:27017
/home/cabox/.rvm/gems/ruby-1.9.3-p547@OpenRedu/gems/mongo-1.8.6/lib/mongo/mongo_client.rb:463:in connect' /home/cabox/.rvm/gems/ruby-1.9.3-p547@OpenRedu/gems/mongo-1.8.6/lib/mongo/mongo_client.rb:645:insetup’
/home/cabox/.rvm/gems/ruby-1.9.3-p547@OpenRedu/gems/mongo-1.8.6/lib/mongo/mongo_client.rb:126:in initiali ze' /home/cabox/.rvm/gems/ruby-1.9.3-p547@OpenRedu/gems/mongo-1.8.6/lib/mongo/util/uri_parser.rb:157:innew’
/home/cabox/.rvm/gems/ruby-1.9.3-p547@OpenRedu/gems/mongo-1.8.6/lib/mongo/util/uri_parser.rb:157:in conne ction' /home/cabox/.rvm/gems/ruby-1.9.3-p547@OpenRedu/gems/mongo-1.8.6/lib/mongo/mongo_client.rb:174:infrom_uri

/home/cabox/.rvm/gems/ruby-1.9.3-p547@OpenRedu/gems/mongoid-2.7.1/lib/mongoid/config/database.rb:86:in ma ster' /home/cabox/.rvm/gems/ruby-1.9.3-p547@OpenRedu/gems/mongoid-2.7.1/lib/mongoid/config/database.rb:19:inco
nfigure’
/home/cabox/.rvm/gems/ruby-1.9.3-p547@OpenRedu/gems/mongoid-2.7.1/lib/mongoid/config.rb:290:in configure_ databases' /home/cabox/.rvm/gems/ruby-1.9.3-p547@OpenRedu/gems/mongoid-2.7.1/lib/mongoid/config.rb:111:infrom_hash’
/home/cabox/.rvm/gems/ruby-1.9.3-p547@OpenRedu/gems/mongoid-2.7.1/lib/mongoid/config.rb:126:in block in l oad!' /home/cabox/.rvm/gems/ruby-1.9.3-p547@OpenRedu/gems/mongoid-2.7.1/lib/mongoid/config.rb:125:intap’
/home/cabox/.rvm/gems/ruby-1.9.3-p547@OpenRedu/gems/mongoid-2.7.1/lib/mongoid/config.rb:125:in load!' /home/cabox/.rvm/gems/ruby-1.9.3-p547@OpenRedu/gems/mongoid-2.7.1/lib/mongoid.rb:148:inload!’
/home/cabox/.rvm/gems/ruby-1.9.3-p547@OpenRedu/gems/mongoid-2.7.1/lib/mongoid/railtie.rb:84:in block in < class:Railtie>' /home/cabox/.rvm/gems/ruby-1.9.3-p547@OpenRedu/gems/railties-3.2.13/lib/rails/initializable.rb:30:ininst
ance_exec’
/home/cabox/.rvm/gems/ruby-1.9.3-p547@OpenRedu/gems/railties-3.2.13/lib/rails/initializable.rb:30:in run' /home/cabox/.rvm/gems/ruby-1.9.3-p547@OpenRedu/gems/railties-3.2.13/lib/rails/initializable.rb:55:inbloc
k in run_initializers’
/home/cabox/.rvm/gems/ruby-1.9.3-p547@OpenRedu/gems/railties-3.2.13/lib/rails/initializable.rb:54:in each ' /home/cabox/.rvm/gems/ruby-1.9.3-p547@OpenRedu/gems/railties-3.2.13/lib/rails/initializable.rb:54:inrun_
initializers’
/home/cabox/.rvm/gems/ruby-1.9.3-p547@OpenRedu/gems/railties-3.2.13/lib/rails/application.rb:136:in initi alize!' /home/cabox/.rvm/gems/ruby-1.9.3-p547@OpenRedu/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:i nmethod_missing’
/home/cabox/workspace/config/environment.rb:6:in <top (required)>' /home/cabox/.rvm/gems/ruby-1.9.3-p547@OpenRedu/gems/activesupport-3.2.13/lib/active_support/dependencies.r b:251:inrequire’
/home/cabox/.rvm/gems/ruby-1.9.3-p547@OpenRedu/gems/activesupport-3.2.13/lib/active_support/dependencies.r
b:251:in block in require' /home/cabox/.rvm/gems/ruby-1.9.3-p547@OpenRedu/gems/activesupport-3.2.13/lib/active_support/dependencies.r b:236:inload_dependency’
/home/cabox/.rvm/gems/ruby-1.9.3-p547@OpenRedu/gems/activesupport-3.2.13/lib/active_support/dependencies.r
b:251:in require' /home/cabox/.rvm/gems/ruby-1.9.3-p547@OpenRedu/gems/railties-3.2.13/lib/rails/application.rb:103:inrequi
re_environment!’
/home/cabox/.rvm/gems/ruby-1.9.3-p547@OpenRedu/gems/railties-3.2.13/lib/rails/application.rb:297:in block (2 levels) in initialize_tasks' /home/cabox/.rvm/gems/ruby-1.9.3-p547@OpenRedu/gems/rake-10.0.4/lib/rake/task.rb:246:incall’
/home/cabox/.rvm/gems/ruby-1.9.3-p547@OpenRedu/gems/rake-10.0.4/lib/rake/task.rb:246:in block in execute' /home/cabox/.rvm/gems/ruby-1.9.3-p547@OpenRedu/gems/rake-10.0.4/lib/rake/task.rb:241:ineach’
/home/cabox/.rvm/gems/ruby-1.9.3-p547@OpenRedu/gems/rake-10.0.4/lib/rake/task.rb:241:in execute' /home/cabox/.rvm/gems/ruby-1.9.3-p547@OpenRedu/gems/rake-10.0.4/lib/rake/task.rb:184:inblock in invoke_w
ith_call_chain’
/home/cabox/.rvm/gems/ruby-1.9.3-p547@OpenRedu/gems/rake-10.0.4/lib/rake/task.rb:177:in invoke_with_call_ chain' /home/cabox/.rvm/gems/ruby-1.9.3-p547@OpenRedu/gems/rake-10.0.4/lib/rake/task.rb:205:inblock in invoke_p
rerequisites’

/home/cabox/.rvm/gems/ruby-1.9.3-p547@OpenRedu/gems/rake-10.0.4/lib/rake/task.rb:203:in each' /home/cabox/.rvm/gems/ruby-1.9.3-p547@OpenRedu/gems/rake-10.0.4/lib/rake/task.rb:203:ininvoke_prerequisi
tes’
/home/cabox/.rvm/gems/ruby-1.9.3-p547@OpenRedu/gems/rake-10.0.4/lib/rake/task.rb:183:in block in invoke_w ith_call_chain' /home/cabox/.rvm/gems/ruby-1.9.3-p547@OpenRedu/gems/rake-10.0.4/lib/rake/task.rb:177:ininvoke_with_call_
chain’
/home/cabox/.rvm/gems/ruby-1.9.3-p547@OpenRedu/gems/rake-10.0.4/lib/rake/task.rb:170:in invoke' /home/cabox/.rvm/gems/ruby-1.9.3-p547@OpenRedu/gems/rake-10.0.4/lib/rake/application.rb:143:ininvoke_tas
k’
/home/cabox/.rvm/gems/ruby-1.9.3-p547@OpenRedu/gems/rake-10.0.4/lib/rake/application.rb:101:in block (2 l evels) in top_level' /home/cabox/.rvm/gems/ruby-1.9.3-p547@OpenRedu/gems/rake-10.0.4/lib/rake/application.rb:101:ineach’
/home/cabox/.rvm/gems/ruby-1.9.3-p547@OpenRedu/gems/rake-10.0.4/lib/rake/application.rb:101:in block in t op_level' /home/cabox/.rvm/gems/ruby-1.9.3-p547@OpenRedu/gems/rake-10.0.4/lib/rake/application.rb:110:inrun_with_t
hreads’
/home/cabox/.rvm/gems/ruby-1.9.3-p547@OpenRedu/gems/rake-10.0.4/lib/rake/application.rb:95:in top_level' /home/cabox/.rvm/gems/ruby-1.9.3-p547@OpenRedu/gems/rake-10.0.4/lib/rake/application.rb:73:inblock in ru
n’
/home/cabox/.rvm/gems/ruby-1.9.3-p547@OpenRedu/gems/rake-10.0.4/lib/rake/application.rb:160:in standard_e xception_handling' /home/cabox/.rvm/gems/ruby-1.9.3-p547@OpenRedu/gems/rake-10.0.4/lib/rake/application.rb:70:inrun’
/home/cabox/.rvm/gems/ruby-1.9.3-p547@OpenRedu/bin/ruby_executable_hooks:15:in eval' /home/cabox/.rvm/gems/ruby-1.9.3-p547@OpenRedu/bin/ruby_executable_hooks:15:in
Tasks: TOP => db:schema:load => environment
(See full trace by running task with --trace)

Espero resposta brevemente e obrigado pela atenção


#2

Acredito que o problema seja com a conexão do MongoDB.

Se você utiliza o Openredu em desenvolvimento, indico a você tentar remover o Mongo, ja que o Openredu não utiliza o mesmo em ambiente de desenvolvimento.