Questions tagged [mongodb]

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

Filter by
Sorted by
Tagged with
0
votes
3answers
6k 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 ...
5
votes
5answers
6k 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 ...
0
votes
0answers
14 views

“Attempted to use Snappy compression, but Snappy is not installed” on Ubuntu VPS

I have set up a new VPS via Digital Ocean and have installed MongoDB V4.2.8 on an Ubuntu server 18.04 release as per the official Mongo documentation. I'm using Compass version 1.21.2. I have managed ...
0
votes
0answers
15 views

mongodb high resource usage and configuration hints

I am running a MongoDB instance as a ubuntu service, on a VM with enough resources to handle it with ease, the system is on-premise and not Cloud. I am a newbie with MongoDB and this is a test/dev ...
0
votes
1answer
27 views

init.d kills my mongod process due to respawning

I'm using Ansible to start the mongod service on a Centos 6.8 VM. The task is pretty straightforward: - name: Start mongod service service: state: started name: mongod However the service ...
0
votes
0answers
49 views

How to backup/restore a large MongoDB database?

How can I backup and restore a large mongodb database (500GB) from a server running an older version (v2.6) than the target one (v3.6)?. The downtime is critical. We've tried by making a straight copy ...
0
votes
3answers
2k views

MongoDB setup on NUMA machine

I installed MongoDB 3.6 on my centos 7 machine and in the startup log I see a warning because I am running NUMA hardware: 2018-02-05T00:13:23.889+0100 I CONTROL [initandlisten] ** WARNING: You are ...
0
votes
0answers
27 views

Impossibile to replicate MongoDB

we are trying to move a MongoDB from an AWS VM to an on premise machine. The MongoDB data directory size is over 2.5TB. The idea is to put the on premise VM in replica with the AWS VM. The problem is ...
0
votes
1answer
1k views

When does the replication from primary to secondary happen in mongodb?

I have setup a 3 node replica set. Writing to primary node works but when I read with readPreference=secondary; I get values as null. When I open the local node with robomongo I see that the ...
0
votes
0answers
33 views

In kubernetes, can not connect to another container in SAME pod from time to time

