Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: NuGet restore failed, but task did not #20258

Closed
4 of 7 tasks
WillR27 opened this issue Aug 6, 2024 · 1 comment
Closed
4 of 7 tasks

[BUG]: NuGet restore failed, but task did not #20258

WillR27 opened this issue Aug 6, 2024 · 1 comment

Comments

@WillR27
Copy link

WillR27 commented Aug 6, 2024

New issue checklist

Task name

NuGet

Task version

2.238.1

Issue Description

Our NuGet restore failed with the following log, but this did not cause the task itself to fail, so the pipeline continued and failed later on. I would have expected the NuGet task itself to fail and therefore the entire pipeline, unless this is intended?

2024-08-05T19:03:17.0313884Z ##[section]Starting: NuGet restore
2024-08-05T19:03:17.0835195Z ==============================================================================
2024-08-05T19:03:17.0835472Z Task         : NuGet
2024-08-05T19:03:17.0835937Z Description  : Restore, pack, or push NuGet packages, or run a NuGet command. Supports NuGet.org and authenticated feeds like Azure Artifacts and MyGet. Uses NuGet.exe and works with .NET Framework apps. For .NET Core and .NET Standard apps, use the .NET Core task.
2024-08-05T19:03:17.0836518Z Version      : 2.238.1
2024-08-05T19:03:17.0836743Z Author       : Microsoft Corporation
2024-08-05T19:03:17.0836964Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/package/nuget
2024-08-05T19:03:17.0837232Z ==============================================================================
2024-08-05T19:03:19.0692502Z Found tool in cache: NuGet 6.4.0 x64
2024-08-05T19:03:19.0711937Z Found tool in cache: NuGet 6.4.0 x64
2024-08-05T19:03:19.0760477Z Resolved from tool cache: 6.4.0
2024-08-05T19:03:19.0761460Z Using version: 6.4.0
2024-08-05T19:03:19.0763533Z Found tool in cache: NuGet 6.4.0 x64
2024-08-05T19:14:39.4270092Z (node:10768) UnhandledPromiseRejectionWarning: Error: connect ETIMEDOUT 13.107.43.20:443
2024-08-05T19:14:39.4270881Z     at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1107:14)
2024-08-05T19:14:39.4271718Z (node:10768) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
2024-08-05T19:14:39.4272626Z (node:10768) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
2024-08-05T19:14:39.4550453Z ##[section]Finishing: NuGet restore

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

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

Windows 10

Relevant log output

2024-08-05T19:03:17.0313884Z ##[section]Starting: NuGet restore
2024-08-05T19:03:17.0835195Z ==============================================================================
2024-08-05T19:03:17.0835472Z Task         : NuGet
2024-08-05T19:03:17.0835937Z Description  : Restore, pack, or push NuGet packages, or run a NuGet command. Supports NuGet.org and authenticated feeds like Azure Artifacts and MyGet. Uses NuGet.exe and works with .NET Framework apps. For .NET Core and .NET Standard apps, use the .NET Core task.
2024-08-05T19:03:17.0836518Z Version      : 2.238.1
2024-08-05T19:03:17.0836743Z Author       : Microsoft Corporation
2024-08-05T19:03:17.0836964Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/package/nuget
2024-08-05T19:03:17.0837232Z ==============================================================================
2024-08-05T19:03:19.0692502Z Found tool in cache: NuGet 6.4.0 x64
2024-08-05T19:03:19.0711937Z Found tool in cache: NuGet 6.4.0 x64
2024-08-05T19:03:19.0760477Z Resolved from tool cache: 6.4.0
2024-08-05T19:03:19.0761460Z Using version: 6.4.0
2024-08-05T19:03:19.0763533Z Found tool in cache: NuGet 6.4.0 x64
2024-08-05T19:14:39.4270092Z (node:10768) UnhandledPromiseRejectionWarning: Error: connect ETIMEDOUT 13.107.43.20:443
2024-08-05T19:14:39.4270881Z     at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1107:14)
2024-08-05T19:14:39.4271718Z (node:10768) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
2024-08-05T19:14:39.4272626Z (node:10768) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
2024-08-05T19:14:39.4550453Z ##[section]Finishing: NuGet restore

Full task logs with system.debug enabled

 [REPLACE THIS WITH YOUR INFORMATION] 

Repro steps

Our current setup uses classic pipelines, but this is the equivalent YAML.

steps:
- task: NuGetCommand@2
  displayName: 'NuGet restore'
  inputs:
    restoreSolution: '$/Example.sln'
Copy link

github-actions bot commented Feb 3, 2025

This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days

@github-actions github-actions bot added the stale label Feb 3, 2025
@github-actions github-actions bot closed this as completed Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants