The error message you are seeing is a generic message that indicates that there was an issue with your application. To troubleshoot the issue, you can start by checking the logs for your web app. You can view the logs for your web app in the Azure portal. To do this, navigate to your web app in the portal, and then click on "Log stream" under the "Monitoring" section. This will open a live stream of the logs for your web app. If you are not able to identify the issue from the logs, you can also try enabling detailed error messages for your web app. To do this, navigate to your web app in the Azure portal, and then click on "App Service logs" under the "Monitoring" section. From there, you can enable detailed error messages, which will provide more information about the error that occurred. If you are still unable to identify the issue, please provide me with more information about your web app and the steps you took before encountering the error.
Web app giving application error
Web app giving application error
I am admin, but why it is giving error
Azure App Service
-
Verma, Disha • 5 Reputation points
2023-08-11T04:12:27.0533333+00:00 Were you able to solve this issue?
Sign in to comment
1 answer
Sort by: Most helpful
-
brtrach-MSFT • 17,731 Reputation points • Microsoft Employee • Moderator
2023-04-17T02:30:20.9933333+00:00 -
sns 9,246 Reputation points
2023-05-11T11:22:05.1066667+00:00 Hi brtrach,
Please find the logs below , I am not sure what is the wrong, I got following logs from "log stream"
2023-05-11T11:17:19 Welcome, you are now connected to log-streaming service.
Starting Log Tail -n 10 of existing logs ----
/home/LogFiles/__lastCheckTime.txt (https://pythoa.scm.azurewebsites.net/api/vfs/LogFiles/__lastCheckTime.txt)05/11/2023 11:13:30
/home/LogFiles/kudu/trace/af139f97edcc-caa2a3a6-52e7-4336-a8bf-e245da443b0e.txt (https://pythoa.scm.azurewebsites.net/api/vfs/LogFiles/kudu/trace/af139f97edcc-caa2a3a6-52e7-4336-a8bf-e245da443b0e.txt)
2023-05-11T11:13:21 Startup Request, url: /api/deployments/2391683803600747, method: PUT, type: request, pid: 92,1,5, ScmType: VSTSRM
/home/LogFiles/kudu/trace/ef741afb6acf-6f492bde-e6a6-4325-ab9c-006ae072593f.txt (https://pythoa.scm.azurewebsites.net/api/vfs/LogFiles/kudu/trace/ef741afb6acf-6f492bde-e6a6-4325-ab9c-006ae072593f.txt)
2023-05-11T11:11:13 Startup Request, url: /api/settings, method: GET, type: request, pid: 86,1,5, ScmType: None
/home/LogFiles/2023_05_11_ln1sdlwk0000CK_default_docker.log (https://pythoa.scm.azurewebsites.net/api/vfs/LogFiles/2023_05_11_ln1sdlwk0000CK_default_docker.log)
2023-05-11T11:13:31.672642593Z Build Operation ID: 2d0dd9ad-3653-468d-b6d5-d568ee3575ae
2023-05-11T11:13:31.738644747Z Oryx Version: 0.2.20230322.1, Commit: 6c04ec75685b441c9378c238b6491cf9812313db, ReleaseTagName: 20230322.1
2023-05-11T11:13:31.789118095Z Writing output script to '/opt/startup/startup.sh'
2023-05-11T11:13:31.833532601Z Using packages from virtual environment antenv located at /home/site/wwwroot/antenv.
2023-05-11T11:13:31.833674802Z Updated PYTHONPATH to '/opt/startup/app_logs:/home/site/wwwroot/antenv/lib/python3.11/site-packages'
2023-05-11T11:13:31.833578602Z /opt/startup/startup.sh: 25: startup.txt: not found
2023-05-11T11:13:31.833674802Z Updated PYTHONPATH to '/opt/startup/app_logs:/home/site/wwwroot/antenv/lib/python3.11/site-packages'
2023-05-11T11:13:31.833578602Z /opt/startup/startup.sh: 25: startup.txt: not found
/home/LogFiles/2023_05_11_ln1sdlwk0000CK_docker.log (https://pythoa.scm.azurewebsites.net/api/vfs/LogFiles/2023_05_11_ln1sdlwk0000CK_docker.log)
2023-05-11T11:13:30.282Z INFO - Pull Image successful, Time taken: 0 Minutes and 0 Seconds
2023-05-11T11:13:30.296Z INFO - Starting container for site
2023-05-11T11:13:30.297Z INFO - docker run -d --expose=8000 --name pythoa_0_cc92ccf1 -e WEBSITE_SITE_NAME=pythoa -e WEBSITE_AUTH_ENABLED=False -e WEBSITE_ROLE_INSTANCE_ID=0 -e WEBSITE_HOSTNAME=pythoa.azurewebsites.net -e WEBSITE_INSTANCE_ID=3c3dac7fd3159cce56ddbb787618776c7026fca7e8d35c63d55d72d62d5efea4 -e WEBSITE_USE_DIAGNOSTIC_SERVER=False appsvc/python:3.11_20230323.2.tuxprod startup.txt
2023-05-11T11:13:30.298Z INFO - Logging is not enabled for this container.Please use https://aka.ms/linux-diagnostics to enable logging to see container logs here.
2023-05-11T11:13:31.361Z INFO - Initiating warmup request to container pythoa_0_cc92ccf1 for site pythoa
2023-05-11T11:13:32.389Z ERROR - Container pythoa_0_cc92ccf1 for site pythoa has exited, failing site start
2023-05-11T11:13:32.401Z ERROR - Container pythoa_0_cc92ccf1 didn't respond to HTTP pings on port: 8000, failing site start. See container logs for debugging.
2023-05-11T11:13:32.409Z INFO - Stopping site pythoa because it failed during startup.
/home/LogFiles/AppServiceAppLogs_Feature_Installer/startup_0.log (https://pythoa.scm.azurewebsites.net/api/vfs/LogFiles/AppServiceAppLogs_Feature_Installer/startup_0.log)
2023-05-11 10:55:41,381 [MainThread] [DEBUG] : Initializating AppServiceAppLogging
2023-05-11 10:55:41,382 [MainThread] [DEBUG] : Initialized AppServiceAppLogging
2023-05-11 10:55:41,382 [Thread-1 (] [DEBUG] : Did not find any previously bound socket
2023-05-11 10:55:41,481 [Thread-3 (] [DEBUG] : Waiting for the logs flag to be set
2023-05-11 11:12:15,024 [MainThread] [DEBUG] : Initializating AppServiceAppLogging
2023-05-11 11:12:15,025 [Thread-1 (] [DEBUG] : Did not find any previously bound socket
2023-05-11 11:12:15,027 [MainThread] [DEBUG] : Initialized AppServiceAppLogging
2023-05-11 11:12:15,171 [Thread-3 (] [DEBUG] : Waiting for the logs flag to be set
/home/LogFiles/CodeProfiler/3c3dac_debug.log (https://pythoa.scm.azurewebsites.net/api/vfs/LogFiles/CodeProfiler/3c3dac_debug.log)[2023_05_11_11_12_15] [appsvc_profiler.installer] [INFO] Code Profiler Installer is starting up[2023_05_11_11_12_15] [appsvc_profiler.installer] [INFO] Cleaning up any existing status file which indicated signal handlers initialized status[2023_05_11_11_12_15] [appsvc_profiler.installer] [INFO] Attempting to delete the signal_handler status file for instance id 3c3dac7fd3159cce56ddbb787618776c7026fca7e8d35c63d55d72d62d5efea4[2023_05_11_11_12_15] [appsvc_profiler.installer] [INFO] successfully deleted the status file[2023_05_11_11_12_15] [appsvc_profiler.installer] [DEBUG] APPSETTING_WEBSITE_ENABLE_DEFAULT_CODE_PROFILER : None[2023_05_11_11_12_15] [appsvc_profiler.installer] [INFO] Attempting to install the default code profiler.[2023_05_11_11_12_15] [appsvc_profiler.installer] [DEBUG] viztracer would save traces to /tmp/3c3dac_profiler_trace.json[2023_05_11_11_12_15] [appsvc_profiler.installer] [INFO] Successfully installed code profiler.[2023_05_11_11_12_15] [appsvc_profiler.installer] [INFO] Signal Handlers SIGUSR for needed code-profiler have been initialized for gunicorn process on instance 3c3dac7fd3159cce56ddbb787618776c7026fca7e8d35c63d55d72d62d5efea4[2023_05_11_11_12_15] [appsvc_profiler.installer] [DEBUG] Code Profiler Installer is exiting as installation is completed
Ending Log Tail of existing logs ---
Starting Live Log Stream ---
2023-05-11T11:18:20 No new trace in the past 1 min(s).
2023-05-11T11:18:32.580Z INFO - 3.11_20230323.2.tuxprod Pulling from appsvc/python
2023-05-11T11:18:32.582Z INFO - Digest: sha256:7823d72877c19ffb6b6ea35cb377b1f830c45ce2abaaa2e67dfad2482062f6d8
2023-05-11T11:18:32.586Z INFO - Status: Image is up to date for mcr.microsoft.com/appsvc/python:3.11_20230323.2.tuxprod
2023-05-11T11:18:32.591Z INFO - Pull Image successful, Time taken: 0 Minutes and 0 Seconds
2023-05-11T11:18:32.606Z INFO - Starting container for site
2023-05-11T11:18:32.607Z INFO - docker run -d --expose=8000 --name pythoa_0_8794cf20 -e WEBSITE_SITE_NAME=pythoa -e WEBSITE_AUTH_ENABLED=False -e WEBSITE_ROLE_INSTANCE_ID=0 -e WEBSITE_HOSTNAME=pythoa.azurewebsites.net -e WEBSITE_INSTANCE_ID=3c3dac7fd3159cce56ddbb787618776c7026fca7e8d35c63d55d72d62d5efea4 -e WEBSITE_USE_DIAGNOSTIC_SERVER=False appsvc/python:3.11_20230323.2.tuxprod startup.txt
2023-05-11T11:18:32.608Z INFO - Logging is not enabled for this container.
Please use https://aka.ms/linux-diagnostics to enable logging to see container logs here.
2023-05-11T11:18:33.080763123Z _____
2023-05-11T11:18:33.080800024Z / _ \ __________ _________ ____
2023-05-11T11:18:33.080805224Z / /\ \__ / | _ __ _/ __ \
2023-05-11T11:18:33.080809324Z / | / /| | /| | /\ ___/
2023-05-11T11:18:33.080813424Z _| /_____ _/ || ___ >
2023-05-11T11:18:33.080817224Z / / /
2023-05-11T11:18:33.080820924Z A P P S E R V I C E O N L I N U X
2023-05-11T11:18:33.080824824Z
2023-05-11T11:18:33.080828324Z Documentation: http://aka.ms/webapp-linux
2023-05-11T11:18:33.080832124Z Python 3.11.2
2023-05-11T11:18:33.080835624Z Note: Any data outside '/home' is not persisted
2023-05-11T11:18:33.602340038Z Starting OpenBSD Secure Shell server: sshd.
2023-05-11T11:18:33.616382048Z Site's appCommandLine: startup.txt
2023-05-11T11:18:33.616413749Z Checking of startup.txt is a file
2023-05-11T11:18:33.617341556Z App command line is not a file on disk, using it as the startup command.
2023-05-11T11:18:33.666622842Z Starting periodic command scheduler: cron.
2023-05-11T11:18:33.666967245Z Launching oryx with: create-script -appPath /home/site/wwwroot -output /opt/startup/startup.sh -virtualEnvName antenv -defaultApp /opt/defaultsite -userStartupCommand 'startup.txt'
2023-05-11T11:18:33.674870107Z Cound not find build manifest file at '/home/site/wwwroot/oryx-manifest.toml'
2023-05-11T11:18:33.674914207Z Could not find operation ID in manifest. Generating an operation id...
2023-05-11T11:18:33.674921007Z Build Operation ID: 54bbb1cb-a6f9-4b46-8fd5-8347457e62c5
2023-05-11T11:18:33.738847208Z Oryx Version: 0.2.20230322.1, Commit: 6c04ec75685b441c9378c238b6491cf9812313db, ReleaseTagName: 20230322.1
2023-05-11T11:18:33.773044077Z Writing output script to '/opt/startup/startup.sh'
2023-05-11T11:18:33.849278174Z Using packages from virtual environment antenv located at /home/site/wwwroot/antenv.
2023-05-11T11:18:33.849345775Z Updated PYTHONPATH to '/opt/startup/app_logs:/home/site/wwwroot/antenv/lib/python3.11/site-packages'
2023-05-11T11:18:33.849961780Z /opt/startup/startup.sh: 25: startup.txt: not found
2023-05-11T11:18:33.247Z INFO - Initiating warmup request to container pythoa_0_8794cf20 for site pythoa
2023-05-11T11:18:34.274Z ERROR - Container pythoa_0_8794cf20 for site pythoa has exited, failing site start
2023-05-11T11:18:34.292Z ERROR - Container pythoa_0_8794cf20 didn't respond to HTTP pings on port: 8000, failing site start. See container logs for debugging.
2023-05-11T11:18:34.300Z INFO - Stopping site pythoa because it failed during startup.
2023-05-11T11:19:01 Welcome, you are now connected to log-streaming service.
Starting Log Tail -n 10 of existing logs ----
/home/LogFiles/__lastCheckTime.txt (https://pythoa.scm.azurewebsites.net/api/vfs/LogFiles/__lastCheckTime.txt)05/11/2023 11:18:32
/home/LogFiles/kudu/trace/af139f97edcc-caa2a3a6-52e7-4336-a8bf-e245da443b0e.txt (https://pythoa.scm.azurewebsites.net/api/vfs/LogFiles/kudu/trace/af139f97edcc-caa2a3a6-52e7-4336-a8bf-e245da443b0e.txt)
2023-05-11T11:13:21 Startup Request, url: /api/deployments/2391683803600747, method: PUT, type: request, pid: 92,1,5, ScmType: VSTSRM
/home/LogFiles/kudu/trace/e3f43713503f-52277aef-2571-41ef-8e97-1bc7d5439a40.txt (https://pythoa.scm.azurewebsites.net/api/vfs/LogFiles/kudu/trace/e3f43713503f-52277aef-2571-41ef-8e97-1bc7d5439a40.txt)
2023-05-11T11:19:01 Startup Request, url: /api/logstream/, method: GET, type: request, pid: 91,1,5, ScmType: VSTSRM
/home/LogFiles/kudu/trace/ef741afb6acf-6f492bde-e6a6-4325-ab9c-006ae072593f.txt (https://pythoa.scm.azurewebsites.net/api/vfs/LogFiles/kudu/trace/ef741afb6acf-6f492bde-e6a6-4325-ab9c-006ae072593f.txt)
2023-05-11T11:11:13 Startup Request, url: /api/settings, method: GET, type: request, pid: 86,1,5, ScmType: None
/home/LogFiles/2023_05_11_ln1sdlwk0000CK_default_docker.log (https://pythoa.scm.azurewebsites.net/api/vfs/LogFiles/2023_05_11_ln1sdlwk0000CK_default_docker.log)
2023-05-11T11:18:33.666967245Z Launching oryx with: create-script -appPath /home/site/wwwroot -output /opt/startup/startup.sh -virtualEnvName antenv -defaultApp /opt/defaultsite -userStartupCommand 'startup.txt'
2023-05-11T11:18:33.674870107Z Cound not find build manifest file at '/home/site/wwwroot/oryx-manifest.toml'
2023-05-11T11:18:33.674914207Z Could not find operation ID in manifest. Generating an operation id...
2023-05-11T11:18:33.674921007Z Build Operation ID: 54bbb1cb-a6f9-4b46-8fd5-8347457e62c5
2023-05-11T11:18:33.738847208Z Oryx Version: 0.2.20230322.1, Commit: 6c04ec75685b441c9378c238b6491cf9812313db, ReleaseTagName: 20230322.1
2023-05-11T11:18:33.773044077Z Writing output script to '/opt/startup/startup.sh'
2023-05-11T11:18:33.849278174Z Using packages from virtual environment antenv located at /home/site/wwwroot/antenv.
2023-05-11T11:18:33.849345775Z Updated PYTHONPATH to '/opt/startup/app_logs:/home/site/wwwroot/antenv/lib/python3.11/site-packages'
2023-05-11T11:18:33.849961780Z /opt/startup/startup.sh: 25: startup.txt: not found
/home/LogFiles/2023_05_11_ln1sdlwk0000CK_docker.log (https://pythoa.scm.azurewebsites.net/api/vfs/LogFiles/2023_05_11_ln1sdlwk0000CK_docker.log)
2023-05-11T11:18:32.591Z INFO - Pull Image successful, Time taken: 0 Minutes and 0 Seconds
2023-05-11T11:18:32.606Z INFO - Starting container for site
2023-05-11T11:18:32.607Z INFO - docker run -d --expose=8000 --name pythoa_0_8794cf20 -e WEBSITE_SITE_NAME=pythoa -e WEBSITE_AUTH_ENABLED=False -e WEBSITE_ROLE_INSTANCE_ID=0 -e WEBSITE_HOSTNAME=pythoa.azurewebsites.net -e WEBSITE_INSTANCE_ID=3c3dac7fd3159cce56ddbb787618776c7026fca7e8d35c63d55d72d62d5efea4 -e WEBSITE_USE_DIAGNOSTIC_SERVER=False appsvc/python:3.11_20230323.2.tuxprod startup.txt
2023-05-11T11:18:32.608Z INFO - Logging is not enabled for this container.Please use https://aka.ms/linux-diagnostics to enable logging to see container logs here.
2023-05-11T11:18:33.247Z INFO - Initiating warmup request to container pythoa_0_8794cf20 for site pythoa
2023-05-11T11:18:34.274Z ERROR - Container pythoa_0_8794cf20 for site pythoa has exited, failing site start
2023-05-11T11:18:34.292Z ERROR - Container pythoa_0_8794cf20 didn't respond to HTTP pings on port: 8000, failing site start. See container logs for debugging.
2023-05-11T11:18:34.300Z INFO - Stopping site pythoa because it failed during startup.
/home/LogFiles/AppServiceAppLogs_Feature_Installer/startup_0.log (https://pythoa.scm.azurewebsites.net/api/vfs/LogFiles/AppServiceAppLogs_Feature_Installer/startup_0.log)
2023-05-11 10:55:41,381 [MainThread] [DEBUG] : Initializating AppServiceAppLogging
2023-05-11 10:55:41,382 [MainThread] [DEBUG] : Initialized AppServiceAppLogging
2023-05-11 10:55:41,382 [Thread-1 (] [DEBUG] : Did not find any previously bound socket
2023-05-11 10:55:41,481 [Thread-3 (] [DEBUG] : Waiting for the logs flag to be set
2023-05-11 11:12:15,024 [MainThread] [DEBUG] : Initializating AppServiceAppLogging
2023-05-11 11:12:15,025 [Thread-1 (] [DEBUG] : Did not find any previously bound socket
2023-05-11 11:12:15,027 [MainThread] [DEBUG] : Initialized AppServiceAppLogging
2023-05-11 11:12:15,171 [Thread-3 (] [DEBUG] : Waiting for the logs flag to be set
/home/LogFiles/CodeProfiler/3c3dac_debug.log (https://pythoa.scm.azurewebsites.net/api/vfs/LogFiles/CodeProfiler/3c3dac_debug.log)[2023_05_11_11_12_15] [appsvc_profiler.installer] [INFO] Code Profiler Installer is starting up[2023_05_11_11_12_15] [appsvc_profiler.installer] [INFO] Cleaning up any existing status file which indicated signal handlers initialized status[2023_05_11_11_12_15] [appsvc_profiler.installer] [INFO] Attempting to delete the signal_handler status file for instance id 3c3dac7fd3159cce56ddbb787618776c7026fca7e8d35c63d55d72d62d5efea4[2023_05_11_11_12_15] [appsvc_profiler.installer] [INFO] successfully deleted the status file[2023_05_11_11_12_15] [appsvc_profiler.installer] [DEBUG] APPSETTING_WEBSITE_ENABLE_DEFAULT_CODE_PROFILER : None[2023_05_11_11_12_15] [appsvc_profiler.installer] [INFO] Attempting to install the default code profiler.[2023_05_11_11_12_15] [appsvc_profiler.installer] [DEBUG] viztracer would save traces to /tmp/3c3dac_profiler_trace.json[2023_05_11_11_12_15] [appsvc_profiler.installer] [INFO] Successfully installed code profiler.[2023_05_11_11_12_15] [appsvc_profiler.installer] [INFO] Signal Handlers SIGUSR for needed code-profiler have been initialized for gunicorn process on instance 3c3dac7fd3159cce56ddbb787618776c7026fca7e8d35c63d55d72d62d5efea4[2023_05_11_11_12_15] [appsvc_profiler.installer] [DEBUG] Code Profiler Installer is exiting as installation is completed
Ending Log Tail of existing logs ---
Starting Live Log Stream ---
Form app service logs:
I have enabled it, how to check here further
Please suggest, thanks
Sign in to comment -