-
Notifications
You must be signed in to change notification settings - Fork 195
Description
Bug Report
- At what date and time did you most recently experience the problem?
Started when manually upgrading the python version used by the mcr.microsoft.com/oryx/build:latest image from 3.8.16 to 3.10.8.
- Where did you experience the problem? E.g. Azure Web Apps, Azure Functions, Azure Container Registry, or offline use.
Github Workflow and Locally
- What happened?
In our project we are using poetry for dependency management and FastApi to create a web app which we want to deploy to Azure App Service. For we first build the app as described in the readme with the following Github workflow:
env:
LANG: en_US.UTF-8
PYTHON_VERSION: 3.10.8
jobs:
build-oryx:
runs-on: azure-runners
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Build
run: |
docker run \
-e PYTHON_VERSION \
-v "$PWD:/repo" \
mcr.microsoft.com/oryx/build \
oryx build /repo
Note: The azure-runner is a self-hosted GitHub Actions runners based on official
summerwind/actions-runner-dindimage based onubuntu:20.04. Here python 3.8.10 is installed but we also tried with python version 3.10.8 using action/setup-python.
However, this returns the following error (within GitHub action and running it locally):
/tmp/oryx/platforms/python/3.10.8/bin/python3.10: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /tmp/oryx/platforms/python/3.10.8/lib/libpython3.10.so.1.0)
Background
Due to the new poetry version on pip it is now depending on urrlib3 >= 2 which resulted in an SSL error ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'OpenSSL 1.1.0l 10 Sep 2019'. See: https://github.com/urllib3/urllib3/issues/2168. Hence, since it is not possible to adjust the poetry version used by mcr.microsoft.com/oryx/build and the only option was to upgrade python to version 3.10.x as described in urllib3. However, this returns the `GLIBC_2.29' not found for python 3.10.8 error which also occurs for version 3.10.0 and 3.10.4.
-
What did you expect or want to happen?
app.zip is created -
How can we reproduce it?
- See https://github.com/mzwiesler/error-oryx-build
- See run https://github.com/mzwiesler/error-oryx-build/actions/runs/6275548901/job/17043266699
- Seems this was already anticipated by PR 1200 however in my setup with poetry and FastApi it occurs again.
-
Do you have log output? Please include between the backticks:
Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx
You can report issues at https://github.com/Microsoft/Oryx/issues
Oryx Version: 0.2.20230904.1, Commit: f2d28cc9e92250b08ae08ccedf3b64dc4944b762, ReleaseTagName: 20230904.1
Build Operation ID: 84e78571426392ca
Repository Commit : 533b867cc7bb61850426cf37b9565816581bfca6
OS Type : stretch
Image Type : full
Detecting platforms...
Detected following platforms:
python: 3.10.8
Version '3.10.8' of platform 'python' is not installed. Generating script to install it...
Source directory : /repo
Destination directory: /repo
Downloading and extracting 'python' version '3.10.8' to '/tmp/oryx/platforms/python/3.10.8'...
Detected image debian flavor: stretch.
Downloaded in 17 sec(s).
Verifying checksum...
Extracting contents...
performing sha512 checksum for: python...
Done in 19 sec(s).
Python Version: /tmp/oryx/platforms/python/3.10.8/bin/python3.10
Creating directory for command manifest file if it does not exist
Removing existing manifest file
Python Virtual Environment: pythonenv3.10
Creating virtual environment...
/tmp/oryx/platforms/python/3.10.8/bin/python3.10: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /tmp/oryx/platforms/python/3.10.8/lib/libpython3.10.so.1.0)
/tmp/oryx/platforms/python/3.10.8/bin/python3.10: /lib/x86_64-linux-gnu/libpthread.so.0: version `GLIBC_2.30' not found (required by /tmp/oryx/platforms/python/3.10.8/lib/libpython3.10.so.1.0)
/tmp/oryx/platforms/python/3.10.8/bin/python3.10: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /tmp/oryx/platforms/python/3.10.8/lib/libpython3.10.so.1.0)
/tmp/oryx/platforms/python/3.10.8/bin/python3.10: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by /tmp/oryx/platforms/python/3.10.8/lib/libpython3.10.so.1.0)
/tmp/oryx/platforms/python/3.10.8/bin/python3.10: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.26' not found (required by /tmp/oryx/platforms/python/3.10.8/lib/libpython3.10.so.1.0)
/tmp/oryx/platforms/python/3.10.8/bin/python3.10: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.27' not found (required by /tmp/oryx/platforms/python/3.10.8/lib/libpython3.10.so.1.0)