Error map

Query for sharded collection must contain the shard key MongoServerError: Query for sharded findAndModify must contain the shard key / Must run update to shard key

MongoDB · layer 5, Data

Open the full error page →

Centre: this error. First ring: errors it is linked with (11). Outer ring: what those are linked with. Colours show the layer of a request each error belongs to. Click any dot to re-centre the map on it; hover to follow its connections. The centre dot opens the error page.

Query for sharded collection must contain the shard key — MongoServerError: Query for sharded findAndModify must contain the shard key / Must run update to shard key (MongoDB)Query for s…Sort/Group exceeded memory limit of 100 MB (allowDiskUse) — MongoServerError: Exceeded memory limit for $group, but didn't allow external sort. Pass allowDiskUse:true to opt in (MongoDB)Sort/Group exceeded…BSONObj size is invalid / exceeds maximum document size (16MB) — MongoServerError: BSONObj size: 17825792 (0x1100000) is invalid. Size must be between 0 and 16793600(16MB) (MongoDB)BSONObj size is inv…Not enough free space to install macOS update — macOS: There is not enough available storage to install this update / Installation of macOS could not continue (macOS)Not enough free spa…NoSuchTransaction: Transaction was aborted or expired — MongoServerError: Transaction 1 has been aborted / NoSuchTransaction: transaction has expired (transactionLifetimeLimitSeconds) (MongoDB)NoSuchTransaction: …Could not find host matching read preference — MongoServerSelectionError: Could not find host matching read preference { mode: "secondary" } for set rs0 (MongoDB)Could not find host…Software Update: Installation failed / an error occurred while installing — An error occurred preparing the update. Failed to verify / "macOS could not be installed on your computer" (macOS)Software Update: In…E: Failed to fetch ... Hash Sum mismatch — E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy/main/binary-amd64/Packages.gz Hash Sum mismatch Hashes of expected file: SHA256:... (Linux)E: Failed to fetch …Jumbo chunk cannot be moved (balancer) — Chunk marked as jumbo / moveChunk failed: chunk too big to move (MongoDB)Jumbo chunk cannot …Cannot change the size of a document in a capped collection — MongoServerError: Cannot change the size of a document in a capped collection: 150 != 120 (MongoDB)Cannot change the s…The dollar ($) prefixed field '$x' in 'y' is not allowed in the context of an update's replacement document — MongoServerError: Updating the path 'a.b' would create a conflict at 'a' (MongoDB)The dollar ($) pref…VPN won't connect after macOS update (system extension / profile) — The VPN connection failed because the network extension could not be loaded (macOS)VPN won't connect a…OOMKilled — Kubernetes: OOMKilled (exit code 137) (Kubernetes)OOMKilledSIGSEGV — Segmentation fault (core dumped) (Linux)SIGSEGVOOM killer — Killed / Out of memory: Killed process (Linux OOM killer) (Linux)OOM killerEMFILE — Too many open files (EMFILE) (Linux)EMFILEbuffering timed out — MongooseError: Operation `users.find()` buffering timed out after 10000ms (Node.js)buffering timed outMongoServerSelectionError — MongooseServerSelectionError: connect ECONNREFUSED 127.0.0.1:27017 (Node.js)MongoServerSelectio…ENOSPC — no space left on device (Docker / Linux) (Docker)ENOSPCHomebrew: No available formula with the name — Homebrew: Error: No available formula with the name "x". Did you mean ...? (macOS)Homebrew: No availa…Your Command Line Tools are too outdated — Homebrew: Error: Your Command Line Tools (CLT) are too outdated. Update them from Software Update / Please update to the latest macOS (macOS)Your Command Line T…MongoDB Atlas: connection timed out — IP not whitelisted — MongoServerSelectionError: Could not connect to any servers in your MongoDB Atlas cluster. One common reason is that you're trying to access the database from an IP that isn't whitelisted (MongoDB)MongoDB Atlas: conn…Atlas: bad auth: Authentication failed — MongoServerError: bad auth : Authentication failed. (Atlas user / special characters in password) (MongoDB)Atlas: bad auth: Au…WriteConflict: Write conflict during plan execution — MongoServerError: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction (MongoDB)WriteConflict: Writ…Transaction numbers are only allowed on a replica set member or mongos — MongoServerError: Transaction numbers are only allowed on a replica set member or mongos (MongoDB)Transaction numbers…NotWritablePrimary: not primary and secondaryOk=false — MongoServerError: not primary and secondaryOk=false / NotWritablePrimary: not master (MongoDB)NotWritablePrimary:…No primary found in replica set / ReplicaSetNoPrimary — MongoServerSelectionError: Server selection timed out after 30000 ms — topology type ReplicaSetNoPrimary (MongoDB)No primary found in…Automatic Repair couldn't repair your PC — Automatic Repair couldn't repair your PC — Log file: C:\Windows\System32\Logfiles\Srt\SrtTrail.txt (Windows)Automatic Repair co…Lost commits after git reset --hard (recover with reflog) — HEAD is now at a1b2c3d Old commit (Git)Lost commits after …Commit unreachable after gc (reflog expired) — error: Could not read 4b825dc642cb6eb9a060e54bf8d69288fbee4904 / bad object after git gc (Git)Commit unreachable …Unable to locate package — E: Unable to locate package (apt / apt-get install) (Linux)Unable to locate pa…Sub-process /usr/bin/dpkg returned an error code (1) — E: Sub-process /usr/bin/dpkg returned an error code (1) (Linux)Sub-process /usr/bi…dpkg was interrupted — E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem (Linux)dpkg was interruptedCan't connect from another host (bindIp 127.0.0.1) — MongoDB: connection refused / timed out from a remote host — mongod bindIp defaults to 127.0.0.1 (MongoDB)Can't connect from …NamespaceExists: Collection already exists — MongoServerError: Collection db.users already exists (NamespaceExists) (MongoDB)NamespaceExists: Co…TTL index not deleting documents — (behavior) expireAfterSeconds set but documents remain (MongoDB)TTL index not delet…Document failed validation — MongoDB: MongoServerError: Document failed validation (code 121) (MongoDB)Document failed val…Mongoose: Model.find() no longer accepts a callback — MongooseError: Model.find() no longer accepts a callback (MongoDB)Mongoose: Model.fin…Windows has detected an IP address conflict — Networking: Windows has detected an IP address conflict / Duplicate address detected by 00:aa:bb:cc:dd:ee (Networking)Windows has detecte…System software from "x" was blocked from loading — macOS: System Extension Blocked — A program tried to load new system extension(s) / System software was blocked from loading (macOS)System software fro…Camera/Microphone access denied (TCC) — macOS: avfoundation: Could not start capture / "Terminal" does not have access to the camera or microphone — tccd denied (macOS)Camera/Microphone a…Connections hang on large transfers (PMTU black hole) — Networking: SSH/HTTPS connects but hangs on large data — path MTU discovery black hole (Networking)Connections hang on…

Directly related (11)

Sort/Group exceeded memory limit of 100 MB (allowDiskUse)MongoDB

MongoServerError: Exceeded memory limit for $group, but didn't allow external sort. Pass allowDiskUse:true to opt in

An aggregation stage needed more than 100 MB of RAM and spilling to disk wasn't enabled.

BSONObj size is invalid / exceeds maximum document size (16MB)MongoDB

MongoServerError: BSONObj size: 17825792 (0x1100000) is invalid. Size must be between 0 and 16793600(16MB)

A single document (or an aggregation result row) grew past MongoDB's 16 MB limit.

Not enough free space to install macOS updatemacOS

macOS: There is not enough available storage to install this update / Installation of macOS could not continue

Software Update needs several GB of free space (often 25-35 GB) to download and stage the update.

NoSuchTransaction: Transaction was aborted or expiredMongoDB

MongoServerError: Transaction 1 has been aborted / NoSuchTransaction: transaction has expired (transactionLifetimeLimitSeconds)

A transaction ran longer than the allowed lifetime (60 s default) or was aborted, so later operations fail.

Could not find host matching read preferenceMongoDB

MongoServerSelectionError: Could not find host matching read preference { mode: "secondary" } for set rs0

The requested read preference (secondary, nearest with tags) matches no available member.

Software Update: Installation failed / an error occurred while installingmacOS

An error occurred preparing the update. Failed to verify / "macOS could not be installed on your computer"

A macOS update failed to download or install.

E: Failed to fetch ... Hash Sum mismatchLinux

E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy/main/binary-amd64/Packages.gz Hash Sum mismatch Hashes of expected file: SHA256:...

The downloaded index doesn't match its checksum.

Jumbo chunk cannot be moved (balancer)MongoDB

Chunk marked as jumbo / moveChunk failed: chunk too big to move

A chunk grew too large to migrate.

Cannot change the size of a document in a capped collectionMongoDB

MongoServerError: Cannot change the size of a document in a capped collection: 150 != 120

Capped collections forbid size-changing updates and deletes.

The dollar ($) prefixed field '$x' in 'y' is not allowed in the context of an update's replacement documentMongoDB

MongoServerError: Updating the path 'a.b' would create a conflict at 'a'

Update operators or field names conflict.

VPN won't connect after macOS update (system extension / profile)macOS

The VPN connection failed because the network extension could not be loaded

A VPN app's network extension was disabled by an update.

Two steps away (30)

OOMKilledKubernetes

Kubernetes: OOMKilled (exit code 137)

The container used more memory than its limit, and the kernel killed it.

SIGSEGVLinux

Segmentation fault (core dumped)

A program accessed memory it wasn’t allowed to, and the kernel killed it with SIGSEGV (exit code 139).

OOM killerLinux

Killed / Out of memory: Killed process (Linux OOM killer)

The kernel ran out of memory and killed a process to recover — the program just prints “Killed” (exit code 137).

EMFILELinux

Too many open files (EMFILE)

The process hit its file-descriptor limit — sockets, files and pipes all count.

buffering timed outNode.js

MongooseError: Operation `users.find()` buffering timed out after 10000ms

Mongoose queued a query waiting for a connection that never opened.

MongoServerSelectionErrorNode.js

MongooseServerSelectionError: connect ECONNREFUSED 127.0.0.1:27017

