简体   繁体   English

VS Code Azure 部署 Python Http 触发器 function 失败 - 未找到 GLIB_2.27

[英]VS Code Azure deployment of Python Http Trigger function fails - GLIB_2.27 not found

I'm trying to deploy my locally fine running function to Azure我正在尝试将我在本地正常运行的 function 部署到 Azure

  • VS Code Version: 1.65.2 VS 代码版本:1.65.2
  • Azure Tools v0.2.1 Azure 工具 v0.2.1
  • Azure Functions v1.6.1 Azure 功能 v1.6.1

My requirements.txt我的requirements.txt

msrest
msrestazure
azure-core
azure-common
azure-functions
azure-identity
azure-storage-blob
azure-keyvault-secrets

The deploy starts getting problematic from here:部署从这里开始出现问题:

12:41:40 ShopifyWebhookHandler:   python: 3.9.12
12:41:40 ShopifyWebhookHandler: Source directory     : /tmp/zipdeploy/extracted
12:41:40 ShopifyWebhookHandler: Destination directory: /home/site/wwwroot
12:41:41 ShopifyWebhookHandler: /tmp/oryx/platforms/python/3.9.12/bin/python3.9: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /tmp/oryx/platforms/python/3.9.12/lib/libpython3.9.so.1.0)
12:41:41 ShopifyWebhookHandler: /tmp/oryx/platforms/python/3.9.12/bin/python3.9: /lib/x86_64-linux-gnu/libpthread.so.0: version `GLIBC_2.30' not found (required by /tmp/oryx/platforms/python/3.9.12/lib/libpython3.9.so.1.0)
12:41:41 ShopifyWebhookHandler: /tmp/oryx/platforms/python/3.9.12/bin/python3.9: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /tmp/oryx/platforms/python/3.9.12/lib/libpython3.9.so.1.0)
12:41:41 ShopifyWebhookHandler: /tmp/oryx/platforms/python/3.9.12/bin/python3.9: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by /tmp/oryx/platforms/python/3.9.12/lib/libpython3.9.so.1.0)
12:41:41 ShopifyWebhookHandler: /tmp/oryx/platforms/python/3.9.12/bin/python3.9: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.26' not found (required by /tmp/oryx/platforms/python/3.9.12/lib/libpython3.9.so.1.0)
12:41:41 ShopifyWebhookHandler: /tmp/oryx/platforms/python/3.9.12/bin/python3.9: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.27' not found (required by /tmp/oryx/platforms/python/3.9.12/lib/libpython3.9.so.1.0)
12:41:41 ShopifyWebhookHandler: Python Version: /tmp/oryx/platforms/python/3.9.12/bin/python3.9
12:41:41 ShopifyWebhookHandler: Running pip install...
12:41:41 ShopifyWebhookHandler: Done in 0 sec(s).
12:41:43 ShopifyWebhookHandler: /opt/Kudu/Scripts/starter.sh oryx build /tmp/zipdeploy/extracted -o /home/site/wwwroot --platform python --platform-version 3.9 -p packagedir=.python_packages/lib/site-packages
12:41:43 ShopifyWebhookHandler: Deployment Failed.
12:41:51 ShopifyWebhookHandler: Deployment failed.

Any idea how to fix this?知道如何解决这个问题吗?

Created also an issue on Github还在 Github 上创建了一个 问题

Zin

This is linked to and open Github issue with Microsoft Oryx.这与 Microsoft Oryx 链接并打开 Github 问题。

Hey folks, apologies for the breaking changes that this issue has caused for your applications.大家好,对于此问题对您的应用程序造成的重大更改,我们深表歉意。

Oryx has pre-installed Python SDKs on the build images; Oryx 在构建镜像上预装了 Python 个 SDK; if the SDK that your application is targeting is not a part of this set, Oryx will fallback to dynamic installation, which attempts to pull a Python SDK that meets your application's requirements from our storage account, where we backup a variety of Python SDKs.如果您的应用程序所针对的 SDK 不是此集合的一部分,Oryx 将回退到动态安装,它会尝试从我们的存储帐户中提取满足您的应用程序要求的 Python SDK,我们在其中备份各种 Python SDK。

In this case, it appears that the Python 3.9.12 SDK was published to our storage account yesterday around 3:10 PM PST (10:10 PM UTC), and applications targeting Python 3.9 are now pulling down this 3.9.12 SDK rather than the previously published 3.9.7 SDK.在这种情况下,似乎 Python 3.9.12 SDK 已于昨天太平洋标准时间下午 3:10(UTC 晚上 10:10)左右发布到我们的存储帐户,并且针对 Python 3.9 的应用程序现在正在下拉此 3.9.12 SDK 而不是之前发布的 3.9.7 SDK。

I'm optimistic that we should have this resolved in the next couple of hours, but in the meantime, as folks have mentioned above, if you are able to downgrade your application to using Python 3.8, please consider doing so.我很乐观,我们应该在接下来的几个小时内解决这个问题,但与此同时,正如人们上面提到的,如果您能够将您的应用程序降级为使用 Python 3.8,请考虑这样做。 Alternatively, if your build/deployment method allows you to snap to a specific patch version of Python, please consider targeting Python 3.9.7, which was the previous 3.9.* version that can be pulled down during dynamic installation.或者,如果您的构建/部署方法允许您捕捉到 Python 的特定补丁版本,请考虑以 Python 3.9.7 为目标,这是之前的 3.9.* 版本,可以在动态安装期间被拉下。

Again, apologies for the issues that this has caused you all.再次对由此给大家带来的问题深表歉意。

Github Issue Github 问题

Temporarily try rolling your Python version back down to Python 3.8.暂时尝试将 Python 版本回滚到 Python 3.8。

Azure function cli docs Azure function 命令行文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM