1

I'm getting the following error when trying to deploy my app to Google App Engine using gcloud app deploy.

error [INTERNAL]: An internal error occurred while processing task /appengine-flex-v1/insert_flex_deployment/flex_create_resources>2020-05-22T15:14:57.416Z3210.jc.5: Deployment Manager operation thesis-lock/operation-1590160497681-5a63e1799a578-3c148be2-663d8bc4 errors: [code: "RESOURCE_ERROR"
location: "/deployments/aef-flex-20200522t171231/resources/aef-flex-20200522t171231"
message: "{\"ResourceType\":\"compute.beta.regionAutoscaler\",\"ResourceErrorCode\":\"403\",\"ResourceErrorMessage\":{\"code\":403,\"errors\":[{\"domain\":\"usageLimits\",\"message\":\"Exceeded limit \'QUOTA_FOR_INSTANCES\' on resource \'aef-flex-20200522t171231\'. Limit: 8.0\",\"reason\":\"limitExceeded\"}],\"message\":\"Exceeded limit \'QUOTA_FOR_INSTANCES\' on resource \'aef-flex-20200522t171231\'. Limit: 8.0\",\"statusMessage\":\"Forbidden\",\"requestPath\":\"https://compute.googleapis.com/compute/beta/projects/.../regions/europe-west1/autoscalers\",\"httpMethod\":\"POST\"}}"

I've been able to deploy previously without any problems or errors in exactly the same way. I haven't changed my app.yaml. I have checked my quota in the Console yet I can find no quota that have been exceeded. The documentation does not provide any insights.

Any ideas as to what I can do?

I have found some similar questions on SO, but none of them seem to point to this issue specifically and none of the proposed solutions to those questions seem to work.

  • Your most likely hitting the "In-use IP addresses" quota for your App Engine region. You may want to look at that SO answer for explanation and possible solution: https://stackoverflow.com/a/52993546/4926605 – LundinCast May 23 '20 at 15:43
  • You can check your quotas here: https://console.cloud.google.com/iam-admin/quotas?service=compute.googleapis.com&usage=USED – LundinCast May 23 '20 at 15:47

1 Answers1

0

I have gone through the same. After digging it for 3 days. I found a solution which worked for me. I have opted to use standard environment instead of env: flex (flex environment). I have changed my config file i.e., app.yaml like the following.

a detailed form with each file type.

 runtime: python27
 threadsafe: true
 api_version: 1

 handlers:
 - url: /(.+\.js)
   static_files: app/\1
   upload: app/(.+\.js)

 - url: /(.+\.css)
   static_files: app/\1
   upload: app/(.+\.css)

 - url: /(.+\.png)
   static_files: app/\1
   upload: app/(.+\.png)

 - url: /(.+\.jpg)
   static_files: app/\1
   upload: app/(.+\.jpg)

 - url: /(.+\.svg)
   static_files: app/\1
   upload: app/(.+\.svg)

 - url: /favicon.ico
   static_files: app/favicon.ico
   upload: app/favicon.ico

 - url: /(.+\.json)
   static_files: app/\1
   upload: app/(.+\.json)

 - url: /(.+)
   static_files: app/index.html
   upload: app/index.html

 - url: /
   static_files: app/index.html
   upload: app/index.html

If you are going to deploy nodejs application change runtime to nodejs(version) delete threaddSafe and api_version rest are same.

Lakshmi
  • 85
  • 12