20

I'm trying to deploy an application with AWS App Runner and initially had a successful deploy. However, as I make changes to the app, then push to GitHub, the application deployment begins, runs for about 20 minutes then fails.

Here are the last few lines from the deploy log:

[Build] Successfully built 96fba6016991
[Build] Successfully tagged application-image:latest
[AppRunner] Failed to deploy your application source code.

Then the application rolls back. I cannot locate any other logs with any additional information.

Where can I find more descriptive logs? Why is my application not deploying?

4
  • 7
    Thanks for reporting, I'm getting the same exact error. Commented May 30, 2021 at 19:10
  • I am having the same issue. Deploying the application locally works fine for me. Commented Feb 11, 2023 at 21:24
  • 2
    This is typically an application error. If the container has errors and is not able to terminate properly, another deployment will fail. I suggest you look through logs, cloudtrail, cloudwatch to see what is going on. Sometimes not putting a timeout on network connections can cause applications to hang.
    – victor m
    Commented Jul 18, 2023 at 16:51
  • 1
    Where can I find more descriptive logs? Check the cloudwatch, cloudformations, cloudtrail. Indeed in some services it is not so obvious
    – gusto2
    Commented Dec 3, 2023 at 5:56

1 Answer 1

3

I solved this problem by looking into other places with logging. The initial message was in the "deployment journal", but there was more details if opened in "cloudwatch". I also went in the "application journal" part. Clicked on "Application logs" in this section to be able to see the actual error message causing the issue.

Not the answer you're looking for? Browse other questions tagged or ask your own question.