Connection issue with shell version 2.4.9


mongo “mongodb://,,” --authenticationDatabase admin --ssl --username m001-student --password m001-mongodb-basics


MongoDB shell version: 2.4.9
connecting to: mongodb://,,
Tue Nov 13 14:24:52.965 Assertion failure _setName.size() src/mongo/client/dbclientinterface.h 211
0x5638a6 0x52cfc0 0x4be012 0x4b8edb 0x52726e 0x5172de 0x7f8bf877ad76 0x3ec66cb06362
mongo(_ZN5mongo15printStackTraceERSo+0x26) [0x5638a6]
mongo(_ZN5mongo12verifyFailedEPKcS1_j+0xc0) [0x52cfc0]
mongo(ZN5mongo16ConnectionStringC1ENS0_14ConnectionTypeERKSsS3+0x1c2) [0x4be012]
mongo(_ZN5mongo16ConnectionString5parseERKSsRSs+0x1ab) [0x4b8edb]
mongo(_ZN5mongo17mongoConsExternalEPNS_7V8ScopeERKN2v89ArgumentsE+0xde) [0x52726e]
mongo(_ZN5mongo7V8Scope10v8CallbackERKN2v89ArgumentsE+0xbe) [0x5172de]
/usr/lib/ [0x7f8bf877ad76]
Tue Nov 13 14:24:52.967 Error: assertion src/mongo/client/dbclientinterface.h:211 at src/mongo/shell/mongo.js:147
exception: connect failed

I am using linux mint 17 which is based on ubuntu14, hence the older version of MongoDB. Is this the problem?
Thank you

Hi Saf_83761,

The connection string looks perfect!

You are right! You need to update MongoDB. Its always advisable to use the latest version.
Download latest version here.


Is it ok to install the latest version on an old version of ubuntu? I have tried the same command on with the latest version but the error message is now :

/mongodb-linux-x86_64-enterprise-ubuntu1804-4.0.4/bin/mongo: error while loading shared libraries: cannot open shared object file: No such file or directory

I believe it is searching for openssl shared libraries. I have openssl installed, but maybe not where it is searching. Do you know where it expects to find them?

Thank you

Actually, the easiest thing to do would simply be to install OpenSSL through APT.