r/MongoDB_Official • • 6h ago

Question Passed MongoDB certification exam, but haven't received my certificate yet

1 Upvotes

Hi everyone,

I recently completed and passed my MongoDB certification test, but I still haven't received my certificate or badge. I have already checked my email (including spam/promotions folders) and my dashboard, but nothing has arrived yet.

Could someone guide me on how long it usually takes to receive the certificate, or which exact support email I should contact to get this resolved?

Thanks in advance!


r/MongoDB_Official • • 2d ago

Question I cant access mongodb online course, what should i do??

Post image
1 Upvotes

r/MongoDB_Official • • 2d ago

Showcase MongoDB found two orders with the same external ID. How do I see both documents?

0 Upvotes

A reader asked how to get from a duplicate count back to the orders behind it. If you already know the repeated value, one find filter is enough. We built KeplerGrid, and here’s a three-document example you can try in it.

Save these three lines as orders.jsonl. In a test database, create an empty collection called orders_dupe_demo, right-click it, choose Import documents…, and import the file.

{"_id":"a","external_id":"ERP-100","status":"open"}
{"_id":"b","external_id":"ERP-100","status":"held"}
{"_id":"c","external_id":"ERP-200","status":"open"}

To find the repeated value, open Aggregation → JSON, paste this pipeline, and click Run pipeline.

[
  { "$group": { "_id": "$external_id", "count": { "$sum": 1 } } },
  { "$match": { "count": { "$gt": 1 } } }
]

You’ll get one row: { "_id": "ERP-100", "count": 2 }. The subtle bit is that _id in this result is the group key. In the original orders, that value lives in external_id.

Switch to Documents on the same collection and run this filter:

{ "external_id": "ERP-100" }

You should see order a (open) and order b (held). Order c drops out. Those different statuses are a good reason to check the source system before deciding whether either order needs correcting.

If you try the sample, did you find both orders on your first pass? I’d like to know which step, if any, took a second look.


r/MongoDB_Official • • 5d ago

Showcase Finding duplicate MongoDB values before adding a unique index

5 Upvotes

I’m building KeplerGrid, a desktop MongoDB client. Here’s a small check I run before adding a regular single-field unique index to a collection.

In Aggregation → JSON, run this pipeline. It groups orders by external_id and keeps groups with more than one document.

[
  { "$group": {
    "_id": { "$ifNull": ["$external_id", null] },
    "count": { "$sum": 1 }
  } },
  { "$match": { "count": { "$gt": 1 } } },
  { "$sort": { "count": -1, "_id": 1 } }
]

In the screenshot, two of three synthetic orders share ERP-100. Switch to Documents and run { "external_id": "ERP-100" } to inspect both originals. Check which key each record should have before editing either. A null group can also flag a conflict because a regular single-field unique index uses the same key for explicit nulls and missing fields.

After resolving the conflict, rerun the pipeline and confirm it returns no duplicate groups. Then open Indexes, enter { "external_id": 1 }, select Unique values, and click Create index. Verify that the new index shows UNIQUE.

Full walkthrough and three practice documents


r/MongoDB_Official • • 5d ago

Discussion I spent a year building a free website to practice MongoDB, with a real mongosh shell and hidden test cases like LeetCode

Post image
12 Upvotes

Hi everyone, I've spent a LONG time working on this, and as far as I know, it's the only MongoDB practice site that combines an interactive mongosh shell with LeetCode-style hidden test cases.

Most other sites just parse your query or check it against a fixed answer. This one actually runs your queries on a MongoDB-compatible database in your browser, so you can write real find, aggregate and createIndex code the way you would at work. No database connection, no Atlas account, and no setup required. It's completely free!

What makes it different:

  • Hidden test datasets. Your query runs on the sample data, then on 2 hidden datasets with more customers and orders. If your query only works because of something specific to the sample data, it fails. Same idea as LeetCode's hidden test cases.
  • Performance questions check your explain plan. A correct result isn't enough if you're doing a COLLSCAN where an index should be used.
  • Realistic, messy data. It's a shop database with products, customers, 220 orders, reviews, suppliers, a category tree and an org chart, including mixed types, missing fields and the schema drift real data has.
  • Answers verified on MongoDB 8.

Some of the problems:

  • The overstock list: $sum on arrays, $match after $project
  • One field, three types: $type, $switch, schema drift
  • Deliveries near Berlin: $geoWithin, $centerSphere
  • Revenue lost to cancellations, month by month: $densify, $setWindowFields, $shift (Expert, good luck!)

There are currently 30 MongoDB practice problems ranging from Medium to Expert, whether you're preparing for MongoDB interview questions or just looking to improve your aggregation and query optimization skills.

Nothing to install, and your progress is saved in your browser.

https://visualeaf.com/mongodb-interview-questions/

I'd love feedback, especially:

  • Any problem that felt unfair, or where the checker rejected an answer you think is correct.
  • Topics you've been asked about in real interviews that are missing

r/MongoDB_Official • • 5d ago

Showcase Reading MongoDB aggregation Explain output with a small before-and-after example

2 Upvotes

I’m building KeplerGrid, a desktop MongoDB client. Here’s a small test we ran to make aggregation Explain output easier to read.

We loaded 4,000 synthetic orders into MongoDB 8.0.20 and ran a pipeline that matched one customerId. Before adding an index, COLLSCAN examined all 4,000 documents. With an index on customerId, IXSCAN examined four keys and FETCH read four documents to get their status. Both runs returned the same four orders.

I’d start by comparing documents examined with documents returned. Those counters show what changed even when timing varies between runs. What do you look at first when an aggregation is slow? Copyable dataset and pipeline


r/MongoDB_Official • • 5d ago

Showcase Copying a MongoDB collection with JSON Lines and handling duplicate IDs

1 Upvotes

I’m building KeplerGrid, a desktop MongoDB client. Here’s the workflow I use to copy documents into another collection:

  1. Right-click the source collection and choose Export documents… → Entire collection. Save the .jsonl file. Each line is one document, with its original _id and BSON type information.
  2. Right-click the destination collection and choose Import documents…. Select the file, verify the destination and document count, then click Import.
  3. If MongoDB rejects a duplicate _id, the import stops at that row. Earlier inserts stay in place, the existing document stays intact, and later rows are left unsubmitted.

For example, if the file contains a, b, and c in that order and the destination already has b, the result is one inserted, one rejected, and one not submitted. To finish in the same collection, verify that c is absent, then import a file containing only that row. For a separate copy, start with an empty collection.

Export walkthrough · Import walkthrough


r/MongoDB_Official • • 5d ago

Showcase Inspecting a MongoDB aggregation one stage at a time

0 Upvotes

When an aggregation returns fewer documents than I expected, I start by finding the stage where the count drops. I built KeplerGrid, a desktop MongoDB client, and recorded a short walkthrough showing how to inspect what goes into and comes out of each stage.

  1. Open KeplerGrid, choose Load sample data, and open the orders collection. You can follow along without connecting a MongoDB server.
  2. In Aggregation, add a $limit stage with a value of 3. Run the pipeline and select that stage. Compare its input with the three documents in its output.
  3. Add $match before $limit. Select each stage in turn and check that $limit now receives only paid orders.
[
  { "$match": { "status": "paid" } },
  { "$limit": 3 }
]

Now swap the two stages and run it again. With $limit first, $match only gets three orders to inspect, so the result can contain fewer than three paid orders. Looking at the input to $match shows exactly where that difference comes from.

KeplerGrid is free for personal, noncommercial use. Watch the 60-second walkthrough

When a real pipeline returns fewer documents than you expect, what do you check first?


r/MongoDB_Official • • 6d ago

Question Voucher para certificación gratis en Mongodb

1 Upvotes

Good morning,

I am writing to request my 100% free certification exam voucher for the**"Programa de Certificación en Español"**(Spanish Certification Program for LATAM), as Beatriz Messias is likely overwhelmed with messages and unable to reply to all of them.

I would like to confirm my voucher so I can dedicate December to studying intensively and sit for the**Associate Developer (Python)**exam as soon as possible.

I meet all the program requirements:

https://www.credly.com/badges/01a68fad-ff78-4e21-8f15-294e804da9ae/public_url

