GCR deploy failing in workspaces

Hello, I’m facing an issue deploying to GCR. I consistently get this error message:

Deployment failed
ERROR: (gcloud.run.deploy) Unable to read the runtimes experiment config: [gs://gcp-runtime-experiments/experiments.yaml], error: Could not read [<googlecloudsdk.api_lib.storage.storage_util.ObjectReference object at 0x7ec0bcd22490>]

Here’s what I’ve tried so far:

  1. Created a new project on GCR and attempted the deployment again—same error.
  2. Created a new workspace and tried deploying to the new project—same error persists.
  3. The Google Cloud SDK installation is managed by an external package manager, so I cannot update using gcloud components update.
  4. I also tried updating the nix file with pkgs.google-cloud-sdk but that didnt help

Is there a known issue with deployments to GCR, or are there any alternative solutions I can try? Thank you for your assistance.

Which nix channel are you on in .idx/dev.nix?

The latest is 24.05 and that is how you update packages in nix.

Hello, I’m currently on the stable-23.11 channel. I don’t believe the issue is related to the channel, as deployments aren’t working even on a new workspace.

Additionally, someone I know tried deploying and encountered the same problem.

When you update to stable-24.05 it will update the gcloud cli.

Since gcloud components update works differently in nix

oh that makes sense! I updated the channel and i re - added the google-cloud-sdk package. It worked. Thanks rody!

2 Likes

That is great news!!

1 Like

I changed
packages = [ pkgs.python3]; to
packages = [ pkgs.python3 pkgs.google-cloud-sdk ]; inside the dev.nix file and it worked