Error map
$lookup very slow (no index on foreignField) (behavior) aggregation with $lookup takes minutes
MongoDB · layer 5, Data
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.
Directly related (9)
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…
MongoServerError: operation exceeded time limit (MaxTimeMSExpired) / Query timed out
A query ran longer than `maxTimeMS` (or the driver's socket/timeouts) and was aborted.
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.
(behavior) expireAfterSeconds set but documents remain
The TTL monitor deletes lazily and only on valid date fields.
(explain) winningPlan: { stage: "COLLSCAN" } docsExamined: 1200000
The query scans the whole collection.
(behavior) npm install / file watching in a bind mount takes minutes
File sharing between macOS and the VM is slow.
MongoServerError: text index required for $text query
`$text` needs a text index.
MongoServerError: add index fails, too many indexes for app.users key:{ x: 1 }
The collection reached the 64-index limit.
MongoServerError: $search is not allowed or the syntax is incorrect
`$search` isn't available on this deployment/index.
Two steps away (20)
no space left on device (Docker / Linux)
The disk (or inode table) is full — Docker images, build cache, logs and volumes are common culprits.
HTTP 504 Gateway Timeout
A proxy or gateway waited too long for the upstream server to respond and gave up.
Cloudflare Error 524: A Timeout Occurred
Cloudflare connected to the origin, but the origin didn’t send an HTTP response within 100 seconds.
MongooseError: Operation `users.find()` buffering timed out after 10000ms
Mongoose queued a query waiting for a connection that never opened.
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.
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.
MongoServerError: bad auth : Authentication failed. (Atlas user / special characters in password)
Atlas rejected the username/password in the connection string.
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.
MongoDB: Out of memory: Killed process (mongod) — WiredTiger cache + queries exhausted RAM
The Linux OOM killer terminated `mongod` because the host ran out of memory.
Firefox: Peer's Certificate has expired. Error code: SEC_ERROR_EXPIRED_CERTIFICATE
Firefox found an expired certificate in the chain presented by the server.
OpenSSL: verify error:num=10:certificate has expired — notAfter=Jan 1 00:00:00 2025 GMT
OpenSSL's verification found a certificate in the chain whose validity period has ended.
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.
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.
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).
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 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…
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.
MongooseServerSelectionError: connect ECONNREFUSED 127.0.0.1:27017
The MongoDB driver couldn’t find a reachable server for the connection string.
CastError: Cast to ObjectId failed for value "x" (type string) at path "_id"
A value that isn’t a valid 24-hex-character ObjectId was used in an _id query.
MongoServerError: E11000 duplicate key error collection: db.users index: email_1 dup key
An insert/update violated a unique index in MongoDB.