I have a v4 hosted on Shared Hosting Provider (Working with no issue).
I created a v5 hosted on same Shared Hosting Provider then do the migration using the migration tool.
My issue with v5 was that every time I view the Invoice PDF it says error 500
I already tried the following installation method but same error result
Manual File zip extraction
Git
Git + Manual zip extraction
Here are some of the error logs from storage/logs/laravel.log
production.ERROR: The file “/home/customer/www/domain.com/public_html/public/storage/kLFW3io4djEDhQ73RA0PILtcTIFNoztf/UMOUTS5lc7j17b9YFzKYDaTFTmieHzfIw8FKBfNm/invoices/1167.pdf” does not exist {“exception”:"[object] (Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException(code: 0): The file "/home/customer/www/domain.com/public_html/public/storage/kLFW3io4djEDhQ73RA0PILtcTIFNoztf/UMOUTS5lc7j17b9YFzKYDaTFTmieHzfIw8FKBfNm/invoices/1167.pdf" does not exist at /home/customer/www/domain.com/public_html/vendor/symfony/http-foundation/File/File.php:36)
[stacktrace]
Follow up question.
Invoice PDF is now working with PhantomJS but when we click on Delivery Note it give us error 500.
What the possible cause of this?
Error Output:
/home/customer/www/domain.com/public_html/vendor/beganovich/snappdf/versions/859006-Linux_x64/chrome-linux/chrome: error while loading shared libraries: libgbm.so.1: cannot open shared object file: No such file or directory
{“userId”:1,“exception”:"[object] (Symfony\Component\Process\Exception\ProcessFailedException(code: 0): The command "‘/home/customer/www/domain.com/public_html/vendor/beganovich/snappdf/versions/859006-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_LD7fq4.pdf’ ‘/tmp/html_0gGSG3.html’" failed.
Working directory: /home/customer/www/domain.com/public_html/public
Output:
Error Output:
/home/customer/www/domain.com/public_html/vendor/beganovich/snappdf/versions/859006-Linux_x64/chrome-linux/chrome: error while loading shared libraries: libgbm.so.1: cannot open shared object file: No such file or directory
{“userId”:1,“exception”:"[object] (Symfony\Component\Process\Exception\ProcessFailedException(code: 0): The command “’/home/customer/www/domain.com/public_html/vendor/beganovich/snappdf/versions/859006-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_cpsLSS.pdf’ ‘/tmp/html_jS5tXQ.html’” failed.
Exit Code: 127(Command not found)
Working directory: /home/customer/www/domain.com/public_html/public
Output:
Error Output:
/home/customer/www/domain.com/public_html/vendor/beganovich/snappdf/versions/859006-Linux_x64/chrome-linux/chrome: error while loading shared libraries: libgbm.so.1: cannot open shared object file: No such file or directory
at /home/customer/www/domain.com/public_html/vendor/beganovich/snappdf/src/Snappdf.php:157)
[stacktrace]
[2021-03-13 07:20:02] production.ERROR: A non-numeric value encountered {“exception”:"[object] (ErrorException(code: 0): A non-numeric value encountered at /home/customer/www/domain.com/public_html/vendor/turbo124/beacon/src/Jobs/System/MemMetric.php:36)
[stacktrace]
Had the same error and because we do not have public domain cannot use PhantomJS.
Permissions set to 0755 to /vendor/beganovich - started showing PDF files