More problems installing on Ubuntu

Hi,
I have successfully downloaded the server version onto ubuntu.
However, there is a mismatch between the server version and the shell version.
I installed it directly from the download page on MongoDB.

See messages below, taken from my terminal.

MongoDB shell version v4.2.0
connecting to: mongodb://sandbox-shard-00-01-73jwi.mongodb.net:27017,sandbox-shard-00-02-73jwi.mongodb.net:27017,sandbox-shard-00-00-73jwi.mongodb.net:27017/test?authSource=admin&compressors=disabled&gssapiServiceName=mongodb&replicaSet=Sandbox-shard-0&ssl=true
2019-09-08T16:48:23.745+0100 I NETWORK [js] Starting new replica set monitor for Sandbox-shard-0/sandbox-shard-00-01-73jwi.mongodb.net:27017,sandbox-shard-00-02-73jwi.mongodb.net:27017,sandbox-shard-00-00-73jwi.mongodb.net:27017
2019-09-08T16:48:23.745+0100 I CONNPOOL [ReplicaSetMonitor-TaskExecutor] Connecting to sandbox-shard-00-00-73jwi.mongodb.net:27017
2019-09-08T16:48:23.745+0100 I CONNPOOL [ReplicaSetMonitor-TaskExecutor] Connecting to sandbox-shard-00-02-73jwi.mongodb.net:27017
2019-09-08T16:48:23.745+0100 I CONNPOOL [ReplicaSetMonitor-TaskExecutor] Connecting to sandbox-shard-00-01-73jwi.mongodb.net:27017
2019-09-08T16:48:24.378+0100 I NETWORK [ReplicaSetMonitor-TaskExecutor] Confirmed replica set for Sandbox-shard-0 is Sandbox-shard-0/sandbox-shard-00-00-73jwi.mongodb.net:27017,sandbox-shard-00-01-73jwi.mongodb.net:27017,sandbox-shard-00-02-73jwi.mongodb.net:27017
Implicit session: session { “id” : UUID(“60b47e23-7817-47a3-9b73-92f8f6c6a789”) }
MongoDB server version: 4.0.12
WARNING: shell and server versions do not match
Error while trying to show server startup warnings: user is not allowed to do action [getLog] on [admin.]
MongoDB Enterprise Sandbox-shard-0:PRIMARY>

You are already connected to your Sandbox
You can ignore version mismatch messages and also “user is not allowed to do action” messages

1 Like

Hi, thanks for the comments.

Unfortunately I seem to have a permission problem.

When I try the db command “show dbs” I get the following errors:

Error while trying to show server startup warnings: user is not allowed to do action [getLog] on [admin.]

MongoDB Enterprise Sandbox-shard-0:PRIMARY> show dbs

2019-09-09T19:35:25.843+0100 E QUERY [js] uncaught exception: Error: listDatabases failed:{

"ok" : 0,

"errmsg" : "user is not allowed to do action [listDatabases] on [admin.]",

"code" : 8000,

"codeName" : "AtlasError"

} :

_getErrorWithCode@src/mongo/shell/utils.js:25:13

Mongo.prototype.getDBs/<@src/mongo/shell/mongo.js:135:19

Mongo.prototype.getDBs@src/mongo/shell/mongo.js:87:12

shellHelper.show@src/mongo/shell/utils.js:906:13

shellHelper@src/mongo/shell/utils.js:790:15

@(shellhelp2):1:1

MongoDB Enterprise Sandbox-

Perhaps my user has insufficient priviledges for the command.

Regards,

Roger Nunn

Hi @Roger_Nunn_70148,

Can you please check if you have created the user with right privileges i.e. Read and Write to any database, which is recommended in the Lecture: Lab 2.0: Create an Atlas Sandbox Cluster (Ungraded) ?

Also, I would request you to share the connection string that you used to connect to your cluster.

01%20AM

Thanks,
Shubham Ranjan
Curriculum Support Engineer

Hi again,

I followed all the steps as specified but was unable to continue with the course labs.

This means that I am now out of time and have automatically failed the course.

As far as I can see the issue must have arisen as the instructions were not specific to Ubuntu. I do not have access to a windows machine and so regretfully will have to abandon the course.

Best Regards,

Roger Nunn

Hi @Roger_Nunn_70148,

It’s unfortunate that your issue was not resolved in time and you could not proceed with the course. However, if you want then you can register for the current offering of M001 which is starting from 17 Sep 2019 at 17:00 UTC.

Additionally, it would be great if you can provide me the connection string that you used to connect to your cluster, so that I can investigate the issue.

This problem has nothing to do with your system. Any MongoDB specific commands that we have used or the operations that we have performed in our course lectures are system independent because you are running them in the mongo shell.

Thanks,
Shubham Ranjan
Curriculum Support Engineer