Questions tagged [google-cloud-code]

Cloud Code easily extends VS Code and IntelliJ for a faster build, run, and debug cycle for Kubernetes and Cloud Run.

61 questions
3
votes
1 answer

Cloud Run Run/Debug has stopped working - Exited with code 127

The cloudrun debug in cloud shell was working. It is no longer working for me with the following output. I have 1) rebooted the VM and 2) I have tried another project that was also working previously. I suspect something has changed in my…
3
votes
2 answers

Can't launch VScode Cloud Run plugin on WSL

I'm trying to use the [Google Cloud Code plugin for VSCode] (https://marketplace.visualstudio.com/items?itemName=GoogleCloudTools.cloudcode) into my WSL containers. First time it worked, than I modify the default user on WSL, and now I can't use the…
3
votes
1 answer

GCP Cloud code plugin in intellij "Failed to enable GCP auth addon"

While trying to locally run the "java cloud run hello word sample" Cloud Run: Run Locally I keep getting Enabling GCP auth addon... Failed to enable GCP auth addon. Deployment will continue but GCP credentials will not be added to minikube. Please…
2
votes
2 answers

Go Cloud Code/Docker on M1 Mac exec format error

I'm trying to use GoLand/Cloud Code to build a Golang microservice. But I can't seem to get the Dockerfile nailed down. FROM --platform=linux/arm64 golang:1.20-alpine AS build_base RUN apk add --no-cache git # Set the Current Working Directory…
2
votes
0 answers

Is there a way to setup a debug a go application on kubernetes with skaffold and vscode?

My app is written in go and is packaged in a helm chart which is deployed on the k3s cluster. I am able to use skaffold to deploy to the k3s cluster. I am also able to deploy to the cluster using Google Cloud Code VS Code Extension. However, if I…
Moses
  • 611
  • 5
  • 20
2
votes
0 answers

invalid skaffold config: proxy: unknown scheme: http : VSCode Cloud Code

I tried to follow the instructions on Youtube https://www.youtube.com/watch?v=EtMIEtLQNa0 to run a Cloud Run service locally. I created a sample Python hello-world application. When I choose the option "Run On Cloud Run Emulator", it gives me an…
2
votes
2 answers

Update failed with error code BUILD_DOCKER_UNKNOWN

I am using VS Code with the Cloud Code extension to try to deploy a Python script to GCP Cloud Run. I am able to run the "hello, world" python flask app locally with the Cloud Run emulator and am also able to move it to deploy it to Cloud Run…
2
votes
2 answers

Cloud Code isn't using minikube docker context

I use the Google Cloud Code extension on VSCode. I have a minikube running on my macbook (using the virtualbox driver). I can run skaffold debug from my terminal just fine; the Helm chart gets deployed, but I haven't done the debugger setup so the…
2
votes
3 answers

ERROR: (gcloud.run.deploy) argument --set-env-vars: Bad syntax for dict arg

I'm using Cloud Code (extension for Visual Studio Code) and during the deploy, via UI, I'm trying to set the Environment Variables field like this: KEY1:value1 KEY2:value2,value3 But I'm having this error: Failed to deploy the app. Error: ERROR:…
2
votes
1 answer

Unable to start a Cloud Run container on M1 Macbook

I haven't installed Rosetta on my M1 Macbook. Have Docker and all deps installed and this even worked a few times but not sure what caused this error suddenly: Starting to run the app using configuration 'Cloud Run: Run/Debug Locally' from…
2
votes
0 answers

Attach remote debugger to cloud run from Intellij

I have an app running on Cloud Run and I'm trying to debug remotely using Intellij and the Cloud Code plugin. The java agent is running and I'm able to create snapshots on the GCP Debugger, but Intellij won't attach to the remote code. It shows my…
2
votes
1 answer

Connect to a container running in Docker (Redis) from Cloud Run Emulator locally

I'm making local cloud run services with the Cloud Code plugin to Intellij (PyCharm) but the locally deployed service cannot connect to the redis instance running in Docker: redis.exceptions.ConnectionError: Error 111 connecting to 127.0.0.1:6379.…
2
votes
1 answer

Accessing computeMetadata when debugging in Cloud Code

I'm trying to debug a Cloud Run container locally. In my code I'm trying to retrieve information about the environment to through computeMetadata. location = requests.get("http://metadata.google.internal/computeMetadata/v1/instance/region", …
Anthony Mattas
  • 271
  • 1
  • 12
1
vote
1 answer

Configure VSCode and Cloud Code to debug TypeScript Node application in Kubernetes

I am trying to figure out if it is possible to use Cloud Code in VSCode to debug a TypeScript Node application in Kubernetes remotely? I used Cloud Code regularly to debug JS Node applications in Kubernetes, but I am having hard time to configure…
1
vote
2 answers

VS Cloud Code extension writing Python libraries to AppData/Local/Temp every time a workspace is opened

With Cloud Code Extension enabled, every time I open a workspace (new or existing) VSCode spins up two Python tasks each taking up 10% cpu each for at least 5 minutes. Each task is going to C:\Users{userid}\AppData\Local\Temp and creating a new…
1
2 3 4 5