microsoft / azure-pipelines-tasks

Tasks for Azure Pipelines
https://aka.ms/tfbuild
MIT License
3.49k stars 2.61k forks source link

[BUG]: ##[error]Failed to download or parse releases-index.json with error: {} #20159

Open smg-bg opened 3 months ago

smg-bg commented 3 months ago

New issue checklist

Task name

UseDotNet@2

Task version

2.238.1

Issue Description

This happens more and more frequently and people are complaining in an existing issue #10969 for the past months. It seems like a capacity issue at the endpoint where releases-index.json is downloaded from. Even if it succeeds sometimes it takes minutes to complete.

Environment type (Please select at least one enviroment where you face this issue)

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

Ubuntu

Relevant log output

Tool to install: .NET Core sdk version 6.x.
##[error]Failed to download or parse releases-index.json with error: {}
Finishing: dotnet use 6.x

Full task logs with system.debug enabled

##[debug]loading INPUT_VERSION
##[debug]loading INPUT_INCLUDEPREVIEWVERSIONS
##[debug]loading INPUT_INSTALLATIONPATH
##[debug]loading INPUT_PERFORMMULTILEVELLOOKUP
##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
##[debug]loaded 10
##[debug]Agent.ProxyUrl=undefined
##[debug]Agent.CAInfo=undefined
##[debug]Agent.ClientCert=undefined
##[debug]Agent.SkipCertValidation=undefined
##[debug]Agent.ProxyUrl=undefined
##[debug]Agent.CAInfo=undefined
##[debug]Agent.ClientCert=undefined
##[debug]check path : /var/vsts/_tasks/UseDotNet_b0ce7256-7898-45d3-9cb5-176b752bfea6/2.238.1/node_modules/azure-pipelines-tool-lib/lib.json
##[debug]adding resource file: /var/vsts/_tasks/UseDotNet_b0ce7256-7898-45d3-9cb5-176b752bfea6/2.238.1/node_modules/azure-pipelines-tool-lib/lib.json
##[debug]system.culture=en-US
##[debug]Setting resource path to /var/vsts/_tasks/UseDotNet_b0ce7256-7898-45d3-9cb5-176b752bfea6/2.238.1/task.json
##[debug]check path : /var/vsts/_tasks/UseDotNet_b0ce7256-7898-45d3-9cb5-176b752bfea6/2.238.1/task.json
##[debug]adding resource file: /var/vsts/_tasks/UseDotNet_b0ce7256-7898-45d3-9cb5-176b752bfea6/2.238.1/task.json
##[debug]system.culture=en-US
##[debug]check path : /var/vsts/_tasks/UseDotNet_b0ce7256-7898-45d3-9cb5-176b752bfea6/2.238.1/node_modules/azure-pipelines-tasks-packaging-common/module.json
##[debug]adding resource file: /var/vsts/_tasks/UseDotNet_b0ce7256-7898-45d3-9cb5-176b752bfea6/2.238.1/node_modules/azure-pipelines-tasks-packaging-common/module.json
##[debug]system.culture=en-US
##[debug]useGlobalJson=false
##[debug]packageType=sdk
##[debug]version=6.x
##[debug]vsVersion=undefined
##[debug]nugetVersion=undefined
##[debug]installationPath=/opt/hostedtoolcache/dotnet
##[debug]performMultiLevelLookup=false
##[debug]includePreviewVersions=false
##[debug]workingDirectory=/var/vsts/19/s
##[debug]agent.proxyurl=undefined
##[debug]AZURE_HTTP_USER_AGENT=VSTS_cd22ac3b-8e21-425a-b33e-d0e4fed84dce_build_289_0
Tool to install: .NET Core sdk version 6.x.
##[debug]Agent environment resources - Disk: / Available 131452.00 MB out of 257210.00 MB, Memory: Used 1985.00 MB out of 24026.00 MB, CPU: Usage 74.80%
##[debug]task result: Failed
##[error]Failed to download or parse releases-index.json with error: {}
##[debug]Processed: ##vso[task.issue type=error;]Failed to download or parse releases-index.json with error: {}
##[debug]Processed: ##vso[task.complete result=Failed;]Failed to download or parse releases-index.json with error: {}
Finishing: dotnet use 6.x
 

Repro steps

steps:
- task: UseDotNet@2
  displayName: 'dotnet use 6.x'
  inputs:
    version: 6.x
jmyersmsft commented 3 months ago

Azure Artifacts does not own any part of the UseDotNet task

smg-bg commented 3 months ago

@jmyersmsft how is Azure Artifacts related? I saw that the source code for the UseDotNet task is in the current repo where I've opened this tickeet.

jmyersmsft commented 3 months ago

Sorry, this is indeed the correct repo, just the "Area: Artifacts" label was not.

KonstantinTyukalov commented 3 months ago

Thanks for the reporting! We are working on higher priority issues now, but we'll get back to this one soon

Varorbc commented 2 months ago

We have the same issue. any update?

Varorbc commented 2 weeks ago

The error message is as follows, we are really in pain, hope it will be resolved soon {"errno":"ECONNRESET","code":"ECONNRESET","syscall":"read"}