Azure 函数无法索引函数

问题描述 投票:0回答:1

嗨,我有三个用 python 编写的 azure 函数,昨天我对其中一个函数做了一个小小的更改并部署了它。然而,由于我们没有对其中的三个进行单独的部署,因此另外两个也得到了更新。部署后,我认为只是一个小更改,所有功能都停止工作。检查日志时我看到此错误。

Error: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.33' not found (required by /home/site/wwwroot/.python_packages/lib/site-packages/cryptography/hazmat/bindings/_rust.abi3.so), Cannot find module. Please check the requirements.txt file for the missing module. For more info, please refer the troubleshooting guide: https://aka.ms/functions-modulenotfound. Current sys.path: ['/home/site/wwwroot', '/home/site/wwwroot/.python_packages/lib/site-packages', '/azure-functions-host/workers/python/3.11/LINUX/X64', '/usr/local/lib/python311.zip', '/usr/local/lib/python3.11', '/usr/local/lib/python3.11/lib-dynload', '/usr/local/lib/python3.11/site-packages'] Traceback (most recent call last): File '/azure-functions-host/workers/python/3.11/LINUX/X64/azure_functions_worker/utils/wrappers.py', line 44, in call return func(\*args, \*\*kwargs) ^^^^^^^^^^^^^^^^^^^^^ File '/azure-functions-host/workers/python/3.11/LINUX/X64/azure_functions_worker/loader.py', line 244, in index_function_app imported_module = importlib.import_module(module_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File '/usr/local/lib/python3.11/importlib/__init__.py', line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File '<frozen importlib._bootstrap>', line 1204, in _gcd_import File '<frozen importlib._bootstrap>', line 1176, in _find_and_load File '<frozen importlib._bootstrap>', line 1147, in _find_and_load_unlocked File '<frozen importlib._bootstrap>', line 690, in _load_unlocked File '<frozen importlib._bootstrap_external>', line 940, in exec_module File '<frozen importlib._bootstrap>', line 241, in _call_with_frames_removed File '/home/site/wwwroot/function_app.py', line 6, in <module> from app.view import view_source_file File '/home/site/wwwroot/app/view.py', line 6, in <module> import storage.blob as blob File '/home/site/wwwroot/storage/blob.py', line 4, in <module> from azure.storage.blob import BlobServiceClient, BlobSasPermissions, generate_blob_sas File '/home/site/wwwroot/.python_packages/lib/site-packages/azure/storage/blob/__init__.py', line 12, in <module> from ._blob_client import BlobClient File '/home/site/wwwroot/.python_packages/lib/site-packages/azure/storage/blob/_blob_client.py', line 21, in <module> from ._blob_client_helpers import ( File '/home/site/wwwroot/.python_packages/lib/site-packages/azure/storage/blob/_blob_client_helpers.py', line 17, in <module> from ._encryption import modify_user_agent_for_encryption, _ERROR_UNSUPPORTED_METHOD_FOR_ENCRYPTION File '/home/site/wwwroot/.python_packages/lib/site-packages/azure/storage/blob/_encryption.py', line 23, in <module> from cryptography.hazmat.primitives.ciphers import Cipher File '/home/site/wwwroot/.python_packages/lib/site-packages/cryptography/hazmat/primitives/ciphers/__init__.py', line 11, in <module> from cryptography.hazmat.primitives.ciphers.base import ( File '/home/site/wwwroot/.python_packages/lib/site-packages/cryptography/hazmat/primitives/ciphers/base.py', line 10, in <module> from cryptography.hazmat.bindings._rust import openssl as rust_openssl ImportError: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.33' not found (required by /home/site/wwwroot/.python_packages/lib/site-packages/cryptography/hazmat/bindings/_rust.abi3.so)

我没有添加任何包,只是做了一个小的代码更改,并且在部署之前它工作正常。

我尝试重新创建基础设施、重新部署代码、升级主机上的 Debian 版本。我在其他帖子中看到我也许应该降级 python 版本,但这之前是有效的并且没有改变任何东西。还要提到降级会导致其他依赖问题。我正在使用 python 3.11。

有人可以帮我吗_

python python-3.x linux azure azure-functions
1个回答
0
投票

请在服务健康->健康历史中查看您的健康历史。过去 23 小时内发生了全球 Azure Functions 服务问题。您很可能也会受到影响。

© www.soinside.com 2019 - 2024. All rights reserved.