rposborne/wkhtmltopdf-heroku

Issue with Gem in Heroku Production

lrjbrual opened this issue · 3 comments

Dear All.

We still encounter this issue in Heroku 22 stack.

Here's the error:

Jul 20 02:10:39 [production-euroqol](https://my.papertrailapp.com/systems/production-euroqol/events?focus=1618611343576780802&selected=1618611343576780802) [app/web.2](https://my.papertrailapp.com/events?q=program%3Aapp%2Fweb.2&focus=1618611343576780802&selected=1618611343576780802) [[3e24e958-1d43-4084-ab5b-38807601af0f](https://my.papertrailapp.com/systems/production-euroqol/events?q=%223e24e958-1d43-4084-ab5b-38807601af0f%22&focus=1618611343576780802&selected=1618611343576780802)] RuntimeError (Failed to execute:
Jul 20 02:10:39 [production-euroqol](https://my.papertrailapp.com/systems/production-euroqol/events?focus=1618611343576780803&selected=1618611343576780803) [app/web.2](https://my.papertrailapp.com/events?q=program%3Aapp%2Fweb.2&focus=1618611343576780803&selected=1618611343576780803) ["/app/vendor/bundle/ruby/3.1.0/gems/wkhtmltopdf-heroku-[2.12.6.1](https://my.papertrailapp.com/systems/production-euroqol/events?q=%222.12.6.1%22&focus=1618611343576780803&selected=1618611343576780803).pre.jammy/bin/wkhtmltopdf-linux-amd64", "--zoom", "1", "--orientation", "Portrait", "--dpi", "75", "--page-size", "A4", "--lowquality", "--footer-right", "[page] of [topage]", "file:////tmp/wicked_pdf20230720-2-ts60v5.html", "/tmp/wicked_pdf_generated_file20230720-2-rgrlpw.pdf"]
Jul 20 02:10:39 [production-euroqol](https://my.papertrailapp.com/systems/production-euroqol/events?focus=1618611343576780804&selected=1618611343576780804) [app/web.2](https://my.papertrailapp.com/events?q=program%3Aapp%2Fweb.2&focus=1618611343576780804&selected=1618611343576780804) Error: PDF could not be generated!
Jul 20 02:10:39 [production-euroqol](https://my.papertrailapp.com/systems/production-euroqol/events?focus=1618611343576780805&selected=1618611343576780805) [app/web.2](https://my.papertrailapp.com/events?q=program%3Aapp%2Fweb.2&focus=1618611343576780805&selected=1618611343576780805)  Command Error: /app/vendor/bundle/ruby/3.1.0/gems/wkhtmltopdf-heroku-[2.12.6.1](https://my.papertrailapp.com/systems/production-euroqol/events?q=%222.12.6.1%22&focus=1618611343576780805&selected=1618611343576780805).pre.jammy/bin/wkhtmltopdf-linux-amd64: error while loading shared libraries: libssl.so.3: cannot open shared object file: No such file or directory
Jul 20 02:10:39 [production-euroqol](https://my.papertrailapp.com/systems/production-euroqol/events?focus=1618611343576780806&selected=1618611343576780806) [app/web.2](https://my.papertrailapp.com/events?q=program%3Aapp%2Fweb.2&focus=1618611343576780806&selected=1618611343576780806) ):

Thank you in advance for the help.

Hi - are you using the 3.0.0.pre.rc0 version?

https://rubygems.org/gems/wkhtmltopdf-heroku/versions/3.0.0.pre.rc0

gem 'wkhtmltopdf-heroku', '3.0.0.pre.rc0'

had the same issue and using the gem with version '3.0.0.pre.rc0' worked for me.

no side effects so far

Hi all - 3.0.0 is out - please give it a go

it's the same as 3.0.0.pre.rc0 just a version tag change.