Questions tagged [mongodb]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
2k views

MongoDB Active-Active Multiple Datacenters

I am looking for a method to configure MongoDB servers across 2 different datacenters where they remain in an active-active configuration. Site A is the normal Production environment that customers ...
1
vote
0answers
365 views

Traffic to and from mongodb using SSL is still visible in wireshark in plaintext

EDIT: There was nothing wrong. I was an idiot. The below settings are correct. I've set up an instance of mongodb (3.4) on windows, configured like this: net: port: 27017 ssl: mode: ...
4
votes
1answer
127 views

Single SSD on a mongodb node

we are getting started with a mongo cluster. The best practices docs mention that the ideal storage capacity per node is ~5TB. Given we can get ~4TB from a single SSD, we are planning to go with it ...
0
votes
1answer
951 views

MongoDB indexing before adding data

A lot of people are saying do "background indexing" after importing a dump. But what if you don't have a dump? For example, we're spinning up a Docker container with MongoDB on it, and installing it ...
0
votes
1answer
2k views

How to install mongoDB on Fedora

I want to install mongodb on fedora 25, but i get this error : Redirecting to '/usr/bin/dnf install -y mongodb-org' (see 'man yum2dnf') Failed to synchronize cache for repo 'mysql57-community', ...
0
votes
1answer
873 views

What happens if mongo reaches RAM limit?

My mongo instance grew up to the RAM limit I've set to its container. What happens if it eventually reaches the limit? Crash? Performance decline? Or is it just dropping stale indexes?
0
votes
0answers
281 views

Mongodb autostart with linux

I have recently updated mongodb on my AWS linux server with sudo yum install -y mongodb-org The result was that the mongod command would no longer successfully launch the mongodb server, because I ...
4
votes
1answer
366 views

Debugging Node.js disk I/O and CPU spikes

I'm running a Node/Meteor/Mongo app on Ubuntu (on a Digital Ocean 1GB droplet), and I've been seeing some weird disk I/O spikes, which are then followed by CPU spikes: I was wondering: If that ...
7
votes
1answer
3k views

Understanding IXSCAN and COLLSCAN in MongoDB logs

I'm attempting to grep through some Mongo logs in an attempt to find slow operations that I need to optimize. Slow query logging is at the default and is logging operations over 100ms. I think ...
4
votes
0answers
3k views

MongoDB rs.initiate error: replSetInitiate quorum check failed because not all proposed set members responded affirmatively

I have to start my own replica set with internal authentication enabled using X.509 certificates, but I failed. Any advice is welcome. MongoDB 3.2 x64 on Debian 8.2 x64. It is a problem from MongoDB ...
0
votes
1answer
262 views

Can this work as a Containerized Architecture for a Django/NGINX/MongoDB Web App?

I am attempting to build a reliable web App using Django and Nginx. This web app is simple in design, will be built with an MVC styled design, and needs to be secure, yet speedy. The question is ...
0
votes
0answers
74 views

Finding evidence of mongo remote access or collection wiping post-mortem

I had some very unimportant, largely abandoned mongo-based sites running on machine that's typically fairly well locked down, but after migrating them to this machine, the default mongo port was left ...
3
votes
1answer
758 views

Does the MongoDB 3.2 WiredTiger compression include stuff stored in RAM

As I understand it WiredTiger compresses the journal, collections and indexes. Does it also compress them whilst they are stored in RAM? For example if my compresses index use 10 MiB on disk can I ...
0
votes
2answers
6k views

Authentication on dockerized mongodb

I'm using the official mongodb:2.6 docker image. I'm trying to figure out how to enable straightforward authentication using user:password mode. How do I specify mongo must run under authentication? ...
0
votes
1answer
381 views

MongoDB : sharded cluster, add a shard that contains all data

Last year, I set up a set up a mongoDB production cluster. It has a router, 3 config server, and 3 shards (wuth a big database and data spread between them). We wanted to add other shards to form ...
0
votes
1answer
1k views

Mongod stuck in stop/waiting on Ubuntu 14.04

I installed MongoDB on Ubuntu 14.04 as per the documentation. It runs and works fine, except that it mysteriously stops every few hours and requires a manual restart with service mongod restart to get ...
0
votes
1answer
535 views

Creating TTL index on number data type

I am trying to create TTL index to delete documents older than 30 min on "generated" field for below sample document sample document: {"_id" : ObjectId("5850308c077b3d1ccc11cef0"), "generated" : ...
1
vote
1answer
664 views

Authentication fails when connecting to Dockerized instance of MongoDB

I have been having quite a time connecting to a Dockerized instance of MongoDB. I was able to configure a MongoDB container per these instructions on my local development machine, but the same steps ...
0
votes
2answers
2k views

Install specific MongoDB in Ubuntu 16.04

Below installs 2.6.10 mongo version in Ubuntu sudo apt-get install mongodb-server I am looking to get the 2.6.13 version. How to fetch the exact version? Also how to prevent sudo apt-get update/...
1
vote
1answer
2k views

change mongo admin password on an arbiter

I have a mongoDB replicaSet that has 3 DBs - PRIMARY/SECONDARY + Arbiter. All 3 were installed the same manner - meaning they have admin database with a default password. Now - I want to change the ...
0
votes
1answer
1k views

Can't connect to Azure DocumentDB using MongoDB Compass or MongoVUE

I've created a DocumentDB instance on Microsoft Azure, but I'm unable to connect to it from MongoDB Compass (or MongoVUE). In MongoDB Compass, I've entered all of the connection parameters and it is ...
2
votes
2answers
503 views

Mongo Replica Set behind Firewall

Given you run a current version (3.2) of MongoDB as a replica set in your network consisting of 3 nodes: mongo1.local mongo2.local mongoarbiter.local Now those nodes should be available via public ...
0
votes
1answer
2k views

Mongodb suddenly fails with message “No space left on device”

Mongodb fails with message "No space left on device". Mongo log: $ sudo tail -n 5 ./mongodb/mongod.log 2016-11-10T07:19:46.821-0700 E STORAGE [initandlisten] WiredTiger (28) [1478787586:821178][9468:...
2
votes
0answers
143 views

Mongos with --upgrade: I have stopped the balancer but

I have a trouble after switching from Ubuntu 14.x to 16.x. MongoDB processes like configuration servers, arbiter and the main MongoDB server are running well. I can access to my databases with the ...
0
votes
1answer
2k views

Unable to connect to MongoDB running on AWS EC2 instance via SSH

I have an Amazaon AWS EC2 instance running MongoDB as a service which I set up using these instrunctions. I'm able to Putty into my EC2 instance and enter the MongoDB shell by calling mongo --port ...
0
votes
0answers
269 views

MongoDB stops working after some time

I have installed MongoDB 3.2 into my Ubuntu 16.04 server. At the beginning work but after some time it stops working giving this error : E QUERY [thread1] Error : network error while attempting to ...
1
vote
1answer
113 views

mongodb: can client suggest re-election of replica set?

A Mongodb replica set provides automatic fail over. If a primary goes down (ie there is a network problem between the primary and any of the secondary), then a re-election occurs. However, consider ...
1
vote
2answers
2k views

What if all nodes in replica set goes down, except 1 secondary node

What if all nodes in replica set goes down, except 1 secondary node. Unable to do operation with secondary node. Neither it selects itself as primary node.
-2
votes
1answer
1k views

glibc-2.14 conflicts with file from package glibc2.12

Mongo V2.6 is already installed on my server which is probably using glibc-2.12. When I try to install Mongo V3.0.12 it is trying to install glibc-2.14 which it cannot do. How can I have both ...
0
votes
1answer
1k views

Cannot connect to MongoDb over SSL

I am trying to follow these instructions to connect to MongoDB over SSL: https://gist.github.com/leommoore/1e773a7d230ca4bbe1c2 A minor change I made was to use certbot certonly instead of ...
1
vote
2answers
5k views

dpkg: error processing package

Im trying to install mongodbserver on ubuntu 14.04LTS with reference to mongodb docs but getting the dpkg related errors root@c3:~# apt-get install -y mongodb-org Reading package lists... Done ...
2
votes
2answers
783 views

Why is my mongo backup thrice my database size?

I have a mongodb, and there is some data inside. Now much, a bit more then 5GB. > show dbs; local 0.000GB aaaa 0.034GB bbbbb 5.327GB > So I made a backup, using mongodump -h mongo --...
6
votes
1answer
387 views

Does MongoDB need to be restarted to reload a CRL?

I'm running a MongoDB replica set with TLS/SSL. I'm also using a CRL to block revoked certificates for clients. Relevant configuration of a replica set member follows. net: ssl: mode: ...
7
votes
2answers
3k views

How to correctly configure MongoDB to use Letsencrypt SSL on Ubuntu

How do I correctly configure MongoDB to use Letsencrypt SSL on Ubuntu? I have created an SSL certificate using Letsencrypt and combined it via: cat /etc/letsencrypt/live/example.com/fullchain.pem /...
1
vote
1answer
656 views

Can't start mongod service on Ubuntu

I'm running the latest Mongo release build on Ubuntu 16.04. I can run it with this command: mongod --sslMode requireSSL --sslPEMKeyFile /etc/ssl/mongodb.pem but whenever I run it with: sudo ...
2
votes
1answer
287 views

Can I limit the numbers of mongodb files (2gb each)?

I see that my mongodb server is creating files like this: my_db.ns my_db.1 my_db.2 my_db.3 my_db.... my_db.15 for some of my mongod processes stop to 9, but sometime goes up to 13,14,15. and then I ...
3
votes
1answer
2k views

Why would using MongoDB in lieu of etcd as a key value store be a good or bad idea? [closed]

I'd like to get general thoughts from the community as to why MongoDB for key/value would OR would not be a suitable replacement for etcd or other purpose-built key/value store system (consol, ...
0
votes
2answers
1k views

Configuring MongoDB driver on PHP

I have installed LAMPP on Ubuntu 16.04 LTS Server and Mongo DB installed. Now I am trying to install MongoDB driver to PHP. sudo /opt/lampp/bin/pecl install mongo It is throwing me the below showing ...
0
votes
1answer
377 views

Encrypting volumes of a mongo/elasticsearch cluster

I have mongodb and elasticsearch cluster. I want to encrypt the volumes associated with all the instances running in the cluster. If I encrypt only one volume among the cluster than the cluster will ...
2
votes
0answers
123 views

Why is MongoDB replicaset not syncing RBAC $external data in 3.0 to 3.2 upgrade?

I am wondering if anyone has seen an issue upgrading from 3.0.9 to 3.2.8 with the $external user database not getting replicated? I have an existing 3.0.9 replica set environment running with no ...
1
vote
1answer
216 views

Monitoring MongoDB 3.2 using Stackdriver in Google Compute Engine failed silently

I'm having problem monitoring MongoDB 3.2 with Stackdriver as of 28 Aug 2016. There is no mention of mongo whatsoever in /var/log/syslog but if I made a configuration error on the .conf file, it ...
0
votes
1answer
412 views

Why this error when executing MongoDB on Cygwin?

I copied the MongoDB executables1 to my Cygwin's /usr/local/bin directory. However, when I try to execute, I get this opaque error message: $ mongod C:/cygwin/usr/local/bin/mongod.exe: error while ...
0
votes
1answer
546 views

Shinken 2 mongo dashboard

I like to add widgets to my Shinken dashboard. I got a warning: You didn't define a WebUI module for saving user preferences like the MongoDB one. You won't be able to use this page! So I ...
0
votes
1answer
463 views

Warning when start command mongo

My server running on Ubuntu 16.04, Nginx. When I enter the command mongo on my server I have this warning: Server has startup warnings: 2016-07-31T16:59:14.390+0200 I CONTROL [initandlisten] ...
0
votes
1answer
4k 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
1answer
400 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
113 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
258 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
108 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
316 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 ...