MongoDB node show warning msg for auth whenever I run mongostat on discover mode

548 views
Skip to first unread message

Sandy

unread,
Apr 17, 2012, 2:17:36 AM4/17/12
to mongod...@googlegroups.com
Hi

Whenever I run MongoStat(MongoDB 2.0.3) on discover mode.
I see the below msg. - I think it is a bug.

Mon Apr 16 23:08:26 [conn60733]  authenticate: { authenticate: 1, nonce: "277d5806d8cd765f", user: "", key: "68828f2034fcb77a4faa2e9ee6c53c85" }
Mon Apr 16 23:08:26 [conn60733] field missing/wrong type in received authenticate command admin

Note: Currently DB setup is not configured for Authentication and Security.

Regards
Sandy

gregor

unread,
Apr 17, 2012, 4:02:36 AM4/17/12
to mongod...@googlegroups.com
Are there any other error / warning messages around this?

Sandy

unread,
Apr 17, 2012, 7:53:59 AM4/17/12
to mongod...@googlegroups.com
I am able to see mongostat output however I see the this warning msg on mongodb log.

Regards
Sandy

gregor

unread,
Apr 17, 2012, 10:35:48 AM4/17/12
to mongod...@googlegroups.com
How are you calling mongostat? With what arguments?

Sandy

unread,
Apr 18, 2012, 12:26:21 PM4/18/12
to mongodb-user
I use the below command

/mongodb/mongodb-linux-x86_64-2.0.3/bin/mongostat --host
$MONGOS_ROUTER --port 27017 --discover

-Sandy

Adam C

unread,
Apr 18, 2012, 12:44:49 PM4/18/12
to mongod...@googlegroups.com
Any chance the mongos is running a different version?

I reproduced this just the other day with 1.8.x mongos:


Adam

Sandy

unread,
Apr 18, 2012, 1:50:06 PM4/18/12
to mongodb-user
mongos running on 2.0.3 version.

gregor

unread,
Apr 19, 2012, 5:40:22 AM4/19/12
to mongod...@googlegroups.com
Can you paste your command line from your mongod primary?
db.runCommand({getCmdLineOpts:1})    

Mukesh Bijarniya

unread,
Nov 10, 2015, 12:01:20 AM11/10/15
to mongodb-user
/*Mongodb connection */
mongoose.connect("mongodb://"+config.mongoDB.username+":"+config.mongoDB.password+"@"+config.mongoDB.url +":"+ config.mongoDB.mongoPort +"/"+ config.mongoDB.dbName,function(err){
    if(err){
        console.log('Database ' + err)
    }else{
        console.log("database connected");
    }
});

Error=>Database MongoError: field missing/wrong type in received authenticate command how can I resolve this error ?

Wan Bachtiar

unread,
Nov 11, 2015, 5:36:11 PM11/11/15
to mongodb-user

Hi Mukesh,

Although you may have a similar error message, it may be a different issue that is causing it.

Please start a new discussion with relevant details of:

  • MongoDB version
  • mongoose version
  • steps to reproduce, and any specific log messages.

Regards,

Wan

Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages