24
Moderate
MongoDB · Database Server & Atlas
MongoDB server reported: Lock Timeout.
Quick Answer
Error code 24 on your MongoDB Database Server & Atlas means: MongoDB server reported: Lock Timeout.. This is usually fixable — see the step-by-step guide below.
Affected Models
Applies to all models
Likely Causes
How to Fix It
1
Review logs/telemetry for code 24 (LockTimeout) and capture the exact command and parameters that triggered it.
2
Tune timeout and workload partitioning so retries do not amplify contention.
3
Inspect lock waits, queue depth, and timeout settings around the failing command.
4
Reduce fan-out/concurrency temporarily and stagger retried operations.
5
Add monitoring for recurring LockTimeout events so future incidents are detected and triaged faster.
Pro Tip
This fix requires some technical knowledge. If you're unsure about any step, consider contacting support or a qualified technician.
Related Error Codes