Diagnostics performed from inside the machine via fly ssh console:
- Plain TCP connect to adb.us-ashburn-1.oraclecloud.com:1522 — succeeds in 0.76s.
- TLS handshake WITHOUT a client certificate (ssl.create_default_context(), no client cert) to the same host:port — succeeds in 0.8s (TLSv1.3).
- Full connection using python-oracledb (thin mode) WITH the wallet’s mutual-TLS client certificate — consistently takes 68-70s and then fails with:
DPY-6005: cannot connect to database
DPY-6000: Listener refused connection. (Similar to ORA-12506)
This happens identically regardless of which Autonomous DB service level is targeted (_high or _medium), ruling out a database-side session/concurrency limit. - The same wallet, same credentials, same DSN, connecting from a home network (not Fly) — succeeds consistently in 1-2s.
Hypothesis: something in Fly’s outbound network path for this machine/region is dropping or mishandling larger/fragmented TCP packets specific to the mTLS handshake (client certificate presentation), while small TLS handshakes (no client cert) go through fine. The connect descriptor’s built-in retry_count=20/retry_delay=3 (from the Oracle wallet’s tnsnames.ora) is what produces the ~60-70s delay before the final failure.
Could you check:
- Whether there have been any recent networking/MTU changes for the iad region or for this app’s machines.
- Whether outbound TCP fragmentation/MTU handling could explain a hang specific to larger TLS handshakes (client-cert mTLS) vs. plain TLS.