11:57
0
Q: Flask API Deployment on Azure Fails to Start Due to Container Timeout (2GB Model Size)

Jeeva JoslinI'm deploying a Flask API on Azure App Service (Premium V3 P2V3 plan) with models of size ~2 GB through local git. However, I am encountering the following error in the logs during startup: 2024-12-10T12:06:33.635Z ERROR - Container tdoc3_0_bded436f for site tdoc3 did not start within expected ti...

how are you deploying your app
Please share you code that you've tried.
If your deploying via container registry, please share your dockerfile
Through local git not through container registry
github.com/JEEVA-JOSLIN/flask-13-new I couldn't upload the models which are of bigger size in github so I used local git for that
Joshlin please increase the worker timeout like gunicorn --workers 3 --timeout 1800 --bind 0.0.0.0:8000 --log-level debug app:app
Also add this environment variable in your azure web app WEBSITES_CONTAINER_START_TIME_LIMIT to 1800
I have increased the time limit but still didn't work
where to add this line WEBSITES_CONTAINER_START_TIME_LIMIT to 1800
12:53
As you can't share the full code in github it's difficult to find the issue , if poosible please share the full codes