Getting Application Error

Sitaram Verma, Preeti 1 Reputation point
2020-09-23T14:17:45.143+00:00

Hi,

I am getting below error:
:( Application Error
If you are the application administrator, you can access the diagnostic resources.

could you please help me how can i troubleshoot it. i tried multiple time with visual code, bash and manually but no luck.

code is running file on local , visual studio as well

logs:
2020-09-23T13:57:42.674490298Z Removing existing virtual environment directory /antenv...
2020-09-23T13:57:42.680446581Z Extracting to directory /antenv...
2020-09-23T13:57:43.085242214Z Using packages from virtual environment antenv located at /antenv.
2020-09-23T13:57:43.086139257Z Updated PYTHONPATH to ':/antenv/lib/python3.7/site-packages'
2020-09-23T13:57:43.330655774Z [2020-09-23 13:57:43 +0000] [40] [INFO] Starting gunicorn 20.0.4
2020-09-23T13:57:43.331825930Z [2020-09-23 13:57:43 +0000] [40] [INFO] Listening at: http://0.0.0.0:8000 (40)
2020-09-23T13:57:43.332381556Z [2020-09-23 13:57:43 +0000] [40] [INFO] Using worker: sync
2020-09-23T13:57:43.336591056Z [2020-09-23 13:57:43 +0000] [43] [INFO] Booting worker with pid: 43
2020-09-23T13:57:43.348876840Z [2020-09-23 13:57:43 +0000] [43] [ERROR] Exception in worker process
2020-09-23T13:57:43.348892541Z Traceback (most recent call last):
2020-09-23T13:57:43.348897641Z File "/opt/python/3.7.7/lib/python3.7/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
2020-09-23T13:57:43.348960144Z worker.init_process()
2020-09-23T13:57:43.348967344Z File "/opt/python/3.7.7/lib/python3.7/site-packages/gunicorn/workers/base.py", line 119, in init_process
2020-09-23T13:57:43.348971245Z self.load_wsgi()
2020-09-23T13:57:43.348974945Z File "/opt/python/3.7.7/lib/python3.7/site-packages/gunicorn/workers/base.py", line 144, in load_wsgi
2020-09-23T13:57:43.348978645Z self.wsgi = self.app.wsgi()
2020-09-23T13:57:43.348982145Z File "/opt/python/3.7.7/lib/python3.7/site-packages/gunicorn/app/base.py", line 67, in wsgi
2020-09-23T13:57:43.348985945Z self.callable = self.load()
2020-09-23T13:57:43.348989545Z File "/opt/python/3.7.7/lib/python3.7/site-packages/gunicorn/app/wsgiapp.py", line 49, in load
2020-09-23T13:57:43.348993246Z return self.load_wsgiapp()
2020-09-23T13:57:43.348996746Z File "/opt/python/3.7.7/lib/python3.7/site-packages/gunicorn/app/wsgiapp.py", line 39, in load_wsgiapp
2020-09-23T13:57:43.349000546Z return util.import_app(self.app_uri)
2020-09-23T13:57:43.349004146Z File "/opt/python/3.7.7/lib/python3.7/site-packages/gunicorn/util.py", line 358, in import_app
2020-09-23T13:57:43.349007946Z mod = importlib.import_module(module)
2020-09-23T13:57:43.349011446Z File "/opt/python/3.7.7/lib/python3.7/importlib/init.py", line 127, in import_module
2020-09-23T13:57:43.349015247Z return _bootstrap._gcd_import(name[level:], package, level)
2020-09-23T13:57:43.349025547Z File "", line 1006, in _gcd_import
2020-09-23T13:57:43.349030047Z File "", line 983, in _find_and_load
2020-09-23T13:57:43.349033747Z File "", line 967, in _find_and_load_unlocked
2020-09-23T13:57:43.349037548Z File "", line 677, in _load_unlocked
2020-09-23T13:57:43.349041348Z File "", line 728, in exec_module
2020-09-23T13:57:43.349045048Z File "", line 219, in _call_with_frames_removed
2020-09-23T13:57:43.349048848Z File "/home/site/wwwroot/application.py", line 1, in
2020-09-23T13:57:43.349052648Z import requests
2020-09-23T13:57:43.349056249Z ModuleNotFoundError: No module named 'requests'
2020-09-23T13:57:43.352994036Z [2020-09-23 13:57:43 +0000] [43] [INFO] Worker exiting (pid: 43)
2020-09-23T13:57:43.380123325Z [2020-09-23 13:57:43 +0000] [40] [INFO] Shutting down: Master
2020-09-23T13:57:43.381523991Z [2020-09-23 13:57:43 +0000] [40] [INFO] Reason: Worker failed to boot.

2020-09-23T14:01:37.475560786Z
2020-09-23T14:01:37.475618288Z _____
2020-09-23T14:01:37.475623689Z / _ \ __________ _________ ____
2020-09-23T14:01:37.475627589Z / /_\ ___ / | _ __ _/ __ \
2020-09-23T14:01:37.475631489Z / | / /| | /| | /\ /
2020-09-23T14:01:37.475635289Z _
|__ /_____ ____/ || _ >
2020-09-23T14:01:37.475639189Z / / /
2020-09-23T14:01:37.475642890Z
2020-09-23T14:01:37.475646390Z A P P S E R V I C E O N L I N U X
2020-09-23T14:01:37.475657190Z
2020-09-23T14:01:37.475661190Z Documentation: http://aka.ms/webapp-linux
2020-09-23T14:01:37.475664691Z Python 3.7.7
2020-09-23T14:01:37.475668091Z Note: Any data outside '/home' is not persisted
2020-09-23T14:01:37.541828434Z Starting OpenBSD Secure Shell server: sshd.
2020-09-23T14:01:37.565086539Z App Command Line not configured, will attempt auto-detect
2020-09-23T14:01:37.565765971Z Launching oryx with: create-script -appPath /home/site/wwwroot -output /opt/startup/startup.sh -virtualEnvName antenv -defaultApp /opt/defaultsite -bindPort 8000
2020-09-23T14:01:37.577730439Z Found build manifest file at '/home/site/wwwroot/oryx-manifest.toml'. Deserializing it...
2020-09-23T14:01:37.579909643Z Build Operation ID: |rJj8bPJ69rU=.7e9f4c8b_
2020-09-23T14:01:37.580673679Z Oryx Version: 0.2.20200706.2, Commit: 42be45d884938c3c818ba08e9e4760b1136fd9b3, ReleaseTagName: 20200706.2
2020-09-23T14:01:37.881318661Z Detected an app based on Flask
2020-09-23T14:01:38.136422684Z Generating gunicorn command for 'application:app'
2020-09-23T14:01:38.479160387Z Writing output script to '/opt/startup/startup.sh'
2020-09-23T14:01:39.135702318Z Found virtual environment .tar.gz archive.
2020-09-23T14:01:39.135727719Z Removing existing virtual environment directory /antenv...
2020-09-23T14:01:39.144192221Z Extracting to directory /antenv...
2020-09-23T14:01:39.534367381Z Using packages from virtual environment antenv located at /antenv.
2020-09-23T14:01:39.535210621Z Updated PYTHONPATH to ':/antenv/lib/python3.7/site-packages'
2020-09-23T14:01:39.815507454Z [2020-09-23 14:01:39 +0000] [40] [INFO] Starting gunicorn 20.0.4
2020-09-23T14:01:39.816807316Z [2020-09-23 14:01:39 +0000] [40] [INFO] Listening at: http://0.0.0.0:8000 (40)
2020-09-23T14:01:39.817417345Z [2020-09-23 14:01:39 +0000] [40] [INFO] Using worker: sync
2020-09-23T14:01:39.820839308Z [2020-09-23 14:01:39 +0000] [43] [INFO] Booting worker with pid: 43
2020-09-23T14:01:39.831447913Z [2020-09-23 14:01:39 +0000] [43] [ERROR] Exception in worker process
2020-09-23T14:01:39.831464613Z Traceback (most recent call last):
2020-09-23T14:01:39.831469914Z File "/opt/python/3.7.7/lib/python3.7/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
2020-09-23T14:01:39.831534117Z worker.init_process()
2020-09-23T14:01:39.831541017Z File "/opt/python/3.7.7/lib/python3.7/site-packages/gunicorn/workers/base.py", line 119, in init_process
2020-09-23T14:01:39.831544817Z self.load_wsgi()
2020-09-23T14:01:39.831548417Z File "/opt/python/3.7.7/lib/python3.7/site-packages/gunicorn/workers/base.py", line 144, in load_wsgi
2020-09-23T14:01:39.831552417Z self.wsgi = self.app.wsgi()
2020-09-23T14:01:39.831556018Z File "/opt/python/3.7.7/lib/python3.7/site-packages/gunicorn/app/base.py", line 67, in wsgi
2020-09-23T14:01:39.831559818Z self.callable = self.load()
2020-09-23T14:01:39.831563318Z File "/opt/python/3.7.7/lib/python3.7/site-packages/gunicorn/app/wsgiapp.py", line 49, in load
2020-09-23T14:01:39.831567018Z return self.load_wsgiapp()
2020-09-23T14:01:39.831570518Z File "/opt/python/3.7.7/lib/python3.7/site-packages/gunicorn/app/wsgiapp.py", line 39, in load_wsgiapp
2020-09-23T14:01:39.831574319Z return util.import_app(self.app_uri)
2020-09-23T14:01:39.831577919Z File "/opt/python/3.7.7/lib/python3.7/site-packages/gunicorn/util.py", line 358, in import_app
2020-09-23T14:01:39.831581619Z mod = importlib.import_module(module)
2020-09-23T14:01:39.831585319Z File "/opt/python/3.7.7/lib/python3.7/importlib/init.py", line 127, in import_module
2020-09-23T14:01:39.831589219Z return _bootstrap._gcd_import(name[level:], package, level)
2020-09-23T14:01:39.831599420Z File "", line 1006, in _gcd_import
2020-09-23T14:01:39.831604020Z File "", line 983, in _find_and_load
2020-09-23T14:01:39.831607820Z File "", line 967, in _find_and_load_unlocked
2020-09-23T14:01:39.831611620Z File "", line 677, in _load_unlocked
2020-09-23T14:01:39.831615320Z File "", line 728, in exec_module
2020-09-23T14:01:39.831619121Z File "", line 219, in _call_with_frames_removed
2020-09-23T14:01:39.831622821Z File "/home/site/wwwroot/application.py", line 1, in
2020-09-23T14:01:39.831626721Z import requests
2020-09-23T14:01:39.831630321Z ModuleNotFoundError: No module named 'requests'
2020-09-23T14:01:39.835593110Z [2020-09-23 14:01:39 +0000] [43] [INFO] Worker exiting (pid: 43)
2020-09-23T14:01:39.869854839Z [2020-09-23 14:01:39 +0000] [40] [INFO] Shutting down: Master
2020-09-23T14:01:39.870671678Z [2020-09-23 14:01:39 +0000] [40] [INFO] Reason: Worker failed to boot.
Docker on instance: RD0003FF5635B9 experienced container start failures.
[1] 2020-09-23T13:57:10
Container qbdeployment_3_33d5698a didn't respond to HTTP pings on port: 8000, failing site start
[2] 2020-09-23T13:57:10
Container qbdeployment_3_33d5698a for site qbdeployment has exited, failing site start
[3] 2020-09-23T13:57:21
Container qbdeployment_0_370de8bc didn't respond to HTTP pings on port: 8000, failing site start
[4] 2020-09-23T13:57:21
Container qbdeployment_0_370de8bc for site qbdeployment has exited, failing site start
[5] 2020-09-23T13:57:28
Container qbdeployment_0_838a4d92 didn't respond to HTTP pings on port: 8000, failing site start
[6] 2020-09-23T13:57:28
Container qbdeployment_0_838a4d92 for site qbdeployment has exited, failing site start
[7] 2020-09-23T13:57:33
Container qbdeployment_0_06edfb61 didn't respond to HTTP pings on port: 8000, failing site start
[8] 2020-09-23T13:57:33
Container qbdeployment_0_06edfb61 for site qbdeployment has exited, failing site start
[9] 2020-09-23T13:57:43
Container qbdeployment_0_50a7c0fa didn't respond to HTTP pings on port: 8000, failing site start
[10] 2020-09-23T13:57:43
Container qbdeployment_0_50a7c0fa for site qbdeployment has exited, failing site start
[11] 2020-09-23T14:01:40
Container qbdeployment_0_13417108 didn't respond to HTTP pings on port: 8000, failing site start
[12] 2020-09-23T14:01:40
Container qbdeployment_0_13417108 for site qbdeployment has exited, failing site start

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

2 answers

Sort by: Most helpful
  1. Grmacjon-MSFT 14,046 Reputation points
    2020-09-23T22:21:13.357+00:00

    Hi @Sitarama Raju Datla ,

    Based on the error message "didn't respond to HTTP pings on port: 8000, failing site start" port 8000 may not be exposed in your Dockerfile which is why there is no response to the HTTP pings.

    Keep in mind the automatic port detection detects port 80(by default) and will attempt to detect which port to bind to your container, but you can also use the WEBSITES_PORT app setting and configure it with a value for the port you want to bind to your container. However, the web server in your custom image may use a port other than 80. You tell Azure about the port that your custom container uses by using the WEBSITES_PORT app setting. In this case, yes you will have to change the App Setting configuration from the Portal.

    To resolve your issue try this:
    -Use the EXPOSE instruction in your Dockerfile to expose port 8000.
    -Use the WEBSITES_PORT in your app setting with a value of "8000" to expose that port.

    Hope that helps.

    Best,
    Grace


  2. Shari Cloft 1 Reputation point
    2020-11-06T15:11:55.727+00:00

    How do I fix the following error
    WINWORD.EXE - Application Error
    The application was unable to start correctly(0XC0000142)

    0 comments No comments