generative-ai icon indicating copy to clipboard operation
generative-ai copied to clipboard

[Bug]: syntax error in cloud run

Open rajaveluangalan opened this issue 9 months ago • 3 comments

File Name

gemini/multimodal-live-api/websocket-demo-app

What happened?

Hi Team,

Could you please check the syntax of below in cloud run. I am getting error at "gemini-live-demo"

gcloud run deploy --project=YOUR-PROJECT-ID \
--region=us-central1 \
--source=./ \
--allow-unauthenticated \
--port=8000  \
gemini-live-demo

Relevant log output

Resource 'gemini-live-demo' of kind 'SERVICE' in region 'us-central1' in project '' does not exist.

Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

rajaveluangalan avatar Mar 05 '25 05:03 rajaveluangalan

Can you try running the command like this?:

gcloud run deploy "gemini-live-demo" --project=YOUR-PROJECT-ID \
--region=us-central1 \
--source=./ \
--allow-unauthenticated \
--port=8000

holtskinner avatar Mar 06 '25 16:03 holtskinner

same issues again "Resource 'gemini-live-demo' of kind 'SERVICE' in region 'us-central1' in project does not exist." textPayload: "ERROR: build step 0 "gcr.io/cloud-builders/docker" failed: step exited with non-zero status: 8" [91mERROR: unable to select packages:

rajaveluangalan avatar Mar 07 '25 02:03 rajaveluangalan

can you try this

gcloud run deploy gemini-live-demo
--project=YOUR-PROJECT-ID
--source=.
--allow-unauthenticated
--port=8000
--platform=managed
--execution-environment=gen2
--no-cache
--quiet

Jadhavsakshi7887 avatar Apr 02 '25 13:04 Jadhavsakshi7887