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

Exceed quota if I click CloudRun Button, but works well on Cloud Shell #248

Open kkdai opened 6 months ago

kkdai commented 6 months ago

Hi Team, I'm not entirely sure if this is the right place to post my issue, but please feel free to ask any questions if you have them.

I've been attempting to migrate my projects from Heroku using the Cloud Run button. However, sometimes an error occurs indicating that Cloud Run has run out of quota.

image (Apologies for the image being in Chinese, but it indicates that I am running out of Cloud Shell quota.)

Interestingly, when I refresh the page, everything seems to work fine again, but the Cloud Run deployment does not continue.

I've checked my "Cloud Shell quota," and it shows that I still have 90% of my quota remaining.

image

Could anyone please provide suggestions or directions for troubleshooting this issue? Any advice on how to resolve this intermittent quota error with Cloud Run deployments would be greatly appreciated.

Thank you for your assistance!

jamesward commented 6 months ago

That does seem like a bug of some sort. Maybe @glasnt can file this with the Cloud Shell team?

glasnt commented 6 months ago

I've hit this one before, but I couldn't work out which quota I was hitting. I experienced this one when I was clicking the cloud run button from the same repo multiple times. If you are trying to run this many times, you could take the approach of using the command that the Cloud Run Button generates in your Cloud Shell, and editing/running that.

For example, using the button github.com/googlecloudplatform/cloud-run-button, Cloud Shell runs the following command:

cloudshell_open --repo_url "https://github.com/GoogleCloudPlatform/cloud-run-hello.git" --page "shell" --force_new_clone

If you re-use this command in the same Cloud Shell instance, you might be able to get multiple iterations before hitting this quota limit.

(Note that this the custom cloud run button image's cloudshell_open as opposed to the standard Cloud Shell image executable, so you'll have to be in a Cloud Run Button-powered Cloud Shell for this approach to work).