GoogleCloudPlatform / cloud-code-intellij

Plugin to support the Google Cloud Platform in IntelliJ IDEA - Docs and Issues Repository
Apache License 2.0
318 stars 59 forks source link

Cannot connect to google cloud, receive ssh Error #3146

Open reducedmatrice opened 1 year ago

reducedmatrice commented 1 year ago

(Please ensure you are running the latest version of Cloud Code for IntelliJ with Help > Check for Updates)

What did you do? I wanted to deploy my project to app engine in the google cloud, I tried 2 ways to do so. One was to use CLI run 'gcloud init', after I login with google account in the web page, going back to CLI I received an error "ERROR: gcloud crashed (SSLError): HTTPSConnectionPool(host='oauth2.googleapis.com', port=443): Max retries exceeded with url: /token (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)')))" The other way was to use the extension on Webstorm, and when tried to login, the web pages showed login successfully but I still fail to login. What did you expect to see? I think it should be a login successfully result when I want to deploy my project, but it said 'no active account', so I was not log in. What did you see instead? I think the ssh error could probably be caused by my VPN, but I cannot access google account or services without VPN in my country, so I have to keep the VPN. Also I tried many other IPs but all failed. (screenshots are helpful) Feel free to deviate from this template as needed, especially if you are submitting a feature request. image

etanshaul commented 1 year ago

hi @reducedMatrice .

The other way was to use the extension on Webstorm, and when tried to login, the web pages showed login successfully but I still fail to login.

Could you provide a few more details around this. What did you see happen after logging in from the plugin? You said that it still failed to login, so I'm curious what you saw happen.

reducedmatrice commented 1 year ago

Hello Etan,

Thank you for responding. Here are the steps I took. 1.Go to the navigator bar, Tools - Google Cloud Code - Upload to Cloud Source Repositories [image: image.png]

  1. After I selected my Google account, I agreed on Google Cloud SKD to access my account. [image: image.png]

  2. This page shows, telling me already authenticated. Meanwhile, nothing happened in the webstorm and when I repeat step 1, it still needs me to select Google Account and login. [image: image.png]

Since what I received from the Google web page is exactly the same as I tried authentication via CLI, I think Webstorm also failed to log in to Google Account due to the same reason.

Etan Shaul @.***> 于2023年6月27日周二 02:33写道:

hi @reducedMatrice https://github.com/reducedMatrice .

The other way was to use the extension on Webstorm, and when tried to login, the web pages showed login successfully but I still fail to login.

Could you provide a few more details around this. What did you see happen after logging in from the plugin? You said that it still failed to login, so I'm curious what you saw happen.

— Reply to this email directly, view it on GitHub https://github.com/GoogleCloudPlatform/cloud-code-intellij/issues/3146#issuecomment-1608011123, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2TUAUMKZF6NMI2JSNML2A3XNHIYDANCNFSM6AAAAAAZUN36BQ . You are receiving this because you were mentioned.Message ID: @.*** com>

XiaoWen1227 commented 9 months ago

hey @reducedmatrice, did you solve this issue? i gotta same here.

lautaropacellaDR commented 8 months ago

Having the same issues when trying to connect a production cloud run to another cloud run. Anyone has solved this?

adityaa30 commented 7 months ago

I had similar issue - https://unix.stackexchange.com/questions/577839/ssh-connection-freezes-on-4g-hotspot-but-not-on-any-wifi helped me.

TLDR;

echo "ServerAliveInterval 115" >> ~/.ssh/config