GoogleCloudPlatform / cloud-run-button

Let anyone deploy your GitHub repos to Google Cloud Run with a single click
https://cloud.run
Apache License 2.0
523 stars 91 forks source link

cloud shell fails to enable required APIs #223

Closed shamsmosowi closed 2 years ago

shamsmosowi commented 2 years ago

I've been using cloud-run-button for few months now, and it has been great for simplifying deployment!

past 2 days, I started getting this 500 Error after the Enabling cloud run API step, it has been failing most of the time

Welcome to Cloud Shell! Type "help" to get started.
To set your Cloud Platform project in this session use “gcloud config set project [PROJECT_ID]”
@cloudshell:~$ cloudshell_open --repo_url "https://github.com/GoogleCloudPlatform/cloud-run-hello.git" --page "shell" --force_new_clone
[ ✓ ] Cloned git repository https://github.com/GoogleCloudPlatform/cloud-run-hello.git.
[ ✓ ] Queried list of your projects
[ ? ] Would you like to use existing GCP project projectId to deploy this app? Yes
[ ✖ ] Failed to enable required APIs on project projectId.
Error: failed to list APIs on the project: googleapi: Error 500: An internal exception occurred.
Help Token: Ae-hA1N0clPv7i5vuFyRrZsjI2E6dy8bdUjEAGL8lMvvk5Tfyxwf2F3AOnxID9aTdeHdlc5SPe1tmkBOJnnRWuXuwdSllHpXBCv0APEraBamuAzB, backendError
@cloudshell:~$

Other users have reported the same issue, and I've created new projects and new google accounts, to see if its any misconfiguration on my side, But I can't seem to identify the cause of the Error.

bofeiw commented 2 years ago

I am seeing the same error.

Welcome to Cloud Shell! Type "help" to get started.
To set your Cloud Platform project in this session use “gcloud config set project [PROJECT_ID]”
cloudshell_open --repo_url "https://github.com/GoogleCloudPlatform/cloud-run-hello.git" --page "shell" --force_new_clone
bofeiw@cloudshell:~$ cloudshell_open --repo_url "https://github.com/GoogleCloudPlatform/cloud-run-hello.git" --page "shell" --force_new_clone
[ ✓ ] Cloned git repository https://github.com/GoogleCloudPlatform/cloud-run-hello.git.
[ ✓ ] Queried list of your projects
[ ✓ ] Found 8 projects in your GCP account.
[ ? ] Choose a project or press ctrl-c to create a new project: bobby-testing-webhooks
[ ✖ ] Failed to enable required APIs on project bobby-testing-webhooks.
Error: failed to list APIs on the project: googleapi: Error 500: An internal exception occurred.
Help Token: Ae-hA1OLU_kSHKxjecKl6fPZpb8P5JKsoyMxSUR5z1cR-QisnYDvGSmaLou1QBy1-yqQXGs3YhFAfPc88yk8lZwY_OzeQgZuzRFMdEtiOJ1DXNv7, backendError
bofeiw@cloudshell:~$
Screen Shot 2022-01-24 at 2 02 34 am
jamesward commented 2 years ago

I'm investigating this.

jamesward commented 2 years ago

I'm working on getting this fix deployed.

shamsmosowi commented 2 years ago

thanks @jamesward !, is it deployed yet? or is there any ETA for it?

jamesward commented 2 years ago

It is rolling out now and should be 100% in the next 48ish hours. BTW, if you are looking for automated releases check out a better way: https://www.youtube.com/watch?v=vwh4hLGDxFw

shamsmosowi commented 2 years ago

We're actually use it for user onboarding, mainly using it like @tomlarkworthy minecraft server for terraform deployment. Thanks again for getting the issue resolved promptly!

jamesward commented 2 years ago

Ah cool. Thanks!

jamesward commented 2 years ago

It appears this fix has been rolled out and everything seems to be good now. Let me know if you have any issues.