Questions tagged [mongodb]

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

256 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
0answers
4k 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 the ...
4
votes
1answer
428 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
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
569 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
135 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 ...
3
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
0answers
45 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
35 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
313 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
100 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
3k 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 ...
2
votes
1answer
343 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
115 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
568 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
162 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
129 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
225 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
133 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
745 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
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
658 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
374 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
634 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
2k 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
236 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
1k 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
42 views

Cant connect to mongo db

Any idea why I am not able to connect to the mongo database? I just installed it on a new debian following this https://linuxize.com/post/how-to-install-mongodb-on-debian-9/. Mongo startup logs: https:...
1
vote
0answers
75 views

Adding Mongo WiredTiger node to MMAPv1 replica set leads to “No keys found for HMAC”

I have a 3-node Replica Set (primary + 2 secondaries). They are all running Mongo 4.0.18 using the MMAPv1 engine. I am trying to switch the replica set over to use WiredTiger. I read through the ...
1
vote
0answers
16 views

MongoDB connection initialisation delay on certain Windows 10 devices

Ref: https://stackoverflow.com/questions/58856620/mongodb-connection-initialisation-delay-on-certain-windows-10-devices System info OS Name: Microsoft Windows 10 Enterprise OS Version: 10.0.17134 N/...
1
vote
1answer
1k views

How to connect to remote mongoDB via ssh (via Sacred)? connection refused

I have two computers: Ubuntu1 and Ubuntu2. Ubuntu1 runs MongoDB with database Sacred3. I want to run connect from U2 to U1 via ssh and store there my experiment results. What I tried and failed: 1. ...
1
vote
0answers
1k views

Installing repos with https breaks yum on CentOS

We have a very similar problem to https://stackoverflow.com/questions/48320850/installing-epel-repository-on-centos-7-breaks-yum-functionality/58177576#58177576. I've seen several pleas for help as I'...
1
vote
1answer
299 views

monitoring mongodb with monit

I cannot get the most basic script working on monitoring mongodb on ubuntu 16.04 monit 5.16 check process mongod with pidfile /var/run/mongod.pid group database start program = "/usr/sbin/service ...
1
vote
0answers
2k views

Restore mongoDB by --repair and WiredTiger

We accidentally deleted the directory rm -rf /data/db which was our MongoDB path, and thanks to extundelete, we recovered it and got the directory /data/db. Here are our files in the directory, and ...
1
vote
1answer
305 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
84 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
47 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
883 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
327 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
3k 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
187 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
124 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
892 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
322 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
728 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
649 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
106 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
685 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
2 3 4 5 6