Tags » Mongo

AuthenticationFailed MONGODB-CR credentials missing in the user document

Error Description: When you are using MongoDB 3.0 and decide to use MONGODB-CR as password authentification mechanism instead of the default SCRAM-SHA-1, the new user you create don’t have MONGODB-CR credentials as expected: 89 more words

Errors

MongoDB PHP Exception: Can't connect over SSL, is mongod running with SSL?

Error:Connect to MongoClient using SSL = true

$mc = new MongoClient("mongodb://server1", array("ssl" => true));

Cause: Your mongod instance is running but not properly configured with ssl.

Errors

MongoDB keyFile too open permissions

Error: mongod cannot start with error: keyFile too open permissions

Cause: Mongod key file accepts only mode 600 (read and write by owner only)

chmod 600 ./keyFile

Errors

MongoDB exception: can't use localhost in repl set member names except when using it for all members

Error: When use rs.Add():

{
“errmsg” : “exception: can’t use localhost in repl set member names except when using it for all members”,
“code” : 13393,

73 more words
Errors

MongoDB couldn't initiate : can't find self in the replset config

Error: When use coomand rs.initiate()

{ “errmsg” : “couldn’t initiate : can’t find self in the replset config”, “ok” : 0 }

Cause: a hostname(s) of a replica set member(s) cannot be resolved…

7 more words
Errors

MongoDB couldn't connect to new shard socket exception [CONNECT_ERROR]

Error: addShard() command returns error:

{
“ok” : 0,
“errmsg” : “couldn’t connect to new shard socket exception for replname/hostname:27017″
}

Cause:

1. hostname:27017 cannot be reached…

93 more words
Errors

Uninstall MongoDB on Centos using yum remove

First, get the list of packages to be removed:

rpm -qa –qf=”%{n}-%{v}-%{r}.%{arch}\n” ‘mongo*’ | sort

Then use yum remove

sudo yum remove <package names>

Mongo