Questions tagged [cloud-sql-proxy]
243 questions
3
votes
1 answer
How is a Django app on Google App Engine structured?
I have read through all of Google's documentation on App Engine and various other blog posts but I still do not have a clear idea on the structure of a Django app running on App engine.
As I see things, App engine instances are attached to one SQL…

Rage
- 870
- 9
- 27
3
votes
1 answer
Connect Cloud Run to Cloud SQL Server Instance in C#
If I understand the "Cloud SQL Connections" tab in Cloud Run should instantiate the Cloud SQL Proxy.
What is the sql server connectionstring that I should use to make this work?
Setup : (All in the the same GCP Project):
1. Create a Cloud Sql…

Ralph
- 309
- 1
- 8
3
votes
4 answers
Connect postgres cloud sql through cloud sql proxy
I created a Single Zone postgres db instance on Cloud Sql, and I am trying to connect by cloud sql proxy.
/cloud_sql_proxy -instances=:us-central1:staging=tcp:5432 -credential_file=./
This is running well. But…

critrange
- 5,652
- 2
- 16
- 47
3
votes
1 answer
GCP ProxySQL and BasicDataSource connection pool
I have an issue with a java BasicDataSource connection pool.
My ProxySql is correctly configured on all my DataProc Compute engine, if I try to connect to my CloudSql instance with sqlclient it works correctly.
When I try to connect to my CloudSql…

Claudio
- 642
- 3
- 12
3
votes
1 answer
Cloud SQL connection for Kubernetes using proxy
I'm currently running a Spring Boot Pod in Kubernetes. There's a side car in the pod for the cloud SQL proxy.
Below is my spring Boot application.properties…

Carlos Gomez
- 275
- 5
- 13
3
votes
1 answer
Connecting Kubernetes to Google Cloud SQL - Invalid JWT Signature
Using the Kubernetes sidecar pattern to connect to Cloud SQL. Followed instructions here: https://cloud.google.com/sql/docs/postgres/connect-kubernetes-engine
The cloudsql-proxy container is giving the error:
2017/12/22 14:34:02 couldn't connect to…

sys13
- 148
- 9
3
votes
3 answers
Error: connect ECONNREFUSED 127.0.0.1:3306 when using cloud sql for MYSQL from NodeJS app
I followed all the steps mentioned in this sample app link. GitHubLink. When running the script (npm run init-cloudsql) to initialize mysql database, I get an error…

Mohit Maharjan
- 79
- 1
- 3
- 10
3
votes
1 answer
Google cloud_sql_proxy unable to connect to instance, stream error, protocol_error
I've been successfully using the Google cloud_sql_proxy on multiple Compute Engine instances for some time, until today, one instance at a time, the proxy started to show the following error pattern:
2017/05/30 13:28:07 New connection for…

joe.holler
- 180
- 2
- 7
3
votes
2 answers
MySQL Workbench won't work with Google Cloud SQL Proxy
I'm using Google Cloud SQL 2nd generation and installed cloud-sql-proxy on my local machine.
On my local machine I'd simply connect to 127.0.0.1:3306 and this has been working fine, in NodeJs, Php and using the mysql command line client.
On Google…

Suau
- 4,628
- 22
- 28
2
votes
1 answer
Sqlproxy in GCE Virtual Machine can't connect to CloudSQL postgres database
I am trying to get Metbase runnning on a Google VM using a CloudSQL postgres instance as as database.
In the startup script I have the following code to start a sqlproxy:
sudo docker service create --name sqlproxy --network host \
…

Arthur de Vries
- 23
- 3
2
votes
1 answer
How to Connect to Cloud SQL using Node.js?
Connecting to Cloud SQL using Node.js is not always straightforward.
Depending on the context, sometimes you have to connect to a Unix domain socket, allow-list IP addresses for TCP connections, run the Cloud SQL Auth proxy locally. Making these…

ruyadorno
- 866
- 5
- 16
2
votes
0 answers
Failed to bring up Cloud SQL Metastore using 2.0-debian10 image
we are trying to create a data proc cluster with a newer image. We already upgraded our cloud SQL backed hive metastore to 3.1.0 . But while creating dataproc cluster with dataproc initialization action (where we are installing cloud sql proxy ) its…

cloud_anny
- 77
- 1
- 15
2
votes
1 answer
FastAPI + Cloud SQL Proxy in a docker-compose failed
I am trying to run my API inside a docker container. However, my API use CloudSQL and I therefor need Cloud SQL Proxy to run alongside my API.
My Dockerfile run the API with:
# Things needed to install requirements and more
CMD uvicorn app.main:app…

Yohann L.
- 1,262
- 13
- 27
2
votes
1 answer
instanceDoesNotExist after upgrading cloudsql-proxy to v1.31.0
I'm using Mac m1 machine and I wanted to upgrade to v 1.31.0 which make cloud-proxy ARM friendly. Here is a sample of my proxy file(which was working fine with the previous cloudsql-proxy versions)
apiVersion: apps/v1
kind: Deployment
metadata:
…

Omar Ahmed
- 53
- 3
2
votes
1 answer
Authentication failure for user in connecting to GCP posrgreSQL cloud SQL via cloud sql proxy and using sqlalchemy in python on Ubuntu machine
I have crated a postgreSQL cloud SQL instance in GCP and I have created a user and a DB for it. I can connect to it via cloud_sql_proxy tool:
$ cloud_sql_proxy -instances=project_name:REGION:instance_name=tcp:5432…

Amin Merati
- 2,221
- 4
- 22
- 38