Hi @Aniket Kumar , the snippet you included is from your docker logs the ends in _docker.log
and is logging the overall container, in this case that your container app failed respond to HTTP request. This normally happens because of an application failure or port misconfiguration. You need to open the log file ending in _default_docker.log
which contains the logs from your application code. It should indicate what errors popped up during application startup.
Application Error in App Service
I have created a DevOps pipeline for deploying a Nodejs Application on App service. The pipeline works well but when browsing the URL of the app service, it shows an error. I can't able to resolve this issue after seeing the app service logs.
App Service Logs:
2023-02-09T11:23:00.767Z INFO - Logging is not enabled for this container.
Please use https://aka.ms/linux-diagnostics to enable logging to see container logs here.
2023-02-09T11:23:05.590Z INFO - Initiating warmup request to container static-webapp-devops_0_86004dba for site static-webapp-devops
2023-02-09T11:23:09.753Z ERROR - Container static-webapp-devops_0_86004dba for site static-webapp-devops has exited, failing site start
2023-02-09T11:23:09.791Z ERROR - Container static-webapp-devops_0_86004dba didn't respond to HTTP pings on port: 8080, failing site start. See container logs for debugging.
2023-02-09T11:23:09.802Z INFO - Stopping site static-webapp-devops because it failed during startup.
2023-02-09T11:25:37.544Z INFO - Starting container for site
2023-02-09T11:25:37.546Z INFO - docker run -d --expose=8080 --name static-webapp-devops_0_35f1c8e6 -e WEBSITE_SITE_NAME=static-webapp-devops -e WEBSITE_AUTH_ENABLED=False -e WEBSITE_ROLE_INSTANCE_ID=0 -e WEBSITE_HOSTNAME=static-webapp-devops.azurewebsites.net -e WEBSITE_INSTANCE_ID=b9037c9bee5401745f15ff076386c099db88c3b8eaa8eca43185655fc903edaa -e NODE_OPTIONS=--require /agents/node/build/src/Loader.js -e WEBSITE_USE_DIAGNOSTIC_SERVER=True appsvc/node:16-lts_20221102.2.tuxprod node app
Anyone, please help me in solving this issue.
Azure App Service
1 answer
Sort by: Most helpful
-
Ryan Hill 30,281 Reputation points Microsoft Employee Moderator
2023-02-11T15:31:51.34+00:00