MongoDB Atlas is a cloud database service for running, monitoring, and maintaining MongoDB deployments, including the provisioning of dedicated servers for the MongoDB instances.
Questions tagged [mongodb-atlas]
1516 questions
52
votes
3 answers
Do I understand MongoDB Realm correctly?
There are three components:
Realm Database: Local Storage & Persistence
Realm Sync: Sync Realm Databases between clients and the Mongo DB Atlas
Mongo DB Atlas: A Cloud Database.
You can use each separately or together. So you can
Just store…

Iskeraet
- 731
- 1
- 6
- 12
52
votes
25 answers
MongoDB connection error: MongoTimeoutError: Server selection timed out after 30000 ms
I am trying to create a fullstack app reading the following tutorial:
https://medium.com/javascript-in-plain-english/full-stack-mongodb-react-node-js-express-js-in-one-simple-app-6cc8ed6de274
I followed all steps and then tried to run:
node…

Arvind Krmar
- 2,154
- 2
- 13
- 18
46
votes
5 answers
How to fix MongoError: Cannot use a session that has ended
I'm trying to read data from a MongoDB Atlas collection using Node.js. When I try to read the contents of my collection I get the error MongoError: Cannot use a session that has ended. Here is my code
client.connect(err => {
const collection =…

awebdev
- 997
- 2
- 10
- 27
46
votes
9 answers
How can I connect to MongoDB Atlas using Robomongo?
I signed up freely at MongoDB Atlas and created cluster now I want to know how can I create database and connect to that using Robomongo?

rocky
- 737
- 4
- 11
- 19
42
votes
17 answers
How to fix 'Error: querySrv EREFUSED' when connecting to MongoDB Atlas?
I am new to MongoDB 4.0.6 and tried to implement it into my website using Node/Express.js, but when I try to connect to mongodb+srv://${process.env.MONGOUSER}:${process.env.MONGOPASS}@main-03xkr.mongodb.net/main I'm getting this error:
{ Error:…

Noodles
- 3,888
- 2
- 20
- 31
36
votes
24 answers
Error at connecting to MongoDb Atlas Server
So I'm currently wirting a web application and I need database so I decided to go with mongodb and mongoose. Until now I tested everything on localhost and it worked but I wanted to move the data to a server. I had heard of Atlas and registered…

Lucas Engleder
- 661
- 1
- 6
- 18
29
votes
5 answers
How to connect to mongoDB Atlas using mongoose
I'm trying to connect to my cluster on mongoDB Atlas via Mongoose.connect(), but every time i try to connect i get an exception "MongoError: authentication fail"
I know MongoDB Atlas is new mongo as a service could it be not supported by mongoose…

M Hilal
- 295
- 1
- 3
- 8
27
votes
28 answers
Mongodb + Atlas: 'bad auth Authentication failed.', code: 8000,
I've tried this and it's not working.
I have the following error with Mongodb + Atlas:
MongoError: bad auth Authentication failed.
at /Users/cyrus/Documents/Code/01.…

cyruslk
- 839
- 3
- 13
- 25
27
votes
5 answers
Export database from MongoDb atlas to the local machine Monogo compass
I have remote database in Atlas with name of "test" and I want to download collection name image_table as a JSON file.
In mac terminal:
$ mongoexport –db test –collection image_table image.json
I got the error>
020-01-16T13:49:12.822+0100 error…

Farbod Aprin
- 990
- 1
- 10
- 20
25
votes
11 answers
MongoDB atlas connection fails with error MongoServerSelectionError: connection to 52.64.0.234:27017 closed
I have set up a mongodb Atlas free tier cluster. When I try to connect to it with node js, it throws an error. I have white listed my IP both manually and with select current. I have also tried adding +srv to my connection url but that just causes…

Sparksido
- 585
- 2
- 11
- 22
23
votes
13 answers
Mongodb Atlas: not authorized on admin to execute command
I have a MongoDB Atlas cluster within which I am trying to simply copy a database within the same instance. Unfortunately, every time I try to run db.copyDatabase() or copydb admin command, I get the following error:
not authorized on admin to…

Seaside9
- 595
- 1
- 4
- 11
20
votes
3 answers
Fail to connect Mongoose to Atlas
I'm always connecting to the "admin" DB, which is a fixed bug.
Using Mongoose 5.0.6 MongoDb 3.6 and trying to connect to Atlas.
My question, what driver Mongoose 5.0.6 depend on?
How can I find out when Mongoose will have that fix?
On a different…

HatzavW
- 560
- 1
- 4
- 16
19
votes
6 answers
Can't Connect to MongoDB Atlas Cluster Using Mongo Shell
I set up a cluster on MongoDB Atlas and made myself the admin but I'm having trouble connecting to the Cluster from the shell. On Atlas, I clicked the connect button, clicked connect with Mongo Shell, downloaded the latest Mongo Shell, and copied…

Christopher Berry
- 685
- 2
- 7
- 18
16
votes
7 answers
PyMongo [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate
I'm using Python 3.9.5 and PyMongo 3.11.4. The version of my MongoDB database is 4.4.6. I'm using Windows 8.1
I'm learning MongoDB and I have a cluster set up in Atlas that I connect to. Whenever I try to insert a document into a collection, a…

MaxwellN
- 707
- 1
- 5
- 13
15
votes
2 answers
How to open a Mongo Atlas backup snapshot locally?
I've enabled automatic backups on Mongo Atlas.
Now I need to view and query a specific snapshot to check some documents?
How can I do it quickly and safely?

rzymek
- 9,064
- 2
- 45
- 59