Skip to content

Instantly share code, notes, and snippets.

@Tknott95
Last active October 31, 2020 07:53
Show Gist options
  • Save Tknott95/d60f8e059113a9249546e0b86d4ed0ef to your computer and use it in GitHub Desktop.
Save Tknott95/d60f8e059113a9249546e0b86d4ed0ef to your computer and use it in GitHub Desktop.
Google Cloud FIX for - IN_USE_ADDRESSES | 8 Used Quota | exceeded quotas 8+ needed 1

Google Cloud Deploy fix for 8 used quota limit issue 8+ 1 needed

(visually see servers in pic)

Gcloud Logo

** error message **

IN_USE_ADDRESSES | 8 Used Quota | exceeded quotas 8+ needed 1

TODO:

1. just simply run this command below to find applications running by pid

  gcloud app versions list 

2. then you cnan delete one or many by the id as following shows below

  gcloud app versions delete <pid> <pid>

(second pid is optional)

3. deploy away

  gcloud app deploy --stop-previous-version

🐧 🐧 🐧 🐧

ref:

  1. https://serverfault.com/questions/869418/google-cloud-in-use-addresses-quota-exceeded
@Tknott95
Copy link
Author

command again is
gcloud app versions list | grep -v SERVING | awk '{print $2}' | tail -n +1 | xargs -I {} gcloud app versions delete {}

@NeelimaNair
Copy link

All the above did not work. Finally realized that the build was pointing to the wrong project which did not have the cloud sql deployed in it. This seems to be a bug as the error message displayed was wrong. It showed a used quota of 8 and needed 2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment