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

Azure DevOps Pipeline Task NodeTool@0 Version 18.x results in 404 #47113

Closed
jeroensmink98 opened this issue Mar 16, 2023 · 1 comment
Closed

Comments

@jeroensmink98
Copy link

Version

No response

Platform

Microsoft Windows NT 10.0.17763.0 x64

Subsystem

No response

What steps will reproduce the bug?

Create an Azure DevOps Pipeline with a self-hosted runner and try to run the following YAML job

steps:
  - task: NodeTool@0
    inputs:
      versionSpec: "18.x"
    displayName: "Install Node.js"

  - script: |
      # Install dependencies
      npm install
    displayName: "Install dependencies"`

### How often does it reproduce? Is there a required condition?

_No response_

### What is the expected behavior? Why is that the expected behavior?

It should download Node v18 to my build agent

### What do you see instead?

```log
2023-03-16T10:33:21.9890312Z ##[debug]Agent.Version=2.217.2
2023-03-16T10:33:21.9891019Z ##[debug]Agent.ToolsDirectory=D:\DevOps\agent3\_work\_tool
2023-03-16T10:33:21.9891881Z ##[debug]checking cache: D:\DevOps\agent3\_work\_tool\node\18.15.0\x64
2023-03-16T10:33:21.9892697Z ##[debug]not found
2023-03-16T10:33:21.9893328Z ##[debug]cleaning: v18.15.0
2023-03-16T10:33:21.9893942Z ##[debug]
2023-03-16T10:33:21.9894637Z ##[debug]Agent.Version=2.217.2
2023-03-16T10:33:21.9895351Z ##[debug]Agent.TempDirectory=D:\DevOps\agent3\_work\_temp
2023-03-16T10:33:21.9896103Z ##[debug]testing directory 'D:\DevOps\agent3\_work\_temp'
2023-03-16T10:33:21.9896765Z Downloading: https://nodejs.org/dist/v18.15.0/node-v18.15.0-win-x64.7z
2023-03-16T10:33:21.9897524Z ##[debug]destination D:\DevOps\agent3\_work\_temp\388592de-dfd7-479a-8571-78f354aba6ef
2023-03-16T10:33:21.9898272Z ##[debug]downloading
2023-03-16T10:33:21.9899274Z ##[debug]Failed to download "388592de-dfd7-479a-8571-78f354aba6ef" from "https://nodejs.org/dist/v18.15.0/node-v18.15.0-win-x64.7z". Code(404) Message(Not Found)
2023-03-16T10:33:21.9900216Z ##[debug]agent.tempDirectory=D:\DevOps\agent3\_work\_temp
2023-03-16T10:33:21.9901005Z ##[debug]testing directory 'D:\DevOps\agent3\_work\_temp\temp_1497714889'
2023-03-16T10:33:21.9901781Z ##[debug]testing directory 'D:\DevOps\agent3\_work\_temp'
2023-03-16T10:33:21.9902533Z ##[debug]mkdir 'D:\DevOps\agent3\_work\_temp\temp_1497714889'
2023-03-16T10:33:21.9903301Z ##[debug]D:\DevOps\agent3\_work\_temp\temp_1497714889\node.exe
2023-03-16T10:33:21.9904090Z ##[debug]testing directory 'D:\DevOps\agent3\_work\_temp\temp_1497714889'
2023-03-16T10:33:21.9904659Z Downloading: https://nodejs.org/dist/v18.15.0/win-x64/node.exe
2023-03-16T10:33:21.9905379Z ##[debug]destination D:\DevOps\agent3\_work\_temp\temp_1497714889\node.exe
2023-03-16T10:33:21.9906086Z ##[debug]downloading
2023-03-16T10:33:22.0017941Z ##[debug]Failed to download "D:\DevOps\agent3\_work\_temp\temp_1497714889\node.exe" from "https://nodejs.org/dist/v18.15.0/win-x64/node.exe". Code(404) Message(Not Found)
2023-03-16T10:33:22.0019295Z ##[debug]D:\DevOps\agent3\_work\_temp\temp_1497714889\node.exe
2023-03-16T10:33:22.0020121Z ##[debug]testing directory 'D:\DevOps\agent3\_work\_temp\temp_1497714889'
2023-03-16T10:33:22.0020702Z Downloading: https://nodejs.org/dist/v18.15.0/node.exe
2023-03-16T10:33:22.0021418Z ##[debug]destination D:\DevOps\agent3\_work\_temp\temp_1497714889\node.exe
2023-03-16T10:33:22.0022138Z ##[debug]downloading
2023-03-16T10:33:22.0220155Z ##[debug]Failed to download "D:\DevOps\agent3\_work\_temp\temp_1497714889\node.exe" from "https://nodejs.org/dist/v18.15.0/node.exe". Code(404) Message(Not Found)
2023-03-16T10:33:22.0222303Z ##[debug]task result: Failed
2023-03-16T10:33:22.0256427Z ##[error]Unexpected HTTP response: 404
2023-03-16T10:33:22.0267266Z ##[debug]Processed: ##vso[task.issue type=error;]Unexpected HTTP response: 404
2023-03-16T10:33:22.0274471Z ##[debug]Processed: ##vso[task.complete result=Failed;]Unexpected HTTP response: 404
2023-03-16T10:33:22.0343703Z ##[section]Finishing: Install Node.js

Additional information

No response

@bnoordhuis
Copy link
Member

Duplicate of #47109, follow nodejs/nodejs.org#5149 for updates.

@bnoordhuis bnoordhuis closed this as not planned Won't fix, can't repro, duplicate, stale Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants