Error map

CannotCreateIndex: Cannot create index... too many indexes MongoServerError: add index fails, too many indexes for app.users key:{ x: 1 }

MongoDB · layer 5, Data

Open the full error page →

Centre: this error. First ring: errors it is linked with (9). 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.

CannotCreateIndex: Cannot create index... too many indexes — MongoServerError: add index fails, too many indexes for app.users key:{ x: 1 } (MongoDB)CannotCreat…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…Sending build context — Docker build slow: "Sending build context to Docker daemon 2.5GB" / transferring context takes forever (Docker)Sending build conte…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…createIndex failed: unique index with duplicates — MongoServerError: Index build failed: E11000 duplicate key error collection: db.users index: email_1 dup key (MongoDB)createIndex failed:…MongoServerError: operation exceeded time limit — MongoServerError: operation exceeded time limit (MaxTimeMSExpired) / Query timed out (MongoDB)MongoServerError: o…Index key too large to index — MongoServerError: Index key too large to index (key size exceeds 1024 bytes) / pre-4.2 behaviour (MongoDB)Index key too large…$lookup very slow (no index on foreignField) — (behavior) aggregation with $lookup takes minutes (MongoDB)$lookup very slow (…Query does a COLLSCAN (slow find) — (explain) winningPlan: { stage: "COLLSCAN" } docsExamined: 1200000 (MongoDB)Query does a COLLSC…Docker Desktop on Mac: bind mounts very slow — (behavior) npm install / file watching in a bind mount takes minutes (macOS)Docker Desktop on M…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 killerENOSPC — no space left on device (Docker / Linux) (Docker)ENOSPC504 — HTTP 504 Gateway Timeout (HTTP)504524 — Cloudflare Error 524: A Timeout Occurred (Cloudflare)524EMFILE — 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…E11000 duplicate key — MongoServerError: E11000 duplicate key error collection: db.users index: email_1 dup key (Node.js)E11000 duplicate keyDocument failed validation — MongoDB: MongoServerError: Document failed validation (code 121) (MongoDB)Document failed val…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…Can'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 …Atlas: bad auth: Authentication failed — MongoServerError: bad auth : Authentication failed. (Atlas user / special characters in password) (MongoDB)Atlas: bad auth: Au…Executor error: Sort exceeded memory limit (find().sort) — MongoServerError: Executor error during find command :: caused by :: Sort exceeded memory limit of 104857600 bytes, but did not opt in to external sorting (MongoDB)Executor error: Sor…RequestEntityTooLargeException — Lambda: Request must be smaller than 6291456 bytes for the InvokeFunction operation (RequestEntityTooLargeException) (AWS)RequestEntityTooLar…Unzipped size must be smaller than 262144000 bytes — Lambda: Unzipped size must be smaller than 262144000 bytes (AWS)Unzipped size must …fork: retry: Resource temporarily unavailable — fork: retry: Resource temporarily unavailable (process/thread limit) (Linux)fork: retry: Resour…MongoServerError: text index required for $text query — MongoServerError: text index required for $text query (MongoDB)MongoServerError: t…Atlas Search: index not found / $search stage requires Atlas — MongoServerError: $search is not allowed or the syntax is incorrect (MongoDB)Atlas Search: index…TTL index not deleting documents — (behavior) expireAfterSeconds set but documents remain (MongoDB)TTL index not delet…bind source path does not exist — invalid mount config for type "bind": bind source path does not exist (Docker)bind source path do…permission denied (volume) — Permission denied writing to a mounted volume inside a Docker container (Docker)permission denied (…Mounts denied — Docker Desktop: Mounts denied: The path is not shared from the host and is not known to Docker (Docker)Mounts denied

Directly related (9)

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.

Sending build contextDocker

Docker build slow: "Sending build context to Docker daemon 2.5GB" / transferring context takes forever

docker build is uploading your whole project folder — node_modules, .git, data files — before building, because there’s no (or a…

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.

createIndex failed: unique index with duplicatesMongoDB

MongoServerError: Index build failed: E11000 duplicate key error collection: db.users index: email_1 dup key

You tried to build a unique index but existing documents already contain duplicate values.

MongoServerError: operation exceeded time limitMongoDB

MongoServerError: operation exceeded time limit (MaxTimeMSExpired) / Query timed out

A query ran longer than `maxTimeMS` (or the driver's socket/timeouts) and was aborted.

Index key too large to indexMongoDB

MongoServerError: Index key too large to index (key size exceeds 1024 bytes) / pre-4.2 behaviour

A document has an indexed field whose value is too large for the index (limit 1024 bytes before MongoDB 4.2).

$lookup very slow (no index on foreignField)MongoDB

(behavior) aggregation with $lookup takes minutes

`$lookup` scans the foreign collection for each input document.

Query does a COLLSCAN (slow find)MongoDB

(explain) winningPlan: { stage: "COLLSCAN" } docsExamined: 1200000

The query scans the whole collection.

Docker Desktop on Mac: bind mounts very slowmacOS

(behavior) npm install / file watching in a bind mount takes minutes

File sharing between macOS and the VM is slow.

Two steps away (24)

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).

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.

504HTTP

HTTP 504 Gateway Timeout

A proxy or gateway waited too long for the upstream server to respond and gave up.

524Cloudflare

Cloudflare Error 524: A Timeout Occurred

Cloudflare connected to the origin, but the origin didn’t send an HTTP response within 100 seconds.

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.

E11000 duplicate keyNode.js

MongoServerError: E11000 duplicate key error collection: db.users index: email_1 dup key

An insert/update violated a unique index in MongoDB.

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.

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.

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.

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.

Executor error: Sort exceeded memory limit (find().sort)MongoDB

MongoServerError: Executor error during find command :: caused by :: Sort exceeded memory limit of 104857600 bytes, but did not opt in to external sorting

A `find().sort()` without a supporting index had to sort too much data in memory.

RequestEntityTooLargeExceptionAWS

Lambda: Request must be smaller than 6291456 bytes for the InvokeFunction operation (RequestEntityTooLargeException)

The event payload (or response) is over Lambda’s 6 MB synchronous limit (256 KB for async invocations).

Unzipped size must be smaller than 262144000 bytesAWS

Lambda: Unzipped size must be smaller than 262144000 bytes

The function code plus layers exceed Lambda’s 250 MB unzipped limit for zip deployments.

fork: retry: Resource temporarily unavailableLinux

fork: retry: Resource temporarily unavailable (process/thread limit)

The user or container hit its maximum number of processes/threads (ulimit -u, pids cgroup), so new processes can’t be created.

MongoServerError: text index required for $text queryMongoDB

MongoServerError: text index required for $text query

`$text` needs a text index.

Atlas Search: index not found / $search stage requires AtlasMongoDB

MongoServerError: $search is not allowed or the syntax is incorrect

`$search` isn't available on this deployment/index.

TTL index not deleting documentsMongoDB

(behavior) expireAfterSeconds set but documents remain

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

bind source path does not existDocker

invalid mount config for type "bind": bind source path does not exist

A -v/--mount or Compose volume points at a host path that doesn’t exist (from the Docker daemon’s point of view).

permission denied (volume)Docker

Permission denied writing to a mounted volume inside a Docker container

The process inside the container runs as a user (UID) that doesn’t own the bind-mounted host folder, so reads/writes fail with EA…

Mounts deniedDocker

Docker Desktop: Mounts denied: The path is not shared from the host and is not known to Docker

Docker Desktop (macOS) can only bind-mount folders listed under Settings → Resources → File sharing.