The MongoDB driver couldn’t find a reachable server for the connection string.

ENOSPCDocker

no space left on device (Docker / Linux)

The disk (or inode table) is full — Docker images, build cache, logs and volumes are common culprits.

Homebrew: No available formula with the namemacOS

Homebrew: Error: No available formula with the name "x". Did you mean ...?

Homebrew can't find a formula or cask with that name in the taps it knows.

Your Command Line Tools are too outdatedmacOS

Homebrew: Error: Your Command Line Tools (CLT) are too outdated. Update them from Software Update / Please update to the latest macOS

Homebrew requires a newer Command Line Tools version than the one installed.

MongoDB Atlas: connection timed out — IP not whitelistedMongoDB

MongoServerSelectionError: Could not connect to any servers in your MongoDB Atlas cluster. One common reason is that you're trying to access the database from an IP that isn't whitelisted

Atlas rejects connections from IP addresses that aren't in the project's Network Access list.

Atlas: bad auth: Authentication failedMongoDB

MongoServerError: bad auth : Authentication failed. (Atlas user / special characters in password)

Atlas rejected the username/password in the connection string.

WriteConflict: Write conflict during plan executionMongoDB

MongoServerError: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction

Two operations tried to modify the same document at once; one was aborted with a transient error.

Transaction numbers are only allowed on a replica set member or mongosMongoDB

MongoServerError: Transaction numbers are only allowed on a replica set member or mongos

You started a transaction (or used retryWrites) on a standalone MongoDB server, which doesn't support them.

NotWritablePrimary: not primary and secondaryOk=falseMongoDB

MongoServerError: not primary and secondaryOk=false / NotWritablePrimary: not master

A write (or read without secondary preference) hit a secondary — the primary changed or you connected directly to a secondary.

No primary found in replica set / ReplicaSetNoPrimaryMongoDB

MongoServerSelectionError: Server selection timed out after 30000 ms — topology type ReplicaSetNoPrimary

The driver sees the replica set members but none is a primary (election failing or members unreachable).

Automatic Repair couldn't repair your PCWindows

Automatic Repair couldn't repair your PC — Log file: C:\Windows\System32\Logfiles\Srt\SrtTrail.txt

Windows failed to boot repeatedly and Startup Repair couldn’t fix it; SrtTrail.txt records the root cause it found.

Lost commits after git reset --hard (recover with reflog)Git

HEAD is now at a1b2c3d Old commit

A hard reset moved the branch back and your newer commits look gone.

Commit unreachable after gc (reflog expired)Git

error: Could not read 4b825dc642cb6eb9a060e54bf8d69288fbee4904 / bad object after git gc

A dropped commit was removed because it was unreachable and expired.

Unable to locate packageLinux

E: Unable to locate package (apt / apt-get install)

apt can’t find the package name in its package lists — the lists are stale, the repository isn’t enabled, or the name is wrong fo…

Sub-process /usr/bin/dpkg returned an error code (1)Linux

E: Sub-process /usr/bin/dpkg returned an error code (1)

A package’s install/configure script failed, so dpkg aborted. The real error is a few lines above this message.

dpkg was interruptedLinux

E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem

A previous package operation stopped halfway (closed terminal, reboot, power loss), and apt refuses to continue until it’s finish…

Can't connect from another host (bindIp 127.0.0.1)MongoDB

MongoDB: connection refused / timed out from a remote host — mongod bindIp defaults to 127.0.0.1

MongoDB only listens on localhost by default, so remote clients can't connect.

NamespaceExists: Collection already existsMongoDB

MongoServerError: Collection db.users already exists (NamespaceExists)

`createCollection` (or an index/rename) targeted a name that is already in use.

TTL index not deleting documentsMongoDB

(behavior) expireAfterSeconds set but documents remain

The TTL monitor deletes lazily and only on valid date fields.

Document failed validationMongoDB

MongoDB: MongoServerError: Document failed validation (code 121)

The collection has a JSON Schema validator and the inserted/updated document doesn’t satisfy it.

Mongoose: Model.find() no longer accepts a callbackMongoDB

MongooseError: Model.find() no longer accepts a callback

Mongoose 7+ removed callback support from queries; they return promises.

Windows has detected an IP address conflictNetworking

Networking: Windows has detected an IP address conflict / Duplicate address detected by 00:aa:bb:cc:dd:ee

Two devices on the same network are using the same IP address, so traffic reaches the wrong one or neither.

System software from "x" was blocked from loadingmacOS

macOS: System Extension Blocked — A program tried to load new system extension(s) / System software was blocked from loading

macOS blocked a kernel/system extension (VPN, virtualization, drivers) until you approve it.

Camera/Microphone access denied (TCC)macOS

macOS: avfoundation: Could not start capture / "Terminal" does not have access to the camera or microphone — tccd denied

Privacy (TCC) blocks the app or terminal from the camera or microphone until you allow it.

Connections hang on large transfers (PMTU black hole)Networking

Networking: SSH/HTTPS connects but hangs on large data — path MTU discovery black hole

Small packets pass but full-size ones vanish, so logins work and then transfers or page loads stall.