Error: assertion src/mongo/client/dbclientinterface.h

Hi All,

Greetings,

I am new to this space…

My issue is somewhere related to this , hence pasting here, can someone please help me to understand…what’s going wrong, as sometimes I get it fixed after upgrading mongo shell client version to > 3.6

mongo “mongodb://cluster0-shard-00-00-jxeqq.mongodb.net:27017,cluster0-shard-00-01-jxeqq.mongodb.net:27017,cluster0-shard-00-02-jxeqq.mongodb.net:27017/test?replicaSet=Cluster0-shard-0” --authenticationDatabase admin --ssl --username m001-student --password m001-mongodb-basics

mongo “mongodb://cluster0-shard-00-00-jxeqq.mongodb.net:27017,cluster0-shard-00-01-jxeqq.mongodb.net:27017,cluster0-shard-00-02-jxeqq.mongodb.net:2701
7/test?replicaSet=Cluster0-shard-0” --authenticationDatabase admin --ssl --username m001-student --password m001-mongodb-basics
MongoDB shell version: 2.6.10
connecting to: mongodb://cluster0-shard-00-00-jxeqq.mongodb.net:27017,cluster0-shard-00-01-jxeqq.mongodb.net:27017,cluster0-shard-00-02-jxeqq.mongodb.ne
t:27017/test?replicaSet=Cluster0-shard-0
2019-06-19T08:11:02.307+0000 Assertion failure _setName.size() src/mongo/client/dbclientinterface.h 231
2019-06-19T08:11:02.307+0000 0x6b75c9 0x659e9f 0x636a32 0x5013b8 0x4fa7f1 0x6006fd 0x5eb869 0x7fd9f202fd76 0xb89a2606362
mongo(_ZN5mongo15printStackTraceERSo+0x39) [0x6b75c9]
mongo(_ZN5mongo10logContextEPKc+0x21f) [0x659e9f]
mongo(_ZN5mongo12verifyFailedEPKcS1_j+0x142) [0x636a32]
mongo(ZN5mongo16ConnectionStringC1ENS0_14ConnectionTypeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9+0x208) [0x5013b8]
mongo(ZN5mongo16ConnectionString5parseERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERS6+0x201) [0x4fa7f1]
mongo(_ZN5mongo17mongoConsExternalEPNS_7V8ScopeERKN2v89ArgumentsE+0x11d) [0x6006fd]
mongo(_ZN5mongo7V8Scope10v8CallbackERKN2v89ArgumentsE+0xa9) [0x5eb869]
/usr/lib/libv8.so.3.14.5(+0x99d76) [0x7fd9f202fd76]
[0xb89a2606362]
2019-06-19T08:11:02.309+0000 Error: assertion src/mongo/client/dbclientinterface.h:231 at src/mongo/shell/mongo.js:148
exception: connect failed
mongo --version
MongoDB shell version: 2.6.10

db.version()
4.0.10

Above pasted the log, which I am trying to connect to the Atlas cluster for some queries.

Thanks :slight_smile:

Looks like a shell BUG

1 Like

Hi @pathakpk,

I hope you are able to solve the issue using the post shared by @Ramachandra_37567.

Please let me know, if you have any doubts.

Thanks,
Sonali