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

learn more… | top users | synonyms (1)

4
votes
1answer
150 views

mongo and app server cpu

The beginning: We are using uwsgi and I decided to switch our configuration to use more workers/processes. Why: We have been seeing a traffic increase lately and in my tests with apache benchmark, ...
2
votes
1answer
106 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 ...
2
votes
1answer
101 views

Recovering data from MongoDB raw files

We use mongodb for our database and set the replset(two servers), but we mistakenly deleted some raw files that under /path/to/dbdata on both servers. After that, we used extundelete to get back the ...
2
votes
1answer
189 views

MongoDB 100% locked periodically. MMS charts attached

Trying to diagnose what could be causing intermittent lock-up on MongoDB server running behind a Rails application. Hoping that someone might recognise the pattern of peaks and troughs in the charts ...
2
votes
1answer
177 views

mongodb 2.4.9 is crashing on wheezy when running as root

I installed mongodb-10gen v2.4.9 on a debian Wheezy, and I'm having this really weird behavior: if I run it as root I can't get it starts: root@xx:~# /etc/init.d/mongodb stop [ ok ] Stopping ...
2
votes
1answer
222 views

LVM+MongoDB. Dropping in speed of backup creation

Till recent time we have been making mongo backups archiving LVM snapshot on hidden SECONDARY server with RAID10 on SAS disks. Currently operation on making snapshot from volume with 500 Gb of data ...
2
votes
1answer
2k views

High CPU usage on mongodb server when idle?

I am getting strange usage numbers on MongoDB server when it is in almost idle state: http://pastebin.com/cKVyGMts (no queries) DB size is about 3.3 Gb I can see in mongodb.log that snapshotthread is ...
1
vote
1answer
7 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 ...
1
vote
1answer
77 views

MongoDB Mergelist error in Debian 6.0.9

We installed Ubiquiti UniFi 2.4.6 which installs Mongodb 10gen on Debian Squeeze 6.0.9. This was a clean install, with no other packages installed from the base install (other than SSH). I was able ...
1
vote
1answer
86 views

using cas server with mongodb backend

I 'm new to setting up cas(Central Authentication Service) server. I couldn't find any guides to setup mongodb as backend for CAS server. Is there an adapter to connect CAS and mongodb. BTW, we don't ...
1
vote
1answer
235 views

Mongodump segmentation fault when dumping all dbs

I'm running a mongodb(2.0.4) replicaset with one master and two slaves where one is hidden slave for backup. I'm using http://docs.mongodb.org/manual/core/replica-set-architecture-three-members/ When ...
1
vote
1answer
84 views

MongoDB Balancer

So I have 2 sharded clusters with 3 servers each.My mongos is running, my config server is running and ive also added test data to 1 of the 2 shard clusters. I am having trouble getting that data to ...
1
vote
1answer
104 views

MongoDB cloneCollection between Azure hosted CentOS servers times out at 2 hours

I'm trying to clone a MongoDB collection from CentOS server A to CentOS server B. Both are running 2.4.6. The copy works great until exaxctly 2 hours, at which point I get a 9001 socket exception: ...
1
vote
1answer
30 views

Query related to production environment

I have configured my production environment with the following details: 1. Three config server 2. Two routers (`mongos`) 3. Two shards of three node replica sets. My question is: I am trying to ...
1
vote
1answer
97 views

Nginx PHP Consistently Slower than Apache 2.2

NOTE: I asked this first on StackOverflow and was sent here. I hope the repetition is OK. In doing load testing comparing Apache 2.2 and Nginx 1.2.6 running using fully stock packages on Ubuntu ...
1
vote
1answer
319 views

Quickest/best way to copy a portion of a large mongo database to another server?

I have a dataset of 100m tweets stored in Mongo, unoptimized and unindexed. I need to copy all tweets from the last month onto another server, what is the best way to do this? My idea was to use a ...
1
vote
1answer
583 views

Very slow MongoDB replica set

I have set up two Mongo instances in EC2 having RAID10. I set up replica set using those two servers and found that this replica is very very slow over network. If I log in locally and issue query ...
1
vote
1answer
991 views

Can't setup 3 nodes MongoDB recplica set

