app service deploy nodejs show container didn't respond to HTTP pings on port 8080

Allen Ma 0 Reputation points
2024-05-11T07:19:44.61+00:00

app service deploy nodejs show container didn't respond to HTTP pings on port 8080

I try to setup PORT or WEBSITES_PORT, its all not work.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,032 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ajkuma 22,851 Reputation points Microsoft Employee
    2024-05-13T06:39:45.7066667+00:00

    @Allen Ma , I’m sorry to hear about the issues you’re experiencing with your Azure App Service.

    I understand you have tried different steps to isolate the issue.

    By default, if your container does not respond after 230 seconds, it will time out. (This time out can be increased by with the WEBSITES_CONTAINER_START_TIME_LIMIT app setting.) (up to a maximum of 1800)

    If you’re running a (custom container) with Web App for Containers, use WEBSITES_PORT. Ensure that this is set to the port that’s also exposed in your Dockerfile through the EXPOSE instruction Vs On App Service Linux, using (Blessed Images) - use PORT, which directly influences the container port of the docker run command.

    Enable application logging (Linux/Container) to fetch more details about the error:

    Checkout the other possible causes outlined this article to narrow-down the issue. Troubleshooting ‘Container didnt respond to HTTP pings on port, failing site start’

    Kindly let us know how it goes, we will be happy to assist you further.


    If the answer helped (pointed, you in the right direction) > please click Accept Answer

    0 comments No comments