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

learn more… | top users | synonyms (1)

0
votes
0answers
15 views

Best practice of using MongoDB Replica Set on AWS EC2

MongoDB needs at least three replica set members on independent locations to work automatic failover correctly. However, some of AWS Regions (such as ap-northeast-1) have only two Availability Zones. ...
0
votes
0answers
9 views

MongoDB RC9 Intermitted Crash

I'm currently have Mongo 3 RC9 running in a test environment preparing for production use when Mongo 3 comes out of RC, and am trying to make sure I have all my own bugs worked out for when it does. ...
0
votes
0answers
13 views

MongoDB mongos memory usage

Planning how to deploy a shard-ready cluster (Single shard at the moment, with all config servers and mongos processes), I've read the MongoDB operations best practices. I have doubts about the memory ...
-2
votes
2answers
30 views

Building Mongodb 3.0.0 with SSL

I am trying to build Mongodb 3.0.0-rc8 (tried latest nightly too) with ssl support. I found a gist which works for 2.6.7 but when I run it with 3.0.0-rc8 I get that eror ...
0
votes
0answers
37 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
40 views

mongodb authentication not working in puppet

I used the same connectionstring in the terminal and it's working ok. But from Ruby I get error output when vagrant provision runs mongo admin -u 'vaga' -p 'vaga' --authenticationDatabase admin ...
0
votes
2answers
31 views

restore mongoDB databases from manual backup (not used mongodump): strange permission problems

Is it possible to restore databases which were manually copied from /var/lib/mongodb to eg. /home/foo/mongobackup ? I am not sure if the backup was made after stopping the mongod service. Either way, ...
3
votes
1answer
42 views

How can I decrypt ssl encrypted mongo wire protocol for inspection when I have ownership of all certificates involved?

I have a standard MongoDB SSL environment where the mongo wire protocol is encrypted with SSL/TLS using RSA keys. I have packet captures of communication between the MongoDB server and a client taken ...
0
votes
0answers
5 views

MongoDB Memory Usage [migrated]

I am using MongoDB using C#. I am currently using only a single server. Since I have to create Table events for MongoDB collections I have created a single replica set(primary). And using ...
0
votes
1answer
14 views

Change mongo data directory for a specific database

Is it possible to change the data directory for a specific database in mongo? I'm optimizing a particular database for speed and I would like to move it to an SSD drive. The drive is not large enough ...
0
votes
0answers
15 views

Database groups in mongodb

I'm facing a problem (well, not a real problem, more of a detail) in deploying an infrastructure for several applications. Some of them use PostgreSQL and some of them MongoDB. I would like to run ...
0
votes
0answers
27 views

MongoDB hogging IO but it doesn't show in mongotop or mongostat

Iotop says mongod is using a lot of IO (96.32%) for a long while but mongotop and mongostat show a bunch of zeros. How can I better monitor mongodb and find out what's happening?
0
votes
1answer
39 views

Is my default File System ext4

By running df -hT that shows mounted file systems, how can I know if my default FS is ext4? Also as mentioned by one of the MongoDB engineers in this video (@1:13) from M202: MONGODB ADVANCED ...
0
votes
1answer
44 views

VMware Grails application on one VM can't access MongoDB on another VM

I have two VMs in a VMware cloud that belong to the same VApp and so are behind the same edge gateway. The both have their own different internal ip addresses but I route services from the outside to ...
1
vote
0answers
67 views

Linux fixed file size copy from Windows Server 2012 NFS share

Company is in the process of switching from hosting MongoDB on windows server 2012 to hosting on linux(ubuntu 14.04) Current backup and restore strategy involves copying all the data files via ...
0
votes
1answer
158 views

Problems setting up host in MongoDB MMS

I have been trying to configure MMS for my node on OpenShift, but I keep getting errors. Setting up the cartridge worked well, and I also managed to get it connected to MMS. The problems start when I ...
1
vote
1answer
65 views

MongoDB: insert operation fails but disk is free

I've seen the strange behavior of my server and first of all I looked at log file /var/log/mongodb/mongodb.log. There I saw the next lines: Wed Jan 7 16:33:31 [FileAllocator] allocating new datafile ...
0
votes
1answer
85 views

Starting mongoDB server fails

I just installed mongodb server on my ubuntu using this command: sudo apt-get install mongodb-server But I can't start it. When I try to run the server, it says: masious@ubuntu:/var/log/mongodb$ ...
1
vote
1answer
43 views

Fluentd not writing apache access log to mongodb

I'm following the instructions from this link to write apache access logs to mongo db- http://docs.fluentd.org/articles/apache-to-mongodb. But nothing is getting written to mongo DB. I'm checking ...
0
votes
1answer
30 views

mongo shard has high number of faults, but top shows only 8% of memory used by mongod

I am investigating some performance issues in my mongo setup. I have 3 query controllers and 6 shards. I'm doing a large batch import/update, and on the 3 query controllers, I'm getting around 200 ...
1
vote
1answer
53 views

Can i delete oplog local.* of Mongo backup fsyncLock() + LVM snapshot?

Is it safe to delete oplog local.* files from a MongoDB snapshot ? Does the fsyncLock() commit oplog entries in DB files ? I currently do a fsyncLock() + LVM snapshot of Mongo data. Then i mount the ...
0
votes
1answer
28 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 ...
1
vote
1answer
32 views

Mongo query takes 76 seconds in production but not using Mongo shell

I have a query: db.content.find({ "$or" : [ { "cik" : "0000764839"} , { "entitiesDetected.ids" : "ZqH9BvtitcYR88NKC"}], "pubDate" : { "$gt" : { "$date" : -2206281600000}}, "orderBy": {"pubDate": -1, ...
1
vote
0answers
53 views

adding mongodb authentication breaks connecting via nodejs

I needed to have external access to my mongodb database, so I have removed the bind_ip from the mongod.conf file, and turned on auth. I then added a root user that can access everything, and tried to ...
1
vote
1answer
239 views

Readahead for /var/lib/mongo is set to 4096KB

I'm trying to set the readahead for mongo 256 or less as recommended, I looked at the documentation for any guidance and I found this: Ensure that readahead settings for the block devices that store ...
1
vote
1answer
49 views

mongorestore with indexing in foreground

I need to restore huge dump taken with mongodump utility. As the collections are big and mongorestore rebuilds indexes in backround, index building takes very long to finish. What I want is to somehow ...
0
votes
1answer
80 views

Is mongorestore ditrectly to a path with the --dbpath faster than restoring to a running mongod instance?

What and how much is it faster: #mongod not running mongorestore --dbpath /var/lib/mongodb --db test /some_dump or #mongod running mongorestore --db test /some_dump ? I could not quickly find ...
1
vote
0answers
31 views

Merge 7 node mongodb (2.4) cluster into one standalone mongo shard

I'm running a 7 node mongodb sharded cluster (version 2.4...). I would like to merge this into a standalone shard with 7 times the disk-space. I've tried to create the single shard instance and ...
1
vote
0answers
26 views

Improve read performance on ext4 on Centos with software raid1? [duplicate]

I'm running a number of MongoDB nodes on dedicated servers running Centos6. Each machine has two SSDs which I have in Raid1 with two logical partitions: # df -h Filesystem Size Used Avail Use% ...
-1
votes
1answer
28 views

Mongod not working but data exists

I am running a Homestead virtual box. I installed mongodb recently and was able to type mongod and it would load as it should. Now though I get an error saying dbpath /data/db does not exist. The ...
1
vote
2answers
57 views

Creating a second (clone) MongoDB ReplicaSet on same storage volumes

We are upgrading our software which is going to require an update to our MongoDB database. We plan on doing it by making a copy of the existing ReplicaSet with a new name and making our updates to the ...
0
votes
1answer
113 views

How do I add MMS to an existing MongoDB installation

I have installed the MMS agent on a live production server (Ubuntu) and it has not found the existing MongoDB instance running. Is there any way of adding an existing running MongoDB instance to this? ...
0
votes
1answer
27 views

MongoDB copyDatabase command succsefasully copies database, but gives me a different size on the ner server

So I have to move this one database to another server and I'm using the MongoDB copyDatabase command. It looks like it successfully copies it over, but there is a 3x difference in size between the ...
0
votes
1answer
84 views

Mongorestore from oplog miss some records

We did a dump of a mongo oplog and now try to restore it on another server with : mongorestore -vvvvv --authenticationDatabase admin -u mongoUser -p --oplogReplay --filter '{"o._id": ObjectId( ...
0
votes
0answers
41 views

Add security/authentication to mongodb (2.6) without downtime?

We have a 3 node replica set (running 2.6.1) that's running mostly defaults. We'd like to add authentication, but do it without downtime. I'm fine with restarting the nodes one-by-one and even ...
2
votes
1answer
111 views

How to get MongoDB server local time?

I'm running a mongodb with authentication. I would like a non-root client to get server time. I thought easiest would be to use serverStatus. But default readWrite user does not have such privilege. ...
0
votes
1answer
52 views

How to create a consistent (starting) point-in-time backup of a MongoDB replica set?

I'd like to make a backup of a MongoDB replica set in a way that I can ensure the database consistency at the time when the backup starts. As the documentation says, --oplog flag to mongodump will ...
0
votes
0answers
26 views

How remove a collection from a database without a running Mongo instance?

Is it possible to remove a collection from a database without a running Mongo instance? I ask because I cannot start Mongod due to an exception being thrown ("no NamespaceDetails for index"). The ...
1
vote
0answers
216 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 ...
1
vote
2answers
35 views

Background indexing MongoDB on server

I have a collection on a server containing ~23 million documents. I need to index this collection and obviously this will take a long time. If I run this indexing operation with background: true ...
0
votes
1answer
183 views

Mongodb: The paging file is too small … v2.6.4 on Win2012

We had this a couple weeks ago, and mongo would not restart. We have 30GB RAM. The paging file had originally ben 4gb. When we first hit this a couple weeks ago, we incrased the paging file to 12GB ...
1
vote
1answer
154 views

Setup MongoDB on MS Azure virtual machine to access it from an azure website

I have setup a MongoDB replica cluster on 3 virtual machines (Ubuntu 14), on MS azure cloud. The mongodb cluster has been setup with MMS (https://mms.mongodb.com amazing tool btw) and it works fine. ...
-2
votes
1answer
176 views

What does MMS Alert “Host is exposed to the public Internet” mean? [closed]

I started receiving MongoDB Management Service emails today saying this: "Host is exposed to the public Internet". Apparently these checks are run on the 1st and 15th of the month, and today is the ...
0
votes
1answer
73 views

unable to install mongodb on ubuntu 13.04

I performed the first two steps of importing the public key, by: prachi@prachi-3000-N100:~$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 [sudo] password for prachi: ...
0
votes
0answers
387 views

AWS Linux yum repository can't find MongoDB packages for install

I am trying to install the latest version of MongoDB for my 32-bit AWS Linux instance. I am following these instructions from the MongoDB documentation. I have created the .repo file in the proper ...
0
votes
1answer
120 views

how to install an older version of a pecl package

I have this code $passengerId = new \MongoId(oPassenger->getId()); return $this->createQueryBuilder('Device') ->update() ->multiple(true) ...
0
votes
0answers
40 views

Setting up MEAN stack on cloud server

I'm working in a company that has been developing websites with PHP and thus we have been using a Rackspace cloud server to host our files. I want to bring us forward in time and try to develop our ...
0
votes
0answers
88 views

Linked Server in SSMS: role of “String Column Lengths” values

I'm using linked server in SQL Server Management Studio in order to connect to Mongo database through ODBC. I have hard time trying to get data from Mongo. Here is a query I try to make: Select * ...
-1
votes
1answer
173 views

Something is filtering 27017 port even then firewall is not working

Good day, i' trying to move mongodb database to separate VPS from application, but VPS was pre-configured not by me. I have instance with running mongodb on 27017 port: COMMAND PID USER FD ...
0
votes
1answer
174 views

Connecting to MongoDb at EC2 - how do I know username, host, port, ect?

I manually installed MongoDb on EC2 micro instance using this http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/ Now I need to connect to it from a Rails application. Where do I find ...