I just follow instructions in MongoDB document Replica Sets - Basics to setup a 3-node Replica set. Everything goes fine when I do the initiate and add first node in the primary. [foo@host-a ...
1
vote
1answer
231 views

MongoDB cluster reporting gotShardHost errors

We're running a MongoDB cluster up on EC2 and are experiencing the following error over and over again in our log files: Assertion: 10429:setShardVersion failed! { "errmsg" : "exception: ...
1
vote
1answer
251 views

My ubuntu server can ping and ssh can connect, but ssh can't do the authuncation and halt

I have two ubuntu server. Each running php-cgi by phpfpm, memcached, mongodb. And these servers are not running in a high load state. After running several days. The server will halt. No service and ...
1
vote
1answer
263 views

MongoDB Java, R2.5.3 - NoSuchMethodError on DBCollection.save(DBObject) in Tomcat6

java.lang.NoSuchMethodError: com.mongodb.DBCollection.save(Lcom/mongodb/DBObject;)V Here is the sample code. Error is on Line 3. 1 BasicDBObject dbo=new BasicDBObject(data); 2 DBCollection coll ...
0
votes
1answer
19 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
46 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
13 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
48 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
1answer
498 views

keepalived: 2nd VRRP_Script never seems to run

I'm trying to implement keepalived on 3 mongodb boxes, the idea is that if mongod on one of the boxes goes down or we need to move the primary node to another system for some reason our application ...
2
votes
0answers
330 views

How to find/kill long running mongo scripts

I think I have a long running mongo script tanking my database, but I'm not sure. I was connected to the linux server via SSH and I ran the script like so: mongo my_database my_script.js It started ...
1
vote
0answers
32 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
0answers
23 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
79 views

Migrate standalone Mongo DBs to sharded/replicated cluster

Currently I have several independent standalone Mongo servers. I have Now set up a sharded and replicated Mongo cluster. I plan to copy over all databases from the standalone Mongo servers to the ...
1
vote
0answers
136 views

Can't load Mongo extension in php.ini

I'm having some issues while try to load mongo.so extension at php.ini. Below is what I tried: Compile the mongo extension by following the documentation at php.net for MongoDB site. This resumed ...
1
vote
0answers
860 views

how to integrate between MONGODB & SOLR, using MONGO-CONNECTOR

Like this I started my mongod with replSet mod mongod --dbpath=/home/local/ASSYST-COC/so/mongo --replSet myrep --auth mongo started mongo -u root -p root --authenticationDatabase admin IN ...
1
vote
0answers
355 views

MongoDB Performance Troubleshooting

I have a small MongoDB replica set (2.4.6) and it seems about once a week, the primary gets bogged and the load average spikes up. This app doesn't see a huge amount of traffic. It resides in EC2 ...
1
vote
0answers
268 views

Why mongo pecl module looses its connection after Primary stepDown?

I run an Apache 2.2.22-13 with pecl module "mongo 1.4.4". It connects to a MongoDB 2.4.6 sharded cluster. When a stepDown occurs, the mongo module seems to stay on the mongod node which was the ...
0
votes
0answers
23 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
0answers
23 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 ...
0
votes
0answers
135 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
0answers
268 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
32 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
56 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 * ...
0
votes
0answers
79 views

Replicated MongoDB server slower than simple shards

I tried to compare the performance of a sharded configuration against a sharded and replicated configuration. The sharded configuration consists of 8 shards each running on three different machines ...
0
votes
0answers
127 views

MongoDB Max Connections

we are using mongodb in our application for catching a lot of the data to reduce load from our main mysql database, for the last 2 3 days we are having an issue where the mongodb will hit the limit ...
0
votes
0answers
110 views

MongoDB Sharding Issue

I made some Sharding tests but I always got the same issue. I got 1 config server, 3 shards (mongod) on 3 different servers (500 Go each). When I made an insertion of huge amount of data (1 000 000 ...
0
votes
0answers
45 views

Mongo Cluster - Unresponsive node/primary prevents creation of databases, secondary didn't take over

I have a Mongo cluster with a few shards each backed by replicasets with a primary, a secondary and an arbiter. Today one of the primaries became unresponsive. I logged into it directly and tried a ...
0
votes
0answers
321 views

RockMongo Connection Issue with MongoDB Slave

I have a MongoDB Replication with Master-Slave (not RepliSet) I have configured RockMongo on two servers. But I able to login to master server through rockmongo but when I login to slave with rock ...
0
votes
0answers
188 views

mongodb replication with admin authentication

I have three nodes of mongodb replication set 2 servers have the data and the third is an arbiter 54.83.20.44 : 27017 (primary) 54.197.243.55 : 40000 (secondary) 23.21.148.73 : ...
0
votes
0answers
155 views

Puppet MongoDb enabling authentication and defining password

I'm working on enabling authentication using the puppetlabs mongodb module. As the docs say, to enable authentication, I should add auth => true. But in order for authentication to work, I have to ...
0
votes
0answers
26 views

MySQL version of MongoDB Replica. OR MySQL MongoDB Driver

Not sure if this is the right stack exchange site for this question so if it is can you please advise which one would be best. Is there any way to either: A)Have MySQL run via a dedicated driver / ...
0
votes
0answers
64 views

OpenVPN port mapping + mongoDB

I have a Digital Ocean droplet running CentOS with MongoDB (port 27017) and OpenVPN server, and a Windows client. Problem is I can't connect to the mongo server through my VPN tunnel. Tunnel is ...
0
votes
0answers
309 views

CentOS 6 - Mongodb - Invalid access at address xxxx from thread: initandlisten

For starts I looked everywhere online for this, a lot of people have the problem, no one has a working solution. I've installed mongodb using yum and their instructions provided at ...