top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

DBClientCursor::init call() failed while trying to shutdown mongo

+1 vote
341 views

I am running these commands through mongo shell in a bash script

db=db.getSiblingDB('admin'); db.shutdownServer(); quit();

but it seems that db is not getting shutdown, this is the response i am getting :

MongoDB shell version: 2.6.10 connecting to: localhost:27000/test 2015-06-27T10:05:54.375+0000 DBClientCursor::init call() failed server should be down...

Any advice on what to do and what is going wrong? I tried to shutdown mms agents first,but that didn't help

posted Jul 4, 2015 by anonymous

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

Similar Questions
0 votes

MongoException on Mongo Insert (errorCode=72): Command failed with error 72: 'Writes to config servers must have batch size of 1, found 1000'
I have this error on a collection bulk insert via mongos. Can you help?

0 votes

I have 3 node replicates and i am using all the host in my connection string.Once i execute my node.js script i want to see which particular host it got connected to.
I can fire the following command in mongo shell but same is not working in node.js script, mostly says like "function is not defined"

hostnamedb.hostInfo().system.hostnamers.status().members.find(r=>r.state===1).name
TypeError: db.hostInfo is not a function
ReferenceError: hostname is not defined

Can someone help me how i can find the connected mongo instance server name using the node.js script?

0 votes

I am trying to figuring out how to use $sample through the driver.
I know that there is the functionality, I just failed to comprehend how to use it...

...