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 install node : Segfault - Alpine 3.13 (wsl2) #946

Closed
theblackhole opened this issue Feb 21, 2021 · 5 comments
Closed

volta install node : Segfault - Alpine 3.13 (wsl2) #946

theblackhole opened this issue Feb 21, 2021 · 5 comments

Comments

@theblackhole
Copy link

Hello,

I successfully installed volta (1.0.1) in my wsl2 Alpine Linux (3.13) but when I try to install node with volta install node, I got a Segmentation fault error. I don't know how to help you diagnose this issue since there are no details about this error in volta logs (.volta/log)

@charlespierce
Copy link
Contributor

Hi @theblackhole, thanks for reaching out! I believe the core of this issue is #473: We don't currently have a musl libc version of Volta that is compatible with Alpine Linux. I don't have much experience with musl compilation, though I know it's possible in Rust, so it may be possible to build Volta from source on that distribution.

@theblackhole
Copy link
Author

theblackhole commented Feb 23, 2021

Hello @charlespierce
Well then I think you would mention in the docs/website/readme that Alpine isn't supported atm :) (e.g. Getting Started)
Also I don't how well it could be integrated but have you considered making snap and/or flatpak builds ?

@charlespierce
Copy link
Contributor

It's probably reasonable to add some sort of disclaimer. I'm not sure if the website works all that well, since it's not really feasible to have an exhaustive list of distros that we do or don't work with (especially as they all constantly change).

That said, I think we can improve the install experience to make it more robust and detect when we're on an unsupported system, instead of installing and then segfaulting afterwards.

As for snap / flatpak, I'm unfamiliar, but we do have a number of open issues around different packagers. We may want to consolidate them into a single issue so it's easier to track. Ultimately, supporting different packaging systems comes down to whether or not we can reasonably maintain them as part of the release process (or if people are open to taking ownership of keeping them up-to-date).

@vanstinator
Copy link

FWIW I was able to trivially build volta in alpine. It'll install node just fine. But the shims can't seem to find it (even with the paths set up correctly). This being alpine there's a chance I had a missing dependency that wasn't logged even with backtraces and debug logging turned on. If I have time in the next few weeks I may try getting an alpine install running in WSL 2 as well so I can more easily debug what is going on.

@charlespierce
Copy link
Contributor

@vanstinator Glad to hear it was compiling easily, that makes it much more likely it will be straightforward to set up a pre-compiled version! I'm happy to help you debug if needed, just let me know either here or on Discord!

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