Questions tagged [mongodb]

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

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

mongodb save speed slow server-client

I am connecting a lot of clients to servers. I need to be very fast as it saves instantly to the mongodb database. When the client is connected to the server using the loopback address (127.0.0.1), ...
ali koc's user avatar
0 votes
0 answers
77 views

MongoDB issue with TLS

I am trying to set up TLS certificates for my standalone MongoDB instance on a cloud compute instance. I got the certificates from certbot using the command sudo certbot certonly --standalone -d. i ...
Mervin Hemaraju's user avatar
0 votes
0 answers
8 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 ...
RAM's user avatar
  • 1
0 votes
0 answers
80 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 ...
Ardneliahs's user avatar
0 votes
0 answers
66 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 ...
Bear Bile Farming is Torture's user avatar
0 votes
0 answers
13 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
CodeBox's user avatar
  • 11
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 ...
Magnus's user avatar
  • 165
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 ...
Sweta Dwivedi's user avatar
0 votes
1 answer
127 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 ...
Marcus's user avatar
  • 145
0 votes
0 answers
81 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 ...
g.pickardou's user avatar
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.
Jenia Ivanov's user avatar
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?
Jenia Ivanov's user avatar
0 votes
0 answers
213 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. ...
Samuel Cobb's user avatar
0 votes
0 answers
27 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 ...
Ahnaf Ahmed's user avatar
0 votes
1 answer
347 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 ...
Omegaspard's user avatar
0 votes
1 answer
46 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 ...
Julien's user avatar
  • 252
0 votes
2 answers
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 ...
user3142695's user avatar
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. ...
Carabes's user avatar
  • 101
0 votes
0 answers
37 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 ...
Carabes's user avatar
  • 101
0 votes
1 answer
364 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". ...
Snappawapa's user avatar
0 votes
0 answers
87 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 ...
undefine's user avatar
  • 1,076
1 vote
1 answer
76 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 ...
grenade's user avatar
  • 322
0 votes
1 answer
626 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). ...
Scott Anderson's user avatar
0 votes
1 answer
717 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 ...
Harkayn's user avatar
  • 101
0 votes
1 answer
140 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 ...
mosfeta's user avatar
1 vote
1 answer
968 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 ...
ikool's user avatar
  • 11
0 votes
1 answer
967 views

How to append into next line in Windows batch file

I am using a windows batch file that will output a .js file into csv. The .js file is a mongo query. mongosh --host 10.1.0.1:27017 --username "username" --password "password" --...
JRA's user avatar
  • 13
1 vote
0 answers
81 views

MongoS refusing connections during network split

I am exploring sharded MongoDB clusters, and I have trouble understanding MongoS's behavior during a network split. My test environment works as expected until I simulate a network split. In the "...
Nick Turner's user avatar
0 votes
1 answer
320 views

MongoDB Container Docker not working. MacOS

Any time I try to access my container it shows the path isn't found? I get this error "mongo": executable file not found in $PATH: unknown How can I fix this? Docker-compose file and output
Json Devs's user avatar
1 vote
0 answers
902 views

Zabbix not collecting metrics from Mongodb

I have a Mongodb running on an ubuntu server for which I have installed zabbix agent2 as per the documentation. https://www.zabbix.com/integrations/mongodb#mongodb My zabbix server is running on a ...
Cecil's user avatar
  • 11
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 ...
brohjoe's user avatar
  • 101
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....
Werner's user avatar
  • 203
0 votes
1 answer
503 views

MongoDB: Best choice of server type on GCP

On the Google Cloud Compute Engine we have the option to choose between three 'Machine families' General-purpose Compute-optimised Memory-optimised What would be the best option to choose for a ...
Enzo's user avatar
  • 1
0 votes
0 answers
432 views

How can I see what causes a MongoDB memory spike?

I am running MongoDB 4.x on Linux in a clustered setup (3 replicas), and sometimes memory inexplicably spikes (>10% sudden memory consumption increase on a 64GB RAM machine by the mongod process) ...
Lorenz's user avatar
  • 1
0 votes
1 answer
2k views

How to prevent changing ownership of '/data/db' in mongodb pod

I'm running a mongodb instance as a kubernetes pod in a single node cluster (bare metal ubuntu machine). The volume is configured ReadWriteOnce as the mongodb pod is accessed only by pods in one node. ...
user3142695's user avatar
-1 votes
1 answer
47 views

Best region for server to serve US

I want to create a MongoDB Atlas instance and Google Cloud instance to serve the US region. Is there a rule of thumb which region (east, center, south) or city that is the best choice to serve entire ...
william007's user avatar
2 votes
1 answer
443 views

oom_reaper: MongoDb out of memory

We run a small mongodb replica set on three bare metal servers (no virtualization, no docker/kubernetes) with Debian 11 and mongodb 5.0.6: machineA: 128GB RAM, 1TB disk, PRIMARY machineB: 128GB RAM, ...
mr.simonski's user avatar
0 votes
1 answer
1k views

Error installing mongodb on debian 11 in proxmox container

I try to install mongodb on Debian 11 in a proxmox VE 7.1 container as described in this tutorial https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-debian/ But I get the following error: ...
user12682985's user avatar
1 vote
0 answers
190 views

Logrotate Create Mode Issue

I have a trouble with logrotate service in linux. I have a logrotate config for mongodb log as below: /var/log/mongodb/mongod.log { rotate 10 daily dateext dateformat %Y-%m-%d-%s ...
Fatemeh Davoudi's user avatar
2 votes
0 answers
261 views

Debugging Active Directory Login with MongoDB

I am trying to log into MongoDB using an active directory username. We're using Percona for MongoDB but I believe this really should be pretty similar to regular MongoDB 5.x authentication. We've ...
Brad's user avatar
  • 619
1 vote
1 answer
634 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 ...
vinni_f's user avatar
  • 204
0 votes
1 answer
35 views

mongo secondary node - weird log entries

I have mogodb cluster with 4 nodes, all nodes work on standard 27017 port. I found weird things in my mongod.log on a secondary node: {"t":{"$date":"2022-03-26T23:22:34.593+03:...
Antonio's user avatar
  • 169
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 /. ...
kwodzicki's user avatar
0 votes
1 answer
1k views

Assigning different external IP for each Pod on GKE autopilot

I am in the process of moving our project from the Compute Engine to GKE autopilot (cost efficiency, scale-up/down). Currently, in the Compute Engine, each machine gets a different external IP (at no ...
Emanuel's user avatar
  • 101
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/...
Alex's user avatar
  • 221
0 votes
0 answers
342 views

NodeJS stops listening on port 443

We are having a big problem with nodejs intermittently not listening on port 443. Development claims that this is because node cannot connect to the Mongo database. However, when I get an alert the ...
Stephen Carville's user avatar
0 votes
0 answers
217 views

error connecting to linux server from windows client

When a windows machine pings to linux server to run application specific python commands, it does connect. The firewall is also disabled on linux server. mongodb is database server here. database is ...
nish's user avatar
  • 123
0 votes
1 answer
40 views

how to block drop function in mongodb?

MongoDB replication was created in AWS by using Ubuntu machines. I created a database in mongodb, but it was deleted in my office. Am I able to enable termination protection, that is "drop ...
user943870's user avatar
-1 votes
1 answer
231 views

mongodb 3.2 cluster database compatibility to mongodb 5.0

We have a mongodb 3.2 production cluster that we need to upgrade to mongodb 5.0. Instead of upgrading in place, we are considering creating a new mongodb 5.0 cluster, export the DB from 3.2, and ...
Aldus's user avatar
  • 1
0 votes
2 answers
755 views

High availability with round robin - rsync and DB replication or a cluster?

I have one machine (centos7) with Apache, PHP, MariaDB and Nginx, Nodejs, MongoDB installed and being used by many different domains. I'd like to create a working mirror and can't decide between 2 ...
knm's user avatar
  • 5

1
2 3 4 5
18