Container XXX_0_6646becc didn't respond to HTTP pings on port: 8000, failing site start. See container logs for debugging.

Gunji, Takuki 0 Reputation points
2023-11-01T10:49:18.79+00:00

I got the error below.

and my startup command is "flask run".

I can't identicate the problem.

2023-11-01T10:41:35.434Z ERROR - Container XXX_0_6646becc didn't respond to HTTP pings on port: 8000, failing site start. See container logs for debugging.
2023-11-01T10:41:35.570Z INFO  - Stopping site XXX because it failed during startup.
2023-11-01T10:41:46.508Z INFO  - 3.10_20230810.1.tuxprod Pulling from appsvc/python
2023-11-01T10:41:46.519Z INFO  -  Digest: sha256:6e7907b272357dfda9a8c141b01fc30851ffc4448c6c41b81d6d6d63d2de0472
2023-11-01T10:41:46.520Z INFO  -  Status: Image is up to date for mcr.microsoft.com/appsvc/python:3.10_20230810.1.tuxprod
2023-11-01T10:41:46.539Z INFO  - Pull Image successful, Time taken: 0 Minutes and 0 Seconds
2023-11-01T10:41:46.599Z INFO  - Starting container for site
2023-11-01T10:41:46.601Z INFO  - docker run -d --expose=8000 --name XXX_0_cabfc548 -e WEBSITE_SITE_NAME=XXX -e WEBSITE_AUTH_ENABLED=False -e WEBSITE_ROLE_INSTANCE_ID=0 -e WEBSITE_HOSTNAME=XXX.azurewebsites.net -e WEBSITE_INSTANCE_ID=7650abe1621e04b31d328eb87e2210ebe63622f23ada9fb9e8887ea89787dad2 -e HTTP_LOGGING_ENABLED=1 -e WEBSITE_USE_DIAGNOSTIC_SERVER=False appsvc/python:3.10_20230810.1.tuxprod flask run
2023-11-01T10:41:48.281Z INFO  - Initiating warmup request to container XXX_0_cabfc548 for site XXX
2023-11-01T10:42:19.919Z INFO  - Waiting for response to warmup request for container XXX_0_cabfc548. Elapsed time = 31.6382961 sec
2023-11-01T10:42:36.509Z INFO  - Waiting for response to warmup request for container XXX_0_cabfc548. Elapsed time = 48.2276247 sec
2023-11-01T10:42:52.631Z INFO  - Waiting for response to warmup request for container XXX_0_cabfc548. Elapsed time = 64.3493713 sec
2023-11-01T10:43:07.970Z INFO  - Waiting for response to warmup request for container XXX_0_cabfc548. Elapsed time = 79.6885889 sec
2023-11-01T10:43:23.325Z INFO  - Waiting for response to warmup request for container XXX_0_cabfc548. Elapsed time = 95.0434253 sec

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,056 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 22,831 Reputation points Microsoft Employee
    2023-11-01T14:34:58.7266667+00:00

    Hi @Gunji, Takuki

    When troubleshooting, have a look at the diagnostic logs for your app. Anything you're writing to console.log() will be written here. Since the logs are indicating Waiting for response..., that means the platform is waiting for your app code to start responding to HTTP requests. You can land in this state if there's a long running process or a silent failure during startup.

    If you're trying to isolate your issue, use the diagnostic logs to get a point of reference and add console.log() messages to help raise and identify those errors.

    0 comments No comments