Error 500 on pdf Preview. PDF Test worked

Hii!

Just installed 5.0.
PDF Test worked. Can’t load any invoice pdfs though. Error 500 comes up after few seconds.

.env:
PDF_GENERATOR=phantom
PHANTOMJS_PDF_GENERATION=true
PHANTOMJS_KEY=‘my_own_key_censored
PHANTOMJS_SECRET=secret

Log:
[2021-09-30 16:32:16] production.ERROR: The command “’/var/www/vhosts/hostingcensored.netcup.net/httpdocs/lpa_invoice/vendor/beganovich/snappdf/versions/859306-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-usage’ ‘–safebrowsing-disable-auto-update’ ‘–run-all-compositor-stages-before-draw’ ‘–no-first-run’ ‘–no-margins’ ‘–no-sandbox’ ‘–print-to-pdf-no-header’ ‘–hide-scrollbars’ ‘–print-to-pdf=/tmp/pdf_C4qUNH.pdf’ ‘/tmp/html_1WW2OY.html’” failed.

Exit Code: 127(Command not found)

Working directory: /var/www/vhosts/hostingcensored.netcup.net/httpdocs/lpa_invoice/public

Output:

Error Output:

/var/www/vhosts/hostingcensored.netcup.net/httpdocs/lpa_invoice/vendor/beganovich/snappdf/versions/859306-Linux_x64/chrome-linux/chrome: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory
{“userId”:1,“exception”:"[object] (Symfony\Component\Process\Exception\ProcessFailedException(code: 0): The command “’/var/www/vhosts/hostingcensored.netcup.net/httpdocs/lpa_invoice/vendor/beganovich/snappdf/versions/859306-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-usage’ ‘–safebrowsing-disable-auto-update’ ‘–run-all-compositor-stages-before-draw’ ‘–no-first-run’ ‘–no-margins’ ‘–no-sandbox’ ‘–print-to-pdf-no-header’ ‘–hide-scrollbars’ ‘–print-to-pdf=/tmp/pdf_C4qUNH.pdf’ ‘/tmp/html_1WW2OY.html’” failed.

Exit Code: 127(Command not found)

Working directory: /var/www/vhosts/hostingcensored.netcup.net/httpdocs/lpa_invoice/public

Any ideas? :frowning:

I think this is the key part of the error, maybe this will help: