MongoServerError: Not enough disk space
at MessageStream.messageHandler (/home/ec2-user/server/node_modules/mongodb/lib/cmap/connection.js:467:30)
at MessageStream.emit (events.js:400:28)
at processIncomingData (/home/ec2-user/server/node_modules/mongodb/lib/cmap/message_stream.js:108:16)
at MessageStream._write (/home/ec2-user/server/node_modules/mongodb/lib/cmap/message_stream.js:28:9)
at writeOrBuffer (internal/streams/writable.js:358:12)
at MessageStream.Writable.write (internal/streams/writable.js:303:10)
at TLSSocket.ondata (internal/streams/readable.js:731:22)
at TLSSocket.emit (events.js:400:28)
at addChunk (internal/streams/readable.js:293:12)
at readableAddChunk (internal/streams/readable.js:267:9) {
ok: 0,
operationTime: new Timestamp({ t: 1647938150, i: 1 }),
code: 14031
}
I tried monitoring, but there was enough free storage.
We know that aws documentDB automatically increases free space when the capacity is insufficient.
It did not exceed 64TB and only used about 1GB of capacity.
I'm not sure how I should try to troubleshoot in these cases.
- I am getting Not enough disk space error in aws documentDB.
- I want to know if it is possible for this to happen and, if so, how to fix it.
Can you check the FreeLocalStorage metric? It's probably related to the local storage attached to the DocumentDB instance. Are change streams enabled?