uncaught exception: error: { "$err" : "not master and slaveOk=false", "code" : 13435 }
2013-12-20 17:01
411 查看
在学习mongodb的副本集时,在备份节点查看信息时,出现如下异常信息:
uncaught exception: error: { "$err" : "not master and slaveOk=false", "code" : 13435 }
解决办法:
db.getMongo().setSlaveOk();
我看到有人说用这种方式也没有解决,那样的情况本人还没遇到所以不知道怎么处理。我采用这种方式就可以正常了。
本文出自 “雨の吢聲” 博客,请务必保留此出处http://angelgirl.blog.51cto.com/1695763/1343307
uncaught exception: error: { "$err" : "not master and slaveOk=false", "code" : 13435 }
解决办法:
db.getMongo().setSlaveOk();
我看到有人说用这种方式也没有解决,那样的情况本人还没遇到所以不知道怎么处理。我采用这种方式就可以正常了。
本文出自 “雨の吢聲” 博客,请务必保留此出处http://angelgirl.blog.51cto.com/1695763/1343307
相关文章推荐
- "$err" : "not master and slaveok=false", "code" : 13435
- MongoCursorException ***not master and slaveOk=false
- MongoDB的“not master and slaveok=false”错误解决
- mongoDB Error:not master and slaveOk=false
- MongoDb的“not master and slaveok=false”错误及解决方法
- MongoDb的“not master and slaveok=false”错误及解决方法,读写分离
- not master and slaveOk=false
- MongoDb的“not master and slaveok=false”错误及解决方法
- MongoDb的“not master and slaveok=false”错误及解决方法
- MongoDb的"not master and slaveok=false"错误及解决方法
- MongoDb的“not master and slaveok=false”错误及解决方法
- MongoDb的“not master and slaveok=false”错误及解决方法
- MongoDb的“not master and slaveok=false”错误及解决方法
- NOT MASTER AND SLAVEOK=FALSE
- 【MongoDB】MongoDb的“not master and slaveok=false”错误及解决方法
- javascript 错误 "Uncaught TypeError: string is not a function"
- master: Error: JAVA_HOME is not set and could not be found.问题解决
- Master: Error: JAVA_HOME is not set and could not be found.
- Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command
- Table definition on master and slave does not match(坑爹的编码)