I have a complicated system deployed in k8s, and in one of the pods, there are 2 containers, mongo and metrics. some related info from kubectl -n app_ns describe pod app-mongo is as below(removed some ...
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 ...
1
vote
1answer
1k 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/...
1
vote
1answer
1k views

Mongodump segmentation fault when dumping all dbs

I'm running a mongodb(2.0.4) replicaset with one master and two slaves where one is hidden slave for backup. I'm using http://docs.mongodb.org/manual/core/replica-set-architecture-three-members/ When ...
1
vote
1answer
34 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:...
0
votes
0answers
11 views

How do I get init.d to respawn a crashed process if the lock file exists?

I'm running a mongod process on my Centos 6.8 box, and I want to provide some level of resilience in the event of process death. So I created an entry in my /etc/inittab - md:2345:respawn:/usr/bin/...
0
votes
2answers
6k views

MongoDB secondary replica permanently in not reachable/healthy state

I have a standard 3 node MongoDB replica set: 10.0.2.35 - Primary 10.0.3.169 - Secondary 10.0.1.48 - Secondary I'm currently not able to connect to them as a replica set, I can only connect through ...
1
vote
1answer
1k views

Why mongo pecl module looses its connection after Primary stepDown?

I run an Apache 2.2.22-13 with pecl module "mongo 1.4.4". It connects to a MongoDB 2.4.6 sharded cluster. When a stepDown occurs, the mongo module seems to stay on the mongod node which was the ...
1
vote
0answers
73 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 ...
11
votes
1answer
9k views

“Excess arguments.” while doing “systemd daemon-reload” during MongoDB configuration

I am following the instruction mentioned in : To install and configure the basic elements for MongoDB in Ubuntu. During "Configure MongoDB username and password", on phase 4 "Step 4 - Enable mongodb ...
0
votes
2answers
1k views

How to Change Replica Set Protocol Version in MongoDB.

I'm trying to change Replica Set Protocol to pv1. I have 5 replica set servers Mongo 3.6. I'm using the documentation from here https://docs.mongodb.com/manual/reference/replica-set-protocol-versions/ ...
1
vote
1answer
1k views

Mongodb export to SQL tool

Starting with monbodb. Administrators are asking a "classical" db for reporting stuff. Does it exist a tool to export documents to a relational db? Like having a flattening option or the automatic ...
0
votes
1answer
2k views

“not authorized” with auth turned on in Mongo

I am following the directions here to try and install Mongo 3.6 w/ authentication turned on. I have added a "root" user and I am able to login using Mongo shell and I added a application user as well,...
1
vote
1answer
52 views

mongodb cannot start “unknown storage engine”

Note: I checked Mongodb doesn't start on reboot and is not the same problem, I had a rocket chat server, rebooted the server and now mongod cannot start. These are the messages: 2020-06-01T21:...
8
votes
3answers
12k 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
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: ...
1
vote
1answer
1k views

Issue with permissions on MongoDB data directory

TL;DR: MongoDB complains about permissions on a directory where everything is allowed. I am running MongoDB v2.4.10 on Debian Jessie ARM. I'd like to store data on an external drive, which is ...
0
votes
0answers
23 views

Optimisation mongodb database

At the moment I have a mongo database with three instances one master and two slaves. At the moment the database is on kubernetes hosted by aws. The maximum cpu cores is 4 and from time to time when ...
0
votes
0answers
12 views

Is there any way I can offload a particular mongo collection to sumologic?

I wanted to offload a collection called logs.test to sumologic. I don't want to export all the collections in my database just wanted to offload "logs.test" is that possible? I thought if exporting ...
1
vote
1answer
2k views

MongoDB high CPU usage

Running MongoDB 2.4.11 on Ubuntu 14.04.1 LTS In top, this mongod thread is constantly using ~195% CPU: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 24524 mongodb 20 ...
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 ...
0
votes
0answers
7 views

Persistent storage failure or Authorization Failure after Mongocontainer restart using docker-compose rebuild after Machine restart

I have set up a mongo container connected to a nodejs app. First I do docker-compose up --build where I start mongo as a service without auth, i.e commented out. Then I login to the mongo terminal ...
0
votes
0answers
21 views

Run MongoDB with Unbreakable Enterprise Kernel (UEK) on Oracle Linux

I am running MongoDB v3.4.9 on Oracle Linux Server release 7.7 with the Unbreakable Enterprise Kernel (UEK) 4.14.35-1902.3.2.el7uek.x86_64 for testing purpose. UEK is not official supported on Oracle ...
1
vote
1answer
2k 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 ...
6
votes
1answer
8k 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 ...
0
votes
0answers
52 views

Moving Rocket.Chat data to different hard drive

I have Rocket.Chat running on Ubuntu 18.04.4 LTS through Snap. I would like to move the data (but not the entire snap) to another hard drive. So far this is what I have tried: Backup Rocket.Chat ...
1
vote
1answer
2k 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 ...
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/...
0
votes
0answers
20 views

MongoDB backup and restore process

I have a MongoDB cluster which is working in active passive mode and this setup is on premise. I am working on a backup and restore strategy of the whole setup. Can anyone please let me know what ...
0
votes
1answer
170 views

Unable to connect to Mongo Community server on OS X Catalina

After migrating my old MacBook Pro to a new machine via the Migration Assistant, I am unable to connect to MongoDB. I re-installed it via Homebrew, and when I run: brew services start mongodb-...
0
votes
0answers
29 views

For authentication of MongoDB: How to limit the number of login attempts? How to set session timeout?

I am designing security policies for databases. Is there any way to limit the number of login attempts to protect DB from brute-force attacks? For example, user have to wait for 2 minutes after 3 ...
0
votes
1answer
1k views

How to reset Ubiquiti UniFi Controller admin password?

I need to get into a Ubiquiti UniFi Controller system that was setup by one of my predecessors. The admin password has long since been lost and the company now uses a different Wi-Fi system at the ...
0
votes
0answers
32 views

GCP mongodb external ip connection issue

I have a spring MVC application and I am connecting it to MongoDB cluster This is in the application.properties file mongodb.url=mongodb://userName:Password@xx.xx.x.xx:27017,xx.xx.x.xx:27017,xx.xx.x....
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 ...
0
votes
1answer
1k views

Mongod service running but not connecting in browser

Background: Using vagrant virtual box running Ubuntu on a macbook Having installed the mongoid gem in a new rails application I am given localhost:27017 as the port that the mongodb server is ...
0
votes
1answer
1k views

Connect MongoDB Compas to GCP Ubuntu VM

I am a little lost on how should I host MongoDB on Ubuntu VM. I barely worked with Ubuntu before so I struggle to understand a lot of aspects. I followed guide: https://docs.mongodb.com/tutorials/...
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 --...
2
votes
0answers
34 views

How do I create a web dev environment using a linux command line without a GUI/OS? [duplicate]

Sorry if this is a stupid question or it doesn't make sense. Basically what I'm trying to do is put my local web development project (using Nodejs/Express and MongoDB) onto a server that only ...
0
votes
1answer
24 views

Upgrade mongodb replicaset 3.2 to 3.6 on live servers

I want to upgrade mongodb version(3.2 to 3.6) on prd environment W/O downtime. We have one primary node, one secondary node and one arbitrary. We are using ubuntu 16.04. So please guide me how can I ...
0
votes
1answer
74 views

directoryperDB is not working under WiredTiger storage Engine

When i enable the directoryperdb option in the mongo.conf file, mongodb server service doesn't start. 2020-03-16T15:37:55.300+0530 I CONTROL [main] Automatically disabling TLS 1.0, to force-enable ...
0
votes
0answers
24 views

Push mongodb collections to Amazon redshift

I have got a mongodb database. I need to stream or push data from mongodb to Amazon redshift as and when data arrives in mongodb. Is there any solution for this..? Can this be implemented using Apache ...

1
2 3 4 5
17