Questions tagged [mongodb-cluster]
43 questions
7
votes
3 answers
How can I delete my MongoDB Atlas Project?
When I click delete button it shows an:
Error Message :
"Project Name" has running Atlas clusters. All Atlas clusters need to be terminated before the project can be deleted. As Shown in picture below :

Hamza Hameed
- 393
- 3
- 11
6
votes
1 answer
Mongo - Error when saving document: 1 Not primary while writing to db
I'm using Robo 3T (robomongo) to connect mongo cluster.
I'm having this error while editing/deleting a document.
Error when saving document: 1 Not primary while writing to db
I googled for this error, many of the solution saying connect to Primary…

lazzy_ms
- 1,169
- 2
- 18
- 40
4
votes
1 answer
Unable to connect to mongodb atlas cluster from a kubernetes cluster
Hi All I am unable to connect to mongo atlas database as a service outside the kubernetes cluster from my kubernetes cluster.
here are the steps I followed.
In my code in nodejs used dbUri= 'mongodb://username:password' + process.env.MONGO_URL…

suprith
- 93
- 2
- 5
3
votes
2 answers
Failed to import the URI. Unable to look up TXT record for host cluster0-ohzuo.mongodb.net
I am trying to connect Mongodb Atlas cluster to Studio 3t.
I copied mongodb+srv://:@cluster0-ohzuo.mongodb.net/test from Mongodb account in "connect to cluster"
In Studio 3t,I went to connection manager > new connection > Import URI and pasted the…
2
votes
2 answers
Cannot connect to Mongodb cluster via Mongodb shell
I've been trying to connect to the Mongodb Atlas cluster via terminal using shell but something funny is happening and it always throws me these logs:
MongoDB shell version v4.2.0
Enter password:
connecting to:…

Anastassia Rad
- 71
- 4
2
votes
1 answer
Bad Authentication: [Symbol(mongoErrorContextSymbol)]: {}
I tried to connect MongoDB through mLab.com. It got redirected to MongoDB Atlas. I created one project and cluster. When trying to connect I get the Bad Authentication error, though my credentials are correct.
Password holds special characters. I…

Nikhilesh A S
- 169
- 1
- 12
2
votes
1 answer
Spark Mongo connector, MongoShardedPartitioner does not work
For testing purposes, I have configured a 4-node cluster, each of them has a Spark Worker and a MongoDB Shard. These are the details:
Four Debian 9 servers (named visa0, visa1, visa2, visa3)
Spark(v2.4.0) cluster on 4 nodes (visa1: master,…

jose
- 41
- 1
- 5
2
votes
0 answers
It is possible to take incremental backup in mongoDB Shard cluster? without opsmanager
Shard MongoDB Cluster:
3-router
3-config
2-shard (3-replica's per shard)
We are trying to take incremental backup for every one hour. We gone through few google links, but no luck. As per our above setup, to achieve incremental backup we need to…

Mouna vignesh B
- 71
- 4
2
votes
0 answers
Connecting to primary Mongo server in a replicaset through SSH bridge
We are managing two distinct Mongo replicasets, one for staging, one for production, running on Kubernetes. Networking is provided via Kubernetes' internal infrastructure, such so that Mongo servers on each cluster are available…

Silver Dragon
- 5,480
- 6
- 41
- 73
1
vote
0 answers
Detect Failover of MongoDB-Cluster with Spring-Data-MongoDB
Current Situation
we have a MongoDB-Cluster with 1 primary node and 2 secondary nodes
our Spring-Boot application is using the Spring-Data-MongoDB framework to read/write
from/to the cluster
Problem
in some circumstances the MongoDB cluster will…

Nico P.
- 11
- 1
1
vote
0 answers
mongoose makes connection to servers not passed in connection string
Currently we use mongoose to connect to out mongodb cluster. Out of 9 secondary servers in replica set, we're only passing 6 of secondary servers in connection string to a nodejs app. We're still seeing connections on remaining 3 secondary servers…

apprentice
- 11
- 1
1
vote
2 answers
Unable to connect Nodejs driver to MongoDB Atlas cluster
When I tried to connect a Nodejs app with MongoDB Atlas cluster (a free cluster) with the below code block. It can be successfully connected if run with personal hotspot. But when executing with home wifi, the terminal threw errors.
const mongoose =…

Chloezhang
- 39
- 4
1
vote
1 answer
Migrate large data from mongodb to another mongodb on different server
I have two clusters of MongoDB which run on 4 servers (2 servers on each cluster). They are the same as collections schema. And now I want to migrate new data from one cluster to another which existing old data.
I need to migrate data from one…

AcidBurn
- 73
- 2
- 15
1
vote
1 answer
MongoDB Cluster upgrade to use SSL/TLS failed
I reproduce MongoDB Cluster replica-set and added user like admin with Non-SSL following below link.
Link : https://github.com/arun2pratap/mongodbClusterForWindowsOneClick
Environment :
OS : Windows 2019 server ( set all instance in one windows…

leeyounsoo
- 19
- 4
1
vote
1 answer
Will I have to attach shard key with my query to get performance?
I am new to mongodb sharding. We know that we shard a database for scaling purpose. Where we need to use a sharding key so that the database distributing system can distribute data based on those key values.
My question is - will I have to attach…

John
- 2,633
- 4
- 19
- 34