Questions tagged [mongodb]

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

MongoDB is a document oriented database. It's coded to be fast, scalable and supports natively solutions like sharding, replication, Map/Reduce and storage of files on the DB.

MongoDB doesn't uses SQL, making it a NoSQL database, its data is retrieved using a dynamic query system and returns JSon-style data.

889 questions
0
votes
0 answers

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). That package created /var/lib/snapd. Just this…
0
votes
1 answer

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 when i want access to myproject/api it's now showing…
0
votes
0 answers

MongoDB authentication instance without cluster i.e. using mongos router without a sharded cluster?

So my question is: Is there a possibility to have something like a Mongo authentication instance running on a VPS, together with fail2ban, which only forwards authenticated requests to a home server MongoDB? The trouble of setting up a whole shared…
user132645
  • 36
  • 4
0
votes
0 answers

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 CA and validate the server's identity. However,…
0
votes
0 answers

MongoDB volume size auto increase

I deployed a container with MongoDB on the server. The container has its own volume where MongoDB data is stored. The database is very small, 6 collections and no more than 40 documents (some removed, some added). Every time I view the size of the…
Skip
  • 1
  • 1
0
votes
0 answers

Which ec2 instance should I choose for my mongos(query router)?

I am hosting a sharded mongodb on ec2. I am planning on going with m4.large for my shard instances and t2.micro for my config servers. Should I go with m4.large for my mongos(query router) instances or can I go with something cheaper. This is the…
0
votes
1 answer

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 machine has OOM every few days. Sys Log: Oct 19…
ikool
  • 1
0
votes
1 answer

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" --authenticationDatabase admin --quiet C:\ActiveUsers1.js >…
JRA
  • 3
  • 2
0
votes
1 answer

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
jsonnham
  • 1
  • 1
0
votes
1 answer

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 using the application connection string, the…
brohjoe
  • 101
  • 2
0
votes
1 answer

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.mechanism' is an unknown field. Most of the other…
Werner
  • 183
  • 1
  • 7
0
votes
1 answer

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 MongoDB instance?
Enzo
  • 1
  • 1
0
votes
0 answers

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) and doesn't go back down for sometimes hours.…
Lorenz
  • 1
0
votes
1 answer

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. apiVersion: apps/v1 kind: Deployment metadata: …
user3142695
  • 105
  • 12
0
votes
1 answer

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: error setting ownership of './usr/bin/bsondump':…