Repository navigation
Closed
Labels
Description
The dotnet-source-build-lite pipeline is failing with the following error:
/vmr/src/msbuild/src/Build/Microsoft.Build.csproj : warning NU1900: Error occurred while getting package vulnerability data: Unable to load the service index for source https://pkgs.dev.azure.com/ms/BuildXL/_packaging/BuildXL/nuget/v3/index.json. [/vmr/src/msbuild/MSBuild.SourceBuild.slnf]
/vmr/src/msbuild/src/Framework/Microsoft.Build.Framework.csproj : warning NU1900: Error occurred while getting package vulnerability data: Unable to load the service index for source https://pkgs.dev.azure.com/ms/BuildXL/_packaging/BuildXL/nuget/v3/index.json. [/vmr/src/msbuild/MSBuild.SourceBuild.slnf]
/vmr/src/msbuild/src/Utilities/Microsoft.Build.Utilities.csproj : warning NU1900: Error occurred while getting package vulnerability data: Unable to load the service index for source https://pkgs.dev.azure.com/ms/BuildXL/_packaging/BuildXL/nuget/v3/index.json. [/vmr/src/msbuild/MSBuild.SourceBuild.slnf]
/vmr/src/msbuild/src/Tasks/Microsoft.Build.Tasks.csproj : warning NU1900: Error occurred while getting package vulnerability data: Unable to load the service index for source https://pkgs.dev.azure.com/ms/BuildXL/_packaging/BuildXL/nuget/v3/index.json. [/vmr/src/msbuild/MSBuild.SourceBuild.slnf]
/vmr/src/msbuild/src/Package/Localization/Localization.csproj : warning NU1900: Error occurred while getting package vulnerability data: Unable to load the service index for source https://pkgs.dev.azure.com/ms/BuildXL/_packaging/BuildXL/nuget/v3/index.json. [/vmr/src/msbuild/MSBuild.SourceBuild.slnf]
/vmr/src/msbuild/src/MSBuild/MSBuild.csproj : warning NU1900: Error occurred while getting package vulnerability data: Unable to load the service index for source https://pkgs.dev.azure.com/ms/BuildXL/_packaging/BuildXL/nuget/v3/index.json. [/vmr/src/msbuild/MSBuild.SourceBuild.slnf]
/vmr/src/msbuild/src/StringTools/StringTools.csproj : error NU1900: Warning As Error: Error occurred while getting package vulnerability data: Unable to load the service index for source https://pkgs.dev.azure.com/ms/BuildXL/_packaging/BuildXL/nuget/v3/index.json. [/vmr/src/msbuild/MSBuild.SourceBuild.slnf]
7 Warning(s)
1 Error(s)
Example build (internal link)
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
mthalman commentedon Sep 25, 2024
This is also failing in Unified Build: example (internal link). It doesn't seem to be associated with a code change but rather a feed or network change?
pinging @jeffkl, @nkolev92 for any insight
jeffkl commentedon Sep 25, 2024
/cc @zivkan as well
nkolev92 commentedon Sep 25, 2024
Hard to tell on a first look.
Seems like the source wasn't accessible.
Did the SDK version change recently?
zivkan commentedon Sep 25, 2024
Just as a test, can you run
dotnet add package DoesNotExistto some project? It will show inner exceptions, and therefore explain why the service index can't be loaded.However, I don't see the Azure Pipelines
NuGetAuthenticatetask being run, so I suspect that it isn't sending credentials to the private feed. If this worked before, I don't know how or why. My understanding is that it's always been necessary to set up the credentials in Azure Pipelines before trying to access the private feed.mthalman commentedon Sep 26, 2024
It looks like this was a transient error. Builds are passing now.
Winniexu01 commentedon Oct 15, 2024
Reopening as the latest builds failed again due to the same issue. Now, it is affecting the 9.0 and 8.0 repos.
mthalman commentedon Oct 15, 2024
Yes, it also showed up in dotnet/sdk#44174.
mthalman commentedon Oct 15, 2024
/cc @rainersigwald
mthalman commentedon Oct 15, 2024
In the 8.0 builds, it gets the following error which provides the extra context of 401 (Unauthorized):
This feed is referenced here: https://github.com/dotnet/dotnet/blob/77ace8473cd818b681c48046464d1cca112b945c/src/msbuild/NuGet.config#L21
@rainersigwald - Do you have context on this feed and know what's going on here?
mthalman commentedon Oct 15, 2024
This also affects main. It showed up in the unified build run of this PR: dotnet/sdk#44192
jeffkl commentedon Oct 15, 2024
Did an auth token expire or something? The feed https://pkgs.dev.azure.com/ms/BuildXL/_packaging/BuildXL/nuget/v3/index.json requires authentication, what is configuring authentication for feeds?
rainersigwald commentedon Oct 15, 2024
That feed no longer exists and shouldn't be referenced in current branches. But the flow of that removal into SDK has been held up on unrelated problems (dotnet/sdk#44011).
mthalman commentedon Oct 15, 2024
@rainersigwald - That flow is for main branch but this also applies to both 8.0 and 9.0. Has a similar feed removal been made for those branches? Because no such removal has reached the VMR yet.
rainersigwald commentedon Oct 15, 2024
It may not have but I was just talking to @MichalPavlik about how we needed it.
mthalman commentedon Oct 15, 2024
VMR patches created to workaround this:
mthalman commentedon Oct 15, 2024
All the PRs mentioned in #4634 (comment) have been merged so this should be resolved now.