MongoDB Atlas connections fail on Ubuntu 24.04 LTS with error:
MongoServerSelectionError: error:0A000438:SSL
routines:ssl3_read_bytes:tlsv1 alert internal error (SSL alert number 80)
ROOT CAUSE: Ubuntu 24.04 OpenSSL compiled with hardcoded
DOPENSSL_TLS_SECURITY_LEVEL=2
AFFECTS: All mongosh and Node.js/Mongoose connections to Atlas from
Ubuntu 24.04
REPRODUCTION: Any Atlas connection from fresh Ubuntu 24.04 system
WORKAROUND: Install libssl1.1 compatibility package
TECHNICAL DETAILS:
- Tested with mongosh 2.2.10, Node.js v18/v20
- Network connectivity confirmed (ping/telnet work)
- SSL works to other hosts (Google, MongoDB.com)
- Issue persists across different networks
- Ubuntu’s OpenSSL shows: DOPENSSL_TLS_SECURITY_LEVEL=2 in build flags
This affects all Ubuntu 24.04 users trying to connect to Atlas. Needs
coordination between MongoDB and Ubuntu teams.
15+ hours debugging time could be saved with better error messages or
documentation.