GoogleCloudPlatform / GoogleCloudPlatform/cloud-code-intellij

Datagrip -- Unable to Connect using Cloud SQL Proxy

Open
#3,173 3 comments 1 reaction 0 assignees View on GitHub
area/databases
Dominant language
No language data
Stars
325
Forks
64
PR merge metrics
No merged PRs in 30d

Description

Sometimes I'm able to connect, usually by restarting (after a force-quit) Datagrip. Currently, however I'm not able to connect at all, seems the issue has become persistent.

### Expected Behavior
Connect via Cloud SQL Proxy
Connecting to any existing database sources should work (refreshing, querying, Test Connection)
The Cloud SQL console should log "connection created" and "connection closed" everytime DataGrip pings through the proxy
![image](https://github.com/GoogleCloudPlatform/cloud-code-intellij/assets/105317789/9951c024-d024-46da-858d-0e7da725f257)

### Actual Behavior
Connecting hangs, the console messages never show up.
Datagrip needs to be closed and force quit, as the application hangs as well while cancelling / closing the connections
![image](https://github.com/GoogleCloudPlatform/cloud-code-intellij/assets/105317789/d5a2f002-f523-4be7-b299-515cdceef61e)
![image](https://github.com/GoogleCloudPlatform/cloud-code-intellij/assets/105317789/fa8f8158-336b-438d-b99e-0ce2a0577cd6)
![image](https://github.com/GoogleCloudPlatform/cloud-code-intellij/assets/105317789/e99d8b24-99fb-4b6f-86de-1ebaa00fac9b)
### Additional Information

- IDE type (e.g. IntelliJ, Pycharm): Datagrip
- IDE version:

DataGrip 2023.2.3
Build #DB-232.10203.8, built on October 24, 2023

- Cloud Code version (Settings > Plugins > Cloud Code):

23.10.2-api-version-222

- Cloud SDK (Settings > Cloud Code > Cloud SDK)

- Are you allowing the plugin to manage the Cloud SDK:
No, it's installed separately

![image](https://github.com/GoogleCloudPlatform/cloud-code-intellij/assets/105317789/e0795ca2-111a-497b-88ab-1b0ac427ea77)

- Version of the Cloud SDK:

Google Cloud SDK 455.0.0
beta 2023.11.10
bq 2.0.98
core 2023.11.10
gcloud-crc32c 1.0.0
gsutil 5.27

- Skaffold version (If you are using Kubernetes features; Settings > Cloud Code > Kubernetes):

N/A

- Operating System:

macOS 12.5
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 8

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.