简体   繁体   English

Azure 应用服务 Python 3.9 部署失败

[英]Azure App Service with Python 3.9 deployment failed

We are trying to deploy a rather simple flask app to azure app service.我们正在尝试将一个相当简单的 flask 应用部署到 azure 应用服务。 The deployment (using local git) fails with the following output:部署(使用本地 git)失败并显示以下 output:

remote: Python Version: /tmp/oryx/platforms/python/3.9.12/bin/python3.9
remote: Creating directory for command manifest file if it doesnot exist
remote: /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)
remote: Removing existing manifest file
remote: /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)
remote: Python Virtual Environment: antenv
remote: Creating virtual environment...
remote: Deployment Failed.

Anyone there that has an idea why this fails?那里有人知道为什么会失败吗? It should be so simple.... :( It is an app service, not a docker container, not a vm..应该这么简单.... :( 这是一个应用服务,不是 docker 容器,不是虚拟机..

Greets, John问候,约翰

I was getting the same error this morning and managed to fix it by changing the application's python version from 3.9 to 3.8.今天早上我遇到了同样的错误,并设法通过将应用程序的 python 版本从 3.9 更改为 3.8 来修复它。

I'm not quite sure why this is an issue now as previously I had the application deployed on python3.9.我不太确定为什么现在这是一个问题,因为以前我在 python3.9 上部署了应用程序。

In order to change your applications python version you need to为了更改您的应用程序 python 版本,您需要

  1. Go to the WebApp azure portal page Go 到WebApp azure 门户页面
  2. Select configuration on the left hand side of the page页面左侧的 Select 配置
  3. Select General Settings Select 通用设置
  4. Change the Minor Version of python to 3.8 (I have not tested 3.7)将python的Minor Version改成3.8(3.7我没测试过)

Hope this helps!希望这可以帮助!

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

相关问题 Azure 媒体服务 function 应用程序模板部署失败 - Azure media service function app template deployment failed azure 在现有数据库上部署应用服务 - azure app service deployment on existing database Azure应用服务启用持续部署后如何编辑文件 - How to edit files in Azure App Service when continuous deployment is enabled 如何从 Azure Web 应用服务部署中心获取信息 - How to get info from Azure Web App Service Deployment Center Azure 应用服务 - Kudu 部署失败“缺少作曲家可执行文件” - Azure App Service - Kudu deployment fails "Missing composer executable" Django web azure 部署失败 - Django web Deployment Failed on azure Django 应用程序与 Azure AD 帐户身份提供商部署到 Azure Web 应用程序服务失败 - Django app with Azure AD account identity provider deployment to Azure Web app service fails Web 服务部署 Azure ML - Web Service deployment Azure ML 从 bitbucket 到 Azure Web App 部署失败。 拒绝访问错误 - Deployment failed from bitbucket to Azure Web App. Access Denied Error Azure ADO 发布管道中的 App Service Deployment Slot 和 Key Vault 映射 - Azure App Service Deployment Slot and Key Vault mapping in ADO Release pipelines
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM