mongodb-atlas

Cannot connect to mongodb atlas through mongo shell

两盒软妹~` 提交于 2020-08-22 09:42:07
问题 I've checked other similar posts but none worked for my case. I upgraded my mongo shell right before connecting to MongoDB Atlas, from which I created a free sandbox database. I used this following for my connection, which was given by atlas. mongo "mongodb+srv://cluster0-z2lf6.mongodb.net/test" --authenticationDatabase admin --username <user> --password <password> image of the user of database: screenshot of the overview of the database: These are the detail of database: However, the

cant connect to mongodb atlas

流过昼夜 提交于 2020-08-11 03:27:09
问题 Can't connect to mongodb atlas either via driver, mongoshell, or mongodb compass. Get to error: queryTxt ETIMEOUT Error: { Error: queryTxt ETIMEOUT clustermasjeed1-ekpfe.mongodb.net at QueryReqWrap.onresolve [as oncomplete] (dns.js:197:19) errno: 'ETIMEOUT', code: 'ETIMEOUT', syscall: 'queryTxt', hostname: 'clustermasjeed1-ekpfe.mongodb.net' } I followed the guide from mongodb atlas (mongodb.cloud) on how to connect: const MongoClient = require(‘mongodb’).MongoClient; const uri = "mongodb+srv

My $or selector in a database trigger match expression doesn't work at the second level of nesting when configuring a database trigger

蹲街弑〆低调 提交于 2020-08-10 19:22:47
问题 Update : I use "$match expression" to describe this but I don't actually use the $match operator. According to the docs, the selector should conform with $match's syntax, though the $match keyword is apparently not necessary in the actual expression. Update 2 : In the actual collection, outerField represents message , fieldA represents fansNo , and fieldB represents sharedNo . So outerField.fieldA represents message.fansNo and outerField.fieldB represents message.sharedNo . This is a

My $or selector in a database trigger match expression doesn't work at the second level of nesting when configuring a database trigger

限于喜欢 提交于 2020-08-10 19:22:32
问题 Update : I use "$match expression" to describe this but I don't actually use the $match operator. According to the docs, the selector should conform with $match's syntax, though the $match keyword is apparently not necessary in the actual expression. Update 2 : In the actual collection, outerField represents message , fieldA represents fansNo , and fieldB represents sharedNo . So outerField.fieldA represents message.fansNo and outerField.fieldB represents message.sharedNo . This is a

Sending requests from Postman to Heroku returns 503 and/or UnknownReplWriteConcern

不想你离开。 提交于 2020-07-10 10:28:36
问题 I am trying to send a post request from Postman to a Heroku app but it keeps returning a 503 status error with code = H12 . The app works fine in localhost. With regards to the database, I have a cluster (M0) in Atlas and I am using the same non-srv connection string that I am using to connect Compass to the same cluster in Atlas. The only error I see when I run heroku logs is: //single line broken into four lines for readability UnhandledPromiseRejectionWarning: MongooseServerSelectionError:

How to downgrade from M2 to M0 mongoDB Cluster Tier

≡放荡痞女 提交于 2020-07-10 01:48:29
问题 I have M2 Mongodb cluster and wanted to downgrade to M0. When I go to modify it only allows for upgrades. Is there another way to downgrade to free tier? 回答1: You can't scale down to am M0 as the free tier uses a different shared architecture to the other clusters. However you can dump your data using mongodump and restore using mongorestore to an M0 cluster as long as it doesn't exceed the constraints of the cluster. 来源: https://stackoverflow.com/questions/62156731/how-to-downgrade-from-m2

Connect Google Cloud Run to MongoDB Atlas

隐身守侯 提交于 2020-07-05 10:43:48
问题 I'm evaluating a move from Google Kubernetes Engine to Google Cloud Run, to improve cost and resource efficiency within our company. I'm also in the process of transitioning our workflows from monolithic PHP and Ruby apps to a more nimble Node.js setup, using MongoDB. For a small organization like ours, I like the idea of managed services such as Google Cloud Run and MongoDB Atlas, however, I'm concerned about the security. In MongoDB Atlas, it seems the only real security measure is to

Django cant connect to mongoDB atlas

ε祈祈猫儿з 提交于 2020-06-29 04:15:23
问题 Recently I started a project to make a Webserver using a Django backend with and a mongoDB database hosted on their Atlas platform so i don't have to worry about running it locally. Im still in the early stages of setting it up and encountered the this error: pymongo.errors.ServerSelectionTimeoutError: localhost:27017: [WinError 10061] No connection could be made because the target machine actively refused it It might also be relevant to mention that i currently have no documents on the

Error connecting to Atlas Free Cluster (MongoDB)

混江龙づ霸主 提交于 2020-06-17 09:45:23
问题 TL;DR: Can't connect to Atlas Cluster even after doing exactly what docs said. Hi, so I read the docs of getting started with Atlas and everything seemed nice & easy. I did follow the steps, created a free cluster, whitelisted my IP, and then tried to connect using their sample app: const { MongoClient } = require("mongodb"); // Replace the following with your Atlas connection string const url = "mongodb+srv://<username>:<password>@clustername.mongodb.net/test?retryWrites=true&w=majority