-
Notifications
You must be signed in to change notification settings - Fork 647
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
wicked_pdf due to wkhtmltopdf not finding OpenSSL 1.1 despite installing over OpenSSL 3 #1114
Comments
We are hitting this too, using the |
You have to use the binary built against Debian
The package can be downloaded from Github (see wkhtmltopdf/packaging#155). Get the binary from the package and setup the project to use it with something like this: # config/initializers/wicked_pdf.rb
WickedPdf.config = {
exe_path: Rails.root.join("bin", "wkhtmltopdf-amd64").to_s, # or wherever you put it
enable_local_file_access: true
} |
Hit this issue as well. We we're able to install the
Edit: I don't think this workaround is ideal. |
Also changing our base to |
I think this can be closed btw |
@AndyObtiva Let me know if this solves your problem or not please. Feel free to reopen if it doesn't. Thank you. |
My OS is Alpine Linux ( Thank you. |
Issue description
After we upgraded our Rails 7 app to Ruby 3.1 and OpenSSL 3 in our build server, we are having an issue when using our Rails app to generate a PDF where
wicked_pdf
somehow fails due to expecting OpenSSL 1.1.We are installing
wkhtmltopdf
as a prerequisite from a Docker image (madnight/docker-alpine-wkhtmltopdf
).Expected or desired behavior
We expect
wicked_pdf
to work normally with our Docker image that has OpenSSL3 and Ruby 3.1 instead of OpenSSL 1.1 and Ruby 2.7System specifications
wicked_pdf gem version (output of
cat Gemfile.lock | grep wicked_pdf
):wkhtmltopdf version (output of
wkhtmltopdf --version
):Version
0.12.5
, which comes with the Docker imagemadnight/docker-alpine-wkhtmltopdf
whtmltopdf provider gem and version if one is used:
We don't use
wkhtmltopdf-binary
.platform/distribution and version (e.g. Windows 10 / Ubuntu 16.04 / Heroku cedar):
Alpine Linux:
ruby:3.1-alpine
--
We just tried relying on
wkhtmltopdf-binary
instead of thewkhtmltopdf
library in the Docker image to fix the issue and our web server kept crashing upon accessing PDF URLs that usewicked_pdf
.Is there a way to make
wicked_pdf
work with OpenSSL3 usingwkhtmltopdf
? If not, canwicked_pdf
work with an alternative low-level PDF library that is compatible with OpenSSL 3, like puppeteer perhaps?The text was updated successfully, but these errors were encountered: