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

learn more… | top users | synonyms (1)

1
vote
0answers
122 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
483 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 ...
0
votes
2answers
921 views

Apache fails to start after PHP upgrade on CentOS 6.5 x64

I have a developer server with CentOS 6.5 and PHP 5.5.11 (latest from REMI repos). Today I did: yum --enablerepo=remi,remi-php55 update That updated Apache and some other libraries like Mongo for ...
0
votes
2answers
223 views

Did my mongoDB server crash because the database is too large?

I've had no problems with my Mongo set up for a couple of years until it shutdown unexpectedly yesterday. I found no error in the logs from around the time it stopped. It seems like a neat ...
2
votes
1answer
193 views

iptables blocking local connection to mongodb

I have a VM (Ubuntu 12.04.4 LTS) with mongodb (2.0.4) that I want to restrict with iptables to only accepting SSH (in/out) and nothing else. This is how my setup script looks like to setup the rules: ...
1
vote
3answers
628 views

Copy mongodb collection between two servers AND different mongo versions …

I have a collection in a mongoDB, on a project that runs locally, and have to copy the collection to the dev server. Can you tell me how to do this, considering that: The local machine (the source) ...
2
votes
1answer
119 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 ...
0
votes
0answers
88 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 ...
2
votes
3answers
649 views

MongoDB and ZFS bad performance: disk always busy with reads while doing only writes

I have huge performance issues using MongoDB (i believe it is mmapped DB) with ZFSonlinux. Our Mongodb is almost only writes. On replicas without ZFS, disk is completely busy for ~5s spikes, when app ...
0
votes
1answer
36 views

Strange Mongo DB writelock values in logfile

I'm getting some strange writelock values in my Mongo DB logfile: Wed Mar 19 10:03:47.007 [snapshotthread] cpu: elapsed:4010 writelock: 0% Wed Mar 19 10:03:51.007 [snapshotthread] cpu: elapsed:4000 ...
1
vote
1answer
415 views

mongodb cannot connect over network

Im trying to connect to a mongodb server over a network but I cant get the connection to work. I can connect like so on the local computer on which the server is running: mongo localhost:27027 But ...
1
vote
0answers
171 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
1answer
35 views

How do I accept two different types of network connections using iptables

I need to setup iptables for a mongodb database server, such that it allows only two types of INPUT connections: one connection to port 27017, monogdb's default port, from our main web-app one ssh ...
1
vote
1answer
81 views

MongoDB starting gets terminating

I am installing the mongodb with the default configurations, and that gets started normally, but when I changed the dbpath value to point to different position it started giving me the exceptions, can ...
0
votes
1answer
81 views

When does the replication from primary to secondary happen in mongodb?

I have setup a 3 node replica set. Writing to primary node works but when I read with readPreference=secondary; I get values as null. When I open the local node with robomongo I see that the ...
2
votes
1answer
97 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 ...
0
votes
1answer
80 views

MongoDB: big size of mapped memory

I'm not expert in mongo memory management but some things confuse me. I use Mongo 2.4.9 and I have a replica sets for three nodes. I have performed db.serverStatus().mem and see that size of mapped is ...
-3
votes
1answer
211 views

Adding more space to VirtualBox HD (Centos Host) does not add space in the folder [closed]

I am running Centos 6.5 guest on Windows 7 Pro host (VirtualBox v4.3.6) - all 64 bit. I am trying to increase the size of Centos virtual disk (which is currently about 15G) to 90G. I did run the ...
1
vote
1answer
197 views

Why is mongod not using all available RAM?

We have an mongod instance runnning on a VM, and it doesn't seem to be using all available memory. It's page-faulting significantly more than usual, and the system's performance has been significantly ...
0
votes
1answer
43 views

MongoDB sharding authentication with multiple keyFile's

I have configured MongoDB with sharding something like below. Shard1 Shard2 Shard3 -------- -------- ------- rs1(Pri) rs1(Sec) rs1(Sec) rs2(Sec) rs2(Pri) rs2(Sec) rs3(Sec) ...
0
votes
1answer
198 views

Mongodb monitoring using mikoomi plugin of zabbix is not rendering any data

I'm using mikoomi plugin https://code.google.com/p/mikoomi/wiki/03 to monitor mongo db, in that there is shell script which is calling php script and returning 0 to zabbix and parallely writing a data ...
3
votes
1answer
1k views

php-devel failed on installation red-hat 6

I'm trying to install mongodb driver with pecl and for this i need phpize (php-devel). Does anyone know how can i resolve this issue or there is another way to install php-mongodb driver? I try as ...
1
vote
2answers
141 views

Load Balancing MongoDB

I have an application written in java with tomcat that I am ready to start scaling for production. As I understand it, i shouldn't use a load balancer with mongodb router instances as it can cause ...
3
votes
2answers
176 views

Mongo Sharding - Config Server and Mongo Authentication

I am needing to shard a database fairly soon, and am unclear on what the best practice is for enabling authentication on the mongos and config servers. I would like to have everything be secured with ...
0
votes
0answers
25 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
1answer
240 views

MongoDB Failover Replica Set

I'm newbie to mongodb replica sets and sharding.. I am setting up IP Failover on two servers. I set up DNS failover at AWS route 53 to switch the IP address in case the main server goes down. I also ...
0
votes
0answers
49 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 ...
1
vote
1answer
132 views

How can I exclude a package from yum-cron but not from manual “yum upgrade”?

