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

learn more… | top users | synonyms (1)

0
votes
0answers
3 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
14 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
14 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
0answers
14 views

Rolling your own mongodb server with WebUI for admin? [closed]

Recently we came to conclusion that we will need some pretty powerful mongodb machine. So i came to this very nice 320 USD/month Digital Ocean machine ( 12 CPU / 32 GB RAM ), but i have no previous ...
0
votes
1answer
29 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
35 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
36 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
95 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
46 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
42 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
22 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
21 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
26 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
24 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
28 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
43 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
138 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
29 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
48 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
26 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
21 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
51 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
86 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
18 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
77 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
30 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
86 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
42 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
192 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
33 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
137 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
127 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
138 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
64 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
337 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
77 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
37 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
70 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
118 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
141 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 ...
1
vote
1answer
425 views

mongoDb 2.6 fails to start on Oracle Linux using the init script

Installed MongoDb 2.6.3 on OL 6.3 using yum, but the default init script seems to fail both when trying to stop and start the mongod service. I could trace the problem with stopping to $pid_file being ...
0
votes
3answers
417 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
126 views

mongodb keep looping while trying to sync data

I'm converting my my standalone mongodb into a replica set. I've added one more member (and I want to add two more members later, and to shutdown the primary server). My primary mongodb is running ...
0
votes
1answer
84 views

Communication errors while trying to replicate mongodb

I'm trying to replicate my mongodb database, I've crated 2 VM on my windows azure account. both of them are Ubuntu 14.04. I've opened 27017 port on both of them, and installed mongodb latest version. ...
0
votes
1answer
126 views

Mongodb error - Out of file descriptors. Waiting one second before trying to accept more connections

Details Here is what I see in the logs file 2014-09-08T10:22:43.143+0000 [initandlisten] ERROR: Out of file descriptors. Waiting one second before trying to accept more connections. ...
0
votes
1answer
58 views

MongoDB: will replica set sync delay also delay drop database commands?

Will a delayed sync replica set member protect me from dropped database? Will the drop database sync across members of a replica set immediately - or will I have the sync delay time to take the ...
1
vote
2answers
398 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 ...
0
votes
1answer
744 views

Can not connect mongoDB remotely on centos [closed]

Previously I've installed mongodb 2.6 on Debian. After installation I could connect to MongoDB remotely but when I've tried that on Centos, I just able to connect mongodb locally using this commend: ...