Questions tagged [mongodb]

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

231 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
1answer
7k views

High CPU usage on mongodb server when idle?

I'm 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 ...
4
votes
1answer
368 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 ...
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 ...
4
votes
0answers
4k views

Corrupt WiredTiger MongoDB files

I'm running MongoDB with the WiredTiger engine on an ext4 file system. The last thing that I did was start building an index, but then something came up and I needed to cancel the index build and ...
4
votes
1answer
561 views

mongo and app server cpu

The beginning: We are using uwsgi and I decided to switch our configuration to use more workers/processes. Why: We have been seeing a traffic increase lately and in my tests with apache benchmark, ...
4
votes
1answer
128 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 ...
3
votes
0answers
3k views

mongo clients fail about 25% of the time with “message … is too large”

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
0answers
40 views

Differing “free memory” interpretation on virtualized vs. bare-metal Debian 9

I have the same software suite with roughly similarly sized datasets on two Debian 9 systems, with one big difference: os-1 runs on bare-metal and has better hardware, while os-2 is virtualized ...
2
votes
0answers
19 views

Mongodb use native openssl in centos

I'm new to MongoDB and I'm not sure what I am missing in this. MongoDB advises that as of v4.0, it uses the native OpenSSL libraries; but no matter what, my build or install from the repository, the ...
2
votes
0answers
140 views

MongoDB Very slow queries since yesterday

Since yesterday I am having huge trouble with my MongoDB. I have a 100GB collection with over 50M documents. Making a find on them and a .count() was never an issue until yesterday. Somehow, since ...
2
votes
0answers
62 views

Read/Write Split in Mongodb

We are looking for some load balancing tool which can split read and write load in between replica and master node, I know it can be possible through driver or application level but I would like to do ...
2
votes
1answer
263 views

MongoDB background indexing very slow

I am running MongoDB on an Ubuntu on a single AWS EC2 as m4.2xlarge. The disk is 1280GB io1 22000 IOPS on XFS file system, 73% full (it is only used for MongoDB). The MongoDB server version is 3.4.10. ...
2
votes
1answer
2k views

can't upgrade from mongo 3.4 to 3.6 - Server min and max wire version are incompatible

I have a mongodb 3.4 cluster that I want to upgrade to 3.6. on a test run (virtualbox), I was able to do so, but with the real cluster I'm getting this rs.status() after calling add: ...
2
votes
0answers
78 views

How to use extundelete on AZURE VM?

I have an instance of MongoDB running on an AZURE VM, which gets all data dropped. I was trying to find if some file is still there, by using the below command: $ sudo extundelete --restore-all /dev/...
2
votes
0answers
534 views

Use Kubernetes and MongoDB Cluster (sharded) on premises

Currently I am investigating the use of Kubernetes together with a MongoDB cluster. Scenario: We are planning on creating a sharded Mongo Cluster. We intend to use MongoDB's Ops Manager for the ...
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 ...
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 ...
2
votes
0answers
218 views

MongoDB replication failure

I am trying to debug an odd issue that results in the failure or a replica set secondary becoming out of date and unable to catchup with the primary (running on AWS, AWS linux). The typical ...
2
votes
1answer
131 views

EC2 retirement - Meteor / MongoDB

I am hosting my Meteor Application on an Amazon EC2 instance. Today I got a mail that my instance is scheduled for retirement until the end of month. I don't have any experience with that and what are ...
2
votes
0answers
732 views

adding mongodb authentication breaks connecting via nodejs

I needed to have external access to my mongodb database, so I have removed the bind_ip from the mongod.conf file, and turned on auth. I then added a root user that can access everything, and tried to ...
2
votes
1answer
2k views

mongodb keep looping while trying to sync data

I'm converting my my standalone mongodb into a replica set. I've added one more member (and I want to add two more members later, and to shutdown the primary server). My primary mongodb is running 2....
2
votes
1answer
1k views

Recovering data from MongoDB raw files

We use mongodb for our database and set the replset(two servers), but we mistakenly deleted some raw files that under /path/to/dbdata on both servers. After that, we used extundelete to get back the ...
2
votes
1answer
651 views

MongoDB 100% locked periodically. MMS charts attached

Trying to diagnose what could be causing intermittent lock-up on MongoDB server running behind a Rails application. Hoping that someone might recognise the pattern of peaks and troughs in the charts ...
2
votes
1answer
372 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 database:...
2
votes
1answer
615 views

LVM+MongoDB. Dropping in speed of backup creation

Till recent time we have been making mongo backups archiving LVM snapshot on hidden SECONDARY server with RAID10 on SAS disks. Currently operation on making snapshot from volume with 500 Gb of data ...
2
votes
1answer
1k 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 ...
2
votes
1answer
215 views

Run rc.local only once Mongodb is running in CentOs 7

I have the following script in my rc.local: This runs the services on ports 8080, 8081, 8082, 8083. They are actually node servers that NEED mongod to startup. So, I edited /lib/systemd/system/rc-...
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 --...
1
vote
1answer
114 views

Connect MongoDB to ElasticSearch by MongoConnector in Kubernetes

I have a MongoDB and ElasticSearch cluster which I've run by Kubernetes. I am trying to connect my ElasticSearch to MongoDB on Kubernetes but I can't find any relevant document. Can anyone help me ...
1
vote
0answers
63 views

Automatic DB creation with MongoDB in Kubernetes or OpenShift

I have a MongoDB cluster in Kubernetes, it's pushed to Kube with a StatefulSet type of deployment. That part work's good, I can even create 1 DB with variables starting with that... My question is, ...
1
vote
0answers
42 views

Can MongoDB have both HA and scalability?

I'm designing a system that will have a lot of data, which can be in JSON format easily. The system will do a lot of reading, a lot of writing but very little updating. ACID and relational type joins ...
1
vote
0answers
392 views

running mongodb with ssl and docker secrets docker-compose sample

I'm new to docker. The developers on my work create a docker-compose with mongodb and asp.net core application setup, although its funcional, they didin't setup SSL for the application, mongodb isn't ...
1
vote
0answers
161 views

WiredTiger storage engine cause delay in MongoDB start

I'm testing MongoDB (community edition) upgrade from 2.6 to 3.6 (version 3.6.5 is installed) in my company. It's running on Debian Jessie on AWS EC2. We are experiencing some strange behavior (or ...
1
vote
0answers
1k views

MongoDB: Can I Manually Delete The Collections Inside /var/lib/mongodb Without Breaking Anything?

Due to stupid negligence on my part I forgot to change the MongoDB path. As a result, my collections were stored in /var/lib/mongodb. As I was filling my collections MongoDB hang. Then I realized ...
1
vote
0answers
132 views

How can child processes of mongo can be killed?

I have following mongo process tree in LINUX server. mongod(1168)─┬─{mongod}(1366) ├─{mongod}(1367) ├─{mongod}(1370) ├─{mongod}(1376) ├─{mongod}(1378) ├─{...
1
vote
0answers
108 views

how to connect to mongo replica cluster which is ssl/tls enabled?

I have three mongo instance(Replicaset) with ssl/tls i.e I have 3 pair of key and cert. Which pair should be used in the Node js connection string ? Is there a way to add all 3 key&crt pair. I ...
1
vote
0answers
954 views

mongorestore : don't know what to do with file “/home/path/to/folder/collection1.bson”, skipping

-I'm trying to import a mongodb database - From a mongodb base version 2.4.10 I exported the database with the command: mongodump -d DBNAME -o / path / folder -I tried to import the dump to a ...
1
vote
0answers
467 views

MongoDB shuts down everyday - why and how to fix?

I have a ubuntu 16.04 server on OVH. I run mongod on it like this mongod -f /etc/mongod.conf & It gets down everyday and I am not able to find the reason. I tried checking the logs but it's a ...
1
vote
0answers
175 views

PM2 running but socket.io stops responding at times

I am using a hostgator vps with apache, for backend, I am using node.js and socket.io, it works fine but at times it just stops working. Pm2 is showing it online but it just stops responding. Can ...
1
vote
1answer
1k views

Docker container unable to connect to MongoDB Replica set

I'm using Docker Swarm to create a cluster of web applications and databases. I've four containers running, three of them are a single mongodb replica set and the last is a asp.net core application ...
1
vote
1answer
498 views

MongoDB in container on Mac not binding ports

I am trying to setup a local Mongo instance using Docker for development purposes. I need to turn on authentication, and according to the docs it is possible. The problem is, after I create the ...
1
vote
0answers
484 views

MongoDB systemLog.logRotate doesn't work

I was reading in the docs of Mongo for log file rotation but it doesn't work. It's only writing every thing to one file and it doesn't split up in day files. Anyone know what I am doing wrong? ...
1
vote
1answer
1k views

How to host R-Shiny app with MongoDB on Azure

I want to host an R-shiny app on Windows Server platform on Azure VM and this R-Shiny app will retrieve data from MongoDB. So far: I cannot install R-Shiny server because it doesn't support Windows ...
1
vote
1answer
102 views

Kubernetes: how to deploy new version of container via Deployment keeping mount storage?

I run small Kubernetes cluster in Azure, so can use abstracts provided by Azure (like storage etc). On it, I have a Deployment object defined in a file that includes one pod and several containers in ...
1
vote
0answers
487 views

Why does mongo's rs.status() show secondary as healthy when its offline

I logged into a secondary & did use admin; db.shutdownServer(), then I powered off the whole server with "sudo shutdown". On the primary server I am running rs.status(). For the secondary that is ...
1
vote
0answers
164 views

RestHEART - How to prevent use of server-side Javascript in MongoDB

I am running RESTHeart for REST API access to a MongoDB instance, and I need to deny requests which would cause execution of any server-side Javascript in MongoDB. I cannot disable this feature ...
1
vote
0answers
395 views

MongoDB stalling at 100 writes/s but benchmark says 54000 writes/s

I am running MongoDB (v3.4 Community Edition) on an AWS EC2 m4.large instance. I installed it according to this MongoDB tutorial. I haven't modified any MongoDB config. I haven't configured any ...
1
vote
1answer
44 views

Is there any contraindication for using the same servers for shards and config?

I'm wondering if there's any contraindication for installing on the same server a config instance and a shard instance. for instance we have two shards with 3 replicas each (6 servers), and each one ...
1
vote
0answers
61 views

GKE containers and 3rd part mongoDB service

We want to use Google Container Engine and mLab (mongoDB cluster) service together. Containers have always public IP from node on which they are started, during scaling nodes are added/deleted so IPs ...
1
vote
0answers
3k views

MongoDB connections are failing with “SocketException… SEND_ERROR”

I have a production MongoDB 2.4 that's giving this error in the logs: SocketException handling request, closing client connection: 9001 socket exception [SEND_ERROR] server [127.0.0.1:37934] The ...