https://www.credly.com/badges/23c88589-de1e-4eec-adea-004897c85210/public_url

https://www.credly.com/badges/55b303a1-97e4-452f-85b5-93380a4706fb/public_url

https://www.credly.com/badges/3bad23fb-f10d-4a6d-a666-12be622c94f9/public_url

Thank you in advance for your help and support.

Best regards,
Roxana Enríquez Lorenzo


r/MongoDB_Official • • 11d ago

Showcase How I built a smarter long-term memory tool using MongoDB Vector Search + Voyage AI + TypeSafe Jev to decide what gets persisted

2 Upvotes

I’m a developer advocate at MongoDB, and I’ve been building a long-term memory tool for an AI chatbot that persists user facts and preferences. Retrieval was the easy part. The hard part is deciding what to do when a new memory arrives. Inserting everything gives you a pile of 💩, and naive dedupe merges things that shouldn’t be merged (“prefers Earl Grey” and “takes tea with oat milk” aren’t the same fact).

TL;DR: Vector search settles the obvious memory writes; Jev, a decision model, settles the ambiguous middle. Code: gist

How it works

When the memory write tool is called, it means the user has shared something worth keeping, so I embed this new memory with Voyage AI voyage-4 and run a MongoDB Vector Search query to return up to 5 most similar existing memories. Then I branch depending on the relevance score (MongoDB normalizes cosine similarity scores to a 0 to 1 range) for each existing memory to determine how to handle the new memory:

  • Score ≥ 0.95: Treat the new memory as a duplicate. Just update the timestamp field on the existing memory.
  • Score < 0.75: Treat the new memory as unrelated. Straightforward insert into the memory collection.
  • Score between 0.75 and 0.95: I call this the “Grey Zone”, where further judgment is required. Similarity alone can't tell me whether the new memory is a restatement, a contradiction, or a related-but-different fact, so I let Jev decide.

(Note: These thresholds are starting points for my use case. )

Why a decision model? A decision model returns typed answers with calibrated probabilities instead of generated text, telling me how to handle the incoming memory compared to an existing memory. Thus, the “Grey Zone” is implemented as a fixed three-way choice. I’m using Jev from TypeSafe AI (no affiliation).

Asking Jev

For each grey-zone memory pair, here’s roughly what I ask, in plain English:

Old memory: <User prefers Earl Grey.>
New memory: <User takes tea with oat milk.>
Are these:
A. duplicate
B. conflicting
C. something else

Each choice maps to a MongoDB write operation: 

  • a duplicate means we update the existing memory timestamp field, 
  • a conflict overwrites the old memory in place (new fact, new embedding), 
  • something else inserts the new memory. Any failure also falls back to keeping both, so the worst case is a redundant memory.

The Schema

One document per fact (or memory):

{
  _id: ObjectId("6735f0c2a1b2c3d4e5f60718"),
  subject: "tea preference",
  fact: "User prefers Earl Grey.",
  tags: ["tea", "preference"],
  timestamp: ISODate("2026-11-17T15:04:05Z"),  // last learned
  embedding: BinData(9, "...") // voyage-4, 512 dims, int8
}

The Vector Search query:

const matches = await coll.aggregate([
  {
    $vectorSearch: {
      index: 'agent_long_term_index',
      path: 'embedding',
      queryVector: vector,
      numCandidates: 50,
      limit: 5,
    },
  },
  { $project: { subject: 1, fact: 1, score: { $meta: 'vectorSearchScore' } } },
]).toArray();

Demo run (video): the gist’s demo test, with Voyage embeddings, vector search, and Jev calls.

Here's a short recording of running through all the possible branches:

When a new fact contradicts an old one, do you overwrite it, keep history with a superseded flag, or do something else?


r/MongoDB_Official • • 11d ago

Announcement You can now use MongoDB Atlas for agent memory and session persistence with the Strands Harness SDK

3 Upvotes

Hi, Nasir from MongoDB here. We just launched the MongoDB Strands Harness SDK Integration. It lets developers building Python agents with the Strands Harness SDK give them persistent memory and session continuity without losing context between conversations.

What’s new

The Strands MemoryManager automatically identifies key details from conversations, manages agent workflows, and decides when to recall memories or offload context. MongoDB Atlas handles storage and retrieval, using Atlas Vector Search to find relevant past interactions that ground agent responses. Atlas also securely preserves session history and working state, so agents can pause and resume complex tasks across conversations.

How to try it

Install the package with one command, then connect it to your MongoDB Atlas cluster:

pip install strands-mongodb

You get agents that remember key details and pick up complex tasks right where they left off.

*This integration supports agents built with Python.

Check out the blog to learn more: https://www.mongodb.com/company/blog/product-release-announcements/persistent-sessions-memory-for-strands

Documentation: https://www.mongodb.com/docs/atlas/ai-integrations/strands/


r/MongoDB_Official • • 13d ago

Question MongoDB 8.0.38 Windows Installation Fails with MSI Error 1723 / Code Integrity Blocks mongod.exe

1 Upvotes

Hello MongoDB Team and Community,

I'm trying to install MongoDB Community Server 8.0.38 on Windows 11 Home, but the installation fails due to Windows Code Integrity / Smart App Control restrictions.

System and installer details

  • OS: Windows 11 Home
  • MongoDB version: 8.0.38
  • Installer: Official MongoDB Windows x64 MSI
  • MSI Authenticode signature: Valid
  • Smart App Control: ON

Installation failure
The MSI installation fails during the UpdateMongoYAML custom action.

Errors reported:

  • MSI Error 1723
  • DLL Error 1157
  • Blocked temporary DLL: C:\Windows\Installer\MSI64BD.tmp

Code Integrity events

Windows Code Integrity Operational log records:

  • Event ID 3077
  • Event ID 3033

The logs indicate that Windows blocked:

  • mongod.exe because it did not meet Enterprise signing-level requirements.
  • The MSI temporary custom-action DLL (MSI64BD.tmp) for the same signing-level restriction.

The enforced policy is VerifiedAndReputableDesktop (Policy ID: 0283ac0f-fff1-49ae-ada1-8a933130cad6).

What I have checked

  • Verified that the official MSI has a valid digital signature.
  • Confirmed that the Smart App Control policy is enforced.
  • Confirmed that the MongoDB service was not successfully installed.
  • Reviewed the Windows Code Integrity events and MSI installation log.

My questions

  1. Is MongoDB Community Server 8.0.38 officially supported on Windows 11 with Smart App Control enabled?
  2. Is there an officially recommended or approved way to install and run MongoDB without disabling Smart App Control or weakening Windows security?
  3. Could this be a signing-level compatibility issue involving the MongoDB executable or MSI custom-action DLL?

I would appreciate guidance from MongoDB engineers or experienced Windows users.

Thank you!


r/MongoDB_Official • • 13d ago

Announcement Our MongoDB Champion of the Month is Vincent Thinselin

Post image
8 Upvotes

We're thrilled to recognise Vincent Thinselin as our MongoDB Champion of the Month! Vincent is an experienced IT architect with a background spanning enterprise architecture, cloud infrastructure, and systems engineering. His journey with MongoDB began as a personal interest and has since grown into years of hands-on experience and a passion for exploring what's possible with the technology.

What makes Vincent stand out is how he turns technical curiosity into valuable knowledge for the community. He regularly shares in-depth technical articles based on his experiments, including building a four-node, low-power MongoDB cluster running on ARM and exploring performance optimisation and benchmarking. Through his experiments and technical content, Vincent continues to help developers learn, explore new ideas, and tackle real-world challenges with MongoDB. We're excited to celebrate his contributions and the knowledge he brings to the community. Congratulations, Vincent!

As part of this recognition, we asked Vincent a few questions about his journey. Keep reading to learn more about his experiences with MongoDB 👇

Tell us about your path to becoming a MongoDB Champion
I first discovered MongoDB many years ago as a hobbyist, simply driven by curiosity and the pleasure of exploring new technologies. Over time, MongoDB became part of my everyday professional life. My journey into the Champions program actually started with a surprise! Our MongoDB Principal Solutions Architect nominated me without telling me beforehand. I certainly wasn’t expecting it, and I can’t thank him enough for opening that door. Since then, being a Champion has pushed me to go beyond my daily professional use of MongoDB, explore new technical challenges, share my experiments, and connect with a community of passionate people.

