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
v5.0.0.beta2 - libssl w/o openssl CLI raises exception on boot #2363
Comments
It's not required. With a lot of systems, 'openSSL command-line utility' is included. `openssl-dev' installs the files needed to compile Puma with OpenSSL, which aren't needed by the 'openSSL command-line utility'. If you didn't have 'openssl-dev' installed, the Puma gem shouldn't have installed, unless you added the equivalent of ENV["DISABLE_SSL"] to your environment. Can you clarify that please? Regardless, we are working on allowing Puma to be compiled without SSL support. The work is mostly done for MRI, working more on JRuby this weekend. Prefer to commit the feature with all supported platforms... Thanks for testing/using 5.0.0.beta2. |
I have not set any environment variables. Only packages that have been added to Our docker image built just fine and I didn't notice the issue until our k8 pods were in a crash loop.
|
We could just change the TLS 1.3 check into a class method to avoid this issue. |
What I'm doing for #2305 fixes this, but one question arises. With #2305, and setting Should Puma build w/o SSL support, or should the build stop and tell the user that openssl-dev needs to be installed or they need to set |
Re the above comment, never mind. Puma will compile if 'openssl dev' is not installed. #2305 will remove the error, as it no longer loads minissl.rb if Puma is compiled without ssl support, either by using |
Fixed by #2305 - can you confirm @pbstriker38? |
@nateberkopec
|
Cheers! thanks for the test and the report |
I've seen the chdir thing before but I think it's Rubygems, not us. |
Describe the bug
When using an Alpine image the following error happens when starting the server:
This was introduced in OpenSSL check that was added to v5.0.0.beta2
v5.0.0.beta1...v5.0.0.beta2#diff-d8a3dc2e04ffb9e96d5ec39008498878R17
The
ruby:2.7.1-alpine
image has libssl v1.1.1g-r0, it does not have the OpenSSL command-line program though.To Reproduce
$ docker run --rm -dit --name ruby2.7 ruby:2.7.1-alpine $ docker exec -it ruby2.7 sh
To fix the issue, install
openssl-dev
before installing puma.apk add openssl-dev
Expected behavior
The openSSL command-line utility should not be required to run Puma.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: