Container xyz didn't respond to HTTP pings on port: 8080, failing site start.

Tejas Morkar 51 Reputation points
2021-03-15T16:01:40.933+00:00

I have a simple node.js app that runs a discord bot using discord.js library. This node app does not require any request or query to run, but when I deployed it to the Azure App Services on a Linux environment, it starts perfectly and then shuts down in a few seconds with an error saying - Container didn't respond to HTTP pings on port: 8080, failing site start.

I just added express and made the app respond with "Hello World" on HTTP ping by listening to 8080 port. Now there is no such error and it runs fine.

So is there any other fix for this without needing to listen to port 8080?

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

Accepted answer
  1. Ryan Hill 30,281 Reputation points Microsoft Employee Moderator
    2021-03-15T18:39:23.42+00:00

    Hi @Tejas Morkar ,

    App Service looks for a listening port to bind to, so it knows where to forward the web requests. It looks to me that a continuous web job would be better fit to run your node app. See https://learn.microsoft.com/en-us/azure/app-service/webjobs-create and https://github.com/projectkudu/kudu/wiki/WebJobs for more details.

    If you run into issues or need any further clarification, please feel free to comment down below.

    Regards,
    Ryan

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.