Questions tagged [mongodb]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
5 views

MongoDB Agent Fatal log is growing Size Daily

I have Deployed MongoDB Replica Set Cluster on the Cloud Manager and the MongoDB Agents running the Remote Servers. MongoDB Version - 4.4.28 - ent MongoDB Agent version - 13.13.0.8738 So at one point ...
5 votes
5 answers
8k 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 ...
16 votes
1 answer
22k 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 ...
21 votes
6 answers
51k views

Mongodb - proper way to rotate logs

Mongo docs say that I can: use -SIGUSR1 signal and get the old log renamed and current switched use logrotate from OS I want the OS's logrotate ability to zip old files and remove oldest, but see no ...
0 votes
0 answers
48 views

logstash-output-mongodb plugin v 3.1.7 ArgumentError

I recently migrated from mongodb 3.0 to mongodb 6.0 and logstash plugin 3.1.5 was no longer working, I upgraded the plugin to 3.1.7 and I keep getting this error in logstash logs: n] MONGODB | Error ...
0 votes
0 answers
55 views

how to grant network access to mongo atlas to a EKS deployment

problem: I have an app running on a EKS cluster that needs to connect with a mongodb atlas database. I must grant the app running on the EKS cluster network access by entering its IP address. I do not ...
3 votes
1 answer
7k views

MongoDB keeps failing on startup with exit code, status=100

Everytime I start MongoDB, it runs for about 1 second before crashing with the following error: Active: failed (Result: exit-code) since Thu 2020-03-12 09:47:17 EDT; 6s ago Docs: https://docs.mongodb....
0 votes
0 answers
10 views

How to fetch all files totally from MonGo DB using query without any filtering in NestJs

Tried with different codes , but not able to fetch all the files from MongoDB
3 votes
1 answer
1k views

Why does the official docker image for mongo not use XFS, and then warn about not using it?

According to the official docs, MongoDB with WiredTiger is supposed to be run on Linux with the XFS filesystem. Yet, the official docker image for mongo uses ext4, which means that we get a warning ...
0 votes
1 answer
588 views

SELinux is preventing /usr/bin/mongod from search access

My question is similar to others, such as SELinux preventing mongod search access. In this case, I installed snapd for a reason entirely unrelated to Mongodb. That was about a week ago (2/5/2023). ...
0 votes
0 answers
24 views

Cannot choose to do billing on org level showing "Only projects are selectable" warning message for GCP billing

My clients have an org setup with a folder and multiple projects in it. They want to subscribe to MongoDB Atlas via market place for their projects. When choosing the resource to tie to the ...
3 votes
2 answers
3k views

SELinux preventing mongod search access

I noticed I am getting some SELinux errors when running mongod for the UniFi controller program. Namely, I am getting: SELinux is preventing /usr/bin/mongod from search access on the directory /. ...
0 votes
1 answer
125 views

Localhost Connection Throttled at 1Gbps

I am using mongorestore to restore a db to a localhost server on a Windows VM The connection uses mongodb://localhost:27017 Resource Monitor shows that the speed of the restore is limited at 1Gbps and ...
0 votes
0 answers
73 views

I have enabled authentication and still can connect without username and password to MongoDB

I have the following in my /etc/mongod.conf: # set parameter options setParameter: enableLocalhostAuthBypass: false # security options security: authorization: enabled #keyFile: replace_me I ...
0 votes
0 answers
19 views

Mongodb example non working in their docs

How do I run this example? It completely not working. The syntax is wrong I think, at least when I paste it into my IDE, it's all red.
0 votes
0 answers
37 views

Why no operations on subtrees are allowed in "Child references"

Why no operations on subtrees are allowed in Model Tree Structures with Child References?
0 votes
1 answer
127 views

MongoDB production client certificates

I'm moving a mongodb server to production on my Ubuntu machine. I got an ssl certificate signed by a third party and installed it on the server. Clients are able to connect to it using their system's ...
0 votes
1 answer
283 views

How to fully remove a mongoDB replicaset?

I have a mongoDB cluster with 4 different replica set. Lately 2 machines crashed in an unrecoverable way, the data are fully gone on this. Sadly 1 replica set was installed on those 2 hosts. The issue ...
0 votes
1 answer
674 views

my nginx server was working perfectly fine and now shows a 502 error

I'm deploying my project, I had no problem until i decided to buy a domain for my digital ocean droplet i added the records from my namecheap domain to my droplet i was working on it then suddenly ...
0 votes
0 answers
203 views

NGINX TCP reverse proxy resolves queries differently

The Setup I currently have a server and a mongodb database running in the cloud (Oracle Cloud Infrastructure). The Problem My connection to the database is bound by a select number of static IP's. ...
0 votes
0 answers
25 views

Allow access to local mongodb database to a different network

