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
- MongoDB server was restarted or crashed
- Network device (load balancer, firewall) dropped the connection
- Connection idle for too long and was reaped by the server or an intermediary
- TCP keepalive settings not aligned between client and network infrastructure
- Server reached maxIncomingConnections and dropped the connection