-
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
PDF Rendering Fail on Heroku-24 Stack #1125
Comments
As I read on the buildpack creator's website, this buildpack only supports Heroku stacks up to and including version 22. The error occurred precisely when I migrated the Heroku stack from version 22 to version 24 |
Steps to Resolve Heroku Buildpack Compatibility Issues
ConclusionBy following these steps, I successfully resolved the compatibility issue with the Heroku 24 stack. Ensuring that the buildpack is compatible with the stack version is crucial to avoid deployment errors. Advice for Others Facing Similar IssuesIf you encounter similar issues, always check the compatibility of your buildpacks with the Heroku stack version you're using. Updating to the latest supported version and ensuring all dependencies are aligned with your stack version can prevent such errors. When making changes, remember to commit them properly, even if it’s an empty commit, to trigger a redeployment and ensure your changes take effect. |
I upgraded my Ubuntu from 22 to 24 at local and PDF generation in broken state.
|
@Vicky099 |
Yes I did same. forgot to update here. Thanks for reply 🎉 |
Issue description
When attempting to generate a PDF using wicked_pdf with wkhtmltopdf on Heroku, the process fails with a 500 Internal Server Error. The logs indicate that the issue is related to the wkhtmltopdf executable failing to load a required shared library (libssl.so.1.1).
The specific error message from the logs is:
Expected or desired behavior
The PDF should be generated successfully without encountering shared library errors. The expected behavior is for wkhtmltopdf to be able to generate the PDF with the provided parameters and template.
System specifications
wicked_pdf gem version:
wicked_pdf (2.6.3)
wicked_pdf
Platform/distribution and version:
Heroku / Cedar-20
Current BuildPack: https://github.com/RohanDebroy/heroku-buildpack-wkhtmltopdf.git
Additional context
The issue appears to be related to missing dependencies in the wkhtmltopdf binary. The library libssl.so.1.1 is required but not present in the Heroku environment.
Is there a recommended way to ensure that libssl.so.1.1 is available, or is there an alternative version of wkhtmltopdf that does not have this dependency? Any guidance on resolving this would be appreciated.
The text was updated successfully, but these errors were encountered: