175,364 questions
0
votes
0
answers
86
views
I’m deploying MongoDB using the Dockerfile below and experiencing critical corruption issues
I’m deploying MongoDB using the Dockerfile below and experiencing critical corruption issues.
Environment:
Inserting approximately 1 million documents per day
Server crashes every 3 days with ...
-1
votes
1
answer
68
views
MongoDB Atlas connection fails with querySrv ECONNREFUSED from Node.js
I am trying to connect a Node.js backend to MongoDB Atlas using the official MongoDB driver, but the connection always fails with a DNS querySrv ECONNREFUSED error.
This happens for every cluster and ...
-4
votes
0
answers
80
views
MongoDB only stays running for a few days. Why? Main process exited, code=dumped, status=6/ABRT [closed]
HELP: MongoDB only stays running for a days
I'm running mongo v8.0.17 on ubuntu 2404.
The mongod process dies after a few days, This keeps happening. Why?
mongod.log
× mongod.service - MongoDB ...
1
vote
1
answer
153
views
MongoDb Connection failed : Error: querySrv ECONNREFUSED
MongoDb Connection failed : Error: querySrv ECONNREFUSED
How can I solve this error? My node v24.13.0 and mongoose 9.1.5 are the latest versions. Also I changed my network dns to Google's dns number ...
-1
votes
0
answers
50
views
Difference between mongo-c-driver 2.2.1 and 1.30.6 + how to get 2.2.1 DLLs on Windows [closed]
I'm trying to understand the practical differences between the latest MongoDB C Driver versions and how to actually obtain the newer 2.x series binaries (DLLs) on Windows.
From the official GitHub ...
-1
votes
1
answer
95
views
try catch block inside withTransaction breaks transaction
const session = client.startSession();
await session.withTransaction(async () => {
for (const transaction of purchase_detail) {
try {
await IOS_COL.insertOne(...
0
votes
0
answers
40
views
mongodb-atlas-local container becomes unhealthy after ~20 minutes [closed]
The mongodb-atlas-local Docker container becomes completely unresponsive after approximately 15-20 minutes of normal operation. The mongod process appears to freeze. It stops logging, stops responding ...
1
vote
0
answers
90
views
Mongo driver C# is always using global flag for regex
I have a generic function to always query my mongo collection with a limit and get the entire result in a single batch.
I noticed the queries with Contains and StartWith were taking longer than ...
5
votes
1
answer
194
views
MongoDB Atlas SRV connection fails with querySrv ECONNREFUSED after switching Node versions (Node 22, Windows)
I’m running into a MongoDB connection issue that only appeared after switching Node.js versions, and I haven’t been able to resolve it despite extensive troubleshooting.
Environment
OS: Windows 10
...
0
votes
0
answers
47
views
Sorting problem in mongoose while sorting through query parameter [closed]
the code is working properly when i fetch normal data or try to fetch data based on condtions like less then or greater then all these are working properly
but when i try to sort the data that is not ...
0
votes
1
answer
99
views
Having trouble translating blob file into image on NextJS App from MongoDB
I’m working on a project where I’m trying to display an image stored as a blob in my database.
However, the image is not rendering on the page as expected.
I’ve added the code for the first file in ...
Advice
0
votes
3
replies
30
views
Deprecation of dynamodb_table in Terraform S3 Backend
Current Status | Still works with a warning in Terraform v1.12.x and v1.13.x
Request you to please tell by when it will be stop supporting.
Thanks
`A. Before (Deprecated Configuration)
terraform {
...
1
vote
1
answer
99
views
Convert Chrono DateTime to MongoDB v3.4.1 DateTime in Rust
How do I directly convert chrono DateTime to MongoDB DateTime. This was possible in earlier version of MongoDB by adding the chrono feature
bson = { version = "3.1.0", features = ["...
Best practices
5
votes
6
replies
82
views
Which is the best data type for createdDate and modifiedDate for mongo collection to store dates in database of spring boot application with java 17
I'm building a Spring Boot microservice with Java 17 and need guidance on the best practice for choosing date types for createdDate and modifiedDate fields in MongoDB collections.
These fields are ...
Tooling
0
votes
2
replies
76
views
what should the church management system look like
I'm a complete beginner in full-stack web development, and I'm trying to build a Church Management System (like a custom ChMS) as my first big project. The app needs to be fully responsive (work on ...