I've just gone through my servers and installed yum-cron (and then enabled with chkconfig yum-cron on since that doesn't seem to happen automatically). Now I realise that I'm running a MongoDB ...
0
votes
0answers
59 views

Starting MongoDB with SystemD by listening to a Socket

I'd like to run MongoDB on my development machine whenever the Port 27017 requested but not before that. I already got parts of the file /usr/lib/systemd/system/mongodb.socket but now I'm stuck what ...
0
votes
1answer
26 views

Mongodb stats explanation

When doing a mongotop, on my mongo inst6allation I get the following data mydb_live.my_logs 10303ms 10302ms 1ms So the total is 10303ms, the read is 10302ms and the write is 1ms. ...
2
votes
2answers
200 views

how can I install MongoDB as a service in centOS

I'm new to Linux, I followed this tutorial provided by the official 10gen documentation, as far I see I'm able to run mongoDB db in the console but I'd like to run it as a service. this is what I got ...
0
votes
1answer
423 views

MongoDB: unable to load driver on PHP [closed]

I'm trying to make mongo-php-driver work with PHP 5.5.7 on OS X 10.9.1 but I came to a dead end, I've tried everything I could possibly find and nothing works... Everything compiles just fine, but ...
-1
votes
1answer
966 views

Mongodb can' t be restarted (child process failed, exited with error number 45)

I received an error "child process failed, exited with error number 45" after typing "service mongod restart" and i checked the /var/log/mongo/mongo.log as below: SERVER RESTARTED Sat Dec 21 ...
1
vote
1answer
185 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 ...
0
votes
0answers
100 views

Insert if upstream_cache_status

I have a piece of lua code that should be working only when response from upstream_cache_status is HIT, however I don't seem to be able to do this. I'm using nginx and a mongodb server here. I'm ...
2
votes
1answer
22 views

Create MMS alert to monitor primary availability

Is there a way in MMS to define an alert to monitor the case where none of the servers in a cluster get promoted to primary? I tried defining the following alert: 'Alert if host of type primary is ...
1
vote
1answer
399 views

mongo server does not start on Centos 6.4

I have a mongo server installed and when I try to start it with, always fail. OS: CentOS release 6.4 x86_64 Mongo version: 2.4.8 I have other machines working with the same versión and puppetized ...
0
votes
1answer
204 views

Cannot install in mongodb in ubuntu 13.04

I follow the instruction provided by mongodb. But seems package mongodb-10gen isn't existed. vagrant@m1:~$ sudo apt-get install -y mongodb-10gen Reading package lists... Done Building dependency ...
4
votes
1answer
235 views

How to calculate the required EBS PIOPS for our mongo server?

We want to use provisioned IOPS EBS volume on our mongo machines, I'm a bit confused on how to calculate the number of provisioned IOPS to use. Currently we're getting an average of 25 IOPS (read + ...
1
vote
1answer
181 views

Is it safe to snapshot an mdadm RAID with only xfs_freeze?

Is mdadm guaranteed (and trusted via experience) to be safe for taking snapshots with only an xfs_freeze? I have encountered vague warnings about mdadm still working in the background, thus making ...
0
votes
2answers
95 views

mongod non-mapped virtual memory doubled suddenly, has not changed since

The non-mapped virtual memory stat for our mongo primary has always been constant, and we never gave it much thought before yesterday. Yesterday, a series of accidental full-collection scans from a ...
2
votes
1answer
39 views

How do I find mongodb write statistics per database?

How do I get write stats per database and per collection? mongostat seems to only provide write info globally for the server. Is there a way to get more granular detail about i/o?
0
votes
1answer
61 views

Spawning mongod process using sudo yields two separate mongod processes

I am seeing something weird that I can not figure out: If i run the following command sudo mongod --dbpath /db/database/ --logpath /db/logs/mongodb/mongodb.log & and then do a ps aux I see ...
1
vote
1answer
65 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 ...
0
votes
1answer
31 views

Login authentication vanished from MongoDB install

A few months ago I enabled password protection on my MongoDB install. Today I ran the Mongo client and forgot to use my login details. Instead of rejecting nearly everything I try to do from the ...
0
votes
1answer
144 views

mongodb : Can create new thread on FreeBSD?

We experienced some strange thing in our mongodb gridfs platform. The platform actually is a bi Xeon E5 (bi quad core) with 128GB of memory, running on freebsd 9 with a zfs pool dedicated for mongodb. ...
1
vote
1answer
125 views

Changing MongoDB Oplog size

while loading data to mongodb, I keep getting "error RS102 too stale to catch up"... After research I found that my default oplog size for a 32 bit linux machine is too small. I would like it to be ...
0
votes
0answers
56 views

Setting up MongoDB sharding

Would anyone know how to setup MongoDb with 2 sharding clusters? So it must include shard keys, config servers etc.. All using configuration management tool saltstack
0
votes
1answer
203 views

How would I template an SLS using saltstack

I'm trying to do proof of concept with Mongodb(sharding) and Id like to run a command every time I spin up a new cluster without having to add lines in all my sls files. My current init is as follows: ...
0
votes
1answer
812 views

Wrong php_sufix config variable in MAMP [closed]

I've just installed MAMP and I'm trying to install the Mongo extension via pecl but I'm getting an error: jonesy:bin Billy$ sudo pecl install mongo downloading mongo-1.4.4.tgz ... Starting to ...