9001 — SocketException

networkingconnectivity

A TCP socket-level error occurred during network communication

What is happening?

SocketException covers low-level TCP socket errors: connection resets, broken pipes, and unexpected connection closures. This is a broad networking error that can be caused by anything from a server restart to a network device dropping the connection.

Common causes

  1. MongoDB server was restarted or crashed
  2. Network device (load balancer, firewall) dropped the connection
  3. Connection idle for too long and was reaped by the server or an intermediary
  4. TCP keepalive settings not aligned between client and network infrastructure
  5. Server reached maxIncomingConnections and dropped the connection

Diagnostic Steps

Related Issues