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

learn more… | top users | synonyms (1)

2
votes
1answer
4k views

How exactly do I install MongoDB 2.4, instead of the latest version?

I've read the instructions on installing older versions but it appears that 2.4 is no longer available in the repos? aptitude -y install mongodb-org-server=2.4 Unable to find a version "2.4" for the ...
0
votes
1answer
33 views

random “MongoError: not authorized on XXX to execute command {YYY}” with mongo 3.2

since very recently I have random errors like these: 2016-06-06T18:17:55.386Z pid:2458 worker:3 MongoError: not authorized on db to execute command {...someQuery...} 2016-06-06T18:17:55.386Z pid:...
0
votes
0answers
6 views

OSX gets no response for chunked (MongoDB/GridFS) file sent by Express/Node

I have a server running NodeJS/Express which streams a file from GridFS via HTTP. The following code does this through a route in Express: router.get('/', function(req, res, next) { var stream = ...
2
votes
2answers
299 views

Monitoring MongoDB 3 using StackDriver in GCE

Has anyone successfully managed to monitor a MongoDB 3 cluster (or standalone db) with StackDriver in GCE ? I've setup a MongoDB 3.0.6 cluster in GCE (replica set with 2 replica and 1 arbiter) I'm ...
0
votes
1answer
27 views

Unable to disable transparent_hugepage/defrag to never in centOS 7.2

I am following this link, https://docs.mongodb.com/v3.0/tutorial/transparent-huge-pages/ I am getting the output cat /sys/kernel/mm/transparent_hugepage/enabled always madvise [never] cat /sys/...
2
votes
1answer
1k views

Enabling WiredTiger engine in MongoDB 3

I've problem with enabling WiredTiger engine by setings in mongod.conf I'm using Centos 7, and this is my config #/etc/mongod.conf storage: wiredTiger: engineConfig: ...
2
votes
1answer
658 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
22 views

Error while creating a mongobackup using MongoDump

I'm using the following command line: /global/instance/mongodb-linux-x86_64-enterprise-suse11-2.6.10/bin/mongodump --host localhost:27017 --authenticationDatabase admin --username admin --password ...
-1
votes
0answers
15 views

MongoDB, How can I migrate database to new cluster with higher version without an outage

We are having our mongodb cluster at AWS and our production DB mongo is very old - we are still using version 2.6 then latest version at the moment is 3.2.7. We need to upgrade mongodb binaries to the ...
-1
votes
0answers
28 views

Replication of MYSQL to MongoDB

I have one doubt. Is it possible to suggest some steps? I have my database in MongoDB at digital ocean. Planning to incorporate Opencart solution. OpenCart solution doesn't support NOSQL. Option ...
1
vote
1answer
1k 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 ...
2
votes
1answer
5k 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 ...
0
votes
1answer
32 views

mongodb logging entire document occasionally even with verbosity lowest

We are using mongodb version 3 in a AWS environment with Linux AMIs. Initially mongo was logging the entire document. We then lowered the verbosity in the yaml. That seemed to make most (99%) of the ...
0
votes
0answers
27 views

MongoDB won't keep running in a Docker container

I want to set up a MongoDB Docker container which would work based on a configuration file I specify. Here it is: storage: dbPath: /data/db/mongodb journal: enabled: true systemLog: ...
0
votes
0answers
9 views

How to get connect to MongoDB in Java without specifying it database name in the URL?

I am using the following mongodb driver. <dependency> <groupId>org.mongodb</groupId> <artifactId>mongo-java-driver</artifactId> <version>3.0.2</version>...
0
votes
0answers
23 views

Cannot start mongo - Mongo killed

I tried to migrate my Mongo installation from 14.04 to 16.04 using a new LXD Container. I used the previous configuration file that can be found below. mongod.cnf # mongod.conf # for ...
1
vote
1answer
35 views

OpenShift MongoDB ECONNREFUSED

When attempting to connect to the mongodb-2.4 cartridge i keep getting the following ==> app-root/logs/nodejs.log <== Error: connect ECONNREFUSED 127.0.0.1:27017 at Object.exports....
0
votes
0answers
40 views

How to find which db/collection/query triggers disk read?

We're running a MongoDB 3.0 server with multiple users accessing it and we're experiencing very frequent disk reads by mongod process utilizing our SSD drives to 100% During these peaks the page ...
1
vote
1answer
24 views

Is there any simple way to see which mongodb indexes are being used?

We've accumulated a large number of indexes on one of our mongodb collections, and it would be good to remove some of these if possible. However, it's quite difficult to know which indexes are in ...
0
votes
1answer
46 views

is it safe to create a snapshot of a volume of a running ec2 instance

I'm running a MongoDB Cluster on 3 Instances on AWS Each instance has 2 EBS attached to it - / [8GB] - /data [50GB] To backup a cluster MongoDB recommends to create a snapshot of the /data driver ...
0
votes
1answer
16 views

mongodb folder size is very big

I installed a mongodb on a Debian Jessie. After some inserts (<100) I checked the size of the folder /var/lib/mongodb/ and the content of the folder is 3.3 GB high. Is this normal? The hard disk ...
3
votes
1answer
124 views

Install MongoDB extension on a specific PHP version

I have a Debian web server on which I installed Apache/Mysql/PHP5 around ISPConfig 3. I manually installed an additionnal PHP version (PHP 7.0.5) in order to have one website on PHP 5, and one website ...
0
votes
0answers
34 views

Unable to add a mongod server in local network as shard

I'm trying to build a small cluster using mongodb sharding. In node1 and node2, mongod is started. In node1, config server and mongos are started. All listening 0.0.0.0 with exclusively allocated ...
0
votes
0answers
122 views

MongoDB high page faults every 15 minutes, delayed readers

We have a relatively small MongoDB production replicaset. We do about 100 operations per second -- balanced reads and writes. Every 15 minutes or so we see a spike in response time on reads, and in ...
0
votes
0answers
24 views

How to create a pem certificate for a mongo server that is accessed from different domains

I have a mongo server on aws. The server has both internal and external addresses. I enabled ssl on the server and create a CA and a mongo server certificate and a client side certificate. https://...
0
votes
1answer
37 views

Create a new user for MongoDB inside Docker

I'm using the default MongoDB Docker image and I'm trying to create a new user for the database. I'm currently trying to do it this way: FROM docker.io/mongo:3.2 MAINTAINER <alexandernst> ...
0
votes
1answer
23 views

Mongodb sharded cluster architecture

I have a mongodb cluster on aws. In order to reduce network latency I want to have multiple shards in different regions. In each region there will be the application nodes that connect to the ...
5
votes
4answers
3k 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 ...
1
vote
1answer
35 views

How to preform a core dump on MongoDB

I am in the process of investigating a potential memory leak within MongoDB, last night I experienced an issue where the resident memory in use, had an unexpect climb to +10GB. I am trying to preform ...
1
vote
0answers
161 views

“MongoError write EPIPE” in Parse-Server Installation

I'm helping a friend with migrating a Parse app to a dedicated server as opposed to a hosting provider, and I've gotten stuck trying to resolve an error that I THINK is happening in the Parse Server ...
0
votes
0answers
32 views

MongoDB or mongoclient not closing connections

I'm having an issue with our mongodb server having too many connections open. We have tracked down the problem to be related to the incoming connections from the vhost with the php server. sudo lsof ...
0
votes
0answers
53 views

No Reachable Server Error when migrate our parse app using mongodb URI

am using mongodb version 3.0.11 on ubuntu server, but when I migrate our existing parse app in aws for production, after installing mongodb on ubuntu server when click on migrate button after changing ...
0
votes
0answers
15 views

rsyslog capturing apacher logs in mongodb

I am trying to send my apache logs to mongodb via rsyslog My rsyslog.conf looks like this: module(load="imuxsock") module(load="imklog") module(load="imfile") module(load="ommongodb") input(...
3
votes
2answers
1k 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
1answer
266 views

SELinux setup for MongoDB

I'm trying to install MongoDB on CentOS 7.2 from the mongodb.org repository. So far so good, but the hoster has created a secondary disk (/mongo) for all the MongoDB data files. This clashes with the ...
0
votes
0answers
3 views

Seamless migrate MongoDB instance to another server,

Currently, my MongoDB server is running at EC2 instance. Due to the budget issue I have to migrate it to another VPS provider. However, the data in the MongoDB instance is changing all the time. ...
1
vote
0answers
33 views

How can I set up mongodb to scale it quickly on AWS

I want to deploy a database using mongodb on AWS, and I think this database will receive a lot of data making necessary to think on the possibility that one server is not enough, so my questions is: ...
0
votes
1answer
238 views

Mongodb + Kerberos BadValue SASL mechanism GSSAPI is not supported

I am trying to run an instance of mongodb with the authentication mechanism GSS-API. This is the command: mongod --dbpath /home/ec2-user/db/node2/data --auth --setParameter authenticationMechanisms=...
0
votes
1answer
116 views

How to allocate more resources to Node.JS process?

I'm not a (very good) back-end developer so understanding processes and memory are a little about my pay grade. I'm currently building an app using the MEAN stack. I have a separate Express server ...
0
votes
0answers
16 views

changing MongoDB process user on Ubuntu

I'm writing an installation/configuration script for MongoDB. I want to change the user account under which mongod will run. Looking at /etc/init/mongod.conf I see this line: DAEMONUSER=${...
4
votes
2answers
8k views

Why after deleting a 110+ GB collection, my /var/lib/mongodb directory still have same size?

I am having some troubles with MongoDB and space usage. In particular, I once used to have a large collection of about 600 million records totaling 110+ GB on disk. Recently I decided to drop it ...
1
vote
2answers
2k views

Rename Mongo Shard

Can I, and if I can, how can I rename a shard in Mongo? Like if I wanted to change the instances of rs0 to rep0 below: mongos> sh.status() --- Sharding Status --- sharding version: { "_id" ...
0
votes
0answers
13 views

error while creating replication sets in mongodb

I have 3 servers with mongodb instances and running in replset mode. I followed this article for deploying MongoDB on Azure and this MongoDB article about replica sets. When i try to add secondary ...
5
votes
3answers
15k views

How to reset MongoDB replica set settings

I want to start over the configurations of replica, is it possible? How to reset it? In group people saying to remove the database content, but are there any work around?
3
votes
2answers
2k views

I need nodejs and mongodb to handle 5000 requests per second

As the title suggested, I need nodejs and mongodb to handle 5000 requests per second. Right off the bat that is. We'll grow to many times that eventually. My initial thoughts are to put each on ...
1
vote
0answers
28 views

Proper way to set limit in mongodb on log files

It more beginner question. I trying to set limit on mongo log file in AWS linux instance. I found some question that was asked here. And tryed to do that as was suggest from someone for mongo 3.0. ...
-1
votes
1answer
79 views

Sending many record on client startup. Nginx 502 bad gateway too many open files

I have nodejs app that sending > 800 mongodb documents on client startup (execute only when a client access my app for the first time). Nginx as reverse proxy in front of node server. App server ...
0
votes
0answers
55 views

MongoDB setup for Rocket.Chat error message

I'm following this tutorial for a Rocket.Chat setup on an Ubuntu 14.04 LTS installation. After installation of Mongod, it says to setup a replica set and gives the instructions to insert the following ...
3
votes
3answers
489 views

MongoDB WiredTiger storage not using two CPU cores

As claimed in WiredTiger storage engine description, it provides an ability of better concurrency due to document-level locking. From this post: WiredTiger scales on modern, multi-CPU ...
1
vote
2answers
939 views

Cannot connect to MongoDB in docker

Using the official mongo image from the docker hub, I run the following command to get it running: docker run --name api -p 127.0.0.1:27017:27017 -p 127.0.0.1:28017:28017 -d mongo Then from another ...