Questions tagged [mongodb]

All versions of MongoDB - a scalable, high-performance, open source, document-oriented database.

Filter by
Sorted by
Tagged with
0
votes
1answer
1k views

MongoDB pinging failed for distributed lock pinger caused by WriteConcernFailed:waiting for replication timed out. Error details: { wtimeout: true }

W SHARDING [replSetDistLockPinger] pinging failed for distributed lock pinger :: caused by :: WriteConcernFailed: waiting for replication timed out. Error details: { wtimeout: true } In my MongoDB ...
0
votes
1answer
960 views

Clean up orphaned documents in MongoDB

Currently we have a 4 shard cluster Can you give me the procedure to check the orphaned documents in our cluster And can you provide me the procedure to delete the orphaned documents in the cluster ...
0
votes
1answer
605 views

mongo shard high disk I/O usage

We are using mongo-cxx-driver -3.1.1 . We have 1 router, 1 config server and 3 shards on cluster. (No replica sets). The shard key is the "_id" field and we execute all sorts of queries, some may be ...
0
votes
1answer
75 views

How to allow creation and deletion of a database or collections with user and password

I created a user with the role of userAdminAnyDatabase db.createUser({user: "Username", pwd: "password", roles: [{role: "userAdminAnyDatabase", db: "admin"}]}) and also user with the role of ...
0
votes
2answers
793 views

mongodb sharded cluster configured but not working

I have configured a sharded cluster on aws on a replicaSet composed on two server, a config server and a front server and mongo 3.4. I followed mainly this tutorial : The configuration seems correct....
0
votes
1answer
166 views

mongos is not listen when configured for sharded architecture (version 3.4)

Deal all, I am trying to mount a sharded mongodb server. I configured a replica set, and a configure replicat set. Both replicate are composd from 3 servers root 23792 1 0 14:43 ? 00:...
0
votes
0answers
1k views

MongoDB collection.count() return 0 after restore

I have restored a 1.74G data into my MongoDB 3.4.4. The mongorestore command returns successfully. But when I run the count on the collection I always got 0. Below is the output: mongos> db.orders....
0
votes
2answers
701 views

Shards error msg “can't use localhost … either use localhost or ipadresses”

I'm trying to set up a a test environment on my pc including sharding. I've added 2 shardservers, a configsvr and a router instance. When i'm trying to add a shard I get following errormsg: "Can't use ...
0
votes
1answer
1k views

mongodb v3.4 - wiredtiger - compact does not work

I am using mongo v3.4.10 with WiredTiger. I run the following command: db.runCommand({ compact: "my_collection" }); the response is: /* 1 */ { "ok" : 1.0 } and the mongo log shows: 2017-10-...
0
votes
0answers
446 views

How to install old version of mongodb? [duplicate]

This started happening today for absolutely no reason. Worked perfectly last week. I didn't touch the machine. I have an issue described here and need to downgrade in order to be able to upgrade. ...
0
votes
1answer
66 views

Mongo DB Memory Utilisation freezes app needs restart

I am running a project using Mongo DB and Django, I have 2 separate instance for my Django project and database each 16GB ram t2xlarge ubuntu ec2 instances. I am facing issue that within a day or two ...
0
votes
0answers
444 views

GetMore command executor error: DEAD in Mongodb

I am getting below error. I am clueless where I am getting this error from? 2017-10-03T01:41:31.919+0000 W QUERY [conn197802] Could not restore RecordCursor for CollectionScan: local.oplog.rs 2017-...
0
votes
1answer
497 views

Mongodb - Error after turning fork mode on

I am working on installing mongodb on remote server I managed to install everything and tested it. But when I tried to enable fork mode to make it run in the background via the command mongod --...
0
votes
1answer
110 views

Mongoimport monitoring successfully entered row/data

How to monitor mongoimport hass successfully saved data into our database? Let's say I have 20,000 rows of CSV data. When I press the button to start mongoimport, the user will see the progress. Is ...
0
votes
1answer
483 views

How to update collections and restore while doing mongorestore?

is there any way that i can update the collection and restore the same from dump created by mongodump cmd . when we do mongorestore , it directly restores from the dump , but my requireemnet is to ...
0
votes
1answer
101 views

Cannot start recv'ing chunk, sharding is not enabled and no config server was provided

I config a cluster in MongoDB as following: 1 Config Server 2 Shard Servers, and this is Sharding status: --- Sharding Status --- sharding version: { "_id" : 1, "...
0
votes
1answer
23 views

Is there a way to restrict new database creation to a particular zone?

We have a sharded mongo cluster with a database per client model. Given many roughly same size clients - the default db creation has proven to work well at evenly distributing the load, while avoiding ...
0
votes
2answers
368 views

MongoDB replication throttled due to Mongo using all system memory

We have a small three member replicaset running MongoDB 3.4: Primary. Physical local server, Windows Server 2012, 64 GB RAM, 6 cores. Hosted in Scandinavia. Secondary. Amazon EC2, Windows Server 2016,...
0
votes
1answer
162 views

In MongoDB serverStatus(), what is the meaning of “connection data handles currently active”?

When running db.serverStatus() in the MongoDB shell (3.4, WiredTiger), the results contain the following data: { "connection data handles currently active" : 94862, "connection sweep ...
0
votes
1answer
2k views

Can't auth admin db on the replica set

have one problem with a replica set There is an admin user with root permissions It's fully working on config servers, but when I trying to auth with it on any RS - got: 2017-09-18T09:01:53.755-0400 ...
0
votes
1answer
96 views

The reading with secondaryPreferred when chunk migration occurred often fail

We have some problems regarding balancer configuration. Our application which is set up with secondaryPreferred often fails to read documents from the secondary when balancer( chunk migration ) is ...
0
votes
2answers
206 views

Can MongoDB manage balancing between the Mongos Dynamically using TCP Balancer

If I have a business where I maintain 10 applications and I need to divide the request load of these 10 applications between 3 Mongos Dynamically. Like the TCP Loadbalancer need to connect to MongoDB ...
0
votes
2answers
676 views

$out not working in mongodb Sharding

I am bit stuck in MongoDB while exporting my output to some other collection. Scenario : Actually, i want to query out my result to another collection which is successful in normal mongoDB( without ...
0
votes
1answer
456 views

replica set unable to add a node

I am trying to create a replica set. I had create a primary node then I am trying to add a secondary node but it gives an error message Quorum check failed because not enough voting nodes responde ...
0
votes
1answer
25 views

Create Replica Sets on an existing sharded MongoDB

How do I convert an existing mongodb instance that has sharding enabled for some of its collections to a replica set? I am able to do it the other way around, but I am not able to figure out how to ...
0
votes
2answers
6k views

Mongodb Not Restarting with Collections, WiredTiger.wt may be corrupt

I believe my MongoDB did not have a clean shutdown. I am able to restart it in a new location which doesn't have all of my collections. If I try to repair or start it in the old location, it gives the ...
0
votes
1answer
582 views

mongodb crashed with the error or permission denied

Our mongodb server was running for the last two months without any error. Suddenly it crashed and below is the log. 2017-08-11T13:41:41.320+0100 E STORAGE [thread1] WiredTiger (13) [1502455301:...
0
votes
1answer
506 views

Inserts very slow near the end of dataset

I'm trying to insert Whois Records ( domain name and relevant info) into MongoDB after parsing them from CSV files. I currently have a collection for each tLD such as .com, .org etc. During the ...
0
votes
2answers
575 views

How to define shardKey on GridFS collections to achieve Location/Data Centre affinity (MongoDB)

I have set up a mongo cluster as follows: 3 shards, one per global region APAC/EMEA/AMER (in different data centres) Shard Key is REGION + 'MONOTONICALLY INCREASING PRIMARY KEY' The "writing" clients ...
0
votes
1answer
73 views

Detailed behaviour of mongos in context of sharded Mongo cluster

I have a mongo cluster as follows: 3 shards, located in the 3 main global regions (APAC/EMEA/AMER) The shardKey is "Region". Each region has a mongos running locally, "close" to its users, "close" to ...
0
votes
1answer
269 views

How to configure w=1 and j=1 by default

I am new to Mongodb and I would like to confirm my configuration of write concern with majority and journal are correct. I have three mongodb nodes: 1) In the mongo.conf of all mongodb servers, i ...
0
votes
3answers
424 views

MongoDB replicaset - Delay in election

I have local set up for 3 mongo DB instances with successful replica set. (1 Primary, 2 secondary). If I terminate Primary instance, one of the secondaries becomes Primary but its taking around 10 ...
0
votes
1answer
38 views

error when starting up the mongodb cluster

I have a cluser of mongodb of 3 nodes: After increasing the max-openfile-count of the linux system user, I tried the following cluster startup commands after a rebooting the linux system without ...
0
votes
1answer
175 views

Mongostat display size / res

I would like to have your opinion and of course an explanation on the following. My configuration : mongodb version 3.4.4 1 replicaset with three identical servers( 4 cpu / 32 Go RAM under linux ...
0
votes
1answer
447 views

How to configure mongodb replicaset of 3 nodes in authentication mode

I had configured a mongodb replicaSet of 3 nodes. It was running fine But WHen i created a adminUser and dbuser on primary node and enabled the authorization in mongodb.conf file of all nodes then ...
0
votes
1answer
717 views

How to handle master changed during mongorestore?

I have a very large dump data(18GB) need to restore. I tried to use mongorestore to restore the data to a replica set. But the restore process canceled because of error restoring from orders.bson: ...
0
votes
1answer
677 views

how to fix replica set error

I am getting this error { "ok" : 0, "errmsg" : "server is not running with --replSet" } when I run the command on windows cmd rs.initiate( { _id : "repl1", members: [ { _id : 0, host : "mongodb0....
0
votes
1answer
2k views

E11000 duplicate key error While Adding Shard

I have setup a replica set and want to add it in a mongos. But I got below error in mongos: mongos> sh.addShard("rs3/172.19.0.12:27017,172.19.0.6:27017,172.19.0.5:27017") { "code" : 11000, ...
0
votes
1answer
417 views

Database is not reflecting in sh.status()

I have a 2 shard (s1 and s0 )servers with repl set. s1 has 2 dbs (db-A and db-B) and one of the db is sharded (db-B). When i do sh.status() from mongos only (db-B) is displayed. I am wondering what i ...
0
votes
1answer
127 views

MongoDB Auditing vs. Profling

I wanted in the first place to log connections to a collection and while I was searching I found that it's possible to configure profiling and auditing and logging. So my question is : What's the ...
0
votes
1answer
2k views

How to load balance mongodb replica cluster

I have created a mongod replica cluster of 2 nodes , mongo1 and mongo2. to load balance I have added following rule in my haproxy listen mongo_replica_cluster bind *:27017 mode tcp ...
0
votes
2answers
3k views

MongoDB 3.4 Sharding Error. “Cannot accept sharding commands if not started with --shardsvr”

I have installed mongoDB 3.4.5 in centOS 7.2 machine. I am configuring sharding in standalone mode. Steps I followed: For Replica Sets: mongod --replSet rs0 --dbpath /data/srd/rs0 --logpath /data/...
0
votes
1answer
515 views

mongo cluster collection count showing different every time

I had a replica set earlier which I have converted to cluster. Current configuration is: 3 shard 4 router 4 config server When I am trying to get count of one of collection sometime it is showing ...
0
votes
1answer
495 views

MongoDB convert standalone mongod to sharded replica set cluster

I have a single replica set having 3 mongod instance, collection in this instance has data already. I want to convert this instance to sharded cluster. I followed Convert a Replica Set to a Sharded ...
0
votes
0answers
738 views

Long service startup time for MongoDB?

I loaded a 10GB database into my local MongDB server, and now if I stop/start it, it takes about 10 minutes to fully come "up". Attempting to connect to the local database with mongo returns the error:...
0
votes
1answer
2k views

How can I perform a mongoimport to a host that requires an SSL Certificate?

I am trying to load some sample JSON data into a MongoDB database (hosted on IBM Bluemix). The connection requires SSL, and a SSL Certificate has been provided, but I keep getting an error when I ...
0
votes
1answer
530 views

mongod memory usage doesn't decrease

I'm using mongodb for saving log data. When I have to find something from log data, which could be over than 1,000,000 documents, all the process work properly but the issue is that memory usage ...
0
votes
1answer
221 views

Mongodb replica config slaveDelay but data still sync immediately

I've set slaveDelay to 600s but when the Primary data change, the Secondary data change immediately. Here's the curent configuration of repl with 2 server. "members" : [ { "_id" : 0, "host" : ...
0
votes
1answer
570 views

Ops Manager backup process

Few questions on ops-manager backup process While backup ops manager creates a head db which is copy of the monogdb deployment I want to know the reason behind this. Why create another copy and ...
0
votes
0answers
643 views

why my mongodb balancer doesn't run against all shards server?

I have set up a three mongo shards cluster and one mongos instance. I want to check how the balancer work among this cluster. I have enabled sharding on one collection. Below is the output of sh....

1
37 38
39
40 41
43