PDF generation is not working after IN upgrade to v5.11.26 from v5.8.35 and PHP to 8.2

Version v5.11.26

Environment Self hosted on Debian 11/Bullseye VM on Proxmox as the hypervisor

Checklist

  • Can you replicate the issue on our v5 demo site https://demo.invoiceninja.com or Invoice Ninja? N/A as this is an update/upgrade issue
  • Have you searched existing issues? yes, did not find a match
  • Have you inspected the logs in storage/logs/laravel.log for any errors? yes see below

Describe the bug

Upgraded from upgraded from v5.8.35-C156 to 5.11.26

Now I cannot generate or preview PDF’s
See below the error’s that show up in the log
According to the health check all is well see screen shot

Steps To Reproduce

Run Upgrade from 5.8 using old web interface (not REST) then upgrade php from 7.x to 8.2 update Debian packages reboot machine …

Expected Behavior

I expected to see my pdf’s like before I upgraded

Additional context

there was a rights issue which I thought could be causing this issue and I fixed it nothing changed (see logs)

Screenshots

Logs

[2025-01-18 08:53:58] production.ERROR: Unable to generate the raw PDF {“userId”:1,“exception”:"[object] (App\Exceptions\FilePermissionsFailure(code: 0): Unable to generate the raw PDF at /var/www/invoiceninja/app/Jobs/Entity/CreateRawPdf.php:115)
[stacktrace]

[2025-01-18 08:54:09] production.ERROR: There was an issue generating the PDF locally {“userId”:1,“exception”:"[object] (Exception(code: 0): There was an issue generating the PDF locally at /var/www/invoiceninja/app/Services/Pdf/PdfService.php:110)
[stacktrace]

[2025-01-18 08:55:57] production.ERROR: Unable to generate the raw PDF {“userId”:21,“exception”:"[object] (App\Exceptions\FilePermissionsFailure(code: 0): Unable to generate the raw PDF at /var/www/invoiceninja/app/Jobs/Entity/CreateRawPdf.php:115)
[stacktrace]

[2025-01-19 02:48:58] production.ERROR: SQLSTATE[HY000] [2002] No such file or directory {“exception”:"[object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No such file or directory at /var/www/invoiceninja/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:66)
[stacktrace]

[2025-01-19 02:59:53] production.ERROR: There was an issue generating the PDF locally {“userId”:1,“exception”:"[object] (Exception(code: 0): There was an issue generating the PDF locally at /var/www/invoiceninja/app/Services/Pdf/PdfService.php:110)
[stacktrace]

Hi,

This may help:

Thank You that worked

1 Like

Glad to hear it, thanks for letting us know!

chmod is not necessary anymore wit 5.11.34.

Update:
As usual a quick fix is a bad Idea…

Should be fixed, when exclude vendor folder second attempt by benbrummer · Pull Request #10642 · invoiceninja/invoiceninja · GitHub is merged.

1 Like