Skip to content

App Service Linux: PYTHON|3.14 stack runs a Python 3.12.13 runtime, app built for 3.14 crashes with libpython3.14.so.1.0 not found #3133

Open

Description

@gilrallo

Bug Report

  • When: 2026-11-06, between about 09:40 and 11:30 UTC.
  • Where: Azure Web Apps, Linux, Python stack, Oryx remote build (SCM_DO_BUILD_DURING_DEPLOYMENT=1), image flavor noble.
  • Repo: private.

Setup

The web app's stack is set to Python 3.14. az webapp config show --query linuxFxVersion returns PYTHON|3.14, and az webapp list-runtimes --os linux lists PYTHON|3.14 as Active.

What happened

  1. The first deploys failed in the build with ERROR: Could not find cached tarball for python 3.12.13. The External ACR SDK provider resolved 3.12.13 although the command was oryx build ... --platform python --platform-version 3.14. This is the same as Failed to deploy web package to App Service #3120. Oryx version 0.2.20261027.2+7d151c179c42733038d1f2fdc2573f076fa61d1c.
  2. We applied the workaround from Failed to deploy web package to App Service #3120 (ORYX_ENABLE_EXTERNAL_ACR_SDK_PROVIDER=false, ORYX_ENABLE_SDK_PROVIDER=true) and restarted. The build then succeeded with the right version:
    Found tarball at /tmp/oryx/platforms/python/python-noble-3.14.10.tar.gz
    Executing: /tmp/oryx/platforms/python/3.14.10/bin/python3.14 -m venv antenv --copies --system-site-packages
    
  3. The app then fails to start. The runtime container reports the wrong Python, and the venv built for 3.14 cannot load its library:
    Python version : 3.12.13
    python: error while loading shared libraries: libpython3.14.so.1.0: cannot open shared object file: No such file or directory
    /tmp/<id>/antenv/bin/python: error while loading shared libraries: libpython3.14.so.1.0: cannot open shared object file: No such file or directory
    
    SSH into the container is not possible because it keeps crashing.
  4. Restarting the app again, with the stack still PYTHON|3.14, still prints Python version : 3.12.13 at startup.

What we expected

With the stack set to PYTHON|3.14, the runtime container should run Python 3.14, matching the build, as it does for 3.12 and 3.13.

Notes

  • No runtime.txt or .python-version file in the repository, and no PYTHON_VERSION app setting. The only build-related app setting besides the two workaround settings is SCM_DO_BUILD_DURING_DEPLOYMENT=1.
  • It looks like the PYTHON|3.14 stack starts a 3.12 runtime image, while the build (once the External ACR provider is disabled) uses 3.14, so build and runtime do not match.
  • Our workaround for now is moving the app back to Python 3.13.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions