MongoDB is a document oriented database (also known as NoSQL database).

learn more… | top users | synonyms (1)

1
vote
1answer
105 views

Check services running on the server and restart them if they have stopped? (python script)

I am trying to write a python script which shows me the services which are running on my server. The thing is that mongodb keeps going down on the server and each time it happens I have to manually ...
0
votes
1answer
9 views

How could I access the auto scaling DB servers because not knowing the IP address

I put the web servers and db servers in different auto scaling group. Those machines in auto scaling group will be added or removed dynamically. Therefore, I have no idea about what's the db server ...
1
vote
0answers
322 views

How to display MongoDB stats in Graphite?

After googling for 2 days with no solution I would like to know if anyone uses Graphite with either CollectD or StatsD to include MongoDB statistics in a dashboard. I was hoping for an up-to-date ...
0
votes
0answers
3 views

Can mongos 2.6.x / 3.x connect to mongod 2.4.x?

We are currently in the process of upgrading our 2.4.x mongodb sharded cluster to 3.x (via 2.6.x). We have a large number of mongos instances, as we have mongos installed locally on each of the ...
13
votes
8answers
8k views

What hardware makes a good MongoDB Server ? Where to get it?

Suppose you're on dell.com right now and you're buying a server to run your MongoDB database for your small startup. You will have to handle literally tens of thousands of writes and reads per minute ...
-1
votes
0answers
21 views

Cant install mongo into PHP (XAMPP, Windows) [on hold]

I'm sitting on it few days and i have no idea what to do next. Since topic was marked as not good for stack overflow and i was sent to serverfault, i'm writing here :) I'm using XAMPP on Windows. ...
0
votes
0answers
19 views

Unable to install php-mongo extension

i'm trying to install the mongo.so extension but it fails. According to PHP Mongo Installation manual, i should run : sudo pecl install mongo tho i get this error : downloading ...
0
votes
0answers
16 views

MongoDB - Error parsing YAML config file: yaml-cpp: error at line 3, column 9: unknown token [on hold]

I'm trying to install and run MongoDB on Yosemite 10.10.4. Here's what I'm doing: brew install mongodb ==> Downloading https://homebrew.bintray.com/bottles/mongodb-3.0.5.yosemite.bottle.tar.gz ...
1
vote
1answer
12 views

Issue with permissions on MongoDB data directory

TL;DR: MongoDB complains about permissions on a directory where everything is allowed. I am running MongoDB v2.4.10 on Debian Jessie ARM. I'd like to store data on an external drive, which is ...
0
votes
2answers
982 views

Installing MongoDb on EC2

I'm trying to deploy a Rails 3.2.3 with MondoDb app to EC2. I've chosen t2.micro instance. However, I found out that to use MonboDb I have to use at least m1.large - ...
2
votes
1answer
3k views

High CPU usage on mongodb server when idle?

I am getting strange usage numbers on MongoDB server when it is in almost idle state: http://pastebin.com/cKVyGMts (no queries) DB size is about 3.3 Gb I can see in mongodb.log that snapshotthread is ...
0
votes
0answers
15 views

mongodb sh.addShard returns error: host does not belong to replica set

I try to create a mongodb cluster with three config servers, two shards with three replica each and one query router. The installation of the config servers, query router, and the creation of a ...
1
vote
1answer
44 views

Can't config replica set using MongoDB 3

I'm trying to create a replica set in MongoDB version 3.04. I followed this tutorial and getting the next error while trying to add nodes using the primary server: vacrep:PRIMARY> rs.add('server ...
0
votes
0answers
23 views

How To: Dockerized MongoDB Replication on Elastic Container Service

I have a Node.js app together with a MongoDB database running on AWS ECS. The setup I've got currently is formed of 2 ELB's and 2 Instances running each a Docker container with its assigned service ...
1
vote
1answer
1k views

Can't setup 3 nodes MongoDB recplica set

