python-azure-function-gpu icon indicating copy to clipboard operation
python-azure-function-gpu copied to clipboard

Container Build Fails

Open mstroefwig opened this issue 4 years ago • 2 comments

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.

mstroefwig avatar Oct 29 '21 18:10 mstroefwig

@mstroefwig did you find a solution for this?

davystrong avatar Jun 13 '22 16:06 davystrong

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.

davystrong avatar Jun 13 '22 19:06 davystrong