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

learn more… | top users | synonyms (1)

-1
votes
1answer
21 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
11 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
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$...
0
votes
1answer
11 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 ...
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 ...
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 ...
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....
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
62 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/...
0
votes
0answers
34 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
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 ...
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
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
18 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
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
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
1answer
54 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 ...
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
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://...
3
votes
1answer
171 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
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
2answers
104 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> ...
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
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 ...
1
vote
1answer
249 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
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(...
0
votes
1answer
331 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
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=${...
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 ...
1
vote
0answers
39 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
103 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
74 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 ...
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 ...
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
62 views

Mongodb, we can't go over 100 insert/sec on 200iops HDD

Thanks in advance for your help, we get a strange behaviour in mongodb. So we have a cluster of 20 shards, each composed of 1 master and 2 slaves. This database has a heavy load of write only. However ...
3
votes
0answers
437 views

Using haproxy in tcp mode to proxy mongo server causes mongo clients to fail about 25% of the time

I am trying to use haproxy in tcp mode in front of a mongo server. On the haproxy machine I have a mongo client to test with. When connecting from the haproxy machine directly to the mongo server ...
2
votes
1answer
117 views

MongoDB sharding: mongos and config servers together?

We want to create a MongoDB shard (v. 2.4). The official documentation recommends to have 3 config servers. However, the policies of our company won't allow us to get 3 extra servers for this purpose....
0
votes
1answer
45 views

mongodb - authentication failure on phpmongodb with username

I have a problem to authenticating to mongodb. The system is ubuntu 14.04 LTS. I can connect locally: $ mongo mytestdb -u mongotest -p MYPASSWORD MongoDB shell version: 3.2.3 connecting to: mytestdb ...
0
votes
0answers
22 views

MONGO - mongod - no connection to database [duplicate]

i have an testserver running under ubuntu 14.04 with public ip address. On this i have plesk 12.5 and mongodb 3.2. For administration of mongo i installed phpmongodb. Then created an database, an ...
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 ...
0
votes
0answers
22 views

Mongodb sharding with differently specc'd hardware questions

I'm interested in implementing a sharding setup as cheaply as I can manage for an application that doesn't have much stored at the moment but could grow in future. I wonder what difference it would ...
0
votes
1answer
46 views

chef common recipe multiple roles

i have created a mongodb chef recipe, and i am overriding the default attributes on the recipe from the role. name 'mongo_datanode_jackey' description 'this module is currently under testing...' ...
1
vote
1answer
151 views

Cannot connect to mongodb instance on Azure

I have setup a mongodb server on Azure (on Ubuntu 15.04). The instance works and I can connect to mongodb when ssh'd into the machine by simply using 'mongo'. However, when I try to connect from my ...
0
votes
1answer
47 views

Taring mongodump database produce different checksum

(I am french so sorry for bad english) I am trying to backup my mongo database and check for changes with a sha1 checksum. The problem is that the checksum is not the same. $ mongodump --quiet --db ...