Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intellij Golang Cloud Run Locally: authentication error #3218

Open
dlandvater opened this issue Jul 9, 2024 · 1 comment
Open

Intellij Golang Cloud Run Locally: authentication error #3218

dlandvater opened this issue Jul 9, 2024 · 1 comment

Comments

@dlandvater
Copy link

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

(screenshots are often helpful) - see attached
intellij_cloud_run_sample

Expected Behavior

Run the sample program in Intellij for Cloud Run, run locally

Actual Behavior

Getting this error:
...
getting hash for artifact "cloud-run-test1": getting dependencies for "cloud-run-test1": parsing ONBUILD instructions: retrieving image "gcr.io/distroless/static-debian11": GET https://storage.googleapis.com/artifacts.distroless.appspot.com/containers/images/sha256:9de0a16f3958b01fee65b2775d8616d2762f023a9ec6badb35cc853cc0eada1e?access_token=REDACTED: unexpected status code 401 Unauthorized: AuthenticationRequiredAuthentication required.

Failed to start Cloud Run dev session.

Additional Information

I have a project of this name in GCP.
I signed in to GCP using the Tools - Gemini + Google Cloud Code - Sign in

  • IDE type (e.g. IntelliJ, Pycharm):
  • Intellij
  • IDE version:
  • 2024.1.4 (Ultimate Edition) - Note I'm using it as a 30 day trial to see if it works, since I was unable to get Cloud Run debugging to work in Goland where I have a license
  • Cloud Code version (Settings > Plugins > Cloud Code):
  • 24.7.1-api-version-223
  • Cloud SDK (Settings > Cloud Code > Cloud SDK)
    • Are you allowing the plugin to manage the Cloud SDK:
    • yes
    • Version of the Cloud SDK:
      -483.0.0
  • Skaffold version (If you are using Kubernetes features; Settings > Cloud Code > Kubernetes):
  • v2.11.0
  • Operating System:
  • Windows 11

Feel free to deviate from this template as needed, especially if you are submitting a feature request.

@ivanporty
Copy link
Collaborator

Looks like there is an issue getting the image (gcr.io/distroless/static-debian11) - could you try getting it using docker pull, after you login with gcloud auth login command?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants