App Engine Flex failed to delete old instances and cannot deploy new version

Hello! I am using an App Engine Flex to deploy my Nodejs App. Right now we are ubuntu22 as the operating system and runtime 20.

Everytime I delete a version using the terminal or deploy a new version I get this error

```
An internal error occurred while processing task /app-engine-flex/insert_flex_deployment/flex_create_resources>2024-04-24T14:47:51.888Z1317.hk.1: SLM LRO Finished with Errors
 
```

Not sure how to fix this, If anyone can provide tips how to debug/fix this it would be greatly appreaciated!
Solved Solved
5 12 578
1 ACCEPTED SOLUTION

After 24 hours, the issue was gone. It would been nice if this was announced or indicated in the gcp status page

View solution in original post

12 REPLIES 12

We are also seeing this, starting about 24h ago, across multiple projects

ERROR: (gcloud.app.deploy) Error Response: [13] Flex operation projects/***/regions/us-west2/operations/xxxxxx-a809-471c-8fd2-eb85d6d7c901 error [INTERNAL]: An internal error occurred while processing task /app-engine-flex/insert_flex_deployment/flex_create_resources>2024-04-24T22:16:33.315Z2795.ho.0: SLM LRO Finished with Errors

Where you able to fix this? It seems we have the same issue

We are seeing this too as of about 24h ago

 

ERROR: (gcloud.app.deploy) Error Response: [13] Flex operation projects/***/regions/us-west2/operations/xxxxxx-a809-471c-8fd2-eb85d6d7c901 error [INTERNAL]: An internal error occurred while processing task /app-engine-flex/insert_flex_deployment/flex_create_resources>2024-04-24T22:16:33.315Z2795.ho.0: SLM LRO Finished with Errors

Some possible troubleshooting steps

1. Run the deploy command with --verbosity flag set to 'info' or 'debug'. This will print out more data during the deploy and going through the data might help you figure out the issue

2. Run the deploy command with --log-http flag which will show you all calls to the server and their status. This might also help you in figuring out the issue

 

    ......NoCommandLine ......
https://nocommandline.com
        Analytics & GUI for 
App Engine & Datastore Emulator

I added this to the command from cloud build and the this is the last part of the result

```

"error": {
"code": 13,
"message": "Flex operation projects/***/regions/asia-east2/operations/830872fd-3e4f-49f7-80e2-229a94e9a057 error [INTERNAL]: An internal error occurred while processing task /app-engine-flex/insert_flex_deployment/flex_create_resources\u003e2024-04-25T01:27:15.531Z1725.hk.2: SLM LRO Finished with Errors"
}

```

I am starting to think if this is a GCP issue

Same here. With python 3.9 and ubuntu 18

ERROR: (gcloud.app.deploy) Error Response: [13] Flex operation projects/....../regions/asia-east2/operations/...##UUID##... error [INTERNAL]: An internal error occurred while processing task /app-engine-flex/insert_flex_deployment/flex_create_resources>2024-04-25T......: SLM LRO Finished with Errors

issue disappeared. deployment works again.

We are seeing the same error

 

Error Response: [13] Flex operation projects/***/regions/***/operations/39fd272c-f2c2-450a-b478-72bc5db8d519 error [INTERNAL]: An internal error occurred while processing task /app-engine-flex/update_flex_deployment/flex_update_resources>2024-04-25T10:18:14.372Z100.hw.1: SLM LRO Finished with Errors

 

 

It could be a coincidence, but I had the same issue and increasing the build timeout worked for me:

gcloud config set app/cloud_build_timeout 1000

After 24 hours, the issue was gone. It would been nice if this was announced or indicated in the gcp status page

I need to wait for 24 hours after deployment and again restart it than it will work ? I am not understanding why this is happening if you can guide @ralph_symph 

For some reason it resolved itself after 24 hours. I just tried again after a while