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

learn more… | top users | synonyms (1)

0
votes
1answer
46 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? ...
0
votes
2answers
108 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 quickly,...
0
votes
0answers
63 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 ...
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
1answer
173 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
votes
2answers
302 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 ...
3
votes
1answer
584 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 hkp://keyserver....
1
vote
2answers
185 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
94 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
47 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 : https://raw.githubusercontent.com/mongodb/docs-assets/...
0
votes
0answers
203 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
156 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 ...
2
votes
1answer
6k 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
1answer
69 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
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 ...
0
votes
1answer
31 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 ...
0
votes
1answer
99 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 ...
0
votes
1answer
22 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 ...
1
vote
1answer
153 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
0answers
70 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
208 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 ...
2
votes
1answer
1k views

Enabling WiredTiger engine in MongoDB 3

I've problem with enabling WiredTiger engine by setings in mongod.conf I'm using Centos 7, and this is my config #/etc/mongod.conf storage: wiredTiger: engineConfig: ...
0
votes
1answer
90 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
84 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
43 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
85 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
0answers
148 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 : ...
1
vote
1answer
257 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
474 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
2answers
123 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 ...
0
votes
1answer
95 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, ...
0
votes
0answers
37 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 ...
0
votes
1answer
61 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 ...
2
votes
2answers
290 views

Monitoring MongoDB 3 using StackDriver in GCE

Has anyone successfully managed to monitor a MongoDB 3 cluster (or standalone db) with StackDriver in GCE ? I've setup a MongoDB 3.0.6 cluster in GCE (replica set with 2 replica and 1 arbiter) I'm ...
0
votes
1answer
310 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 ...
1
vote
1answer
57 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 ...
0
votes
2answers
78 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 ...
1
vote
0answers
106 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 ...
0
votes
2answers
130 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 ...
0
votes
1answer
1k views

No package mongodb-org available

I am attempting to install MongoDB on CentOS 6.5. I believe I am following the instructions precisely step-by-step, but continue to get the error No package mongodb-org available after issuing the ...
3
votes
1answer
235 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
1answer
115 views

How to allocate more resources to Node.JS process?

I'm not a (very good) back-end developer so understanding processes and memory are a little about my pay grade. I'm currently building an app using the MEAN stack. I have a separate Express server ...
1
vote
0answers
136 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
389 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
50 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
54 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: { ...