@Verma, Disha Thanks for reaching here!
An unexpected exit occurred for two reasons:
- 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.
- While Running: Your app container was running, but an unhandled exception caused an unexpected exit.
For troubleshooting:
- Check if the container completed startup.
- Address and handle exceptions causing crashes during startup or runtime.
- 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.
- 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 - 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-
- Check if the application's listening endpoint is configured correctly. in your application setting add
WEBSITES_PORT
app setting with a value of "8000
" to expose that port. see- https://learn.microsoft.com/en-us/archive/blogs/waws/things-you-should-know-web-apps-and-linux#your-container-must-respond-to-an-http-pingapplies-to-web-app-for-containers - Application Errors that may have caused the container to crash
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.