":( Application Error If you are the application administrator, you can access the diagnostic resources." Container didn't respond to HTTP pings on port: 8080, failing site start. See container logs for debugging.

Jigar Parekh 6 Reputation points
2020-08-15T07:04:41.67+00:00

I'm trying to deploy a react-app to Azure webapp service using Github Actions. Although the workflow is built successfully, yet I'm getting an error ":( Application Error If you are the application administrator, you can access the diagnostic resources" when I open the url. And the Log stream show the error "Container didn't respond to HTTP pings on port: 8080, failing site start. See container logs for debugging.". The container is probably expecting some other port, but I don't know how to change the port of the container.

17823-screenshot-2020-08-15-at-50419-pm.png

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

2 answers

Sort by: Most helpful
  1. Ryan Hill 27,111 Reputation points Microsoft Employee
    2020-08-18T17:54:20.693+00:00

    @Aditya Reddy The react scripts from your package.json are not on the app service host. To get around this, deploy the build folder that gets created/updated when you run npm run build. If you're using CI/CD, make sure you copy the contents of /build to an artifacts directory that will be used later for publishing.

    This may resolve your issue as well @JigarParkeh-6598. If not, please include any log information from your app service.


  2. Utku Elhan 1 Reputation point
    2021-09-03T11:56:52.92+00:00

    I having a similar problem but the actual error in logs was like followings. Thank you in advance.

    2021-09-03T11:21:57.847Z ERROR - Container fy22internwebapp_0_d753b068 for site fy22internwebapp has exited, failing site start
    2021-09-03T11:21:57.852Z ERROR - Container fy22internwebapp_0_d753b068 didn't respond to HTTP pings on port: 8000, failing site start. See container logs for debugging.
    2021-09-03T11:21:57.855Z INFO - Stopping site fy22internwebapp because it failed during startup.
    2021-09-03T11:24:14.662Z INFO - Starting container for site
    2021-09-03T11:24:14.663Z INFO - docker run -d -p 9109:8000 --name fy22internwebapp_0_5ecdf76f -e WEBSITE_SITE_NAME=fy22internwebapp -e WEBSITE_AUTH_ENABLED=False -e WEBSITE_ROLE_INSTANCE_ID=0 -e WEBSITE_HOSTNAME=fy22internwebapp.azurewebsites.net -e WEBSITE_INSTANCE_ID=7571d6c587badd556f121600341391499495b95be08b041b7155690115b6bddc -e HTTP_LOGGING_ENABLED=1 appsvc/python:3.7_20210709.2

    2021-09-03T11:24:18.289Z INFO - Initiating warmup request to container fy22internwebapp_0_5ecdf76f for site fy22internwebapp
    2021-09-03T11:24:25.121Z ERROR - Container fy22internwebapp_0_5ecdf76f for site fy22internwebapp has exited, failing site start
    2021-09-03T11:24:25.128Z ERROR - Container fy22internwebapp_0_5ecdf76f didn't respond to HTTP pings on port: 8000, failing site start. See container logs for debugging.
    2021-09-03T11:24:25.132Z INFO - Stopping site fy22internwebapp because it failed during startup.

    0 comments No comments