GoogleCloudPlatform / genai-for-marketing

Showcasing Google Cloud's generative AI for marketing scenarios via application frontend, backend, and detailed, step-by-step guidance for setting up and utilizing generative AI tools, including examples of their use in crafting marketing materials like blog posts and social media content, nl2sql analysis, and campaign personalization.
https://cloud.google.com/vertex-ai/
Apache License 2.0
285 stars 99 forks source link

ERROR WITH STEP 11.1 #71

Open Priscach opened 3 months ago

Priscach commented 3 months ago

Follow the guide steps and got the error when running gcloud run deploy genai-marketing --source . --region us-central1 --allow-unauthenticated

未命名
arturleega commented 3 months ago

I had the same issue. What worked for me was to give the compute engine service account (the default service account, which looks like xxxxxxxxxxxx-compute@developer.gserviceaccount.com) the following permissions:

Priscach commented 3 months ago

I had the same issue. What worked for me was to give the compute engine service account (the default service account, which looks like xxxxxxxxxxxx-compute@developer.gserviceaccount.com) the following permissions:

  • Secret Manager Secret Accessor;
  • Secret Manager Secret Version Manager;

Hi , Thanks for you advise. However, after I tried to modify the permission, it still didn't work. Do you have other solutions? Thanks a lot. image

arturleega commented 3 months ago

Did you look at the log to see what the error is? Try entering the log link that is provided when the error occurs.

When I had this issue, my log was claiming that I didn't have permission to on the resource "path-to-the-secret-of-the-service-account".

bijucyborg commented 1 month ago

@Priscach 's comment worked for me as well.