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

learn more… | top users | synonyms (1)

-1
votes
1answer
20 views

MongoDB active status failed

My server running on Nginx Ubuntu 16.04 LTS. I want to install mongoDB to use it with node.js then I followed this tutorial but when I write the status command I have this. ● mongodb.service - High-...
0
votes
0answers
7 views

How to have separate mongodb log files

We are using mongodb version 3 in a AWS environment with Linux AMIs. I suspect this is not possible from reading the mongodb documentation. I would like to log all slow queries to its own log file. ...
0
votes
1answer
16 views

MongoDB foreground index build blocks secondary reads for all databases

Today one of the users of our MongoDB 3.0.12 sharded cluster has (wrongly) issued a foreground index build on its own database (pride_archive_ms), after the operation completed on the primary member ...
0
votes
0answers
20 views

Mongodb slower on more powerful server. How can that be?

I wanted to migrate our servers today, but I couldn't since on the new (larger) server MongoDB was very slow for a specific collection. First of all, here are the specs. Old server: Digital Ocean 80$...
2
votes
1answer
2k 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: ...
0
votes
1answer
10 views

This is a mongo 3.2.8, on centos7. Issue is how to run mongo as mongod user, not root

I have been logging in as root , and running mongo as sudo mongod --storageEngine wiredTiger --dbpath /var/lib/mongo -f /etc/mongod.conf --fork I am trying to run mongod as the "mongod" user, so that ...
1
vote
1answer
247 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 ...
1
vote
2answers
1k 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 ...
1
vote
3answers
28 views

Run a shell command on ubuntu/nginx boot

I have a ubuntu 13 running nginx and node.js, to start mongodb I need to run on command line: mongod --config /etc/mongodb.conf Problem is that when I exit terminal, it stops, how can I add this to ...
2
votes
2answers
318 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 ...
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 ...
1
vote
2answers
36 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 ...
-1
votes
1answer
19 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
vote
2answers
103 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> ...
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
1k views

No package mongodb-org available

I am attempting to install MongoDB on CentOS 6.5. I believe I am following the instructions precisely step-by-step, but continue to get the error No package mongodb-org available after issuing the ...
6
votes
5answers
8k 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
0answers
9 views

mongo db balancer when there is 1,76,000 entries in tags collection of config database?

I am trying tag based sharding in mongo db with tag ranges .Since i do have a range for my shard key .I came up with an idea of adding range for each value of shard key. ex: sh.addTagRange( "db....
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
52 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 = ...
0
votes
1answer
61 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
675 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
33 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 ...
0
votes
1answer
38 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
54 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
17 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
36 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
50 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 ...
0
votes
1answer
53 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
17 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
170 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
48 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
132 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
29 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
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
42 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 ...
0
votes
0answers
47 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
74 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
19 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
328 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
5 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
246 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
120 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
19 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 ...