volta icon indicating copy to clipboard operation
volta copied to clipboard

`error: Could not unpack Node v22.9.0`

Open garysassano opened this issue 1 year ago • 3 comments

Tried this:

❯ volta install node@latest
error: Could not unpack Node v22.9.0

Please ensure the correct version is specified.
Error details written to /home/user/.volta/log/volta-error.log

volta-error.log

"volta" "install" "node@latest"
Volta v2.0.1

Could not unpack Node v22.9.0

Please ensure the correct version is specified.

Error cause: failed to unpack `/home/user/.volta/tmp/.tmpcA2K51/node-v22.9.0-linux-x64/bin/node`

Error cause: failed to unpack `/home/user/.volta/tmp/.tmpcA2K51/node-v22.9.0-linux-x64/bin/node`

Error cause: failed to unpack `node-v22.9.0-linux-x64/bin/node` into `/home/user/.volta/tmp/.tmpcA2K51/node-v22.9.0-linux-x64/bin/node`

Error cause: Resource temporarily unavailable (os error 11)

garysassano avatar Oct 04 '24 15:10 garysassano

Similar issue here. I'm on macOS 14.6.1.

❯ volta install node@20
error: Could not unpack Node v20.18.0

Please ensure the correct version is specified.
Error details written to /Users/tim/.volta/log/volta-error-2024-10-09_11_13_33.304.log

error log:

"volta" "install" "node@20"
Volta v2.0.1

Could not unpack Node v20.18.0

Please ensure the correct version is specified.

Error cause: failed to unpack `/Users/tim/.volta/tmp/.tmp9PH3Z5/node-v20.18.0-darwin-arm64/bin/node`

Error cause: failed to unpack `/Users/tim/.volta/tmp/.tmp9PH3Z5/node-v20.18.0-darwin-arm64/bin/node`

Error cause: failed to unpack `node-v20.18.0-darwin-arm64/bin/node` into `/Users/tim/.volta/tmp/.tmp9PH3Z5/node-v20.18.0-darwin-arm64/bin/node`

Error cause: corrupt deflate stream

Running the same install command a second time was successful:

❯ volta install node@20
success: installed and set [email protected] (with [email protected]) as default

tpesce-appfire avatar Oct 09 '24 17:10 tpesce-appfire

I am seeing the same error intermittently on GitHub Actions.

I've seen brief periods over the last 2 days where every action encountered the same error, which would seem to point to an invalid Node.js archive; but Volta isn't giving me a useful error message, so I can't be sure.

Failure
Run pnpm install --frozen-lockfile
[verbose] Acquiring lock on Volta directory: /opt/hostedtoolcache/volta/2.0.1/x64/volta.lock
[verbose] No custom hooks found
[verbose] Downloading [email protected] from https://nodejs.org/dist/v20.18.0/node-v20.18.0-linux-x64.tar.gz
[verbose] Unpacking node into '/opt/hostedtoolcache/volta/2.0.1/x64/tmp/.tmpss6kcV'
[verbose] Unlocking Volta Directory
Volta error: Could not unpack Node v20.18.0

Please ensure the correct version is specified.
Volta error: Error cause: failed to unpack `/opt/hostedtoolcache/volta/2.0.1/x64/tmp/.tmpss6kcV/node-v20.18.0-linux-x64/bin/node`

Error cause: failed to unpack `/opt/hostedtoolcache/volta/2.0.1/x64/tmp/.tmpss6kcV/node-v20.18.0-linux-x64/bin/node`

Error cause: failed to unpack `node-v20.18.0-linux-x64/bin/node` into `/opt/hostedtoolcache/volta/2.0.1/x64/tmp/.tmpss6kcV/node-v20.18.0-linux-x64/bin/node`

Error cause: Resource temporarily unavailable (os error 11)
Error: Process completed with exit code 126.
Success
Run pnpm install --frozen-lockfile
[verbose] Acquiring lock on Volta directory: /opt/hostedtoolcache/volta/2.0.1/x64/volta.lock
[verbose] No custom hooks found
[verbose] Downloading [email protected] from https://nodejs.org/dist/v20.18.0/node-v20.18.0-linux-x64.tar.gz
[verbose] Unpacking node into '/opt/hostedtoolcache/volta/2.0.1/x64/tmp/.tmp61cR2V'
[verbose] Saving bundled npm version (10.8.2)
[verbose] Installing node in '/opt/hostedtoolcache/volta/2.0.1/x64/tools/image/node/20.18.0'
[verbose] Unlocking Volta Directory
[verbose] Acquiring lock on Volta directory: /opt/hostedtoolcache/volta/2.0.1/x64/volta.lock
[verbose] Downloading [email protected] from https://registry.npmjs.org/pnpm/-/pnpm-9.12.1.tgz
[verbose] Unpacking pnpm into '/opt/hostedtoolcache/volta/2.0.1/x64/tmp/.tmpGuache'
[verbose] Installing pnpm in '/opt/hostedtoolcache/volta/2.0.1/x64/tools/image/pnpm/9.12.1'
[verbose] Unlocking Volta Directory
[verbose] Active Image:
    Node: 20.18.0 from project configuration
    npm: 10.8.2 from project configuration
    pnpm: 9.12.1 from project configuration
    Yarn: None

(...output of pnpm install)

It seems noteworthy that unpacking doesn't fail immediately. The shortest time I've seen so far is 0:29, the longest is 1:17.

image image

For now I'm just switching our CI environment back to actions/setup-node, which is no big deal.

aaronadamsCA avatar Oct 15 '24 08:10 aaronadamsCA

To upgrade to v2.0.1 I did remove volta v1.1.1 (followed the uninstall instructions) did a clean install to get v2.0.1 and this error happens when trying to install node@lts removing volta and reverting to v1.1.1 solved the issue. i am on ubuntu 22

cat /home/user/.volta/log/volta-error-*.log
"volta" "install" "node@lts"
Volta v2.0.1

Could not unpack Node v20.18.0

Please ensure the correct version is specified.

Error cause: failed to unpack `/home/user/.volta/tmp/.tmpmyyFp7/node-v20.18.0-linux-x64/bin/node`

Error cause: failed to unpack `/home/user/.volta/tmp/.tmpmyyFp7/node-v20.18.0-linux-x64/bin/node`

Error cause: failed to unpack `node-v20.18.0-linux-x64/bin/node` into `/home/user/.volta/tmp/.tmpmyyFp7/node-v20.18.0-linux-x64/bin/node`

Error cause: Resource temporarily unavailable (os error 11)

migs35323 avatar Oct 17 '24 12:10 migs35323

Looks to be a duplicate of #1484

jameskennard avatar Dec 19 '25 15:12 jameskennard