You’ve been a MongoDB Champion for some time now. What drives you to continue helping the community?
Curiosity, knowledge sharing, and the opportunity to keep learning. Writing in-depth technical articles is one of my favourite ways to contribute. It encourages me to dig deeper, challenge my assumptions, experiment, and develop a much better understanding of the technology. Sharing what I’ve learned is also a great opportunity to help others avoid the same mistakes or discover something new. And of course, I continue to advocate for MongoDB in my everyday professional life. At this point, I think I’ve got the MongoDB label permanently stuck to my sneakers! Being a Champion is a great excuse to keep experimenting, learning, and sharing.

Can you share one impactful moment you’ve had as a Champion so far?
Without a doubt, building my own low-power MongoDB cluster! If I hadn’t become a MongoDB Champion, I probably would never have thought of building a four-node MongoDB cluster consuming around 40 watts. What started as a fun hardware experiment quickly turned into a much bigger technical adventure: running MongoDB on ARM, exploring performance, benchmarking, experimenting with Transparent Huge Pages, and sharing the results through technical articles. And the adventure is far from over. It’s now taking an exciting turn towards AI, combining MongoDB Atlas, Vector Search, and Voyage AI to explore retrieval-augmented generation (RAG) and intelligent applications. It’s a perfect example of what I love about being a Champion: one crazy idea can lead to months of learning, experimentation, and valuable knowledge to share with the community.

If you could share one piece of advice to people in tech, what would that be?
You don’t need a perfect lab, expensive hardware, or all the answers to start exploring something new. Sometimes a small, slightly crazy side project can teach you more than weeks of reading documentation. And most importantly, share what you learn, including what didn’t work. Your experiments, mistakes, and discoveries might be exactly what someone else needs. Keep learning, keep building, and have fun along the way!

Where can developers connect with or learn more about you?
Yes, they can find me on LinkedIn, GitHub and on my personal blog. 

Vincent, thank you very much for sharing your story with us today and for all the incredible work you’ve done for the MongoDB community. We can’t wait to see what you share next in the community.

To our readers: If you want to learn more about the MongoDB Community Champions program, see our Champions Program page.


r/MongoDB_Official • • 17d ago

Question i need help installing mongoDB on mac

Post image
3 Upvotes

i need it for an assignment but every time i tried this happens i keep getting the error Error: Formula `mongodb-community` is not installed. can anyone help ?


r/MongoDB_Official • • 17d ago

Question MongoDB Atlas M0 AWS Mumbai – Persistent TLS Handshake Failure (SSL Alert 80)

1 Upvotes

Hello everyone,

I'm facing a persistent TLS connection issue with my MongoDB Atlas cluster.

Cluster details:

  • Cluster: FleetDash-Cluster
  • Tier: M0 Free
  • Region: AWS Mumbai (ap-south-1)
  • MongoDB version: 8.0.37
  • OS: Windows
  • Node.js: v22.14.0

Error:
ERR_SSL_TLSV1_ALERT_INTERNAL_ERROR
SSL alert number 80

Checks already performed:

  1. Atlas cluster is Active.
  2. Primary and both secondary nodes are healthy.
  3. My public IP is active in the Atlas IP Access List.
  4. TCP connectivity to all three nodes on port 27017 succeeds.
  5. TLS handshake fails using both Node.js OpenSSL and Windows Schannel.
  6. MongoDB driver reports MongoServerSelectionError and ReplicaSetNoPrimary.

Has anyone experienced this issue with an M0 cluster in AWS Mumbai recently?

Could this be related to an Atlas TLS endpoint or infrastructure issue?

Any guidance would be appreciated.

Thank you.


r/MongoDB_Official • • 20d ago

Resource Why separating compute from storage matters: MongoDB Atlas Infinite under the hood

19 Upvotes

Hey all, Harshit here. I work at MongoDB.

Atlas Infinite is in public preview (AWS only, M10 to M60 replica sets for now).

Abhishek Chauhan, a Distinguished Engineer here at MongoDB, wrote a deep dive on how it separates compute from storage. It’s one of the most detailed looks at the architecture so far, including the parts that were hard to get right. 

https://www.mongodb.com/company/blog/engineering/ground-beneath-database

The problem it starts with

In a regular replica set, every node keeps its own full copy of the data. So adding a replica, resizing a node or restoring a backup all boil down to copying a lot of bytes. As the blog puts it, storage has gravity: the bigger your data, the slower everything gets. And because compute and storage are tied together, needing more of one means paying for more of both.

How it works, roughly

Compute nodes (a primary, a standby and optional read replicas) hold no data of their own. Underneath them is a shared storage layer made of a few services:

  • Log Service: every write becomes a log entry replicated across three zones. Once a majority has it, the write is acknowledged.
  • Page Service: page servers in each zone keep the data warm and ready to read, so a new node reads from here instead of cloning a disk.
  • Object storage (S3/GCS/Azure Blob): the durability floor underneath it all, and what makes fast backups and restores possible.

Only the log write sits on the critical path. Distributing pages and uploading to object storage happen in the background.

The hard part

Disaggregated databases have been around for a decade, so why did this take so long? WiredTiger is lock-free and evicts pages speculatively, so two nodes holding identical data don’t hold identical bytes on disk. Layout depends on timing and eviction order. That means there’s no canonical page to ship, and “just replicate the pages” doesn’t have a well-defined target.

The usual workaround is to ship a physical redo log of every page change, which would have thrown away WiredTiger’s batched checkpoints. Instead, they kept the checkpoints and had standbys layer recent oplog entries on top of checkpointed pages, so replica lag stays in milliseconds.

Other things I liked

  • Snapshots, clones and restores are forks of a log. That makes them zero copy at any size, close to branching a production DB like a Git repo.
  • The shared storage layer can’t read your data. Pages are encrypted on your compute node before they’re sent down, so MongoDB’s storage services only ever see opaque bytes. Per the blog, they can’t see your documents, collection names or indexes.
How Atlas Infinite separates compute from storage (diagrams via the MongoDB engineering blog)

If you want the practical side, I made a video that stays closer to the surface. It covers what Atlas Infinite solves, a sneaker-drop demo with shoppers, bots and AI agents hitting checkout at once, and how to tell whether your workload is a fit https://www.youtube.com/watch?v=KteNkcdr_do

A few numbers vs. Atlas Core:

  • 96%+ less time to scale
  • Up to 10x more data per replica set (up to 128 TB per HA shard)
  • 189% more throughput per dollar (internal MongoDB 9.0 testing)

Atlas Core isn’t going anywhere, by the way. It’s still the fit for steady, predictable workloads. Infinite is for spiky, fast-growing or agent-heavy ones.

If you’ve worked with other disaggregated databases, how does this approach compare in your experience? I’ll answer what I can and loop in the engineering team for the deep stuff.


r/MongoDB_Official • • 19d ago

Announcement You can now use MongoDB as the persistent memory store for applications and agents built with the Vercel AI SDK.

Post image
4 Upvotes

Hi, Nasir here from MongoDB. We have launched the MongoDB Vercel AI SDK Integration. With this integration, developers can use MongoDB for agent state memory, user memory, metadata, and query the data using search and vector search.

More specifically, MongoDB can store all 5 kinds of memory agents and AI applications need:

  • Session: The conversation an application or agent has in each session. This helps the application follow what the user just said.
  • Semantic: Facts about people, entities, and preferences, so users don't have to repeat themselves.
  • Procedural: Workflows and instructions, so the application carries out tasks the way you've defined them.
  • Episodic: Key events and outcomes, so the application can recall what happened before. Kept for one year of inactivity by default.
  • Scratchpad: Temporary notes for work in progress. They expire after an hour and can be promoted to episodic memory if they turn out to matter**.**

Getting started is easy. You can add memory to an existing Vercel AI SDK project in three steps.

  1. Install the package and its peer dependencies:

    npm install @mongodb-developer/vercel-ai-memory ai mongodd

  2. Create a memory instance with an Atlas connection string and an embedding model.
  3. Pass the memory tools to the application, scoped to a user and session.

