Skip to content

ASP.NET Core RestoreNpmPackages logic is failing in offline scenario #3925

@MichaelSimons

Description

@MichaelSimons

The Fedora39_Offline_CurrentSourceBuiltSdk_x64 CI leg is failing with the following error:

/vmr/repo-projects/Directory.Build.targets(209,5): error MSB3073: The command "/vmr/src/aspnetcore/eng/build.sh  --ci --configuration Release --restore --build --pack  -bl /p:ArcadeBuildFromSource=true /p:CopyWipIntoInnerSourceBuildRepo=true /p:CopySrcInsteadOfClone=true /p:DotNetPackageVersionPropsPath="/vmr/artifacts/obj/x64/Release/PackageVersions.aspnetcore.props" /p:AdditionalSourceBuiltNupkgCacheDir="/vmr/artifacts/obj/x64/Release/blob-feed/packages/" /p:ReferencePackageNupkgCacheDir="/vmr/prereqs/packages/reference/" /p:PreviouslySourceBuiltNupkgCacheDir="/vmr/prereqs/packages/previously-source-built/" /p:SourceBuildUseMonoRuntime= /p:DotNetBuildVertical=false /p:CrossBuild= --arch x64 --no-build-repo-tasks --no-build-nodejs /p:PortableBuild=false /p:TargetRuntimeIdentifier=fedora.39-x64 /p:MicrosoftNetFrameworkReferenceAssembliesVersion=1.0.0 >> /vmr/artifacts/logs/aspnetcore.log 2>&1" exited with code 1. [/vmr/repo-projects/aspnetcore.proj]
  warning: Some managed projects depend on NodeJS projects. Building NodeJS is disabled so the managed projects will fallback to using the output from previous builds. The output may not be correct or up to date.
    Checking node version...
    v20.10.0
    Checking npm version...
    10.2.3
    npm notice 
    npm notice New minor version of npm available! 10.2.3 -> 10.3.0
    npm notice Changelog: <[https://github.com/npm/cli/releases/tag/v10.3.0>](https://github.com/npm/cli/releases/tag/v10.3.0%3E)
    npm notice Run `npm install -g [email protected]` to update!
    npm notice 
    npm ERR! code ETIMEDOUT
    npm ERR! errno ETIMEDOUT
    npm ERR! network request to https://sqdvsblobprodcus333.vsblob.vsassets.io/b-b55de4ed4b5a4215a8e40a0a5f71e7d8/DF06192086E589B85280558D379B08B0BADE1E447E679F26AC709F372FA06D1F00.blob?sv=2019-07-07&sr=b&si=1&sig=ZZDrfGyfARx8ePDcLdFIa9rxonYH1QciI8H81cjIce8%3D&spr=https&se=2024-01-11T15%3A00%3A20Z&rscl=x-e2eid-f3b083fe-fed9489f-88064ab7-5dff1f0a-session-f3b083fe-fed9489f-88064ab7-5dff1f0a&rscd=attachment%3B%20filename%3D%22enhanced-resolve-4.5.0.tgz%22&P1=1704982854&P2=1&P3=2&P4=hWPUEN8dOl0JS%2fj2so2SZgBWhnwBQaycRG%2fewM%2fxz5I%3d failed, reason: 
    npm ERR! network This is a problem related to network connectivity.
    npm ERR! network In most cases you are behind a proxy or have bad network settings.
    npm ERR! network 
    npm ERR! network If you are behind a proxy, please make sure that the
    npm ERR! network 'proxy' config is set properly.  See: 'npm help config'
    
    npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2024-01-11T10_18_26_133Z-debug-0.log
  /vmr/src/aspnetcore/eng/SourceBuild.props(99,5): error MSB3073: The command "npm ci" exited with code 1. [/vmr/artifacts/source-built-sdks/Microsoft.DotNet.Arcade.Sdk/tools/Build.proj]
##[error]/vmr/src/aspnetcore/eng/SourceBuild.props(99,5): error MSB3073: The command "npm ci" exited with code 1.

Failing build (Microsoft internal link)

It is odd that other offline legs are not failing - especially on the same distro - e.g. Fedora39_Offline_MsftSdk_x64. It would be nice to know why that is.

This appears related to dotnet/aspnetcore#53154.

Metadata

Metadata

Assignees

Labels

area-upstream-fixNeeds a change in a contributing repoops-monitorIssues created/handled by the source build monitor role

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions