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

learn more… | top users | synonyms (1)

0
votes
1answer
23 views

Connect to mongodb through ssh

I'm not sure if it's related to this one, but I have a similar problem. The problem is unless I have port 27017 opened, Robomongo fails to connect even with "ssh tunnel" option. Port, address and ...
0
votes
1answer
116 views

Edit edit /etc/mongo.conf and uncomment “auth=true”

I am trying to disable the auth, and many places tell em to nano /etc/mongo.conf and uncomment "auth=true" Yet there is no config file there. I have tried also edit /etc/mongod.conf and ...
1
vote
1answer
183 views

AWS, NodeJS - Connecting app to Mongodb on another EC2 instance

I am trying to connect my app, running on one EC2 instance, to MongoDB, running on another EC2 instance. I'm pretty sure the problem is in the security settings, but I'm not quite sure how to handle ...
2
votes
1answer
176 views

MongoDB Install Simple Test Ops Manager java.lang.OutOfMemoryError on startup

just installed a test evaluation of MongoDB Ops Manager and get an error on startup of the Backup HTTP server: Migrate MMS data Running migrations...[ OK ] Start MMS server Instance 0 ...
0
votes
1answer
114 views

How to make mongodb database size bigger?

I have been uploading photos with reports to mongodb. I reached the database size limit. How do I increase the size of the database? db.stats() { "db" : "fieldops", "collections" : 6, ...
2
votes
0answers
74 views

MongoDB replication failure

I am trying to debug an odd issue that results in the failure or a replica set secondary becoming out of date and unable to catchup with the primary (running on AWS, AWS linux). The typical ...
0
votes
0answers
229 views

Failed to authenticate with mechanism MONGODB-CR AuthenticationFailed MONGODB-CR credentials missing in the user document

When i have to connect remote database in Mongodb getting error on log using robomongo database. tail -f /var/log/mongodb/mongodb.log 2015-10-03T00:29:51.275-0500 I ACCESS [conn25] Failed to ...
0
votes
1answer
105 views

What happens to read/write operations during automatic client failover in MongoDB Replication

We have setup a 3 node replication set configuration for MongoDB. I want to know what happens to read/write operations during primary switchover. To be more explicit, few read/write operations were ...
2
votes
1answer
92 views

Gearman writing “Too many open files” into the log. Disk space issues

We're running a service that makes screenshots of URL supplied and posts it to our S3 bucket. Similar to manet, but our custom coded nodejs app. We don't store the screenshots on our local hard drive. ...
0
votes
0answers
44 views

Nginx/Passenger (with Rails, Capistrano and MongoDB replica set)

I've encountered a problem with a Ruby on Rails application that runs under Nginx/Passenger and connects to MongoDB replica set. Everything worked fine until suddenly the application stopped ...
0
votes
1answer
87 views

Cannot access ports behind VPC on AWS

I am running two servers on a VPC in AWS. One is an ubuntu server running mongodb on port 27017 and the only public port is 22. On a separate CoreOS server I have several containers that are ...
0
votes
1answer
67 views

Unable to unstall mongodb, Debian 6.0

When I run sudo apt-get purge mongodb-org*, I get this: me@myserver:/var/lib$ sudo apt-get purge mongodb-org* Reading package lists... Done Building dependency tree Reading state information... Done ...
0
votes
0answers
163 views

Kill Meteor On Ubuntu

I will try to post calmly but really I want to throw my computer out the window. I have resized my digital ocean droplet, and all of a sudden there is a second instance of meteor running, with a ...
0
votes
0answers
13 views

Mongo geoquey on nested element

I have an entity type with an array of elements like this: { id:..., locations:[ { type: "home", location : [ 30.09 , 4.0 ] }, { type: "office", location : ...
3
votes
4answers
7k views

Copy mongodb collection between two servers AND different mongo versions …

I have a collection in a mongoDB, on a project that runs locally, and have to copy the collection to the dev server. Can you tell me how to do this, considering that: The local machine (the source) ...
1
vote
1answer
565 views

What is the minimum amount of servers for a production mongoDB cluster?

On the mongoDB documentation for a production cluster architecture I read that the minimum amount of servers for a running production mongoDB cluster is 7: Is it possible to share the routers, ...
1
vote
1answer
267 views

Trying to downgrade MongoDB on CentOS

I'm running CentOS 6.7 on a Hyper-V, which means that I can't do an in-place upgrade to 7.0. Today I did a server restart, and some time between the last time I did a restart and today my ...
0
votes
1answer
504 views

Chef: mongodb::user_management failing in aws opsworks with “NameError: uninitialized constant Mongo::MongoClient”

I have been using the mongodb cookbook successfully to create user accounts for months but recently something has changed and I can't figure out what it is. The default recipe completes without ...
0
votes
0answers
39 views

Error reparing mongo db

I have one mongo 3.0.2 database on Ubuntu 14.04.3 LTS. Size of data directory - 3.5 TB. Database worked during several days with failed RAM hardware. Now RAM is replaced with good one, but database ...
0
votes
1answer
26 views

How to *securely* install MongoDB from its official repository?

The official MongoDB guide suggests that I add a .repo with gpgcheck=0 over HTTP protocol. I'm getting the feeling that this is a very insecure setup - I am worried about exposing myself to MiTM ...
2
votes
2answers
2k views

How to construct a MongoDB Health Check in HAProxy?

There is a fastcgi example of a binary health check on the HAProxy blog. How would I construct a similar check for MongoDB such that I am doing a more robust health check for MongoDB - one that ...
8
votes
2answers
5k views

Does a MongoDB replica set require at least 2 or 3 members?

Documentation here says three: http://docs.mongodb.org/manual/tutorial/deploy-replica-set/ "A replica set requires three distinct systems..." Whereas the documentation here says two: http://docs....
0
votes
1answer
337 views

MongoDB on CentOS 6.6 - Cannot create admin

I have a fresh install of CentOS 6.6 and installed MongoDB 3.0.6 as per the instructions here. https://docs.mongodb.org/manual/tutorial/install-mongodb-on-red-hat/ I am unable to create the admin ...
0
votes
2answers
1k views

Mongodb config file option for authentication

I'm trying to start mongodb(3.0.2) with authentication enabled on mac osx 10.10 from the doc. Starting monodb manually with --auth works and starts without any error. I installed mongodb using ...
1
vote
1answer
63 views

MongoDB on RHEL vs. Ubuntu [closed]

I'm looking to install MongoDB on an Amazon EC2 instance, to me AMI doesn't matter much... but maybe it should. While searching online for how-to's, I've only found thorough guides for installing ...
3
votes
1answer
4k 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 ...
0
votes
2answers
84 views

What type of Azure configuration should I use for a MongoDB deployment?

I keep running into a lot of different competing information on what type of VM and where the data should be stored for a MongoDB deployment in Azure. When reading over the D series VMs it ...
0
votes
2answers
142 views

how to change the startup order of init scripts in SUSE 11

I want to start service in the following order mysql mongodb after reboot I have changed the services mysql init scripts to lrwxrwxrwx 1 root root 8 Sep 8 11:05 S30mysql -> ../mysql lrwxrwxrwx ...
1
vote
0answers
112 views

Mongodb failing to start using init script with dbpath on mounted drive

I've been trying to set up a mongodb instance (2.6.11) on my CentOS 6.3 to use a data location on a different drive because of space constraints on the default location of /var/lib/mongo I've changed ...
2
votes
1answer
3k 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
1answer
2k views

MongoDB new replica set node not coming online

After adding a new MongoDB replica set node on the primary I get > rs.status() { ... { "_id" : 2, "name" : "nde3.test.com:27017", "health" : 1, ...
2
votes
1answer
1k 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 ...
1
vote
0answers
140 views

Digital Ocean and Scalable MongoDb [closed]

I am looking into using the MEAN stack on Digital Ocean but am struggling a bit on the MongoDb side of things. Digital Ocean don't allow you to add a custom size of SSD to your droplets which causes ...
0
votes
0answers
11 views

ExpressJS + MongoDB: Better to make one API call with 10,000 objects, or 10,000 individual API calls? [duplicate]

I'm building an app that relies on a web scraper built in Node/Express, which operating on the same localhost as my front-facing Node/Express app. I'm trying to optimise as much as possible and I'm ...
1
vote
1answer
443 views

Issue with bind_ip on mongodb mon Virtualbox

I have been struggling with mongo bind IP for a while , I think this is the time to shout for help. I am using hostonly network 192.168.56.0/24 . I have 4 boxes. 3 boxes for mongo 192.168.56.111,192....
0
votes
0answers
56 views

How to monitor MongoDB cursors

I have a MongoDB cluster with 1 PRIMARY and 2 SECONDARY servers. In the last couple of days the number of open cursors has risen from 10-20 a sec to more than 2K and keep rising. I'm getting a lot of ...
0
votes
0answers
57 views

MongoDB: exception: no primary shard configured for db: config, code: 8041

I have set up mongodb sharded cluster with 2 replica set having 3 member each, 3 config server and 2 mongos instance on AWS. I am getting following error I SHARDING [Balancer] moveChunk result: { ...
0
votes
1answer
609 views

Authentication in a Mongo Sharded Cluster

I have a mongo shared cluster and replica sets: The ShardA Replica set: A1. 10.77.14.241 A2. 10.77.14.242 AA. 10.77.14.243 Arbiter Some parameters of /etc/mongod.conf: #bind_ip=127.0.0.1 auth=...
0
votes
0answers
12 views

MongoDB with ReplicaSet perform updates / compact

I have a MongoDB in ReplicaSet with 1 primary, 1 secondary and 1 arbitrer. I'm doing an heavy update operation on a huge collection (more than 2.5M records), this operation will decrease the ...
0
votes
0answers
36 views

ISSnode not able to reconnect to MongoDB on Azure Webapps

Its weird that ISSNODE is preventing re-connection to mongodb replica set in the following scenario. Primary server goes down and secondary server is set as primary server, at this period the ...
2
votes
3answers
2k views

mongo replica set to single server

I have a mongodb replica set and want to move it to a single server setup Is it just as simple as doing a rs.remove() to the other 2 nodes?
0
votes
1answer
318 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
22 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 ...
0
votes
0answers
27 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 ...
12
votes
8answers
9k 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 (...
0
votes
0answers
262 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 mongo-1.6.10....
1
vote
1answer
250 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
2k 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 - https://aws.amazon.com/marketplace/...
0
votes
0answers
147 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
0answers
387 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 (...