[SERVER-6202] couldn't initiate : assertion db/pdfile.cpp:437 Created: 25/Jun/12  Updated: 15/Aug/12  Resolved: 10/Jul/12

Status: Closed
Project: Core Server
Component/s: Replication, Sharding
Affects Version/s: 2.0.6
Fix Version/s: None

Type: Bug Priority: Blocker - P1
Reporter: phppassion1245 Assignee: Unassigned
Resolution: Incomplete Votes: 0
Labels: replicaset, replication, sharding
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Ubuntu


Issue Links:
Related
is related to SERVER-5754 Initial sync assertion error with 2.0... Closed
Operating System: Linux
Participants:

 Description   

I perform following tutorial for my knowledge
http://docs.mongodb.org/manual/tutorial/convert-replica-set-to-replicated-shard-cluster/

In this Tutorial i Start three mongod instances
then
mongo localhost:10001/admin
db.runCommand({"replSetInitiate" :
{"_id" : "firstset", "members" : [

{"_id" : 1, "host" : "localhost:10001"}

,

{"_id" : 2, "host" : "localhost:10002"}

,

{"_id" : 3, "host" : "localhost:10003"}

]}})

but above runCommand give me a following error

{ "errmsg" : "couldn't initiate : assertion db/pdfile.cpp:437", "ok" : 0 }

then i try rs.initiate()
but it also give same error
{
"info2" : "no configuration explicitly specified – making one",
"me" : "devindia-desktop:10001",
"errmsg" : "couldn't initiate : assertion db/pdfile.cpp:437",
"ok" : 0
}

how can i solve this error what i doing wrong in this Tutorial



 Comments   
Comment by Tad Marshall [ 06/Aug/12 ]

To see whether or not this is the issue fixed in SERVER-5754, we would need to see the assertion failure message written to the log file. In the unfixed version, it shows "approxSize < Extent::maxSize()", in the fixed version it shows "approxSize <= Extent::maxSize()" (less-than-or-equal instead of less-than). This might be a separate issue but we can't tell without knowing which message was logged.

Comment by Tad Marshall [ 25/Jun/12 ]

Is there any chance that you were using 2.0.4 or earlier, rather than 2.0.6 (as stated above)? There was a problem with the assertion at line 437 in db/pdfile.cpp that was fixed (in Git commit dc2f8cd3df44ea33f9813aadb27804e084abea11) for 2.0.5-rc0 (i.e. before 2.0.5). This problem should not happen with 2.0.5 or 2.0.6.

If you have the log file from when the problem happened, can you post a log fragment that includes the assertion failure?

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