Chapter 2: Importing, Exporting, and Querying Data - Your Chapter 2 IDE space

I’m doing the workspace assignment Chapter 2: Importing, Exporting, and Querying Data - Your Chapter 2 IDE space

When i try the show dbs command
it throws the error “show:command not found”

Should i try all of this in my mongo shell / workspace ?
Any help/directions is appreciable.

Yes, inside the Mongo shell (not the bash shell).

Did you connect to the cluster using mongo <yourURI>?

I too am having difficulties connecting into Mongo Shell. I believe I am following the instructions properly - I have selected “I have mongoshell”, picked the correction version, copied/pasted the connection string into the IDE shell, but get a string of errors after I add my password

2021-03-27T21:19:49.510+0000 W NETWORK [ReplicaSetMonitor-TaskExecutor] Unable to reach primary for set atlas-6zkl73-shard-0
2021-03-27T21:19:49.510+0000 I NETWORK [ReplicaSetMonitor-TaskExecutor] Cannot reach any nodes for set atlas-6zkl73-shard-0. Please check network connectivity and the status of the set. This has happened for 1 checks in a row.
2021-03-27T21:19:50.050+0000 W NETWORK [js] Unable to reach primary for set atlas-6zkl73-shard-0
2021-03-27T21:19:50.050+0000 I NETWORK [js] Cannot reach any nodes for set atlas-6zkl73-shard-0. Please check network

2021-03-27T21:20:04.127+0000 W NETWORK [js] Unable to reach primary for set atlas-6zkl73-shard-0
2021-03-27T21:20:04.128+0000 E QUERY [js] Error: connect failed to replica set atlas-6zkl73-shard-0/sandbox-shard-00-00.pahkz.mongodb.net.:27017,sandbox-shard-00-01.pahkz.mongodb.net.:27017,sandbox-shard-00-02.pahkz.mongodb.net.:27017 :
connect@src/mongo/shell/mongo.js:328:13
@(connect):1:6
exception: connect failed

Hi @Stephanie_Wong ,
Visit Atlas. Under security → network access there is the option to whitelist IPs. For learning purposes, set that one to 0.0.0.0/0 which is equivalent to access from anywhere.

1 Like

Hi @Santiago_Miranda,

thank you so much - that resolved my issue; it did not occur to my my IP address may have changed!

1 Like