question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Node.js tool installer - 7zr.exe failed with return code: 2

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:8

github_iconTop GitHub Comments

16reactions
SanjiKircommented, Apr 6, 2020

Starting happen to us today, did anything change?

2reactions
damccormcommented, Oct 23, 2019

Issue here - https://github.com/nodejs/build/issues/1993

There’s unfortunately not anything we can do on our end. I’d recommend retrying builds (I know its annoying, I’m equally annoyed 😅). If you use a private agent, it will cache the version of node you’re using.

Also, note that the changes to this task you referenced haven’t been deployed yet, so that’s a red herring

Read more comments on GitHub >

github_iconTop Results From Across the Web

Node.js tool installer - 7zr.exe failed with return code: 2 #11625
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...
Read more >
Node.js Tool Installer Task and custom task support
2). When I upgraded my teams TFS 2015 TRM to TFS 2018 Update 3.2, my custom task started failing with error "Unhandled: Module...
Read more >
NodeTool@0 - Node.js tool installer v0 task | Microsoft Learn
Node.js tool installer v0 # Finds or downloads and caches the specified version spec of Node.js and adds it to the PATH. -...
Read more >
Azure DevOps Pipeline NPM install task fails with node-gyp ...
I am trying to build an Azure Pipeline in Azure DevOps. The problem is that when a pipeline ran, an error occurred in...
Read more >
Automated Malware Analysis Executive Report for simboot.exe ...
7zr.exe, PE32 dropped Sleep loop found (likely to delay execution) 7zr.exe ... Source: qemul.exe.2.dr, Binary or memory string: qemu: warning: error while ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found