How to fix "Your app is unhealthy" even after trying all the documentation part

Pranaya Jadhav 0 Reputation points
2023-05-01T10:56:09.23+00:00

This my first attempt to deploy a streamlit app on azure web app service, I have used docker container for deployment. However, I still cant access the web app I tried everything, followed all the steps trying to resolve the issue, But everytime I refresh the browser it keeps giving the same error "Timeout" or"Application error".

when I check the diagnosis of the web app it shows "container error" and something with Instances. I even checked how to resolve this but again its allowing me to use only 1 instance.

How to resolve this?

Azure Container Registry
Azure Container Registry
An Azure service that provides a registry of Docker and Open Container Initiative images.
412 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,118 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Grmacjon-MSFT 17,126 Reputation points
    2023-07-11T06:50:15.53+00:00

    Hi @Pranaya Jadhav thanks for your patience. Like LexLi mentioned above, we will need more information about your app in order to narrow down what us is the cause of the "Timeout" or "Application" error. what app service plan are you go? can you please share the Azure documentation(s) you followed?

    There are a few reasons you are seeing a "Timeout" or "Application error" when trying to access your app on Azure Web App Service, it could be due to a number of reasons. Here are some of things to do to troubleshoot further:

    1. You can check the logs of your Docker container to see if there are any errors or issues that are causing the app to fail. You can do this by running the following command in the Azure Cloud Shell
    az webapp log tail --name <app-name> --resource-group <resource-group-name>
    

    Replace <app-name> and <resource-group-name> with the name of your app and resource group, respectively. This command will stream the logs from your app to the console, so you can see any errors or issues that are occurring.

    Check the health of your app: You can check the health of your app by going to the "Diagnose and solve problems" section of your app in the Azure portal. This will show you any issues that are affecting the health of your app, such as high CPU usage or memory usage.

    1. If you are seeing an error related to instances, it could be because you only have one instance of your app running. You can increase the number of instances by going to the "Scale up (App Service plan)" section of your app in the Azure portal. Here, you can increase the number of instances to two or more, which can help improve the performance and availability of your app.

    If you still face this issue after trying the above troubleshooting steps please let us know.

    0 comments No comments