Questions tagged [mongodb-3.4]

This tag is for MongoDB major version 3.4

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

MongoDB - Stand Alone Server Security SSL or SSH

We've outgrown our current server and decided to move to two servers, one to host our apps, and one to hold our database. We looked into clustering and we don't feel we need to scale horizontally just ...
0
votes
1answer
795 views

UnknownError: error while getting last oplog entry for begin timestamp: find command not yet implemented

I have 2 mongoDBs. One running as PRIMARY, its version is 3.0.13. The other works as SECONDARY in the replica set, its version is 3.0.11. Replication works perfectly at this point. I want to add a ...
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
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/...
-1
votes
1answer
226 views

Duplicate data inserted while failover MongoDB

I'm inserting 3000 documents and in between my primary goes down and secondary becomes new primary I find my application has inserted 3002 documents, 2 documents are duplicate. What could be the ...
1
vote
2answers
738 views

Is MongoDB IXSCAN operator a scan or a seek?

It seems to me that the only operators I see in a MongoDB query plan are COLLSCAN or IXSCAN. The indexes being b-tree, I guess MongoDB can do index seek and index scan ? If so, how do we know that a ...
1
vote
1answer
816 views

How to validate mongodb backup and restore

I am using mongodump to create a backup of the db based on some query params and mongorestore to restore the same in another mongodb in a diff environment. How can I validate whether the dump created ...
-1
votes
1answer
602 views

Benchmarking Mongodb Queries Without cache

I want to benchmark some Mongodb queries by calculating their execution time but I could not find a way to do so without caching : The first time I execute a query it takes a decent amount of time and ...
0
votes
0answers
727 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:...
2
votes
1answer
427 views

Why `distinct` and `count` operations generate `“op”: “command”` in system.profile

According to documentation count and distinct queries should result in op = count and op = distinct in system.profile. However when I tried to run such queries in shell both were generated as op = ...
3
votes
0answers
3k views

How to see progress of mongorestore?

Is there any way to get a progress measure or remaining time estimate from mongorestore? I used mongodump to export a compressed archive, which generated an 8GB file in about an hour and showed a ...
2
votes
1answer
4k views

Mongodb Secondary Node not recovering

Secondary node of mongodb cluster has entered in Recovering state and it's not coming out of it. Below is what I see in log. I know one way to fix this issue is to reinitialize secondary node by ...
2
votes
1answer
393 views

How to disable ChunkManager logging for MongoDB? mongoconfig.log gets huge

I'm using MongoDB 3.4 for saving other systems logs and mongoconfig.log is getting too much verbosity. It's a sharded clusted, if that helps. I checked the default mongo log verbosity and is set at ...
1
vote
1answer
7k views

Replica Set not getting created

I have database which is set up in data folder of mongodb. For accessing this database I usually run the below command mongod --dbpath "C:\program files\mongodb\data" --port 27017 Now I am ...
1
vote
2answers
4k views

WiredTiger internal cache

It is stated in the MongoDB documentation FAQ (https://docs.mongodb.com/manual/faq/storage/#wiredtiger-storage-engine) : Avoid increasing the WiredTiger internal cache size above its default value. ...
1
vote
1answer
893 views

Restoring the database dump of a newer version to an older version of mongodb

I find myself having to move a database between hosts but at the moment don't have the option of upgrading or downgrading any of the hosts. I'm trying to find out if it is safe to do the following: ...
0
votes
1answer
252 views

Why my mongodb Shell not getting started even after my mongodb server is running?

I am not getting the right problem what might be making the mongodb shell not getting initiated. Here is the gist of my log of MongoDB: https://gist.github.com/JafferWilson/...
0
votes
0answers
636 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
vote
1answer
2k views

Service mongod fails after adding security.keyFile in config file

My mongo.conf: # where to write logging data. systemLog: destination: file logAppend: true path: /var/log/mongodb/mongod.log # Where and how to store data. storage: dbPath: /var/lib/mongo ...
3
votes
2answers
2k views

Bind MongoDB to IPv4, as well as IPv6

Mongo v. 3.4 respective part of config file: #network interfaces net: port: 27017 bindIp: 127.0.0.1,192.168.0.15,2001:db8:0:0:0:0:2:1 (IPs are made up) No matter the format I've used: [2001:...
2
votes
1answer
1k views

Access Control not logging successful logins on MongoDB 3.4 Community

After adjust the verbosity of the parameter "accessControl" with the command: db.setLogLevel(5,"accessControl") The log file still not login successful login. On mongo 3.2: 2017-04-20T15:56:06.661+...
1
vote
1answer
2k views

Mongo initial sync failing with InvalidSyncSource

I'm trying to add a new 3.4 (RocksDB engine) member to a ~2 TB replica set currently consisting of 3.2 (WiredTiger engine) members and running into problems with the initial sync. Because of the ...
-3
votes
1answer
94 views

How to view and export database content? [closed]

I'm trying to view the actual entries, not the backend identifiers. > db.<collection>.find({"_id": "486b4ca55b144b119f4551417c5798c8"}).pretty() { "_id" : "...
1
vote
1answer
127 views

How to read Mongodb entries in plaintext? [duplicate]

I'm testing mongodb on a local machine for the first time, and I just want to see the actual plaintext contents of a database entry. Started the mongo console: $ mongo Set dbs: > use <my dbs ...
1
vote
1answer
296 views

change journalCompressor to none - not default snappy

Quote from ObjectRocket Support Hi, Fyodor! The journalCompressor setting is specifically related to the journal files. Journals are typically not compressed because compressing them causes ...
-1
votes
1answer
34 views

Updating a mongoCluster

We have Mongodb 3.2.6 as a cluster with 2 arbiter and 2 working data nodes running. Now we want to update to version 3.4.3. What is the intended way of doing this? Can I update one by one and will ...
0
votes
1answer
848 views

Could not add Replica Set to MongoDB Shard

I want to deploy a MongoDB Cluster for testing on 3 Virtual Machines using Docker. On the first Virtual Machine I have the Router Instance and a Replica Set of the 3 Config Servers. The second ...
2
votes
1answer
1k views

MongoDB cluster setup

I am trying to set up a 3 node MongoDB cluster. 1) Started mongodb in all 3 nodes with the below config file. net: bindIp: 0.0.0.0 port: 10901 setParameter: ...
1
vote
1answer
47 views

When _id is present in the projection, is the index on _id used for the query?

My query is db.new.find({'a':{'$gt':200}, 'b':{'$lt': 30}}, {'a':1, 'c':1} ).sort({'c':-1}) Indexes present are (a,b), (a,c), (c), (a,b,c), (_id) When I check with explain('...
0
votes
1answer
167 views

mongoaudit: Security through obscurity and how to limit connections from a specific subnet?

I run mongoaudit on a server. Those are the failed results: I don't wish to hide my version number. In my opinion this is Security through obscurity In security engineering, security through ...
0
votes
1answer
164 views

Mongodb sharding - set shard size

I am very new to MongoDB and am trying to do database sharding. I have created two MongoDB shards and inserted 10000 records in it. I have used shard key as "no" which increments by 1 in every ...
1
vote
1answer
134 views

Switching from 2 large collections to multiple small ones in MongoDB 3.4

I know this question is similar to other ones. But... Only that we are switching from 2 very large collections (15Gb in size, constantly growing). Basically those 2 large collections keep different ...

1 2
3