GLIBC dependency conflict on Azure App Service

Hannes Caesar 5 Reputation points
2023-07-18T11:01:12.0766667+00:00

Hello,

I am deploying a django application with python3.10 to an Azure App Service.
I am getting a conflict with the glibc version installed on the machine:

Traceback (most recent call last):

When I ssh into the app service, it tells me that the installed version os 2.29. I am on DEBIAN Bullseye. Is there any way to get the required version of 2.32 on the app service?

I see that there is a new release stable debian release (bookworm) as of June. Is it planned that there will be a docker image for that release which can be used in azure app service soon?

I tried setting the environment variable WEBSITE_LINUX_OS_VERSION to DEBIAN|BOOKWORM. This did not take affect.

Thanks for any suggestions.

Hannes

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 30,326 Reputation points Microsoft Employee Moderator
    2023-07-19T18:33:22.1466667+00:00

    @Hannes Caesar since App Service is PaaS and runs in a sandbox environment, I don't believe glibc can be upgraded.

    You can try using PRE_BUILD_SCRIPT_PATH to set a script file that attempt to update/upgrade the glibc. I haven't personally tried but if requires system elevated privileges, it more than likely won't work. The best workaround though is using a custom container and configure your image with the Debian version you need.

    Furthermore, WEBSITE_LINUX_OS_VERSION refers to LinxuFxVersion so acceptable values are az webapp list-runtimes --linux.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.