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

learn more… | top users | synonyms (1)

7
votes
3answers
8k views

Run a MongoDB configuration server without 3GB of journal files

For a production sharded MongoDB installation we need 3 configuration servers. According to the documentation "the config server mongod process is fairly lightweight and can be ran on machines ...
1
vote
1answer
186 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
0answers
222 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
268 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
72 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
1answer
218 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 ...
4
votes
1answer
268 views

Sharding MongoDB internationally with data stored based on location

We're looking to set up data centers globally and switch to a NoSQL database like MongoDB to support having our data distributed over these data centers (and as a pleasant side effect, introduce more ...
0
votes
0answers
16 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
54 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
97 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 ...
0
votes
1answer
75 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 ...
1
vote
1answer
297 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
560 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$ ...
0
votes
1answer
108 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 ...
3
votes
3answers
3k views

Using mongodb tools (mongodump, mongorestore) from another machine

I have a mongodb server (A) and a http server (B). I would like to run mongodump and mongorestore commands on http server (B) to backup data on server B. But these tools comes with mongodb ...
1
vote
1answer
216 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
111 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
67 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, ...
2
votes
0answers
165 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
3answers
4k 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 ...
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, ...
6
votes
1answer
9k views

how to connect to mongodb server via ssh tunnel

It was easy for me to connect to my remote mysql server on AWS using a sequelpro, however I'm struggling with doing the same thing with mongodb. I tried setting up an ssh tunnel via command line ...
1
vote
1answer
233 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
133 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( ...
3
votes
1answer
3k views

How to tune system settings for mongoDB on Linux?

Trying to squeeze a lot out of one question here -- please bear with me. Although the MongoDB man pages make several useful recommendations about system settings like ulimit ...
0
votes
1answer
407 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
27 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
85 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 ...
0
votes
1answer
197 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? ...
1
vote
2answers
116 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
3answers
853 views

Is it possible to upgrade Ubuntu 10.04 32bit to 64bit with out reinstall OS?

My VPS server is running Ubuntu 10.04 32bit now, but I have to upgrade my OS to 64bit because of the 32-bit limitation of mongoDB. But if i reinstall the system, there are a lot of programs need to ...
0
votes
1answer
80 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
0answers
110 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 ...
0
votes
1answer
916 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) ...
2
votes
1answer
268 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
106 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
37 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
392 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
46 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 ...
1
vote
1answer
270 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
358 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 ...
5
votes
2answers
7k views

SocketException in Mongo logs

We are running mongo for 4 months so far , But lately I am seeing a lot of SocketException handling request, closing client connection: 9001 socket exception [2] server [127.0.0.1:58996] How can I ...
0
votes
1answer
155 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: ...
1
vote
2answers
1k views

MongoDB with Virtual box replica set setup on Ubuntu 0.8 connection problem

I'm trying to build a mongo replica set on my server, Centos 5.6, that would be setup from 5 VB holding Ubuntu 8.10 and mongodb. The main problem is i can't connect to mongo on virtual box. The ...
0
votes
0answers
587 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
0answers
161 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
vote
1answer
877 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 ...
-1
votes
1answer
508 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
351 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 ...
2
votes
1answer
266 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 ...