Open FlorianSchaetz opened 1 year ago
@FlorianSchaetz thanks for you report. We see the problem and will fix it. In the meanwhile, if after login you hit cancel and reload the VM list / select a project, the login state should work fine. Alternatively, you could use Tools -> Google Cloud Code -> Sign in.. menu item. Please let us know if this works.
@ivanporty it didn't work for me. But I'm using Google Chrome and macOS. Does it work in previous versions of the plugin?
It should work in previous versions, yes. What happens if you restart IDE after you see success in the browser login window? Cloud Code still doesn't recognize the login status? What if you type gcloud auth list
in Cloud Code Terminal, does it show you as logged in? (Tools -> Google Cloud Code -> Tools -> Cloud Code Terminal)
@daniel-oliveiravas any luck with the latest release (23.6.1), and did you find out about being logged in using gcloud
? Thanks!
I am also having the same issue but with Chrome. No matter how times I try to sign in with Chrome, login doesn't work.
glcoud SDK seems to be working fine and is able to list all the accounts and projects, etc.
@nondescriptcapital Are you using the latest version of the plugin? The latest version of Cloud Code switched to own authentication without using gcloud (Cloud SDK) for it.
When browser opens, and you select your account, what do you see as a next page?
Can't get past login dance with browser. Browser says: "Cloud Code for IntelliJ is now authorized to access your account" But PyCharm Says: "Unable to login to GCP. Please check your network connection, Cloud SDK settings in Preferences | Tools | Cloud Code | Dependencies, and browser settings and try again." Just upgraded to Gemini: 24.4.2-IB.1-api-version-223 PyCharm version: PyCharm 2023.3.5 (Professional Edition) Build #PY-233.15026.15, built on March 21, 2024 .... Non-Bundled Plugins: com.intellij.bigdatatools.core (233.15026.9) com.intellij.bigdatatools.binary.files (233.11799.267) com.intellij.bigdatatools.rfs (233.15026.9) com.google.gct.core (24.4.1-IB.1-api-version-223)
I'm pretty sure this is SSL/TLS cert related. But I don't know how to fix. When I try to download managed Cloud SDK I get this error: 2024-04-01 13:29:05,606 [ 431375] WARN - #com.google.cloud.tools.intellij.cloud.sdk.ManagedCloudSdkService - Error while installing/updating managed Cloud SDK javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:131)
HOW TO add my company certs to PyCharm?
I am able to make it to the "Cloud Code for IntelliJ is now authorized to access your account" success page, yet Intellij responds with the "Unable to login to GCP. Please check your network connection, Cloud SDK settings in Preferences | Tools | Cloud Code | Dependencies, and browser settings and try again." error popup. The Cloud Code Terminal is able to list my accounts via gcloud auth list.
Even after restarting IntelliJ, the Googe Cloud Databases dock does not change from the "login to your Google Cloud account" view.
I'm thinking it's related to my manual proxy configuration - what domains would I have to add to my exclusion list besides google.com and googleapis.com?
What else could be the cause or what else can I try?
IDE type (e.g. IntelliJ, Pycharm): IntelliJ Ultimate IDE version: 2024.1.1 Cloud Code version (Settings > Plugins > Cloud Code): 24.6.1-api-version-223 Cloud SDK (Settings > Cloud Code > Cloud SDK): 480.0.0 Are you allowing the plugin to manage the Cloud SDK: Attempted both Version of the Cloud SDK: 480.0.0 Operating System: Windows 11 Pro Browser: Chrome
I think I'm getting a successful login more often now. A couple things to try 1) Always check to see if there is a new version of the plugin. If they change the rev then connection doesn't seem to work at all with older version of plugin. 2) Only start with one project. I usually have at least two projects open at one time. But with this plugin, I find that I must start with only one project up. So close all but one project, close pycharm and open back up with only one project. Then login. 3) After getting logged in, the authentication will persist for some time between multiple projects. It's probably storing adc somewhere and referencing it. For example, once I have successfully logged in with one project, I can bring up multiple projects in pycharm or intellij and it will already be connected successfully.
Trying to connect to Google Cloud via the plugin in both firefox and chrome (by switching default browser in OS)
Expected Behavior
Actual Behavior
Additional Information
Please note: Firefox setting "https only mode" is not enabled (which seems to have been the solution in another ticket)