Azure Web App Container Error

KPS Digital Twin 11 Reputation points
2021-08-12T06:02:47.187+00:00

Hi Everyone,

We have built one React application and are trying to deploy the same to Azure Web App.
The deployment was done using VS Code Azure Service plug in. The logs show deployment as a success however we are seeing the below error when trying to access the app via browser.

  1. Waiting for response to warmup request for container
  2. Container for site did not start within expected time limit. Elapsed time = 250.9032383 sec
  3. Container didn't respond to HTTP pings on port: 8080, failing site start. See container logs for debugging.

Any help would be much appreciated.

Thanks
ThreeAtion

Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
670 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,287 questions
{count} votes

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 19,921 Reputation points
    2021-08-13T10:36:20.003+00:00

    Thanks for asking question! If your site doesn't start suggest you check Docker log to troubleshoot it.

    There are several ways to access Docker logs.

    1. Docker logs appear on the Container Settings page in the portal. (These are truncated, but you can download them by clicking on the
      Download Logs button.)
    2. You can find the Docker log in the /LogFiles directory. You can access this via the Kudu (Advanced Tools) Bash console or by using an
      FTP client to access it.
    3. You can use our API to download the current logs. (See "You can discover and download the latest Docker logs using Kudu" in this
      post for info on that.) The naming convention for the Docker log is YYYY_MM_DD_RDxxxxxxxxxxxx_docker.log .

    Further You may want to know that that your container must respond to an HTTP ping.

    Could you please confirm if port : 8080 is exposed? as if it was never exposed the attempt to ping the container, we aren't pinging on a port on which the container is listening.

    There are a couple of ways to resolve this.

    Use the EXPOSE instruction in your Dockerfile to expose port 8080.

    Use the WEBSITES_PORT app setting with a value of "8080" to expose that port.

    Also, some container takes a long time to start means when we start your container, we'll wait a while for it to start and initialize. We consider the startup to be successful once the container is running and once we get a response to a ping so that we know it's ready to respond to HTTP traffic. We'll wait 230 seconds for that to happen. If we don't have a successful start within 230 seconds, we'll assume there's a problem and we'll stop the container.

    You can resolve this by increasing that 230 second wait time up to a limit of 1800 seconds.

    To configure that, add an app setting called WEBSITES_CONTAINER_START_TIME_LIMIT and set it to the number of seconds you would like for us to wait for your container to start (up to a maximum of 1800).

    Check this detailed link on things you should know web app & linux :
    https://techcommunity.microsoft.com/t5/apps-on-azure/things-you-should-know-web-apps-and-linux/ba-p/392472

    Let us know if issue remains.

    3 people found this answer helpful.