Closed
Description
Required Information
Question, Bug, or Feature?
Type: Bug
Enter Task Name: Node.js tool installer (v0)
Environment
-
Server - Azure Pipelines
-
Agent - Hosted
Issue Description
Using the Node.js tool installer
task to install Node 8.9.2 and getting an error at the beginning when trying to open the archive. After retrying the build that has this task, this task works sometimes. The build that uses this task and this specific task have not been modified in the build definition and we have not seen this issue before. I did see that this task was recently changed about 9 days ago (according to the commit history).
Task logs
##[section]Starting: Use Node 8.9.2
==============================================================================
Task : Node.js tool installer
Description : Finds or downloads and caches the specified version spec of Node.js and adds it to the PATH
Version : 0.153.1
Author : Microsoft Corporation
Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/tool/node-js
==============================================================================
Downloading: https://nodejs.org/dist/v8.9.2/node-v8.9.2-win-x64.7z
Extracting archive
[command]d:\a\_tasks\NodeTool_31c75bbb-bcdf-4706-8d7c-4da6a1959bc2\0.153.1\7zr.exe x -bb1 -bd -sccUTF-8 d:\a\_temp\c84e3231-3e9b-4d3d-86e4-21481127e009
7-Zip (r) 18.05 (x86) : Igor Pavlov : Public domain : 2018-04-30
Scanning the drive for archives:
1 file, 2195200 bytes (2144 KiB)
Extracting archive: d:\a\_temp\c84e3231-3e9b-4d3d-86e4-21481127e009
ERROR: d:\a\_temp\c84e3231-3e9b-4d3d-86e4-21481127e009
Can not open the file as archive
Can't open as archive: 1
Files: 0
Size: 0
Compressed: 0
##[error]d:\a\_tasks\NodeTool_31c75bbb-bcdf-4706-8d7c-4da6a1959bc2\0.153.1\7zr.exe failed with return code: 2
##[section]Finishing: Use Node 8.9.2
Troubleshooting
Error logs
d:\a\_tasks\NodeTool_31c75bbb-bcdf-4706-8d7c-4da6a1959bc2\0.153.1\7zr.exe failed with return code: 2