GoogleCloudPlatform / localllm

Apache License 2.0
1.49k stars 113 forks source link

ERROR: gcloud crashed (AttributeError): May not assign arbitrary value disableSsh to message GceInstance #23

Open pythongiant opened 4 months ago

pythongiant commented 4 months ago

I was running the standard command as given in the tutorial to this error, i tried googling this and didn't find much. Could anyone help me out?

iampoppyxx@iampoppyxx:~/new/localllm$ gcloud workstations configs create $LOCALLLM_WORKSTATION \
--region=$REGION \
--cluster=$CLUSTER \
--machine-type=e2-standard-32 \
--container-custom-image=us-central1-docker.pkg.dev/${PROJECT_ID}/${LOCALLLM_REGISTRY}/${LOCALLLM_IMAGE_NAME}:latest

image

bobcatfish commented 4 months ago

hmm @pythongiant that's very strange! I'll look into this a bit more but my quick answer is I wonder if updating gcloud might help? @jerop had run into an issue with the workstation creation commands early on which was a bug in gcloud that was subsequently fixed, but I'm not sure that it looked like this. ( + @kmontg in case you remember )

pythongiant commented 3 months ago

Hi @bobcatfish gcloud is updated and I just installed it

bobcatfish commented 3 months ago

Hi @pythongiant ! So I finally tried it myself and got exactly the same error 🤦‍♀️ . Poking around a bit it seems like there was a flag introduced into the gcloud workstations configs create command that's a bit broken 😬 .

It looks like it was added in 464.0.0 so I've got two workarounds for now that both worked for me:

From what I can tell, there's a pending fix that should go out I think with the next version 🤞, in the meantime I'll update the docs to recommend gcloud beta workstations so hopefully folks don't get tripped up by this.

Thanks for reporting it @pythongiant !