Hi.
When I go to heath check is says SnapPDF not enabled.
If I change .env from
PDF_GENERATOR=hosted_ninja to PDF_GENERATOR=snappdf
it will fail to generate pdfs.
What to do?
Thank you
Br,
Dali
Hi.
When I go to heath check is says SnapPDF not enabled.
If I change .env from
PDF_GENERATOR=hosted_ninja to PDF_GENERATOR=snappdf
it will fail to generate pdfs.
What to do?
Thank you
Br,
Dali
Hi,
Which PDF rendered do you see listed above in the health check dialog?
There was a bug in the previous release which caused the âSnapPDF not enabledâ message to be shown even if it was enabled.
With .env setting PDF_GENERATOR=hosted_ninja
With .env setting PDF_GENERATOR=snappdf
Are there any errors in storage/logs?
The one that works for me is PDF_GENERATOR=hosted_ninja
snappdf will have a green check but fails to render PDFs.
What are benefits of using a snappdf over hosted_ninja?
Br,
Dali
If you use hosted_ninja the PDF is generated on our servers, if you use snappdf itâs generated on your server
Makes sense, yes.
Indeed I will go for snappdf. Will check logs a bit later.
Thank you
Br,
Dali
Here is invoiceninja.log.
Error Output:
/var/www/invoiceninja/vendor/beganovich/snappdf/versions/1032348-Linux_x64/chrome-linux/chrome: error while loading s
hared libraries: libatk-1.0.so.0: cannot open shared object file: No such file or directory[2022-08-09 09:59:02] production.INFO: The command ââ/var/www/invoiceninja/vendor/beganovich/snappdf/versions/1032348
-Linux_x64/chrome-linux/chromeâ ââheadlessâ ââdisable-gpuâ ââdisable-translateâ ââdisable-extensionsâ ââdisable-
syncâ ââdisable-background-networkingâ ââdisable-software-rasterizerâ ââdisable-default-appsâ ââdisable-dev-shm-u
sageâ ââsafebrowsing-disable-auto-updateâ âârun-all-compositor-stages-before-drawâ ââno-first-runâ ââno-marginsâ
ââno-sandboxâ ââprint-to-pdf-no-headerâ ââhide-scrollbarsâ ââignore-certificate-errorsâ ââprint-to-pdf=/tmp/pdf_
k2bPLc.pdfâ â/tmp/html_El18Nc.htmlââ failed.Exit Code: 127(Command not found)
Working directory: /var/www/invoiceninja/public
Output:
Error Output:
/var/www/invoiceninja/vendor/beganovich/snappdf/versions/1032348-Linux_x64/chrome-linux/chrome: error while loading s
hared libraries: libatk-1.0.so.0: cannot open shared object file: No such file or directory[2022-08-09 10:00:01] production.INFO: Sending recurring invoices 2022-08-09 10:00:01
[2022-08-09 10:00:01] production.INFO: 2022-08-09 Sending Recurring Invoices. Count = 0
[2022-08-09 10:00:02] production.INFO: Sending invoice reminders 2022-08-09 10:00:02
[2022-08-09 11:00:01] production.INFO: Sending recurring invoices 2022-08-09 11:00:01
[2022-08-09 11:00:01] production.INFO: 2022-08-09 Sending Recurring Invoices. Count = 0
[2022-08-09 11:00:01] production.INFO: Sending invoice reminders 2022-08-09 11:00:01
Maybe this will help:
Yes, that did the trick.
sudo apt install libnss3-dev libatk1.0-0 libatk-bridge2.0-0 libcups2 libgbm1 libpangocairo-1.0-0 libgtk-3-0
Thank you so much!!!
Br,
Dali