Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Can Not Connect to Primary Node AND Can not resolve IP Issues #333

Closed
steve-rodriguez opened this issue Dec 2, 2014 · 0 comments
Closed

Comments

@steve-rodriguez
Copy link

This issue was originally logged on the Mongodb Jira site, but they pointed me to the Moped github site to log the issue(s).

Using Mongoid 4.0.0, Moped 2.0.1 with a JRuby application running in VMware's TCServer. We use a 3 node replicaset with 1 primary and 2 secondaries. The Mongodb nodes are on a different host than the JRuby application. We have a different JRUBY app that uses Mongoid 2.7 ( obviously NO Moped ), and we have NO connection issues. I have attached a screenshot of our Mongoid.yml and our Mongoid_yml_parms which are sourced in to the mongoid.yml on app startup. We get the following errors quite often. If I put the mongodb and the application on the same host, we have NO network latency, blips, etc and see no issues. BUT on different hosts, when a network blip occurs, Moped doesn't appear to handle the issue and can not reconnect for whatever reason. We have increased/decrease the timeout params, but that has no effect. Please advise. Thx!

mongoid_yml
mongoid_yml_parms

ERROR 1:
2014-11-11T16:23:04-07:00 ERROR : [e456fb5f-49d6-4ffb-8941-5d146d16be99] [192.168.165.15] [TBD] [visitor_id: 116876791] +++++++++ ERROR::: Failed to get footnotes -> Could not connect to a primary node for replica set #<Moped::Cluster:353630 @seeds=[<Moped::Node resolved_address="172.17.38.118:33478">, <Moped::Node resolved_address="172.17.38.119:33478">, <Moped::Node resolved_address="172.17.40.37:33478">]> +++++++++
2014-11-11T16:23:04-07:00 ERROR : [e456fb5f-49d6-4ffb-8941-5d146d16be99] [192.168.165.15] [TBD] [visitor_id: 116876791] /webapps/apps/investors/WEB-INF/gems/gems/moped-2.0.1/lib/moped/cluster.rb:254:in with_primary' /webapps/apps/investors/WEB-INF/gems/gems/moped-2.0.1/lib/moped/read_preference/primary.rb:55:inwith_node'
org/jruby/RubyProc.java:271:in call' /webapps/apps/investors/WEB-INF/gems/gems/moped-2.0.1/lib/moped/read_preference/selectable.rb:65:inwith_retry'
/webapps/apps/investors/WEB-INF/gems/gems/moped-2.0.1/lib/moped/read_preference/selectable.rb:71:in with_retry' /webapps/apps/investors/WEB-INF/gems/gems/moped-2.0.1/lib/moped/read_preference/selectable.rb:65:inwith_retry'
/webapps/apps/investors/WEB-INF/gems/gems/moped-2.0.1/lib/moped/read_preference/selectable.rb:71:in with_retry' /webapps/apps/investors/WEB-INF/gems/gems/moped-2.0.1/lib/moped/read_preference/selectable.rb:65:inwith_retry'
/webapps/apps/investors/WEB-INF/gems/gems/moped-2.0.1/lib/moped/read_preference/selectable.rb:71:in with_retry' /webapps/apps/investors/WEB-INF/gems/gems/moped-2.0.1/lib/moped/read_preference/selectable.rb:65:inwith_retry'
/webapps/apps/investors/WEB-INF/gems/gems/moped-2.0.1/lib/moped/read_preference/selectable.rb:71:in with_retry' /webapps/apps/investors/WEB-INF/gems/gems/moped-2.0.1/lib/moped/read_preference/selectable.rb:65:inwith_retry'
/webapps/apps/investors/WEB-INF/gems/gems/moped-2.0.1/lib/moped/read_preference/selectable.rb:71:in with_retry' /webapps/apps/investors/WEB-INF/gems/gems/moped-2.0.1/lib/moped/read_preference/selectable.rb:65:inwith_retry'
/webapps/apps/investors/WEB-INF/gems/gems/moped-2.0.1/lib/moped/read_preference/primary.rb:54:in with_node' /webapps/apps/investors/WEB-INF/gems/gems/moped-2.0.1/lib/moped/query.rb:127:infirst'
............................
............................

ERROR 2:
2014-11-11T12:21:47-07:00 WARN : [38bdc484-d381-4767-b032-4eee68b0bff9] [172.17.38.79] [TBD] [visitor_id: 116806669] MOPED: Could not resolve IP for: qa2-web-db3:33478 runtime: n/a

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

No branches or pull requests

2 participants