Skip to content

BUG in AWS App Runner stuck on "Operation in progress" for over a day

4

During the deployment of app runner, it got stuck on "Operation in progress". This is clearly a bug in the state management of the deployment. The issue is that now, the service is locked for actions. I cannot re-deploy it, pause it, delete it, unlink its domain, ...

The simples solution was to do a new deployment, but now I need to shutdown and delete this old service so I don't get charged.

I already tried with the CLI but also does not work. https://repost.aws/questions/QUedzqEoC5QBSD3BxlHRgFzA/apprunner-service-stuck-in-quot-operation-in-progress-quot

  • Hey! I had the same problem since Tuesday. This morning I checked my service and it was in normal Running state. Maybe they sent a fix and now it works. I also tried updating it and everything is fine now

asked a year ago220 views
1 Answer
0

Hello NicolasRyberg, I understand you're facing a frustrating issue with your App Runner service being stuck in the "Operation in progress" state, which is preventing you from performing any actions on it, including redeployment, pausing, or deletion. This is indeed a challenging situation, and I'll provide some steps to help you resolve it.

Here's what we can try:

Retry the deletion: Even though you've mentioned the CLI doesn't work, let's try one more time with the specific command:

aws apprunner delete-service --service-arn YOUR_SERVICE_ARN

Replace YOUR_SERVICE_ARN with the actual ARN of your stuck service.

Force deletion through the console:
    Navigate to the App Runner console
    Select your stuck service
    Click on "Delete" in the Actions dropdown
    In the confirmation dialog, check the box that says "Force delete this service"
    Type "delete" to confirm and proceed with the deletion

Check for VPC Ingress Connections: Sometimes, a failed VPC Ingress Connection can prevent service deletion. To check and delete if present:

aws apprunner list-vpc-ingress-connections --service-arn YOUR_SERVICE_ARN

If any connections are listed, try deleting them:

aws apprunner delete-vpc-ingress-connection --vpc-ingress-connection-arn VPC_INGRESS_CONNECTION_ARN

Verify service status: After attempting these steps, check the service status:

aws apprunner describe-service --service-arn YOUR_SERVICE_ARN

Contact AWS Support: If the above steps don't resolve the issue, I strongly recommend contacting AWS Support. They have additional tools and permissions to force-delete stuck resources and can investigate the root cause of the state management issue.

To verify that your problem has been solved:

Check the App Runner console to ensure the service no longer appears in your list of services.

Use the AWS CLI to list your App Runner services and confirm the stuck service is not present:

aws apprunner list-services

Review your AWS billing to ensure you're no longer being charged for the service.

If you continue to face issues or need further assistance, please don't hesitate to reach out to AWS Support for more in-depth troubleshooting and resolution. Also, please see AppRunner documentation below for more details. Thank you for using AWS!

Managing App Runner services - AWS Toolkit for JetBrains - https://docs.aws.amazon.com/toolkit-for-jetbrains/latest/userguide/managing-service-apprunner.html

Pausing and resuming an App Runner service - AWS App Runner - https://docs.aws.amazon.com/apprunner/latest/dg/manage-pause.html

AWS
answered 10 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.