Firstly, my setup is stock standard dockerfiles, with basic configuration. Has been running for 12 months within a Ubuntu WSL2 (windows 10 host machine)
For the past couple of months (and over several updates) I have been running into a problem with not being able to preview or download pdfs of invoices (using browser or windows app). The pdf preview seems to timeout.
The problem has been getting more frequent, so thought I would ask for help from the community.
The following is a snapshot of logs when I attempt to open an existing invoice:
log snapshot (taken from dockerfiles-server-1 nginx)
2023-03-01 14:36:50 2023/03/01 06:36:50 [error] 22#22: *1 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 172.19.0.1, server: _, request: "POST /api/v1/live_preview?entity=invoice&entity_id=7N1aMnAbWm HTTP/1.1", upstream: "fastcgi://172.19.0.3:9000", host: "invoice.localhost.test", referrer: "http://invoice.localhost.test/"
log snapshot (taken from dockerfiles-app-1 invoiceninja/invoiceninja:5 )
2023-03-01 14:36:50 172.19.0.4 - 01/Mar/2023:06:35:49 +0000 "POST /index.php" 500
2023-03-01 14:36:50 2023-03-01 06:36:50,777 INFO reaped unknown pid 71 (exit status 0)
2023-03-01 14:36:50 2023-03-01 06:36:50,777 INFO reaped unknown pid 72 (exit status 0)
2023-03-01 14:36:50 2023-03-01 06:36:50,777 INFO reaped unknown pid 114 (exit status 0)
2023-03-01 14:36:50 2023-03-01 06:36:50,777 INFO reaped unknown pid 93 (exit status 0)
2023-03-01 14:36:50 2023-03-01 06:36:50,777 INFO reaped unknown pid 86 (exit status 0)
2023-03-01 14:37:00 INFO No scheduled commands are ready to run.
I’ve search multiple forum posts and other sites, however, there doesn’t seem to be any express solution.
When opening an existing invoice within the WindowsApp, and navigate to ‘View PDF’ an error is thrown about and unable to view the pdf.
However, after performing the same steps, but within desktop Chromium browser, I am able to view preview of pdf within the invoice record, and I am able to View PDF from the PDF button.
I then go back to the WindowsApp and it is now working, however, only on the first instance.
If i navigate to another invoice record either in the app or desktop chromium browser, i am unable to see the preview or view pdf, however, no error is thrown in the App or web browser.