Closed briri closed 3 months ago
@briri I see this issue is marked as "completed on Apr 3". I'm still facing this issue. Any updates on it?
@briri I see this issue is marked as "completed on Apr 3". I'm still facing this issue. Any updates on it?
@wimpog can you please share more details and screenshots of exactly what you were seeing?
@bofstein :
Platform: Ruby 3.2 running on 64bit Amazon Linux 2023/4.0.8
var/app/current/vendor/bundle/ruby/3.2.0/gems/wkhtmltopdf-binary-0.12.6.7/bin/wkhtmltopdf /var/app/current/vendor/bundle/ruby/3.2.0/gems/wkhtmltopdf-binary-0.12.6.7/bin/wkhtmltopdf_centos_6_amd64: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory
As described here: https://github.com/zakird/wkhtmltopdf_binary_gem/issues/161
When running it via Sidekiq:
RuntimeError: Failed to execute: ["/var/app/current/vendor/bundle/ruby/3.2.0/gems/wkhtmltopdf-binary-0.12.6.7/bin/wkhtmltopdf", "--page-size", "Letter", "file:////tmp/wicked_pdf20240701-482194-7a7csw.h...
Thank you!
@wimpog are you experiencing this on the production environment DMP Tool or in some other app or project? We closed this issue because we replaced wkhtmltopdf and are no longer using it due to this issue.
@bofstein do you have any recommendations as to what to use instead of wkhtmltopdf?
@wimpog here is the ticket for our replacement if any of the comments or notes are helpful to you, I don't have a specific recommendation
Hi @wimpog, as @bofstein notes above, issue 604 contains the details of the code changes we needed to make to switch to the Grover gem (node's Puppeteer with headless Chrome under the hood).
For some context on how to get puppeteer and chrome installed in your environment, you can reference this ticket in the amazon-linux-2023 repo
The new AWS Linux 2023 servers are throwing errors when you try to generate a PDF download. Seems to be a missing C package.
The wkhtmtopdf-binary gem repository has an outstanding issue for this that has been open since December 2023.
This is related to the fact that the wkhtmltopdf package does not have an AWS Linux 2023 build: https://wkhtmltopdf.org/downloads.html