254 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
56
views
Cloud Run Spring Boot App fails to connect to Cloud SQL (PostgreSQL) via Proxy: Connection refused [closed]
I'm deploying a Spring Boot application ( forestplus-back ) to Google Cloud Run ( europe-southwest1 ) and trying to connect it to a Cloud SQL PostgreSQL instance ( forsest-plus-db , also in europe-...
2
votes
1
answer
156
views
cloud_sql_proxy giving auth: "invalid_grant" "Bad Request" though user has all permissions - how to debug?
A coworker has a problem with cloud_sql_proxy in GCP. We have a very simple setup, connections are done with the Google account, not service accounts, no IP restrictions or any other specialities.
For ...
0
votes
1
answer
81
views
How to start a container in a kubernetes pod only after its proxy is running?
I have a kubernetes cluster and a PostgreSQL Database running on Google Cloud.
The pod that has the problem is a cronjob with the following configuration:
apiVersion: batch/v1
kind: CronJob
metadata:
...
0
votes
1
answer
155
views
Google Cloud SQL IAM Authentication Failure When Connecting Through Bastion Host and IAP
Environment
Google Cloud Platform (GCP)
Cloud SQL PostgreSQL instance with private IP only
Bastion host with private IP only
Identity-Aware Proxy (IAP) for bastion host access
DBeaver as SQL client
...
0
votes
1
answer
278
views
Why PostgreSQL postgres user's password is not needed with the Cloud SQL Auth Proxy
When connecting directly to a PostgreSQL Cloud SQL instance the password is required:
> psql --host=12.34.56.78 --dbname=mydb --username=postgres
Password for user postgres:
psql (17.2)
WARNING: ...
0
votes
2
answers
441
views
How to connect python with cloud sql mysql
I'm trying to connect my code in Python with a mysql instance that is in Cloud SQL, I created a user for myself and I'm using the public i available in the instance interface as host, but I'm getting ...
0
votes
3
answers
685
views
Trying to find the `recommended dns` data for GCP Cloud SQL instance
I'm working through the documentation for connecting to a private Cloud SQL instance. I created the instance with a private IP (no public access), set up cloud sql proxy on my local, and am able to ...
-3
votes
1
answer
238
views
Error "address already in use" when trying to connect to google cloud SQL using cloud-sql-connector
THE PROBLEM
When trying to connect to my cloud SQL database, I'm getting the following error.
Error: listen EADDRINUSE: address already in use /Users/josechavez/projectName/projectName/.s.PGSQL.5432
...
0
votes
0
answers
286
views
Connect to Cloud SQL from Google Kubernetes Engine - dial tcp: lookup sqladmin.googleapis.com: i/o timeout
Our application is running in GKE and I am using Cloud Proxy as a sidecar to connect to the database. After new release one pod shown up 2 restart when I check the container restart was for cloud-...
1
vote
1
answer
1k
views
Connecting to CloudSQL through cloud-sql-proxy running on a bastion vm
I'm working on a more secure iteration of GCP project setup where there is a bastion host, and the cloudsql instance doesn't have a public IP.
In the current setup cloud-sql-proxy is being used ...
0
votes
0
answers
114
views
GCP cloud SQL double peering
We have an hub and spoke network with a local machine that needs access to a cloud SQL instance like the following
local machine --> vpn --> landing net --> peering --> shared net --> ...
0
votes
1
answer
154
views
Enabling Secured connections to access Cloud Auth proxy from On-premise
We have a requirement to connect the Cloud SQL Database via Cloud Auth proxy deployed on a GKE cluster from an on-premise application securely.
on-premise -> cloud auth proxy (GKE) -> Cloud SQL ...
0
votes
1
answer
149
views
2 Cloud SQL server port forward to cloud proxy vm
I have 2 cloud sql server ( dev and qa) , How to do port forwarding for both sql server to 1 cloud proxy vm.
I did port forwarding for dev sql server long back and its listening on 1433 in cloud proxy ...
1
vote
1
answer
132
views
Cloud sql proxy : php_network_getaddresses: getaddrinfo for /cloudsql/**** failed
Hi I am trying to make a php artisan migrate with my script with a cloud sql proxy connection.
The sql proxy connection working fine but when it launch my command it fail with the error
---------- ...
1
vote
1
answer
981
views
Can Cloud Run access cloud sql to use unix socket in VPC direct egress?
I'm new about GCP network.
I recently use Direct VPC egress.
If I disable Direct VPC egress and use followed format DATABASE_URL
postgresql://user:password@localhost/db_name?host=/cloudsql/project_id:...