Is it possible to do tcp port forwarding using windows settings without having to access router settings? I am trying to give access to my local mongodb database to someone on a different network to ...
0 votes
1 answer
1k views

'vm.max_map_count is too low' in kubernetes mongodb client

This is how I'm running a mongodb client in my kubernetes cluster: kind: Pod apiVersion: v1 metadata: name: mongodb-client namespace: backup spec: containers: - name: mongodb-client ...
8 votes
3 answers
7k 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 /...
0 votes
1 answer
45 views

Ubuntu can't communicate between two servers

I have 3 servers: Server #1 runs among other things a MongoDB database Server #2 runs some apps that connect to server #1's mongodb, everything works fine Server #3 is a new server where more apps ...
8 votes
5 answers
20k 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> ...
8 votes
7 answers
18k views

Restarting MongoDB automatically if it crashes

I am running MongoDB on an Ubuntu server. It's using an upstart script to start mongod when the machine boots. I noticed that if the process crashes, it doesn't get restarted. How can I make sure ...
0 votes
0 answers
21 views

Migrating Mongo within VPN to Azure cosmos fails

I'm working on migrating my Mongo database to Azure Cosmos. I'm using the MigrationMongoService Azure Database Migration Service but when I create a project, it fails because of connectivity problems. ...
0 votes
0 answers
32 views

Azure Migration Project to CosmosDB throws error `Unspecificed`

I'm trying to migrate my Mongodb server to Azure Cosmos. I've created a migration service in Azure Database Migration Services and I'm trying to create a project with the following settings: Source ...
0 votes
1 answer
344 views

Mongodb data files corrupted when copied in

I’m sure there is a straightforward solution, I’m running a Mongodb service thusly: [Unit] Description=Mongo server for Open Quartermaster. Version ${version}, using MongoDB tagged to "4". ...
1 vote
1 answer
3k 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 ...
0 votes
0 answers
86 views

How to find memory consuming request in mongodb

There is a small(4 replicas) mongodb cluster(replicaset). Every node is 24GB ram with 8GB wiredtiger cache size. Cluster is used by many (about 100) applications which do few hundred requests per ...
0 votes
1 answer
2k views

MongoDB Atlas 'ETIMEDOUT' error

MongoDB Atlas was working fine at one time. Now I have not been able to connect for a time. I’ve looked at other solutions here on this forum as well as others. I’m getting the aforementioned error ...
1 vote
1 answer
69 views

virtual concatenation of two certificate files

mongod requires a certificateKeyFile that is a combination of a certificate and a private key. certbot manages quarterly renewals of tls certificates that cannot be valid for more than 3 months. the ...
6 votes
3 answers
8k views

Mongo secondaries stuck at startup state

I have a MongoDB replica set with secondaries that won't make it past the STARTUP state. The database is large but they should have moved to STARTUP2 by now. The correct ports are open as I can ...
1 vote
1 answer
2k views

Errors trying to back up a mongo database

I am hitting the same error in trying to backup a mongo stand-alone database: Failed: error connecting to db server: server returned error on SASL authentication step: BSON field 'saslContinue....
1 vote
1 answer
609 views

Disable mongodb NETWORK logs

I'd like to disable NETWORK logs but can't find a way. As I can see in the docs, without using quiet I am already at the least verbose level with 0. The verbosity level can range from 0 to 5 : 0 is ...
3 votes
1 answer
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....
1 vote
1 answer
2k 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 ...
1 vote
1 answer
2k 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
1 answer
2k 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
1 answer
2k 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 ...
0 votes
1 answer
2k 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
1 answer
938 views

Why MongoDB occurs out of memory (OOM) every few days

My Server Info AWS Ubuntu 18.04 MongoDB 4.2.17 4 Cores 16 GRAM This server only running mongodb, and allocated 10G memory to mongodb wiredTiger: engineConfig: cacheSizeGB: 10 But this ...
0 votes
1 answer
3k 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
1 answer
2k 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
1 answer
1k views

Skipping acquire of configured file ‘multiverse/binary-arm64/Packages’ as repository ‘/mongodb-org/4.0 InRelease’ doesn’t support architecture arm64

I’m trying to upgrade Mongo from 3.6.6 to 5.1 on Ubuntu 18.04.6, running on an AWS EC2 instance. I’ve gotten up until 4.2 -> 4.4, and am now using this tutorial: https://docs.mongodb.com/v4.4/...
0 votes
2 answers
2k views

Mongodb primary node not Resolved in Debezium Kafka Connect — Docker Compose

i have this docker compose file, that contains bitnami/mongodb containers for creating a replica set. and I've used zookeeper, kafka & debezium-connector for monitoring my mongodb replica set. ...
1 vote
1 answer
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 ...
2 votes
1 answer
3k 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
1 answer
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 ...

1
2 3 4 5
18