Модуль Django не найден. Попытка развернуть приложение django в службах приложений Azure. Requirements.txt не устанавливается Oryx

Попытка развернуть приложение Django в службах приложений Azure. Проект пытается запустить, но терпит неудачу, потому что его зависимости не устанавливаются при сборке. Я использовал zip deploy для развертывания проекта, и у меня SCM_DO_BUILD_DURING_DEPLOYMENT=True, он все еще не устанавливает файл requirements.txt. Это сообщение об ошибке из потока журнала Azure;

      > 2021-02-26T00:31:46.120682062Z  2021-02-26T00:31:46.120703162Z   _____
> 2021-02-26T00:31:46.120706962Z   /  _  \ __________ _________   ____  
> 2021-02-26T00:31:46.120710162Z  /  /_\  \___   /  |  \_  __ \_/ __ \ 
> 2021-02-26T00:31:46.120713462Z /    |    \/    /|  |  /|  | \/\  ___/ 
> 2021-02-26T00:31:46.120716862Z \____|__  /_____ \____/ |__|    \___  >
> 2021-02-26T00:31:46.120727662Z         \/      \/                  \/ 
> 2021-02-26T00:31:46.120730863Z  2021-02-26T00:31:46.120733863Z A P P  
> S E R V I C E   O N   L I N U X 2021-02-26T00:31:46.120736863Z 
> 2021-02-26T00:31:46.120739863Z Documentation:
> http://aka.ms/webapp-linux 2021-02-26T00:31:46.120742863Z Python 3.8.6
> 2021-02-26T00:31:46.120745863Z Note: Any data outside '/home' is not
> persisted 2021-02-26T00:31:46.231795683Z Starting OpenBSD Secure Shell
> server: sshd. 2021-02-26T00:31:46.251884803Z App Command Line not
> configured, will attempt auto-detect 2021-02-26T00:31:46.252858314Z
> Launching oryx with: create-script -appPath /home/site/wwwroot -output
> /opt/startup/startup.sh -virtualEnvName antenv -defaultApp
> /opt/defaultsite 2021-02-26T00:31:46.260299496Z Found build manifest
> file at '/home/site/wwwroot/oryx-manifest.toml'. Deserializing it...
> 2021-02-26T00:31:46.262481920Z Build Operation ID:
> |ynwZt712/rY=.c70364d8_ 2021-02-26T00:31:46.263072526Z Oryx Version:
> 0.2.20201225.1, Commit: 70edd60569a71918c11bc4dfda1355f6c56f1546, ReleaseTagName: 20201225.1 2021-02-26T00:31:46.272724232Z Detected an
> app based on Django 2021-02-26T00:31:46.273213838Z Generating
> `gunicorn` command for 'kinduwa.wsgi' 2021-02-26T00:31:46.428028938Z
> Writing output script to '/opt/startup/startup.sh'
> 2021-02-26T00:31:46.594418266Z WARNING: Could not find virtual
> environment directory /home/site/wwwroot/antenv.
> 2021-02-26T00:31:46.595086574Z WARNING: Could not find package
> directory /home/site/wwwroot/__oryx_packages__.
> 2021-02-26T00:31:46.797528498Z [2021-02-26 00:31:46 +0000] [35] [INFO]
> Starting gunicorn 20.0.4 2021-02-26T00:31:46.799136515Z [2021-02-26
> 00:31:46 +0000] [35] [INFO] Listening at: http://0.0.0.0:8000 (35)
> 2021-02-26T00:31:46.799738722Z [2021-02-26 00:31:46 +0000] [35] [INFO]
> Using worker: sync 2021-02-26T00:31:46.803558064Z [2021-02-26 00:31:46
> +0000] [37] [INFO] Booting worker with pid: 37 2021-02-26T00:31:46.821123257Z [2021-02-26 00:31:46 +0000] [37]
> [ERROR] Exception in worker process 2021-02-26T00:31:46.821136557Z
> Traceback (most recent call last): 2021-02-26T00:31:46.821140757Z  
> File
> "/opt/python/3.8.6/lib/python3.8/site-packages/gunicorn/arbiter.py",
> line 583, in spawn_worker 2021-02-26T00:31:46.821144657Z    
> worker.init_process() 2021-02-26T00:31:46.821148057Z   File
> "/opt/python/3.8.6/lib/python3.8/site-packages/gunicorn/workers/base.py",
> line 119, in init_process 2021-02-26T00:31:46.821195358Z    
> self.load_wsgi() 2021-02-26T00:31:46.821199958Z   File
> "/opt/python/3.8.6/lib/python3.8/site-packages/gunicorn/workers/base.py",
> line 144, in load_wsgi 2021-02-26T00:31:46.821203458Z     self.wsgi =
> self.app.wsgi() 2021-02-26T00:31:46.821206658Z   File
> "/opt/python/3.8.6/lib/python3.8/site-packages/gunicorn/app/base.py",
> line 67, in wsgi 2021-02-26T00:31:46.821210058Z     self.callable =
> self.load() 2021-02-26T00:31:46.821213458Z   File
> "/opt/python/3.8.6/lib/python3.8/site-packages/gunicorn/app/wsgiapp.py",
> line 49, in load 2021-02-26T00:31:46.821216758Z     return
> self.load_wsgiapp() 2021-02-26T00:31:46.821219958Z   File
> "/opt/python/3.8.6/lib/python3.8/site-packages/gunicorn/app/wsgiapp.py",
> line 39, in load_wsgiapp 2021-02-26T00:31:46.821223358Z     return
> util.import_app(self.app_uri) 2021-02-26T00:31:46.821226658Z   File
> "/opt/python/3.8.6/lib/python3.8/site-packages/gunicorn/util.py", line
> 358, in import_app 2021-02-26T00:31:46.821230058Z     mod =
> importlib.import_module(module) 2021-02-26T00:31:46.821233258Z   File
> "/opt/python/3.8.6/lib/python3.8/importlib/__init__.py", line 127, in
> import_module 2021-02-26T00:31:46.821236658Z     return
> _bootstrap._gcd_import(name[level:], package, level) 2021-02-26T00:31:46.821240058Z   File "", line 1014, in _gcd_import
> 2021-02-26T00:31:46.821243958Z   File "", line 991, in _find_and_load
> 2021-02-26T00:31:46.821247558Z   File "", line 975, in
> _find_and_load_unlocked 2021-02-26T00:31:46.821250858Z   File "", line 671, in _load_unlocked 2021-02-26T00:31:46.821254158Z   File "", line
> 783, in exec_module 2021-02-26T00:31:46.821261858Z   File "", line
> 219, in _call_with_frames_removed 2021-02-26T00:31:46.821265358Z  
> File "/home/site/wwwroot/kinduwa/wsgi.py", line 12, in 
> 2021-02-26T00:31:46.821268858Z     from django.core.wsgi import
> get_wsgi_application 2021-02-26T00:31:46.821272158Z
> ModuleNotFoundError: No module named 'django'
> 2021-02-26T00:31:46.822529572Z [2021-02-26 00:31:46 +0000] [37] [INFO]
> Worker exiting (pid: 37) 2021-02-26T00:31:46.851173387Z [2021-02-26
> 00:31:46 +0000] [35] [INFO] Shutting down: Master
> 2021-02-26T00:31:46.861680802Z [2021-02-26 00:31:46 +0000] [35] [INFO]
> Reason: Worker failed to boot.

каталог webapp на лазурном сервере;

      IMG
Pipfile
Pipfile.lock
README.md
_del_node_modules
antenv.tar.gz
backend
chat
core
emails
hostingstart.html
kinduwa
manage.py
media
node_modules.tar.gz
notifier
organizations
oryx-manifest.toml
package.json
payments
requirements.txt
static
storefront
templates
ui_ux
updated_ui_ux
user_accounts
yarn.lock

Какие-либо предложения? Пожалуйста, дайте мне знать, если у вас есть предложения, у меня нет идей.

0 ответов

Другие вопросы по тегам