MongoDB server version and shell version should tally?

224 views
Skip to first unread message

Andrea Kim

unread,
Nov 22, 2018, 4:16:17 AM11/22/18
to mongodb-user
Hi. 

When I tried to check if there were new collections, there were none. So I followed through some troubleshooting steps. While checking if there was a connection configuration issue, I got a message on terminal as shown belolw:

Screen Shot 2018-11-22 at 2.09.52 PM.png


Should the server version match the shell version? If so, how can I make both same? And which version is currently recommend for both? 

Your help would be appreciated. 

cheers, 
andrea







Wan Bachtiar

unread,
Nov 25, 2018, 11:46:58 PM11/25/18
to mongodb-user

When I tried to check if there were new collections, there were none. So I followed through some troubleshooting steps.

Hi Andrea,

What kind of error are you trying to troubleshoot ?
The shell-and-server-versions-not-matching message is just a warning.

Should the server version match the shell version?

Preferably the mongo shell version and the mongod server version should match on the release series. i.e. both in 3.6.x or in 4.0.x, 4.2.x etc. Generally you would want to match the shell version to the server version. 

If so, how can I make both same?

You would need to install the matching mongo shell version. Depending on the use case, you may have to install the server as well. See also Install MongoDB Community Edition

And which version is currently recommend for both?

The current stable version release is v4.0.4.

Regards,
Wan.

Reply all
Reply to author
Forward
0 new messages