This integration works with AI SDK v6 and v7 and requires a MongoDB Atlas cluster.

Check out the blog to learn more: https://www.mongodb.com/company/blog/product-release-announcements/introducing-mongodb-vercel-ai-sdk-integration-persistent-memory-applications


r/MongoDB_Official • • 19d ago

Question MongoDB Atlas SSL TLS alert internal error 80 – Node.js and MongoDB Compass

1 Upvotes

Hi everyone,

I'm facing a MongoDB Atlas connection issue in my BASERA project.

My setup:

  • macOS (Apple Silicon)
  • Node.js v22.23.4
  • Mongoose 8.24.8
  • MongoDB Driver 6.x
  • MongoDB Atlas (AWS Mumbai, ap-south-1)

Problem:
Both my Node.js application and MongoDB Compass fail to connect to the Atlas cluster.

Error:
ERR_SSL_TLSV1_ALERT_INTERNAL_ERROR (SSL alert number 80)

What I've tried:

  1. Changed Node.js from v26 to v22.
  2. Reinstalled node_modules.
  3. Tested using both local Wi-Fi and mobile hotspot.
  4. Verified SRV and A record DNS resolution.
  5. Checked Atlas IP Access List.
  6. Tested TLS using OpenSSL, but the handshake still fails.

The cluster is showing as active in Atlas.

Could this be an Atlas-side TLS/network issue, or is there something else I should check?

Any help would be appreciated. Thank you!


r/MongoDB_Official • • 19d ago

Question MongoDB Atlas M0: readWrite users authenticate successfully but all read operations return authorization error 8000

1 Upvotes

Title: Atlas M0: readWrite users authenticate successfully but receive authorization error 8000 on find and listIndexes

I'm troubleshooting a MongoDB Atlas authorization issue on an M0 cluster.

Environment

  • Cluster: Cluster0
  • MongoDB version: 8.0.37
  • Provider: AWS
  • Region: Cape Town (af-south-1)
  • Database: grayz_gadget_staging

What works

  • MongoDB connection succeeds.
  • Authentication succeeds.
  • The selected database is correct.
  • Authenticated user is reported in the admin authentication database.
  • Authenticated role is readWrite on grayz_gadget_staging.
  • Effective privilege diagnostics report find, listIndexes, and listCollections.

What fails

Two different database users assigned the built-in readWrite role were tested.

Both receive Atlas error code 8000:

  1. find: user is not allowed to do action [find] on [grayz_gadget_staging.whatsappwebhookevents]
  2. listIndexes: user is not allowed to do action [listIndexes] on [grayz_gadget_staging.whatsappwebhookevents]
  3. listCollections: user is not allowed to do action [listCollections] on [grayz_gadget_staging.]

The connection uses authSource=admin.

The user role assignment was reconfirmed and saved, but the problem persisted.

Question

What could cause MongoDB Atlas to deny these operations when connectionStatus reports the expected readWrite role and privileges?

Could this indicate an Atlas authorization inconsistency, database-level issue, or another privilege evaluation problem?

I would appreciate suggestions for a diagnostic that can isolate the cause without changing database permissions or indexes.


r/MongoDB_Official • • 20d ago

Discussion Why is MongoDB so popular? What to choose bw MongoDB, Supabase, Firebase, Custom?

Thumbnail
gallery
9 Upvotes

A lot of people seems to use MongoDB for Node backend and they made the full MERN abbreviation for that .why is that so.

Everyone on the social media says MERN,MERN,....

Why the hell is it???

Why only mongo everywhere.

Why people don't say much about the SUPABASE or the FIREBASE DB?

Whereas both other free versions have good reasoning limits for any projects

What to choose between the SupaBase, Mongo , Firebase or any other ? What's the real diff

Tell me why that's so.???

\[Note:- I don't want answers like It's relational, other is json.

I want someone's real experienced answers , why is it so,

Is this just hype or something else?\]


r/MongoDB_Official • • 20d ago

Discussion What does good governance for AI agents actually look like?

3 Upvotes

Hi everyone,

My name is Aaron Becker. I'm a Curriculum Engineer at MongoDB, and the primary author of our Governance for AI Agents skill, and I wanted to share a little about it and hear how others are approaching this subject.

