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

learn more… | top users | synonyms (1)

1
vote
1answer
107 views

Cannot connect to mongodb instance on Azure

I have setup a mongodb server on Azure (on Ubuntu 15.04). The instance works and I can connect to mongodb when ssh'd into the machine by simply using 'mongo'. However, when I try to connect from my ...
1
vote
0answers
37 views

What are the proper Readahead values for a RAID 10 array over 4 EBS PIOPS volumes?

tl;dr - What are the proper readahead values for the different EBS PIOPS volumes in a RAID 10 array ? What about the RAID 10 physical and logical volumes themselves ? What about the chunk size of the ...
0
votes
0answers
54 views

Upgrading mongoDB shard to 3.2

mongoDB's Upgrade Recommendations for upgrading a sharded cluster from 3.0 to 3.2 only describe to scenario of upgrading the shard members one at a time, which I can understand is what most people ...
0
votes
1answer
120 views

php:5-apache docker image no /etc/php/apache2/php.ini

I just pulled docker image php:5-apache and it runs well and all but there is no /etc/php5/apache2/php.ini file so I can't add extension=mongodb.so even if it is installed with PECL.
0
votes
0answers
37 views

mongodump on mongos : Shard not found for server

Trying to mongodump a mongodb 3.2.1 cluster with : - 3 mongos on port 28018 + keyfile internal auth (one shard on rs0) - 3 mongod_config servers on port 28019 using keyfile internal auth + auth - 3 ...
0
votes
0answers
42 views

AWS MongoDB 3.0.6 replicaset - Primary server becomes unresponsive to connections and read timeouts

We have an existing MongoDB replicaset deployment in which all the servers are running on version 3.0.6 on AWS Linux machines within a private VPC. This mongodb version has been deployed since ...
0
votes
1answer
42 views

Is there a way to send a mongodump over sftp without using diskspace?

Problem We have a mongo database (on ubuntu server) we need to migrate. However the old server has not enough disk space to store mongodump. Can we send it to another computer skipping local storage? ...
2
votes
1answer
5k views

mongo db installation showing storage engine error

I just installed monodb(version 3.2) at my windows machine. I created /data/db directory also. when i give the command "mongod" to start it, it shows the following error exception in initAndListen: ...
0
votes
0answers
55 views

Mistakenly upgraded MongoDB 2.6 straight to 3.2

I upgraded a dev box form mongo 2.6 to 3.2. I had every intention of upgrading to 3.0 and then 3.2 as per the docs, but thanks to a glorious bit of lack of attention ended up just upgrading straight ...
0
votes
2answers
82 views

Mongodb log rotation creates an extra empty log file each time it runs

I configured a new mongodb arbiter recently, and used this to test some new mongo config, using the mongo 3 config syntax, at the same time I tested log rotation on the server. This worked nicely: $ ...
0
votes
1answer
15 views

Simple MongoDB EBS Backup Scheme

Can I get by with standard EBS snapshots to back up my small MongoDB replica set? I have a 3-member MongoDB replica set (~2GiB of data across several databases). I don't anticipate it to grow ...
-1
votes
2answers
249 views

Can't connect to any remote mongoDb

I'm running ubuntu 14.04 and am unable to connect to any remote mongodb server on my home network. I'm pretty sure it worked only a month ago. Furthermore, I have no problems connecting from my work ...
5
votes
4answers
7k views

Mongodb - proper way to rotate logs

Mongo docs say that I can: use -SIGUSR1 signal and get the old log renamed and current switched use logrotate from OS I want the OS's logrotate ability to zip old files and remove oldest, but see ...
3
votes
1answer
210 views

Upgrading MongoDB 2.x replica set to 3.x

I have a MongoDB replica set consisting of two database nodes and one arbiter. I want to upgrade the replica set by launching new, larger instances (Google compute engine), installing MongoDB 3, then ...
0
votes
2answers
311 views

How to use fsyncLock() safely in backing up a single mongod

I read in MongoDB's official documentation: important: db.fsyncLock() may block reads, including those necessary to verify authentication warning: When calling db.fsyncLock(), ensure that the ...
0
votes
1answer
141 views

MongoDB 3.2 mongod.conf master/slave replication cant be configured via mongod.conf

I need to setup master/slave replication for mongodb 3.2 server. Servers are Centos 6.7 and mongodb is latest 3.2 from offical RPMS. My /etc/mongod.conf is pretty much with default options from the ...
1
vote
2answers
2k 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 ...
2
votes
1answer
420 views

Mongodb install fails in Ubuntu 14.04 docker container

I am trying to install mongodb on ubuntu 14.04 in a docker container, using the following steps from the official mongodb guides in my Dockerfile: RUN sudo apt-key adv --keyserver ...
1
vote
2answers
100 views

MongoDB automatic failover between 2 data centers

If I deploy a MongoDb replica set across only 2 data centers, if one entire data center fails, can there be automatic failover to the other data center? Consider the situation where 1 data center has ...
1
vote
2answers
137 views

Stop mongos process

May be a dumb question, In a sharded database configuration, I launched my mongos with the following command : mongos --configdb config1:27019,config2:27019,config3:27019 I now need to stop mongo ...
0
votes
1answer
74 views

mongodb sharding - launch mongos with mongos.conf

We are currently setting up a sharded cluster with MongoDB, config servers have been set up using a configuration file : mongod.conf pointing out alternative paths for data and logs folders : ...
0
votes
2answers
41 views

mongo replica set unable to import the example restaurant json

I'm new to mongo and I have just set up a replicaset localy on my laptop. I'm trying to import the demo database of restaurants from here : ...
0
votes
0answers
179 views

MongoDB 3.2 on Windows 8.1, I can not start the service

I am running mongoDB 3.2 the OS is Windows 8.1. I can not seem to start the net service for MongoDB I started Mongod OK and it is listening I started Mongo as well MongoDB shell version: 3.2.0 ...
0
votes
1answer
131 views

MongoDB 80,000+ insertions per second

To test my MongoDB 3.2 / WiredTiger on CentOS6, I use the script from http://vladmihalcea.com/2013/12/01/mongodb-facts-80000-insertssecond-on-commodity-hardware/. Here I list the script (a little ...
1
vote
1answer
598 views

MongoDB high CPU usage

Running MongoDB 2.4.11 on Ubuntu 14.04.1 LTS In top, this mongod thread is constantly using ~195% CPU: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 24524 mongodb 20 ...
0
votes
1answer
60 views

Can't remove mongod.lock

all. I want to remove mongod.lock. When I try sudo rm -rf mongod.lock I got this rm: cannot remove ‘mongod.lock’: Read-only file system Can anyone tell me how to force remove it? Thanks, Ami
7
votes
3answers
6k views

Why can't i install mongodb 3.0 on Ubuntu 14.04 32bit?

I have followed all the official istructions listed here: official page In detail, i have done: sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 (seems ok) echo "deb ...
0
votes
1answer
22 views

Choosing the right storage when hosting MongoDB on EC2

I'm setting up a MongoDB cluster on Amazon EC2 instances and the documentation says... ...for best performance we recommend separate volumes for data files, the journal, and the log. Each has ...
4
votes
1answer
69 views

MongoDB Oplog Security

We are using a MongoDB replica set for sharing sessions and other (potentially sensitive) data in a web farm. All the data we store uses TTL indexes to expire documents after a relatively short ...
0
votes
1answer
26 views

MongoDB replica set: Why the last remaining server becomes secondary?

I am experimenting with MongoDB replica sets to test the high availability scenarios. I have set up a 3 server replica set. When I stop the primary server, one of the remaining 2 servers becomes ...
2
votes
3answers
2k views

mongorestore from stdin

On a remote server I have a file which is the mongodump output compressed, let me say a file called mongodb.tar.gz. Inside mongodb.tar.gz there is a directory structure like this: dump/dbname/ ...
2
votes
1answer
551 views

'mongod wiredTiger' on Ubuntu?

I cannot use wiredTiger as a service for MongoDB. Then, I progresses step by step according to the following guide; http://docs.mongodb.org/manual/release-notes/3.0-upgrade/ Step-1: Start 3.0 ...
0
votes
1answer
21 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
86 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
123 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
166 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
78 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
65 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
204 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
71 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
76 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
40 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
78 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
55 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
130 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
10 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 : ...
2
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) ...
0
votes
1answer
348 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
241 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
483 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 ...