Questions tagged [mongodb-3.0]
This is the tag for mongodb version 3.0
119 questions
0 votes
1 answer
124 views
Why is the response._id from MongoDB displaying as an object instead of an object ID?
I'm working with MongoDB in a Node.js application using Mongoose. When I retrieve a document from the database and log the _id field, I expect it to be of type ObjectId, as this is the default type ...
1 vote
2 answers
3k views
MongoDB "select x from y where id in" another table
I'm trying to understand how can I achieve this in MongoDB: select * from Table1 where id in (selct id from table2) I'm trying to aggregate but I just can't understand how JSON works: db.Collection1....
0 votes
0 answers
339 views
MongoDB works only on user is assigned to admin database
I am using mongo db with authentication and it is working as expected when I map the user to the admin database like below, use admin; db.getUsers(); { "_id" : "admin.test1", ...
1 vote
1 answer
1k views
How to use mongoexport command with ssl?
I am trying to export collection data from (SSL MongoDB 4.x), for this I am running below command on linux terminal. Earlier I used mongoexport command in Linux terminal without SSL which works ...
0 votes
1 answer
1k views
Mixing sharding and Replica in MongoDB cluster
We know there are two ways to create a mongoDB cluster :- 1.) Sharding 2.) Replication My question is can we combine both sharding & replication like we have in elastic cluster?
-1 votes
1 answer
869 views
Database are not visible to users who has access in MongoDB
We are using Robo 3t tool to interact with Mongodb. We could see the user has read access on 2 databases but when the user is connected to MongoInstance that databases are not visible to the users. ...
0 votes
1 answer
140 views
Mongo DB Upgrade 3.0 to 3.2 Verification of Upgrade
We have a few environments with MongoDB 3.0, these are standalone servers. These servers are already using WiredTiger Storage engine. I am trying to upgrade them to 4.2. As per the upgrade ...
0 votes
0 answers
840 views
Mongodb Replica Set Collection Has Different Document Count
I've created a new 3 node replica set and rsync'ed data from an existing mongo database for initial population. The secondary nodes went into STARTUP2 mode and seemed to successfully sync from the ...
2 votes
3 answers
13k views
MongoDB - Mongorestore is not working as expected
A Very Good Day, I have the user in the mongodb like below who has the superuser privileges (I confirmed the role setting using show users command) { "_id" : "admin.mongoadmin", "user" : "...
2 votes
1 answer
4k views
Mongo queries are slow and yielding/waiting for locks thousand times
We are using mongo setup with replica sets on AWS. Setup Details: 1 Primary node: r3.8xlarge 4 secondary nodes: r5.xlarge Mongo version: 3.0.8 (WiredTiger) Database size: 358GB We have configured ...
2 votes
1 answer
282 views
Getting exception on running sh.status() command on MongoDB sharded cluster
I am running sh.status() command on my mongos instance of sharded Mongo cluster and I am getting below exception. mongos> sh.status() assert: command failed: { "ok" : 0, "errmsg" : "error ...
0 votes
1 answer
552 views
Why slower using multiple mongos?
When I use a single mongos like 1.1.1.1:30000, the driver will return in 20ms to find a batch of documents. When I use 1.1.1.1:30000,1.1.1.2:30000,1.1.1.3:30000,it costs 60ms,three times more to ...
1 vote
2 answers
4k views
Update single field in a document (document.update($set)?)
Can't seem to figure out how to update a single field. Whatever I try, to update one field (picture: "url") the rest of the fields are being removed and set to null. I use the following command now: ...
2 votes
1 answer
2k views
Mongodump Backup Resume
My database size is approx 1.5 TB and I have approx 2TB free on backup mount point. But after 10 hours my backup fail due to lack of storage and its just 60% complete. Is their any why through which i ...
1 vote
1 answer
692 views
mongodump: fact.bson: input/output error
We are trying to export 1.5TB database into mongodb. But its fail after 100gb and giving us below error. As we notice root mount point got 100% space. We are using below command: mongodump -u admin -...