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

error: Could not unpack Node v22.9.0 #1909

Open
garysassano opened this issue Oct 4, 2024 · 3 comments
Open

error: Could not unpack Node v22.9.0 #1909

garysassano opened this issue Oct 4, 2024 · 3 comments

Comments

@garysassano
Copy link

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)
@tpesce-appfire
Copy link

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 node@20.18.0 (with npm@10.8.2) as default

@aaronadamsCA
Copy link

aaronadamsCA commented Oct 15, 2024

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 node@20.18.0 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 node@20.18.0 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 pnpm@9.12.1 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.

@migs35323
Copy link

migs35323 commented Oct 17, 2024

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)

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

4 participants