AI Studio managed Cloud SQL socket mismatch and CONNECTION_TERMINATED

I am experiencing a platform-managed Cloud SQL connectivity failure in a Google AI Studio Build application.

Application details

  • App: Final Claim Hub Pro
  • AI Studio App ID: ed9141a8-…-12fd
  • User-visible project: gen-lang-client-0542519..
  • Instance ID shown by AI Studio: ai-studio-ed9141..
  • Region: asia-southeast1
  • Database: PostgreSQL

Confirmed runtime evidence

  • AI Studio injects SQL_HOST with connection identity key-aria-1zbz0:asia-southeast1:ai-studio-ed9...
  • The socket for that configured identity is missing.
  • The Preview runtime exposes a socket for gen-lang-client-0542519120:asia-southeast1:ai-studio-ed91...
  • A non-mutating SELECT 1 through the available socket fails because the upstream proxy terminates the connection before the PostgreSQL handshake completes.
  • Relevant events: cloudsql_identity_mismatch, cloudsql_socket_missing, cloudsql_connection_terminated, and cloudsql_live_probe_failed.
  • The application now operates in safe Read-Only Recovery Mode with all writes disabled.

Google Cloud Console findings

  • gen-lang-client-0542519.. appears as Default Gemini Project.
  • Cloud SQL Console does not show ai-studio-ed9141a8.
  • It instead offers to create the project’s first Cloud SQL instance.
  • Backup and PITR controls are not available to my account.

I have already submitted a private in-product AI Studio feedback report with diagnostic logs.

Could a Google AI Studio team member please confirm:

  1. Which project actually owns ai-studio-ed9141..?
  2. Which connection identity is authoritative?
  3. Why is the required proxy socket missing or terminating the PostgreSQL handshake?
  4. Is the existing PostgreSQL database and its data still intact?
  5. Are automated backups and point-in-time recovery enabled?
  6. Will publishing reconnect to the existing database or provision a new empty database?
  7. What is the supported non-destructive recovery procedure?

Please do not delete, recreate, reset, migrate, seed, replace, or overwrite the database. The priority is to restore access to the existing data and confirm backup availability.

No credentials, passwords, API keys, tokens, or private database records are included in this report.

Hi @MAT_Digital, Thank you for the detailed diagnostic report. We are looking into this issue. Could you please share your full unredacted AI Studio App ID and Cloud SQL instance ID via direct message?