puthurr / python-azure-function-gpu

A short example on how to create Python Azure Function with GPU support
MIT License
47 stars 2 forks source link

Container Build Fails #2

Open mstroefwig opened 3 years ago

mstroefwig commented 3 years ago

Hi,

When building the image on acr, I get the following error:

Microsoft (R) Build Engine version 16.7.1+52cd83677 for .NET Copyright (C) Microsoft Corporation. All rights reserved.

/usr/share/dotnet/sdk/3.1.404/NuGet.targets(128,5): error : Unable to load the service index for source https://dotnet.myget.org/F/aspnetcore-dev/api/v3/index.json. [/src/azure-functions-host/src/WebJobs.Script.WebHost/WebJobs.Script.WebHost.csproj] /usr/share/dotnet/sdk/3.1.404/NuGet.targets(128,5): error : The SSL connection could not be established, see inner exception. [/src/azure-functions-host/src/WebJobs.Script.WebHost/WebJobs.Script.WebHost.csproj] /usr/share/dotnet/sdk/3.1.404/NuGet.targets(128,5): error : The remote certificate is invalid according to the validation procedure. [/src/azure-functions-host/src/WebJobs.Script.WebHost/WebJobs.Script.WebHost.csproj] The command '/bin/sh -c BUILD_NUMBER=$(echo ${HOST_VERSION} | cut -d'.' -f 3) && git clone --branch v${HOST_VERSION} https://github.com/Azure/azure-functions-host /src/azure-functions-host && cd /src/azure-functions-host && HOST_COMMIT=$(git rev-list -1 HEAD) && dotnet publish -v q /p:BuildNumber=$BUILD_NUMBER /p:CommitHash=$HOST_COMMIT src/WebJobs.Script.WebHost/WebJobs.Script.WebHost.csproj -c Release --output /azure-functions-host --runtime linux-x64 && mv /azure-functions-host/workers /workers && mkdir /azure-functions-host/workers && rm -rf /root/.local /root/.nuget /src' returned a non-zero code: 1 2021/10/29 18:45:13 Container failed during run: build. No retries remaining. failed to run step ID: build: exit status 1

Any ideas on how to resolve it?

Thank you.

davystrong commented 2 years ago

@mstroefwig did you find a solution for this?

davystrong commented 2 years ago

For anyone else getting this error, the solution is simply to remove the source. This PR for the original repo says the source is unnecessary. Since it has already been merged and backported, changing the HOST_VERSION to 3.0.15960 solves the issue.