Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sinatra-1.2.2 is not supported by mongo3 or connection configuration is not correct? #13

Open
developerworks opened this issue Apr 12, 2011 · 0 comments

Comments

@developerworks
Copy link

Command line for start mongo3 and "mongo://192.168.1.105:50000/mongo3/sessions" is connected.

mongo3 --pool "mongo://192.168.1.105:50000/mongo3/sessions" --environment=master

Environment settings in landscapge.yml:

master:
  host: 192.168.1.105
  port: 50000

Do request "http://192.168.91.128:6663/" from browser.

Errors occured like the following:

RuntimeError - MongoDB connection failed for `"host":"port" with Failed to connect to a master node at host:0:
 /var/lib/gems/1.8/gems/mongo3-0.1.3/lib/mongo3/connection.rb:431:in `connect_for'
 /var/lib/gems/1.8/gems/mongo3-0.1.3/lib/mongo3/connection.rb:250:in `slave?'
 /var/lib/gems/1.8/gems/mongo3-0.1.3/lib/mongo3/connection.rb:227:in `build_tree'
 /var/lib/gems/1.8/gems/mongo3-0.1.3/lib/mongo3/connection.rb:219:in `each_pair'
 /var/lib/gems/1.8/gems/mongo3-0.1.3/lib/mongo3/connection.rb:219:in `build_tree'
 /var/lib/gems/1.8/gems/mongo3-0.1.3/lib/controllers/explore.rb:22:in `GET /'
 /var/lib/gems/1.8/gems/sinatra-1.2.2/lib/sinatra/base.rb:1162:in `call'
 /var/lib/gems/1.8/gems/sinatra-1.2.2/lib/sinatra/base.rb:1162:in `compile!'
 /var/lib/gems/1.8/gems/sinatra-1.2.2/lib/sinatra/base.rb:736:in `instance_eval'
 /var/lib/gems/1.8/gems/sinatra-1.2.2/lib/sinatra/base.rb:736:in `route_eval'
 /var/lib/gems/1.8/gems/sinatra-1.2.2/lib/sinatra/base.rb:720:in `route!'
 /var/lib/gems/1.8/gems/sinatra-1.2.2/lib/sinatra/base.rb:770:in `process_route'
 /var/lib/gems/1.8/gems/sinatra-1.2.2/lib/sinatra/base.rb:767:in `catch'
 /var/lib/gems/1.8/gems/sinatra-1.2.2/lib/sinatra/base.rb:767:in `process_route'
 /var/lib/gems/1.8/gems/sinatra-1.2.2/lib/sinatra/base.rb:719:in `route!'
 /var/lib/gems/1.8/gems/sinatra-1.2.2/lib/sinatra/base.rb:718:in `each'
 /var/lib/gems/1.8/gems/sinatra-1.2.2/lib/sinatra/base.rb:718:in `route!'
 /var/lib/gems/1.8/gems/sinatra-1.2.2/lib/sinatra/base.rb:855:in `dispatch!'
 /var/lib/gems/1.8/gems/sinatra-1.2.2/lib/sinatra/base.rb:646:in `call!'
 /var/lib/gems/1.8/gems/sinatra-1.2.2/lib/sinatra/base.rb:820:in `instance_eval'
 /var/lib/gems/1.8/gems/sinatra-1.2.2/lib/sinatra/base.rb:820:in `invoke'
 /var/lib/gems/1.8/gems/sinatra-1.2.2/lib/sinatra/base.rb:820:in `catch'
 /var/lib/gems/1.8/gems/sinatra-1.2.2/lib/sinatra/base.rb:820:in `invoke'
 /var/lib/gems/1.8/gems/sinatra-1.2.2/lib/sinatra/base.rb:646:in `call!'
 /var/lib/gems/1.8/gems/sinatra-1.2.2/lib/sinatra/base.rb:631:in `call'
 /var/lib/gems/1.8/gems/rack-1.2.1/lib/rack/session/abstract/id.rb:63:in `context'
 /var/lib/gems/1.8/gems/rack-1.2.1/lib/rack/session/abstract/id.rb:58:in `call'
 /var/lib/gems/1.8/gems/rack-1.2.1/lib/rack/commonlogger.rb:18:in `call'
 /var/lib/gems/1.8/gems/rack-1.2.1/lib/rack/methodoverride.rb:24:in `call'
 /var/lib/gems/1.8/gems/sinatra-1.2.2/lib/sinatra/base.rb:1282:in `call'
 /var/lib/gems/1.8/gems/sinatra-1.2.2/lib/sinatra/base.rb:1313:in `synchronize'
 /var/lib/gems/1.8/gems/sinatra-1.2.2/lib/sinatra/base.rb:1282:in `call'
 /var/lib/gems/1.8/gems/rack-1.2.1/lib/rack/content_length.rb:13:in `call'
 /var/lib/gems/1.8/gems/rack-1.2.1/lib/rack/handler/webrick.rb:52:in `service'
 /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
 /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
 /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
 /usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
 /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
 /usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
 /usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
 /usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
 /usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
 /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
 /var/lib/gems/1.8/gems/rack-1.2.1/lib/rack/handler/webrick.rb:13:in `run'
 /var/lib/gems/1.8/gems/sinatra-1.2.2/lib/sinatra/base.rb:1245:in `run!'
 /var/lib/gems/1.8/gems/mongo3-0.1.3/bin/mongo3:45:in `run!'
 /var/lib/gems/1.8/gems/main-4.4.0/lib/main/program/class_methods.rb:155:in `run'
 /var/lib/gems/1.8/gems/main-4.4.0/lib/main/program/class_methods.rb:144:in `catch'
 /var/lib/gems/1.8/gems/main-4.4.0/lib/main/program/class_methods.rb:144:in `run'
 /var/lib/gems/1.8/gems/main-4.4.0/lib/main/factories.rb:18:in `run'
 /var/lib/gems/1.8/gems/main-4.4.0/lib/main/factories.rb:25:in `Main'
 /var/lib/gems/1.8/gems/mongo3-0.1.3/bin/mongo3:7
 /var/lib/gems/1.8/bin/mongo3:19:in `load'
 /var/lib/gems/1.8/bin/mongo3:19

How to configure the "host":"port" parameter in the first line of these error messages.

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

No branches or pull requests

1 participant