As AI agents take on more work and make decisions that affect real people, governance has become increasingly important. What should an agent be allowed to do? What permissions should it have? When should a human step in? And when something goes wrong, what evidence do we have to understand what happened?

Our Governance skill explores these questions through a practical example involving a customer support AI agent. We look at how things can go wrong without proper governance, and how to design systems to prevent mistakes before they happen. Topics include autonomy boundaries, least privilege, scoped access, approval gates, rollback and recovery mechanisms, and auditing and investigating incidents. Most importantly, we discuss the importance of approaching Governance as an ongoing process.

Developing this skill was a valuable learning experience for me, and I'd be interested to hear how other people and teams are tackling these challenges. What do you see as the biggest governance challenges for agentic AI, particularly as agents become more autonomous? What problems do you think we'll need to address next?

If you'd like to explore the material, the training is available here:
https://learn.mongodb.com/courses/governance-for-ai-agents
Completing the training and assessment also earns you a shareable Credly badge.
I'd welcome your thoughts and perspectives!


r/MongoDB_Official • • 20d ago

Question MongoDB Atlas TLS Handshake Failure on Two Replica Set Nodes

2 Upvotes

Title: MongoDB Atlas TLS Handshake Failure on Two Replica Set Nodes

Hello MongoDB Community,

I am unable to connect my Next.js application to MongoDB Atlas.

My cluster is active, and my current IP address is allowed.

Environment:

  • Windows
  • Node.js v24.18.0
  • Mongoose 9.12.0
  • MongoDB Driver 7.8.0
  • MongoDB Atlas 8.0.37
  • Region: AWS Mumbai

Connection tests:

  • All three replica set nodes are reachable on TCP port 27017.
  • TLS 1.2 and TLS 1.3 work on shard-00-00.
  • TLS handshakes fail on shard-00-01 and shard-00-02.
  • Error: ERR_SSL_TLSV1_ALERT_INTERNAL_ERROR
  • Atlas SRV DNS records resolve correctly.
  • No active Atlas project alerts.

Mongoose reports MongooseServerSelectionError and ReplicaSetNoPrimary.

Could someone help me identify whether this is an Atlas-side issue or a network-related TLS problem?

Thank you.


r/MongoDB_Official • • 21d ago

Question MongoDB Atlas M0 TLS Handshake Failure on All 3 Nodes

1 Upvotes

Hello MongoDB Community,

I am experiencing a persistent TLS handshake failure connecting my FastAPI backend to MongoDB Atlas.

Environment:

  • Atlas Cluster: Cluster0, M0 Free Tier
  • MongoDB Version: 8.0.37
  • AWS Region: ap-south-1 (Mumbai)
  • Backend: FastAPI on Render (Singapore)
  • Python: 3.12
  • PyMongo: 4.17.0
  • Motor: 3.7.1
  • OpenSSL: 3.0.13

Issue:

My Atlas cluster is ACTIVE, but the backend cannot connect to the database.

Error:

SSL handshake failed: TLSV1_ALERT_INTERNAL_ERROR

SSL alert number 80

Diagnostics already completed:

  1. Confirmed Atlas Cluster0 is ACTIVE.
  2. Confirmed 0.0.0.0/0 is ACTIVE in the Atlas IP Access List.
  3. Confirmed DNS resolution succeeds for all three replica-set hosts.
  4. Tested connections from both Render and GitHub Actions.
  5. Tested TLS 1.2 and TLS 1.3 separately using OpenSSL.
  6. All six TLS tests failed with SSL alert number 80.
  7. Configured Motor with tlsCAFile=certifi.where().
  8. Render deployment succeeds, but database health reports unreachable.

The same TLS failure occurs across multiple client environments.

Questions:

Could this be related to the Atlas cluster's TLS endpoint, network gateway, or another server-side configuration?

What additional diagnostic would distinguish an Atlas-side problem from a client-side connectivity issue?

Is there a known issue affecting M0 clusters in AWS Mumbai?

I would appreciate guidance on resolving this without repeatedly changing TLS settings or recreating the cluster.

Thank you.