Cloud SQL Proxy no longer working in App Engine environment

47 views
Skip to first unread message

Jordan Cote

unread,
Feb 25, 2017, 2:37:10 PM2/25/17
to Google App Engine
Starting on Feb 19, an issue with Cloud SQL occurs with the App Engine's Cloud SQL Proxy. I get the following error in the App Engine logs:

error when connecting to db: { Error: connect ECONNREFUSED 127.0.0.1:3306

The app works on my local machine with Cloud SQL Proxy, as does the counterpart app in Compute Cluster. It used to work in App Engine, too. I double checked the App Engine user's credentials are set to Editor. The SQL instance is 2nd gen and in the same project as the App Engine app. The SQL API is enabled. I noticed that recently the App Engine parameter vm:true has been deprecated in favor of env: flex. I tried it both ways, with the same result. I also tried restarting the SQL server. It is in us-east1 and the instances are in us-east1-b/c.
I also posted in Google Cloud SQL with some other details.
Reply all
Reply to author
Forward
0 new messages