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

volta-shim v2.0.x crashes on macOS 14.6.1 #1868

Open
cthompson-avb opened this issue Aug 21, 2024 · 2 comments
Open

volta-shim v2.0.x crashes on macOS 14.6.1 #1868

cthompson-avb opened this issue Aug 21, 2024 · 2 comments

Comments

@cthompson-avb
Copy link

I am running macOS 14.6.1 on an Apple M2 Max.

I downloaded the v2.0.0 and v2.0.1 macos releases from the Releases tab.

The executables volta and volta-migrate work. When I run volta-shim (either directly or through the symlink), I get the error:

zsh: killed ./volta-shim

or using fish as my shell, I get the error

fish: Job 1, './volta-shim' terminated by signal SIGKILL (Forced quit)

This error happens with both v2.0.0 and v2.0.1.

For reference, here at the sha256 hashes of the tested files:

1a3e3eb2dfe3ae04512f54a9d1934681e7a4bd72416bf9d13c5e6e8f12aa7712  volta-shim v2.0.0
5e65a74750bf191fd17b038602fc1d74a0207f65c833f081baad48af7e4b184b  volta-shim v2.0.1
@charlespierce
Copy link
Contributor

Hi @cthompson-avb, that's very strange! I have the same macOS version (even an M2 Max), and the same SHA256 hash for volta-shim v2.0.1 and I'm not seeing anything like that.

If you have a chance, can you share your PATH environment variable (feel free to redact anything sensitive, of course!)? Also, if you do export VOLTA_LOGLEVEL=debug and then run the shim, does it show any additional output?

@akhilstanis
Copy link

I was having the same issue as well. Tailing the OSX syslog told me there is something wrong with code signature for volta-shim

$ log stream | grep volta
2024-09-04 12:46:21.828817-0700 0x173301   Default     0x0                  0      0    kernel: proc 11651: load code signature error 2 for file "volta-shim"
2024-09-04 12:46:21.829087-0700 0x173302   Default     0x0                  0      0    kernel: (AppleSystemPolicy) ASP: Unable to apply provenance sandbox: 268451845, 11651, /Users/ram-g-rao/.volta/bin/volta-shim
2024-09-04 12:46:21.829170-0700 0x173302   Default     0x0                  0      0    kernel: volta-shim[11651] Corpse allowed 1 of 5
2024-09-04 12:46:21.857160-0700 0x1732fe   Default     0x0                  1056   0    ReportCrash: Formulating fatal 309 report for corpse[11651] volta-shim
2024-09-04 12:46:21.860287-0700 0x1732fe   Default     0x0                  1056   0    ReportCrash: no MetricKit for process volta-shim type 309 bundleId (null)

When running a binary for the first time, OSX will check the code signature of the binary and if the binary is not signed by an apple identified developer, OSX will prompt the user to explicitly give permission to run the binary. Somehow I missed to give the explicit permission when I ran the volta shim for the first time. All the subsequent runs would just kept getting killed by OSX without a prompt. To force OSX to prompt me again, I had to delete the existing volta-shim binary and replace it with a freshly downloaded copy. Running the volta-shim would prompt you with permission to run and on approval things started to work again. 🙌

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

3 participants