Questions tagged [mongodb-3.4]

This tag is for MongoDB major version 3.4

Filter by
Sorted by
Tagged with
1
vote
1answer
3k 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
280 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
5k 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
3k 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
542 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
102 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
516 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....
0
votes
1answer
1k 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
852 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
1k 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
91 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
100 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
254 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
31 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
516 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
952 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
43 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
152 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
143 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
106 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 ...