mongodb-atlas

Cannot connect to Mongo Atlas using VPC peering from GCP cluster

天大地大妈咪最大 提交于 2021-02-15 05:32:11
问题 I am trying to connect a Java app running on a GCP Kubernetes engine cluster, with a Mongo Atlas cluster (M20). Before, it worked fine, when I didn't have VPC Peering turned on and I was using the regular connection string. But I am trying to use VPC Peering now, with the default VPC network in my GCP project. I followed the steps in https://docs.atlas.mongodb.com/security-vpc-peering/. I chose Atlas CIDR of 192.168.0.0/18 (b/c "The Atlas CIDR block must be at least a /18"), and after linking

MongoDB and Google Cloud Functions VPC Peering?

非 Y 不嫁゛ 提交于 2021-02-13 17:33:23
问题 I've having issues accessing MongoDB Atlas from Google Cloud functions. It is giving me error regarding IP Whitelisting but I've added both (Serverless VPC Access) IP address range and VPC Network Peering IP address range to MongoDB whitelist. I've also created MongoDB peering with google cloud. If I allow (access from anywhere) then my mongodb starts working fine, otherwise it gives error regarding IP whitelisting. I'm not sure what else I should add to MongoDB whitelist when I've added both

MongoDB and Google Cloud Functions VPC Peering?

ぐ巨炮叔叔 提交于 2021-02-13 17:33:21
问题 I've having issues accessing MongoDB Atlas from Google Cloud functions. It is giving me error regarding IP Whitelisting but I've added both (Serverless VPC Access) IP address range and VPC Network Peering IP address range to MongoDB whitelist. I've also created MongoDB peering with google cloud. If I allow (access from anywhere) then my mongodb starts working fine, otherwise it gives error regarding IP whitelisting. I'm not sure what else I should add to MongoDB whitelist when I've added both

Getting NULL data from collection from MongoDB Atlas

﹥>﹥吖頭↗ 提交于 2021-02-11 13:41:43
问题 I have connected my code to MongoDB Atlas using Mongoose... even though the collection has a data in it its shows null in response. I want to know the exact issue and troubleshoot it, because the collection has the data required Collection details are in this image: 1. Connectivity Code - const mongoose = require('mongoose') const uri = "mongodb+srv://<user>:<password>@cluster0-3awwl.mongodb.net/"; mongoose.connect(uri, { dbName: 'bing_bot' }).catch((e) => { console.log('Database connectivity

All nameservers failed to answer UDP port 53 Google cloud functions python 3.7 atlas mongodb

只愿长相守 提交于 2021-02-04 16:25:10
问题 i can connect locally to my mongodb server with the address 0.0.0.0/0. However, when I deploy my code to the cloud I get the error deploy to google cloud function. google cloud function with python 3.7 (beta) atlas mongo db python lib: -pymongo -dnspython Error: function crashed. Details: All nameservers failed to answer the query _mongodb._tcp.**-***.gcp.mongodb.net. IN SRV: Server ***.***.***.*** UDP port 53 answered SERVFAIL Traceback (most recent call last): File "/env/local/lib/python3.7

Setting Up Facebook Authentication with MongoDB Atlas and Passport.js

佐手、 提交于 2021-01-29 19:09:27
问题 I've done a lot of research to find this answer to my problem, but I haven't discovered anything. Feel free to attach a link if I missed the answer. I did find this solution, but I'm not exactly sure how it might apply to this situation: E11000 duplicate key error index in mongodb mongoose I'm trying to connect my Express.js, MongoDB, Passport.js app to Mongo-Atlas. I have my Atlas cluster set up and accepting new Users from my localhost and using Google Oauth 2.0, however, when I try to

MongoDB Atlas initial high number of connections and storage

心已入冬 提交于 2021-01-29 10:02:23
问题 I just created a new empty cluster on mongoDB atlas. I chose the M20 cluster tier with 60GB storage limit. However, as soon as my cluster was created, it showed that there are 28 current connections on the server hosting the replica set (keeps increasing and decreasing, even reached 35). It also shows that the current disk space used is 6.3GB even though the cluster was just created and empty. Is this normal on Atlas? And why is the number this high? This bugs me as there is a limit on the

Not able to connect to MongoDB atlas database

眉间皱痕 提交于 2021-01-01 13:53:24
问题 I am using A2 shared hosting server to host my node express application. I am giving the following URI to connect to mongoose. const uri = mongodb+srv://<username>:<password>@cluster0-gwff9.gcp.mongodb.net/customer-data?retryWrites=true&w=majority and the mongoose connect function is: mongoose.connect(uri, { useNewUrlParser: true, useCreateIndex: true, useUnifiedTopology: true}).then(() => { console.log("Successfully connected to the database"); }).catch(err => { console.log('Could not

How to connect Mongodb Atlas to Spring

感情迁移 提交于 2020-11-29 09:15:55
问题 I have a web application which is using Spring Boot to handle the backend logics. I'm trying to integrate mongodb to track some information about the users of this webapp. I created a database on mongodb Atlas and through the Mongo Shell the connection goes fine. The problem comes when I try to connect with Spring. Let me show you all the details Inside Atlas, I added this IP Address (0.0.0.0/0 (includes your current IP address)) into Security > Network Address. In theory this should allow me