HTTP pings on port: 8000 failing site start

xKaito Music 1 Reputation point
2023-01-03T15:12:01.723+00:00

I'm trying to deploy a web app on python using github. I'm getting errors for "didn't respond to HTTP pings on port: 8000". Even though my deployment was successful I'm not using any docker file command for deployment. The container is probably expecting some other por275687-failed-to-listen.jpgt, but I don't know how to change the port of the container.

275688-application-error.png

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

2 answers

Sort by: Most helpful
  1. Takahito Iwasa 4,841 Reputation points MVP
    2023-01-04T11:55:30.633+00:00

    Hi, @xKaito Music

    Is your gunicorn listening on 8050?
    Is it possible to specify a custom port like this:

    https://learn.microsoft.com/en-us/azure/app-service/configure-custom-container?pivots=container-linux#configure-port-number


  2. SnehaAgrawal-MSFT 18,366 Reputation points
    2023-01-13T05:46:37.5333333+00:00

    It seems your port 8050 is not exposed, so when we 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 8050.
    • Use the WEBSITES_PORT app setting with a value of 8050 to expose that port.

    You can refer the below mentioned articles:

    https://blogs.msdn.microsoft.com/waws/2017/09/08/things-you-should-know-web-apps-and-linux/

    Let us know.