Getting :( Application Error

pratik mahankal 21 Reputation points
2021-04-30T14:34:11.593+00:00

Getting 92946-2021-04-30.png

Getting this error while using the web-app

This is the error

2021-04-30T13:58:23.732673411Z File "/opt/python/3.7.9/lib/python3.7/site-packages/gunicorn/app/wsgiapp.py", line 39, in load_wsgiapp 2021-04-30T13:58:23.732680911Z return util.import_app(self.app_uri) 2021-04-30T13:58:23.732688111Z File "/opt/python/3.7.9/lib/python3.7/site-packages/gunicorn/util.py", line 358, in import_app 2021-04-30T13:58:23.732695511Z mod = importlib.import_module(module) 2021-04-30T13:58:23.732702611Z File "/opt/python/3.7.9/lib/python3.7/importlib/init.py", line 127, in import_module 2021-04-30T13:58:23.732710212Z return _bootstrap._gcd_import(name[level:], package, level) 2021-04-30T13:58:23.732717512Z File "<frozen importlib._bootstrap>", line 1006, in _gcd_import 2021-04-30T13:58:23.732725412Z File "<frozen importlib._bootstrap>", line 983, in _find_and_load 2021-04-30T13:58:23.732732912Z File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked 2021-04-30T13:58:23.732740512Z File "<frozen importlib._bootstrap>", line 677, in _load_unlocked 2021-04-30T13:58:23.732749013Z File "<frozen importlib._bootstrap_external>", line 728, in exec_module 2021-04-30T13:58:23.732756813Z File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed 2021-04-30T13:58:23.732764113Z File "/home/site/wwwroot/app.py", line 3, in <module> 2021-04-30T13:58:23.732771613Z from predict import ResNet9, get_default_device, to_device, loadcheckPoint, predict_image 2021-04-30T13:58:23.732778913Z File "/home/site/wwwroot/predict.py", line 2, in <module> 2021-04-30T13:58:23.732786314Z import numpy as np # for numerical computationss 2021-04-30T13:58:23.732793514Z ModuleNotFoundError: No module named 'numpy' 2021-04-30T13:58:23.734386653Z [2021-04-30 13:58:23 +0000] [38] [INFO] Worker exiting (pid: 38) 2021-04-30T13:58:23.824369900Z [2021-04-30 13:58:23 +0000] [35] [INFO] Shutting down: Master 2021-04-30T13:58:23.825481728Z [2021-04-30 13:58:23 +0000] [35] [INFO] Reason: Worker failed to boot.

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

Accepted answer
  1. SnehaAgrawal-MSFT 18,286 Reputation points
    2021-04-30T16:46:07.97+00:00

    Thanks for asking question! The application maybe missing a Python package which is causing your app to fail proper startup. Could you please refer this article to deploy your app properly or try accessing the Log Stream (https://<yourwebappname>.scm.azurewebsites.net/api/logstream )

    There is possibility that the application maybe facing a generic error which is causing your app to fail proper startup. Try to access your logs (https://<yourwebappname>.scm.azurewebsites.net/api/logs/docker) and review them by opening the files with the words default_docker.log.

    Please let us know if there is further questions or issue remains.

    0 comments No comments

0 additional answers

Sort by: Most helpful