Got an error while deploying site "Stopping site <site name> because it failed during startup"

Rivas, Mariolys 0 Reputation points
2024-05-08T14:36:32.8+00:00

Hi,

I'm trying to deploy an app using the reflex python library, but after the app compiles successfully, I get the error above. I have tried having the app listen to every port, including 80 and 443, and it doesn't fix the issue.

Thanks.

Microsoft Configuration Manager Deployment
Microsoft Configuration Manager Deployment
Microsoft Configuration Manager: An integrated solution for for managing large groups of personal computers and servers.Deployment: The process of delivering, assembling, and maintaining a particular version of a software system at a site.
913 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,997 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Grmacjon-MSFT 16,446 Reputation points
    2024-05-08T23:38:55.94+00:00

    Hi @Rivas, Mariolys we are sorry to hear you're facing this issue.

    The error message "Stopping site <site name> because it failed during startup" means an issue during the startup process of your application deployed on Azure App Service. While you mentioned trying different ports (80 and 443), the problem likely lies elsewhere. Here are some steps to troubleshoot and fix this issue:

    Since you're using the Reflex library, there might be more specific error messages logged during deployment. These logs could be stored in Azure Application Insights or Kudu logs. Access the Azure portal and navigate to your App Service resource. Look for "Application Insights" or "Kudu" to access the logs. These logs might provide clues about the root cause of the startup failure, such as missing dependencies, configuration errors, or exceptions within your Reflex application.

    Also, The issue might be that your site is not starting up within the default time limit of 230 seconds. You can try increasing the startup time by setting the WEBSITES_CONTAINER_START_TIME_LIMIT App Setting to a higher value. The maximum value you can set is 1800 seconds.

    0 comments No comments