google-cloud-platformgoogle-cloud-sqlcloud-sql-proxy

GCP Cloud SQL Proxy times out: connectex


So, I have been using the cloud-sql-proxy for a while now for a local development environment and never had any issues (over a year). I tried to connect today, and it authenticates fine. Yet, connecting to the local port gives a connect error:

A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.`

Any ideas what could've broken my proxy?


Solution

  • If the connection to the Cloud SQL proxy times out, it means the connection to the proxy itself didn't work. That means either the proxy is not listening, or that something it blocking the connection.

    I would suggest looking in the proxy logs to see if it reports any start up errors.