Outbound mTLS to Oracle Cloud hangs ~70s then fails (iad)

Diagnostics performed from inside the machine via fly ssh console:

  1. Plain TCP connect to adb.us-ashburn-1.oraclecloud.com:1522 — succeeds in 0.76s.
  2. TLS handshake WITHOUT a client certificate (ssl.create_default_context(), no client cert) to the same host:port — succeeds in 0.8s (TLSv1.3).
  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.
  4. 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.

Our side looks clean, the mTLS handshake itself succeeds and the DPY-6000failure happens right after which could point to the ADB’s network ACL rather than our network/MTU.

One thing though: pet-novagoods doesn’t have a static egress IP yet, so it’s using Fly’s shared dynamic IP pool which won’t match a fixed-IP ACL entry even if one was added.

Could you allocate a static egress IP for your app? Then add that IP to the ADB’s allowed network list on the Oracle side and retest?

Let us know how it goes, happy to dig further if it still fails after that.

Looking at your app, there’s still no static egress IP allocated to pet-novagoods as of right now.