Connected to a 4.0.3 mongod shows v.3.6.5

Paul Stocks shared this question 6 years ago
Answered

My mongod is 4.0.3 and I create a db and a collection and add a document

The line above the editor tab says

localhost:27017 (v3.6.4)

I can see the mongod running 4.0.3 in the terminal creating the db and collection.

I'm I misunderstanding what the v.3.6.5 means?

Replies (1)

photo
1

Please try the following script and check the "version" value

db.adminCommand({ "buildinfo": 1 })

photo
1

says version: 4.0.3

so I guess my question should have been: what does (v3.6.5) in the tab header mean?

photo
1

It's kind of weird. Can you give me a screenshot? NoSQLBooster uses the "db.adminCommand({ "buildinfo": 1 })" command to get the version.

And, Could you show me the test connection log?


1. Open connection editor

2. Click the "Test Connection"

3. Copy the detailed log. Take care to remove your sensitive information

photo
1

eb3bdc7a6aeba1a62c60371abad7d0fe


09:15:23.996 *** Starting MongoClient.connect ***

{"options":{"appname":"NoSQLBoosterV4_94355.880","autoReconnect":true,"keepAlive":60000,"minSize":0,"poolSize":0,"promoteLongs":false,"promoteValues":false,"reconnectTries":172800,"socketTimeoutMS":0,"sslValidate":false,"useNewUrlParser":false},"uri":"mongodb://127.0.0.1:27017"}


09:15:24.003 Topology Opening

{"topologyId":4}


09:15:24.003 Server Opening

{"address":"127.0.0.1:27017","topologyId":4}


09:15:24.003 Server Description Changed

{"address":"127.0.0.1:27017","newDescription":{"address":"127.0.0.1:27017","arbiters":[],"hosts":[],"passives":[],"type":"RSPrimary"},"previousDescription":{"address":"127.0.0.1:27017","arbiters":[],"hosts":[],"passives":[],"type":"Unknown"},"topologyId":4}


09:15:24.003 Topology Description Changed

{"address":"127.0.0.1:27017","newDescription":{"servers":

photo
1

It looks like a problem caused by some cached data, but I can't reproduce it.

Please follow the steps:

  1. Close NoSQLBooster
  2. cd C:\Users\<YOUR NAME>\AppData\Roaming\NoSQLBooster for MongoDB
  3. Open app.json in some editor, find out if there is a field item named "dbVersion"

photo
1

where might this file be on a MAC?

I don't mind the display being wrong, if that's all it is ..

photo
1

For Mac:

/Users/<USER>/Library/Application Support/NoSQLBooster for MongoDB

photo
1

Because I don't know the cause of the problem yet, I'm not sure if it's just a display issue

photo
1

no dbVersion in the file.

But there are 4 properties at the end with the first two being wrong/strange


"undefined": "/Users/paul/mongodb-osx-x86_64-3.2.0/bin",

"mongoExecPath": "/Users/paul/mongodb-osx-x86_64-3.2.0/bin"

I'm not using the 3.2.0 version and have not for a while.

Can I correct the mongoExecPAth property and restart MongoBooster?

photo
1

You can safely delete these fields as long as the JSON file is valid

photo
1

deleted and restarted MongoBooster and its fixed!!!d07f3734e03929fe1d26778c5a300c92


thanks for your help!

photo
Leave a Comment
 
Attach a file