Troubleshooting web app errors

neutrolabs limited 0 Reputation points
2024-04-17T17:54:36.1066667+00:00

Screenshot (479)

Screenshot (478)

My web app is down and reporting errors. I have attached two screenshots of the errors for reference. Can anyone help me troubleshoot the issue and suggest a solution?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,758 questions
Azure Startups
Azure Startups
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.Startups: Companies that are in their initial stages of business and typically developing a business model and seeking financing.
258 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ajkuma 26,131 Reputation points Microsoft Employee
    2024-04-19T13:18:38.1766667+00:00

    @neutrolabs limited ,

    User's image

    User's image

    The error shows port it's listening on Port 8000 .

    Review if incorrect port values and port exposed by the Docker container.

    Applications deployed to App Service Linux should not be attempting to bind to localhost or 127.0.0.1.

    Just to highlight more info on this:

    PORT does not directly have the same meaning as WEBSITES_PORT when using Web App for Containers. But does directly alter the docker run command in regards to the container port if WEBSITES_PORT is not set. The meaning of WEBSITES_PORT is to tell which port the platform needs to run docker run against.

    PORT also may have specific meaning to your application if this is referenced in your codebase. So it may be needed to add both WEBSITES_PORT and PORT. Therefore, it is possible to just only use PORT or both PORT and WEBSITES_PORT.

    Azure Load Balancer has a default idle timeout setting of four minutes, it is the maximum amount of time that a request can take without sending any data back to the response. It is not configurable. Please check this FAQ: Why does my request time out after 230 seconds?

     

    Kindly checkout the following approaches to overcome this issue :

    Troubleshooting ‘Container didnt respond to HTTP pings on port, failing site start’

    Kindly let us know, I'll follow-up with you further.

    --  

    If the answer helped (pointed, you in the right direction) > please click Accept Answer - it will help users to find the answers quickly.

    0 comments No comments

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.