[SERVER-12761] Replica set members UNKNOWN Created: 18/Feb/14  Updated: 10/Dec/14  Resolved: 19/Mar/14

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Critical - P2
Reporter: Amit Kumar Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

I have created a replica set with three mongo server(mongo-1,mongo-2,mongo-3) and i have initiated mongo-1 as Primary but when i added mongo-2's ip address and mongo-3's ip address it is showing :

rs2:PRIMARY> rs.status();
{
	"set" : "rs2",
	"date" : ISODate("2014-02-18T13:32:02Z"),
	"myState" : 1,
	"members" : [
		{
			"_id" : 0,
			"name" : "mongo-1:27017",
			"health" : 1,
			"state" : 1,
			"stateStr" : "PRIMARY",
			"uptime" : 11863,
			"optime" : Timestamp(1392730243, 1),
			"optimeDate" : ISODate("2014-02-18T13:30:43Z"),
			"self" : true
		},
		{
			"_id" : 1,
			"name" : "ip-address of mongo-2:27017",
			"health" : 1,
			"state" : 6,
			"stateStr" : "UNKNOWN",
			"uptime" : 11722,
			"optime" : Timestamp(0, 0),
			"optimeDate" : ISODate("1970-01-01T00:00:00Z"),
			"lastHeartbeat" : ISODate("2014-02-18T13:32:00Z"),
			"lastHeartbeatRecv" : ISODate("1970-01-01T00:00:00Z"),
			"pingMs" : 22,
			"lastHeartbeatMessage" : "still initializing"
		},
		{
			"_id" : 2,
			"name" : "ip-address of mongo-3:27017",
			"health" : 1,
			"state" : 6,
			"stateStr" : "UNKNOWN",
			"uptime" : 79,
			"optime" : Timestamp(0, 0),
			"optimeDate" : ISODate("1970-01-01T00:00:00Z"),
			"lastHeartbeat" : ISODate("2014-02-18T13:32:00Z"),
			"lastHeartbeatRecv" : ISODate("1970-01-01T00:00:00Z"),
			"pingMs" : 44,
			"lastHeartbeatMessage" : "still initializing"
		}
	],
	"ok" : 1
}

and my mongodb.conf file for all three server includes:

dbpath=/var/lib/mongodb
logpath=/var/log/mongodb/mongodb.log
logappend=true
port = 27017
fork = true
replSet = rs2

and all the three server are accessible from each other by issuing command like this:
Eg: From mongo-1 server
mongo ip-address-of-mongo-2:27017
output obtained:
MongoDB shell version: 2.4.9
connecting to: ip-address-of-mongo-2:27017/test

i have gone through the all configuration... but still replica set members are not accessible.
Please help me to resolve this issue.



 Comments   
Comment by Stennie Steneker (Inactive) [ 19/Mar/14 ]

Hi Amit,

I'm going to close this issue due to inactivity.

I would also note that the SERVER project is intended for reporting bugs or feature suggestions for the MongoDB server.

For MongoDB-related support discussion please post on the mongodb-users group (http://groups.google.com/group/mongodb-user) or ask specific questions on Stack Overflow / ServerFault.

Thanks,
Stephen

Comment by Eliot Horowitz (Inactive) [ 20/Feb/14 ]

Can you send the log file from each of the 3 nodes?

Generated at Thu Feb 08 03:29:32 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.