You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having an issue with deploying the code on a Linux webapp.
I created a new pipeline that is running on a self hosted Azure DevOps agent and the pipeline seems to be working.
The problem is after the deployment and I'm getting these errors:
Warning
2023-11-05T13:32:22.7634211
[2023-11-05 13:32:22 +0000] [74] [ERROR] Exception in worker process
Ok
2023-11-05T13:32:22.7634585
Traceback (most recent call last):
Ok
2023-11-05T13:32:22.7634635
File "/home/site/wwwroot/antenv/lib/site-packages/gunicorn/arbiter.py", line 609, in spawn_worker
Ok
2023-11-05T13:32:22.7634694
worker.init_process()
Ok
2023-11-05T13:32:22.7634727
File "/home/site/wwwroot/antenv/lib/site-packages/gunicorn/workers/base.py", line 134, in init_process
Ok
2023-11-05T13:32:22.7634933
self.load_wsgi()
Ok
2023-11-05T13:32:22.7634968
File "/home/site/wwwroot/antenv/lib/site-packages/gunicorn/workers/base.py", line 146, in load_wsgi
Ok
2023-11-05T13:32:22.7635001
self.wsgi = self.app.wsgi()
Ok
2023-11-05T13:32:22.7635032
^^^^^^^^^^^^^^^
Ok
2023-11-05T13:32:22.7635065
File "/home/site/wwwroot/antenv/lib/site-packages/gunicorn/app/base.py", line 67, in wsgi
Ok
2023-11-05T13:32:22.7635098
self.callable = self.load()
Ok
2023-11-05T13:32:22.7635129
^^^^^^^^^^^
Ok
2023-11-05T13:32:22.763516
File "/home/site/wwwroot/antenv/lib/site-packages/gunicorn/app/wsgiapp.py", line 58, in load
Ok
2023-11-05T13:32:22.7635192
return self.load_wsgiapp()
Ok
2023-11-05T13:32:22.7635223
^^^^^^^^^^^^^^^^^^^
Ok
2023-11-05T13:32:22.7635253
File "/home/site/wwwroot/antenv/lib/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp
Ok
2023-11-05T13:32:22.7635286
return util.import_app(self.app_uri)
Ok
2023-11-05T13:32:22.7635319
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Ok
2023-11-05T13:32:22.7635351
File "/home/site/wwwroot/antenv/lib/site-packages/gunicorn/util.py", line 371, in import_app
Ok
2023-11-05T13:32:22.7635385
mod = importlib.import_module(module)
Ok
2023-11-05T13:32:22.7635417
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Ok
2023-11-05T13:32:22.7635447
File "/opt/python/3.11.4/lib/python3.11/importlib/init.py", line 126, in import_module
Ok
2023-11-05T13:32:22.7635479
return _bootstrap._gcd_import(name[level:], package, level)
Ok
2023-11-05T13:32:22.763551
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Ok
2023-11-05T13:32:22.7635541
File "", line 1204, in _gcd_import
Ok
2023-11-05T13:32:22.7635579
File "", line 1176, in _find_and_load
Ok
2023-11-05T13:32:22.7635612
File "", line 1147, in _find_and_load_unlocked
Ok
2023-11-05T13:32:22.7635646
File "", line 690, in _load_unlocked
Ok
2023-11-05T13:32:22.7635679
File "", line 940, in exec_module
Ok
2023-11-05T13:32:22.7635711
File "", line 241, in _call_with_frames_removed
Ok
2023-11-05T13:32:22.7635743
File "/home/site/wwwroot/app.py", line 6, in
Ok
2023-11-05T13:32:22.7635776
from azure.identity import DefaultAzureCredential
Ok
2023-11-05T13:32:22.763582
File "/home/site/wwwroot/antenv/lib/site-packages/azure/identity/init.py", line 10, in
Ok
2023-11-05T13:32:22.7635856
from ._credentials import (
Ok
2023-11-05T13:32:22.7635888
File "/home/site/wwwroot/antenv/lib/site-packages/azure/identity/_credentials/init.py", line 5, in
Ok
2023-11-05T13:32:22.7635954
from .authorization_code import AuthorizationCodeCredential
Ok
2023-11-05T13:32:22.7635986
File "/home/site/wwwroot/antenv/lib/site-packages/azure/identity/_credentials/authorization_code.py", line 9, in
Ok
2023-11-05T13:32:22.763602
from .._internal.aad_client import AadClient
Ok
2023-11-05T13:32:22.7636051
File "/home/site/wwwroot/antenv/lib/site-packages/azure/identity/_internal/init.py", line 5, in
Ok
2023-11-05T13:32:22.7636084
from .aad_client import AadClient
Ok
2023-11-05T13:32:22.7636114
File "/home/site/wwwroot/antenv/lib/site-packages/azure/identity/_internal/aad_client.py", line 11, in
Ok
2023-11-05T13:32:22.7636149
from .aad_client_base import AadClientBase
Ok
2023-11-05T13:32:22.7636181
File "/home/site/wwwroot/antenv/lib/site-packages/azure/identity/_internal/aad_client_base.py", line 20, in
Ok
2023-11-05T13:32:22.7636215
from .aadclient_certificate import AadClientCertificate
Ok
2023-11-05T13:32:22.7636247
File "/home/site/wwwroot/antenv/lib/site-packages/azure/identity/_internal/aadclient_certificate.py", line 7, in
Ok
2023-11-05T13:32:22.763628
from cryptography import x509
Ok
2023-11-05T13:32:22.763631
File "/home/site/wwwroot/antenv/lib/site-packages/cryptography/x509/init.py", line 7, in
Ok
2023-11-05T13:32:22.7636343
from cryptography.x509 import certificate_transparency
Ok
2023-11-05T13:32:22.7636375
File "/home/site/wwwroot/antenv/lib/site-packages/cryptography/x509/certificate_transparency.py", line 11, in
Ok
2023-11-05T13:32:22.763641
from cryptography.hazmat.bindings._rust import x509 as rust_x509
Ok
2023-11-05T13:32:22.7636443 ImportError: cannot import name 'x509' from 'cryptography.hazmat.bindings._rust' (unknown location)
I added a startup command in the General Settings of the webapp so it will point to the virtual environment site packages.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi
I'm having an issue with deploying the code on a Linux webapp.
I created a new pipeline that is running on a self hosted Azure DevOps agent and the pipeline seems to be working.
The problem is after the deployment and I'm getting these errors:
Warning
2023-11-05T13:32:22.7634211
[2023-11-05 13:32:22 +0000] [74] [ERROR] Exception in worker process
Ok
2023-11-05T13:32:22.7634585
Traceback (most recent call last):
Ok
2023-11-05T13:32:22.7634635
File "/home/site/wwwroot/antenv/lib/site-packages/gunicorn/arbiter.py", line 609, in spawn_worker
Ok
2023-11-05T13:32:22.7634694
worker.init_process()
Ok
2023-11-05T13:32:22.7634727
File "/home/site/wwwroot/antenv/lib/site-packages/gunicorn/workers/base.py", line 134, in init_process
Ok
2023-11-05T13:32:22.7634933
self.load_wsgi()
Ok
2023-11-05T13:32:22.7634968
File "/home/site/wwwroot/antenv/lib/site-packages/gunicorn/workers/base.py", line 146, in load_wsgi
Ok
2023-11-05T13:32:22.7635001
self.wsgi = self.app.wsgi()
Ok
2023-11-05T13:32:22.7635032
^^^^^^^^^^^^^^^
Ok
2023-11-05T13:32:22.7635065
File "/home/site/wwwroot/antenv/lib/site-packages/gunicorn/app/base.py", line 67, in wsgi
Ok
2023-11-05T13:32:22.7635098
self.callable = self.load()
Ok
2023-11-05T13:32:22.7635129
^^^^^^^^^^^
Ok
2023-11-05T13:32:22.763516
File "/home/site/wwwroot/antenv/lib/site-packages/gunicorn/app/wsgiapp.py", line 58, in load
Ok
2023-11-05T13:32:22.7635192
return self.load_wsgiapp()
Ok
2023-11-05T13:32:22.7635223
^^^^^^^^^^^^^^^^^^^
Ok
2023-11-05T13:32:22.7635253
File "/home/site/wwwroot/antenv/lib/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp
Ok
2023-11-05T13:32:22.7635286
return util.import_app(self.app_uri)
Ok
2023-11-05T13:32:22.7635319
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Ok
2023-11-05T13:32:22.7635351
File "/home/site/wwwroot/antenv/lib/site-packages/gunicorn/util.py", line 371, in import_app
Ok
2023-11-05T13:32:22.7635385
mod = importlib.import_module(module)
Ok
2023-11-05T13:32:22.7635417
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Ok
2023-11-05T13:32:22.7635447
File "/opt/python/3.11.4/lib/python3.11/importlib/init.py", line 126, in import_module
Ok
2023-11-05T13:32:22.7635479
return _bootstrap._gcd_import(name[level:], package, level)
Ok
2023-11-05T13:32:22.763551
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Ok
2023-11-05T13:32:22.7635541
File "", line 1204, in _gcd_import
Ok
2023-11-05T13:32:22.7635579
File "", line 1176, in _find_and_load
Ok
2023-11-05T13:32:22.7635612
File "", line 1147, in _find_and_load_unlocked
Ok
2023-11-05T13:32:22.7635646
File "", line 690, in _load_unlocked
Ok
2023-11-05T13:32:22.7635679
File "", line 940, in exec_module
Ok
2023-11-05T13:32:22.7635711
File "", line 241, in _call_with_frames_removed
Ok
2023-11-05T13:32:22.7635743
File "/home/site/wwwroot/app.py", line 6, in
Ok
2023-11-05T13:32:22.7635776
from azure.identity import DefaultAzureCredential
Ok
2023-11-05T13:32:22.763582
File "/home/site/wwwroot/antenv/lib/site-packages/azure/identity/init.py", line 10, in
Ok
2023-11-05T13:32:22.7635856
from ._credentials import (
Ok
2023-11-05T13:32:22.7635888
File "/home/site/wwwroot/antenv/lib/site-packages/azure/identity/_credentials/init.py", line 5, in
Ok
2023-11-05T13:32:22.7635954
from .authorization_code import AuthorizationCodeCredential
Ok
2023-11-05T13:32:22.7635986
File "/home/site/wwwroot/antenv/lib/site-packages/azure/identity/_credentials/authorization_code.py", line 9, in
Ok
2023-11-05T13:32:22.763602
from .._internal.aad_client import AadClient
Ok
2023-11-05T13:32:22.7636051
File "/home/site/wwwroot/antenv/lib/site-packages/azure/identity/_internal/init.py", line 5, in
Ok
2023-11-05T13:32:22.7636084
from .aad_client import AadClient
Ok
2023-11-05T13:32:22.7636114
File "/home/site/wwwroot/antenv/lib/site-packages/azure/identity/_internal/aad_client.py", line 11, in
Ok
2023-11-05T13:32:22.7636149
from .aad_client_base import AadClientBase
Ok
2023-11-05T13:32:22.7636181
File "/home/site/wwwroot/antenv/lib/site-packages/azure/identity/_internal/aad_client_base.py", line 20, in
Ok
2023-11-05T13:32:22.7636215
from .aadclient_certificate import AadClientCertificate
Ok
2023-11-05T13:32:22.7636247
File "/home/site/wwwroot/antenv/lib/site-packages/azure/identity/_internal/aadclient_certificate.py", line 7, in
Ok
2023-11-05T13:32:22.763628
from cryptography import x509
Ok
2023-11-05T13:32:22.763631
File "/home/site/wwwroot/antenv/lib/site-packages/cryptography/x509/init.py", line 7, in
Ok
2023-11-05T13:32:22.7636343
from cryptography.x509 import certificate_transparency
Ok
2023-11-05T13:32:22.7636375
File "/home/site/wwwroot/antenv/lib/site-packages/cryptography/x509/certificate_transparency.py", line 11, in
Ok
2023-11-05T13:32:22.763641
from cryptography.hazmat.bindings._rust import x509 as rust_x509
Ok
2023-11-05T13:32:22.7636443
ImportError: cannot import name 'x509' from 'cryptography.hazmat.bindings._rust' (unknown location)
What am I missing?
Thank you in advance
Beta Was this translation helpful? Give feedback.
All reactions