Error creating index WriteConcern detected an error 'not master'

1645 단어
Error creating index
WriteConcern detected an error 'not master'. (Response was { "lastOp" : { "$timestamp" : NumberLong(0) }, "connectionId" : 2152576, "err" : "not master", "code" : 8, "n" : 0, "ok" : 1.0 }).
Type: MongoDB.Driver.WriteConcernException
Stack:      MongoDB.Driver.Operations.InsertOperation.Execute(MongoConnection connection)
     MongoDB.Driver.MongoCollection.InsertBatch(Type nominalType, IEnumerable documents, MongoInsertOptions options)
     MongoDB.Driver.MongoCollection.Insert(Type nominalType, Object document, MongoInsertOptions options)
     MongoDB.Driver.MongoCollection.Insert[TNominalType](TNominalType document, MongoInsertOptions options)
     MongoDB.Driver.MongoCollection`1.Insert(TDefaultDocument document, MongoInsertOptions options)
     MongoDB.Driver.MongoCollection.CreateIndex(IMongoIndexKeys keys, IMongoIndexOptions options)
     MangoUI.MIndexes.Create(String db, String col, String name, BsonDocument fields, Boolean unique, Boolean dropDups, Boolean background)
     MangoUI.WinIndexNew.btnCreate_Click(Object sender, EventArgs e)
Inputs:: 
results: System.Collections.Generic.List`1[MongoDB.Driver.WriteConcernResult]
Command:  getlasterror
Ok:       True
ErrorMsg: 
Request:  { "getlasterror" : 1, "w" : 1 }
Response: { "lastOp" : { "$timestamp" : NumberLong(0) }, "connectionId" : 2152576, "err" : "not master", "code" : 8, "n" : 0, "ok" : 1.0 }

해석하다
현재 몬godb는 마스터가 아닙니다. 색인은 마스터에서만 만들 수 있습니다.

좋은 웹페이지 즐겨찾기