Azure Web App Not Launching [Application Error]

Verma, Disha 5 Reputation points
2023-08-11T03:59:05.0266667+00:00

Hello All,

I am having trouble launching an app deployed from GitHub on Azure. The app won't start and I keep getting an Application Error. I tried adding all the necessary variables in 'configuration settings' and 'connection strings' (see screenshots in body), but I'm still encountering issues. I've attached my log files.

Azure Web App Log Stream.txtUser's image

Configuration Setting:

User's image

And 'connection strings':

User's image

Additionally, added the startup 'gunicorn' command in the General Settings as:
User's image

Despite these changes, the errors in the logs are not fixed. Could someone help me with these issues?

Thank you so much!

Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
1,131 questions
{count} vote

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 22,516 Reputation points
    2023-08-14T11:47:36.74+00:00

    @Verma, Disha Thanks for reaching here!

    An unexpected exit occurred for two reasons:

    1. During Container Startup: When you initiate your container, it will undergo a startup process. We consider it successful when the container is up, running, and responds to a Platform-generated HTTP ping. This should happen within 230 seconds. If not, we'll assume a problem and stop the container. Learn more here.
    2. While Running: Your app container was running, but an unhandled exception caused an unexpected exit.

    For troubleshooting:

    1. Check if the container completed startup.
    2. Address and handle exceptions causing crashes during startup or runtime.
    3. Examine the AppLogs column below to identify application errors affecting the webserver's response or causing runtime crashes.

    Startup crashes: "Container 'container name' couldn't be started"

    Runtime crashes: "Container exited unexpectedly"

    The 5 latest logs show the most recent exceptions.

    1. If startup takes more than 230 seconds, set a longer wait time (up to 1800 seconds) using the app setting WEBSITES_CONTAINER_START_TIME_LIMIT. https://docs.microsoft.com/en-us/archive/blogs/waws/things-you-should-know-web-apps-and-linux#if-your-container-takes-a-long-time-to-start-increase-the-start-time-limit
    2. Please review the following article that might help you customize and configure your Web App to your requirements https://docs.microsoft.com/en-us/azure/app-service/containers/how-to-configure-python

     

    You may try below things-

    2023-08-14T08:56:59.447371819Z [2023-08-14 08:56:59 +0000] [69] [INFO] Booting worker with pid: 692023-08-14T08:57:50.282510012Z /tmp/8db9c45d39c7d3f/app.py:274: GradioDeprecationWarning: The style method is deprecated. Please set these arguments in the constructor instead.2023-08-14T08:57:50.292435612Z file = gr.components.File(label="CSV Output", container=False, visible=False).style(height=100)

     

    This error message is related to the deprecated style method in the Gradio library.

    To resolve this issue, please set the arguments in the constructor such as file = (label="CSV Output", container=False, visible=False).style(height=100) when creating the Radio component.

    Let us know.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.