I just follow instructions in MongoDB document Replica Sets - Basics to setup a 3-node Replica set. Everything goes fine when I do the initiate and add first node in the primary. [foo@host-a ...
1
vote
0answers
75 views

Mongo 2.6.9 process stopping, no error logs

I have a Mongo 2.6.9 process running on a Linux SMP instance. Here's uname -a with the server name redacted: Linux xxx.xxxx.com 3.13.0-042stab085.20 #1 SMP Sun Jul 20 13:27:24 MSK 2014 x86_64 x86_64 ...
2
votes
1answer
31 views

EC2 retirement - Meteor / MongoDB

I am hosting my Meteor Application on an Amazon EC2 instance. Today I got a mail that my instance is scheduled for retirement until the end of month. I don't have any experience with that and what are ...
0
votes
1answer
86 views

Mongodb + Kerberos BadValue SASL mechanism GSSAPI is not supported

I am trying to run an instance of mongodb with the authentication mechanism GSS-API. This is the command: mongod --dbpath /home/ec2-user/db/node2/data --auth --setParameter ...
0
votes
0answers
11 views

pymongo authentication in mac os failing

I have a database named 'abc', for which I created a user "dc". The db.getUsers() from mongo shell shows [ { "_id" : "abc.dc", "user" : "dc", "db" : "abc", "roles" ...
1
vote
0answers
8 views

What is the resolved default location mongod.exe looks for the configuration in?

Trying to do a minimal configuration of mongod, and I would like to use the 'natural' pathing structure for the location of the config file. To give an example on what I am looking for, here are the ...
1
vote
1answer
26 views

MongoDB uses Dynamic Port?

We're using a MongoDB replica on Windows using default ports (27017). Our servers are all behind firewalls and we want to configure the firewall to only allow the default port open. However, when ...
0
votes
2answers
1k views

Mongodb keeps reporting “no primary found”, but shell works fine

I have a simple mongodb setup in a replicaset, with 1 actual instance and 1 arbiter (to avoid conflicts). This is in anticipation of expanding the replicaset to include more instances as our load ...
0
votes
1answer
1k views

Move Mongo Database to a different location

I want to run MongoDB on an Amazon EC2 off the local drive and default folder and move all data files, log files, on mounted raid5 ebs drive. I have already tried both methods: 1- edit the ...
0
votes
0answers
10 views

MongoDB 3.0 on RHEL 6.5 - Startup fails with WT storageengine

I have MongoDB 3.0 installed on RHEL 6.5. The initial setup was done using MMAPv1 storage engine and works fine. i'm currently trying to switch this installation to a WiredTiger storage engine and ...
2
votes
1answer
2k views

keepalived: 2nd VRRP_Script never seems to run

I'm trying to implement keepalived on 3 mongodb boxes, the idea is that if mongod on one of the boxes goes down or we need to move the primary node to another system for some reason our application ...
2
votes
1answer
68 views

When and how should we shard MongoDB when we are bound to physical machines?

We maintain a search service that serves data from MongoDB. Our Mongo production instance is arranged in a 4 node replica set across four physical servers. The database is comprised of several small ...
0
votes
1answer
16 views

MongoDB start sharding

When I want to move a single mongodb server into a sharded cluster, I know that I need 3 config servers. Since we have evertything on one single EXSi server I just want to ask if it is the preferred ...
1
vote
0answers
22 views

MongoDB fsyncUnlock won't unlock occasionally on Windows

We have a MongoDB replica set installed on Windows servers, with a scheduled backup job. MongoDB is configured to use journaling. The job runs db.fsyncLock() via script on MongoDB (primary server), ...
2
votes
2answers
115 views

MongoDB WiredTiger storage not using two CPU cores

As claimed in WiredTiger storage engine description, it provides an ability of better concurrency due to document-level locking. From this post: WiredTiger scales on modern, multi-CPU ...
2
votes
2answers
179 views

Full data backup to Amazon S3

I have an Ubuntu server hosted on Digital Ocean that has outgrown it's existing backup solution. The relevant parts of the stack I use are Node.js, MongoDB, and Elasticsearch. So far backups have ...
0
votes
0answers
12 views

Mongod cli version differs from db.version

I've followed the instructions to upgrade Mongo from 2.4 to 2.6, which was basically just to install the new binaries, but the versions being reported are inconsistent. I've tried restarting the ...
1
vote
0answers
13 views

Huge oplog size after full sync on one secondary causing performance issues - MongoDB

I'm a MongoDB newbie. I have a replica set with 3 members (1 primary and 2 secondaries) on CentOS 6 and Mongo 2.6.8. One of the secondaries crashed because of high consumption of memory and I ...
0
votes
0answers
10 views

Ensure Full Admin When Upgrading User Profiles

I have a MongoDB replica set who is sitting on version 2.6 currently. After trying to update our secondary to 3.x, I found out that I need to update the users on the admin table to be 2.6 compliant. ...
0
votes
1answer
80 views

Connecting to mongodb on AWS EC2 using java

I am trying to connect to mongoDB on an EC2 instance using java. I am able to connect to the EC2 instance using putty after converting the .pem file into the .ppk file.In case of connecting with java ...
2
votes
2answers
2k views

How to setup autossh tunnel for MongoDB

Here's my setup - I have two VPS ( linodes ). Linode1 has MongoDB on it. I need to access this MongoDB from Linode2. But, I don't want other users on the private network sneak my data, so I need to ...
0
votes
0answers
9 views

Disabling Transparent Huge Pages for Mongodb - is it important?

I am running mongodb on a server with other software running as well. So before disabling this setting on my system , i have 2 questions: 1) how much does it change for mongodb ? does it really ...
0
votes
0answers
14 views

MongoDB backup browse GridFS

I have "big" MongoDB database (~100GB) with GridFS, using mongodump I made backup for this database and I wan't to browse files in GridFS, can this be done without restoring backup?
0
votes
1answer
3k views

getting mongodb running locally on OSX Yosemite [closed]

I've installed mongodb using homebrew, but mongod is not running. I'm getting this error: 2015-03-09T14:47:22.418+0000 I CONTROL [initandlisten] MongoDB starting : pid=10510 port=27017 ...
0
votes
0answers
25 views

Random mongo shutdown

I had mongo randomly shutdown on one of my servers today and I was wondering if anyone could take a look at the logs below and tell me what might have happened. The server is hosted on digital ocean ...
0
votes
0answers
39 views

DataFileSync flushing mmaps takes a long time

We are running MongoDB 2.6.9 on a 64 bit Ubuntu Linux VM. When I look in the database folder, this is what I see with ls -lh: -rw------- 1 mongodb mongodb 64M Apr 15 14:26 admin.0 -rw------- 1 ...
0
votes
0answers
21 views

AWS deployed mongodb not connecting through node JS driver

I have a weird problem. I was able to connect mongodb through node JS drivers two days back. Suddenly I am getting connection time out. Mongodb is installed on Amazon AWS. I am able to connect mongodb ...
0
votes
1answer
178 views

mongoDB servers are not available when the master is down

I got the following errors when the master replica is down ConnectionPool::PoolShuttingDownError (ConnectionPool::PoolShuttingDownError): Moped::Errors::ConnectionFailure (Could not connect to a ...
0
votes
0answers
34 views

mongodb avgObjSize confusion and effect of field length on storage size

I have a Replica Set of 3 instances instance A: Mongodb 3.0 (using wiredtiger storage engine) instance B: Mongodb 2.6 (using good old mmapv1) instance C: Mongodb 3.0 arbiter and i have 3 ...
2
votes
0answers
112 views

Corrupt WiredTiger MongoDB files

I'm running MongoDB with the WiredTiger engine on an ext4 file system. The last thing that I did was start building an index, but then something came up and I needed to cancel the index build and ...
0
votes
0answers
123 views

set up Apache2 virtual hosts and now MongoDB connection refused

I'm running Ubuntu 14.04 on an AWS EC2 instance with Apache2. This morning I upgraded my Apache2 settings to allow multiple virtual servers following these instructions. Just now I tried to access my ...
2
votes
2answers
71 views

MongoDB frequently switching primaries

We are running a Mongo 2.6 replica set with 3 members: primary, secondary, arbiter. Nearly every day our MongoDB is switching which server is primary and this causes all connections to that DB to be ...
1
vote
2answers
86 views

mongodb 3.0 wouldn't start on ArchLinux [closed]

I run into some trouble while starting mongodb on my Archlinux. Here's some basic information about my system and config. root /var/lib/mongodb # uname -a Linux yxx1 4.0.4-2-ARCH #1 SMP PREEMPT Fri ...
0
votes
1answer
73 views

CentOS 7 Cannot delete ports defined for MongoDB

I installed and later removed the MongoDB server on a CentOS 7 box. While cleaning up, I noticed that the ports assigned to MongoDB were still open. if I remember correctly, I was able to delete the ...
0
votes
1answer
88 views

Adding an admin user to a MongoDB

I'm using MongoDB 3.0.3, and I've been having issues with creating users. I created a user on the admin database using db.addUser('admin', '....'). I gave it dbAdminAnyDatabase privilege. The output ...
0
votes
0answers
66 views

Mongo secondaries stuck at startup state

I have a MongoDB replica set with secondaries that won't make it past the STARTUP state. The database is large but they should have moved to STARTUP2 by now. The correct ports are open as I can ...