I am trying to load a mongodb dump that I have on my local machine into atlas cluster.
I have not used atlas before apart from a small project. I have read everything that grows under the sun and i think i must have a silly issue that i cannot see.
I am on MACOS 10.14.6
the dump has been created with mongodump command (BSON files). I have:
uploaded the dump locally and it works well.
created 2 DB on atlas, all good
installed mongocli on my machine
mongocli version: 1.15.1
MongoDB shell version v4.2.0
configured a user on atlas
created api keys and use
mongocli configto set them up locally
now, 1st problem
mongo “mongodb+srv://cluster0.u7g3w.mongodb.net/beta” --username myusername
returns this error
2021-04-22T15:00:01.266+0800 I NETWORK [js] Marking host cluster0-shard-00-01.u7g3w.mongodb.net:27017 as failed :: caused by :: Location40659: can’t connect to new replica set master [cluster0-shard-00-01.u7g3w.mongodb.net:27017], err: AuthenticationFailed: bad auth : Authentication failed.
*** It looks like this is a MongoDB Atlas cluster. Please ensure that your IP whitelist allows connections from your network.
2021-04-22T15:00:01.348+0800 E QUERY [js] Error: bad auth : Authentication failed. :
2021-04-22T15:00:01.353+0800 F - [main] exception: connect failed
2021-04-22T15:00:01.353+0800 E - [main] exiting with code 1
- tried with atlas:
bad auth : Authentication failed.
I have another issue, which does not seem to be related:
when i try to run mongorestore, i get the message:
mongorestore: command not found
I have added mongo/bin to my PATH though, wondering if what i miss here
Any idea would be much appreciated!