Azure function app deployment hangs on pip install

Daan Kruis 5 Reputation points
2023-08-29T11:49:40.4266667+00:00

Hi,

I have a repository of python azure functions that I want to deploy to a specific existing function app.

However, when I try this it starts the deployment and everything seems fine until it gets to the pip install phase.

Here it hangs for about 40 minutes and then times out giving no error but just showing:

...

Running pip install...
/opt/Kudu/Scripts/starter.sh oryx build /tmp/zipdeploy/extracted -o /tmp/build/expressbuild --platform python --platform-version 3.8.6 -i /tmp/8dba87f711e9a4a -p packagedir=.python_packages/lib/site-packages
Generating summary of Oryx build
Deployment Log file does not exist in /tmp/oryx-build.log
The logfile at /tmp/oryx-build.log is empty. Unable to fetch the summary of build
Deployment Failed. deployer = ms-azuretools-vscode deploymentPath = Functions App ZipDeploy. Extract zip. Remote build.
Deployment failed.

I've tried deploying from VS code, CLI and DevOps, but each gives the same result.

However, when deploying to a different function app, with the exact same configuration, the deployment run fine and succeeds.

What am I missing? What could cause the pip install to fail in one function app, but not another?

Thanks in advance!

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,911 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 22,706 Reputation points Moderator
    2023-09-06T10:51:47.36+00:00

    @Daan Kruis

    Apologies for late response here!

    You can try the following workarounds to resolve this issue:

    1. If you are using the VS code then use the VS Code Azure Tool Extension.
    2. In App service -->go to the "Deployment Center" blade, and click on the "Disconnect" button on top. After that re-run the release pipeline.

    If above doesn't help try adding AzureWebJobsStorage into Configuration of your Function App

    User's image

    Enter as value the storage key's connection string from your Storage account. The path:

    Storage account -> Access keys -> key 1 -> Connection string
    
    
    

    Let us know if further query or issue remains.

    0 comments No comments

Your answer

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