Generate .PDF Error 502/504 Gateway Time-out

Invoiceplane v 1.5.11
PhP versions (tried) 7.1 / 7.2 / 7.3 and 7.4

Problem:
After updating invoice plane i get the following error if i want to download a invoice/quote. Same error exists with a fresh new install and new database.

Webconsole error:

The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol.

Error log:

<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>

DEBUG - 2020-08-30 12:16:50 --> UTF-8 Support Enabled
DEBUG - 2020-08-30 12:16:50 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2020-08-30 12:16:50 --> Invoices MX_Controller Initialized
DEBUG - 2020-08-30 12:16:50 --> Config file loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/config/invoice_plane.php
DEBUG - 2020-08-30 12:16:50 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2020-08-30 12:16:50 --> File loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/modules/settings/models/Mdl_settings.php
DEBUG - 2020-08-30 12:16:50 --> File loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/modules/settings/models/Mdl_versions.php
DEBUG - 2020-08-30 12:16:50 --> File loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/controllers/../modules/layout/controllers/Layout.php
DEBUG - 2020-08-30 12:16:50 --> Layout MX_Controller Initialized
DEBUG - 2020-08-30 12:16:50 --> File loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/modules/invoices/models/Mdl_invoices.php
DEBUG - 2020-08-30 12:16:50 --> File loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/modules/invoices/models/Mdl_items.php
DEBUG - 2020-08-30 12:16:50 --> File loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/modules/invoices/models/Mdl_invoice_tax_rates.php
DEBUG - 2020-08-30 12:16:50 --> File loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/modules/custom_fields/models/Mdl_custom_fields.php
DEBUG - 2020-08-30 12:16:50 --> File loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/modules/payment_methods/models/Mdl_payment_methods.php
DEBUG - 2020-08-30 12:16:50 --> File loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/modules/payments/models/Mdl_payments.php
DEBUG - 2020-08-30 12:16:50 --> File loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/modules/custom_fields/models/Mdl_invoice_custom.php
DEBUG - 2020-08-30 12:16:50 --> File loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/modules/custom_values/models/Mdl_custom_values.php
DEBUG - 2020-08-30 12:16:50 --> File loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/modules/custom_fields/models/Mdl_client_custom.php
DEBUG - 2020-08-30 12:16:50 --> File loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/modules/custom_fields/models/Mdl_user_custom.php
DEBUG - 2020-08-30 12:16:50 --> File loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/views/invoice_templates/pdf/InvoicePlane.php
DEBUG - 2020-08-30 12:17:20 --> UTF-8 Support Enabled
DEBUG - 2020-08-30 12:17:20 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2020-08-30 12:17:20 --> Sessions MX_Controller Initialized
DEBUG - 2020-08-30 12:17:20 --> Config file loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/config/invoice_plane.php
DEBUG - 2020-08-30 12:17:20 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2020-08-30 12:17:20 --> File loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/modules/settings/models/Mdl_settings.php
DEBUG - 2020-08-30 12:17:20 --> File loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/modules/settings/models/Mdl_versions.php
DEBUG - 2020-08-30 12:17:20 --> File loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/controllers/../modules/layout/controllers/Layout.php
DEBUG - 2020-08-30 12:17:20 --> Layout MX_Controller Initialized
DEBUG - 2020-08-30 12:17:20 --> File loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/modules/layout/views/alerts.php
DEBUG - 2020-08-30 12:17:20 --> File loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/modules/sessions/views/session_login.php
DEBUG - 2020-08-30 12:17:20 --> Total execution time: 0.0248
DEBUG - 2020-08-30 12:18:11 --> UTF-8 Support Enabled
DEBUG - 2020-08-30 12:18:11 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2020-08-30 12:18:11 --> Sessions MX_Controller Initialized
DEBUG - 2020-08-30 12:18:11 --> Config file loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/config/invoice_plane.php
DEBUG - 2020-08-30 12:18:11 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2020-08-30 12:18:11 --> File loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/modules/settings/models/Mdl_settings.php
DEBUG - 2020-08-30 12:18:11 --> File loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/modules/settings/models/Mdl_versions.php
DEBUG - 2020-08-30 12:18:11 --> File loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/controllers/../modules/layout/controllers/Layout.php
DEBUG - 2020-08-30 12:18:11 --> Layout MX_Controller Initialized
DEBUG - 2020-08-30 12:18:12 --> File loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/modules/sessions/models/Mdl_sessions.php
DEBUG - 2020-08-30 12:18:12 --> UTF-8 Support Enabled
DEBUG - 2020-08-30 12:18:12 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2020-08-30 12:18:12 --> Dashboard MX_Controller Initialized
DEBUG - 2020-08-30 12:18:12 --> Config file loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/config/invoice_plane.php
DEBUG - 2020-08-30 12:18:12 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2020-08-30 12:18:12 --> File loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/modules/settings/models/Mdl_settings.php
DEBUG - 2020-08-30 12:18:12 --> File loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/modules/settings/models/Mdl_versions.php
DEBUG - 2020-08-30 12:18:12 --> File loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/controllers/../modules/layout/controllers/Layout.php
DEBUG - 2020-08-30 12:18:12 --> Layout MX_Controller Initialized
DEBUG - 2020-08-30 12:18:12 --> File loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/modules/invoices/models/Mdl_invoice_amounts.php
DEBUG - 2020-08-30 12:18:12 --> File loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/modules/quotes/models/Mdl_quote_amounts.php
DEBUG - 2020-08-30 12:18:12 --> File loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/modules/invoices/models/Mdl_invoices.php
DEBUG - 2020-08-30 12:18:12 --> File loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/modules/quotes/models/Mdl_quotes.php
DEBUG - 2020-08-30 12:18:12 --> File loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/modules/projects/models/Mdl_projects.php
DEBUG - 2020-08-30 12:18:12 --> File loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/modules/tasks/models/Mdl_tasks.php
DEBUG - 2020-08-30 12:18:12 --> File loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/modules/layout/views/alerts.php
DEBUG - 2020-08-30 12:18:12 --> File loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/modules/dashboard/views/index.php
DEBUG - 2020-08-30 12:18:12 --> File loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/modules/layout/views/includes/head.php
DEBUG - 2020-08-30 12:18:12 --> File loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/modules/layout/views/includes/navbar.php
DEBUG - 2020-08-30 12:18:12 --> File loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/modules/layout/views/includes/fullpage-loader.php
DEBUG - 2020-08-30 12:18:12 --> File loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/modules/layout/views/layout.php
DEBUG - 2020-08-30 12:18:12 --> Total execution time: 0.0394
DEBUG - 2020-08-30 12:18:16 --> UTF-8 Support Enabled
DEBUG - 2020-08-30 12:18:16 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2020-08-30 12:18:16 --> Invoices MX_Controller Initialized
DEBUG - 2020-08-30 12:18:16 --> Config file loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/config/invoice_plane.php
DEBUG - 2020-08-30 12:18:16 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2020-08-30 12:18:16 --> File loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/modules/settings/models/Mdl_settings.php
DEBUG - 2020-08-30 12:18:16 --> File loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/modules/settings/models/Mdl_versions.php
DEBUG - 2020-08-30 12:18:16 --> File loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/controllers/../modules/layout/controllers/Layout.php
DEBUG - 2020-08-30 12:18:16 --> Layout MX_Controller Initialized
DEBUG - 2020-08-30 12:18:16 --> File loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/modules/invoices/models/Mdl_invoices.php
DEBUG - 2020-08-30 12:18:16 --> File loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/modules/invoices/models/Mdl_items.php
DEBUG - 2020-08-30 12:18:16 --> File loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/modules/invoices/models/Mdl_invoice_tax_rates.php
DEBUG - 2020-08-30 12:18:16 --> File loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/modules/custom_fields/models/Mdl_custom_fields.php
DEBUG - 2020-08-30 12:18:16 --> File loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/modules/payment_methods/models/Mdl_payment_methods.php
DEBUG - 2020-08-30 12:18:16 --> File loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/modules/payments/models/Mdl_payments.php
DEBUG - 2020-08-30 12:18:16 --> File loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/modules/custom_fields/models/Mdl_invoice_custom.php
DEBUG - 2020-08-30 12:18:16 --> File loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/modules/custom_values/models/Mdl_custom_values.php
DEBUG - 2020-08-30 12:18:16 --> File loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/modules/custom_fields/models/Mdl_client_custom.php
DEBUG - 2020-08-30 12:18:16 --> File loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/modules/custom_fields/models/Mdl_user_custom.php
DEBUG - 2020-08-30 12:18:16 --> File loaded: /home/u9236p8546/domains/naturallyorganix.com/public_html/invoices/application/views/invoice_templates/pdf/InvoicePlane.php

Any help is greatly appreciated!

Hi,

I wonder if you got a solution for that as I am facing the same error:

Obviously connection to database is working fine. I can create and alter invoices but as soon as I want to generate PDF it takes some time and then comes back with 504 error.

Error log is not really helping:

DEBUG - 2020-11-30 14:27:10 --> UTF-8 Support Enabled
DEBUG - 2020-11-30 14:27:10 --> No URI present. Default controller set.
DEBUG - 2020-11-30 14:27:10 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2020-11-30 14:27:10 --> Dashboard MX_Controller Initialized
DEBUG - 2020-11-30 14:27:10 --> Config file loaded: /volume1/web/invoice_1511/application/config/invoice_plane.php
DEBUG - 2020-11-30 14:27:10 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2020-11-30 14:27:10 --> File loaded: /volume1/web/invoice_1511/application/modules/settings/models/Mdl_settings.php
DEBUG - 2020-11-30 14:27:10 --> File loaded: /volume1/web/invoice_1511/application/modules/settings/models/Mdl_versions.php
DEBUG - 2020-11-30 14:27:10 --> File loaded: /volume1/web/invoice_1511/application/controllers/../modules/layout/controllers/Layout.php
DEBUG - 2020-11-30 14:27:10 --> Layout MX_Controller Initialized
DEBUG - 2020-11-30 14:27:10 --> UTF-8 Support Enabled
DEBUG - 2020-11-30 14:27:10 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2020-11-30 14:27:10 --> Sessions MX_Controller Initialized
DEBUG - 2020-11-30 14:27:10 --> Config file loaded: /volume1/web/invoice_1511/application/config/invoice_plane.php
DEBUG - 2020-11-30 14:27:10 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2020-11-30 14:27:10 --> File loaded: /volume1/web/invoice_1511/application/modules/settings/models/Mdl_settings.php
DEBUG - 2020-11-30 14:27:10 --> File loaded: /volume1/web/invoice_1511/application/modules/settings/models/Mdl_versions.php
DEBUG - 2020-11-30 14:27:10 --> File loaded: /volume1/web/invoice_1511/application/controllers/../modules/layout/controllers/Layout.php
DEBUG - 2020-11-30 14:27:10 --> Layout MX_Controller Initialized
DEBUG - 2020-11-30 14:27:10 --> File loaded: /volume1/web/invoice_1511/application/modules/layout/views/alerts.php
DEBUG - 2020-11-30 14:27:10 --> File loaded: /volume1/web/invoice_1511/application/modules/sessions/views/session_login.php
DEBUG - 2020-11-30 14:27:10 --> Total execution time: 0.0235
DEBUG - 2020-11-30 14:27:22 --> UTF-8 Support Enabled
DEBUG - 2020-11-30 14:27:22 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2020-11-30 14:27:22 --> Sessions MX_Controller Initialized
DEBUG - 2020-11-30 14:27:22 --> Config file loaded: /volume1/web/invoice_1511/application/config/invoice_plane.php
DEBUG - 2020-11-30 14:27:22 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2020-11-30 14:27:22 --> File loaded: /volume1/web/invoice_1511/application/modules/settings/models/Mdl_settings.php
DEBUG - 2020-11-30 14:27:22 --> File loaded: /volume1/web/invoice_1511/application/modules/settings/models/Mdl_versions.php
DEBUG - 2020-11-30 14:27:22 --> File loaded: /volume1/web/invoice_1511/application/controllers/../modules/layout/controllers/Layout.php
DEBUG - 2020-11-30 14:27:22 --> Layout MX_Controller Initialized
DEBUG - 2020-11-30 14:27:22 --> File loaded: /volume1/web/invoice_1511/application/modules/sessions/models/Mdl_sessions.php
DEBUG - 2020-11-30 14:27:22 --> UTF-8 Support Enabled
DEBUG - 2020-11-30 14:27:22 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2020-11-30 14:27:22 --> Dashboard MX_Controller Initialized
DEBUG - 2020-11-30 14:27:22 --> Config file loaded: /volume1/web/invoice_1511/application/config/invoice_plane.php
DEBUG - 2020-11-30 14:27:22 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2020-11-30 14:27:22 --> File loaded: /volume1/web/invoice_1511/application/modules/settings/models/Mdl_settings.php
DEBUG - 2020-11-30 14:27:22 --> File loaded: /volume1/web/invoice_1511/application/modules/settings/models/Mdl_versions.php
DEBUG - 2020-11-30 14:27:22 --> File loaded: /volume1/web/invoice_1511/application/controllers/../modules/layout/controllers/Layout.php
DEBUG - 2020-11-30 14:27:22 --> Layout MX_Controller Initialized
DEBUG - 2020-11-30 14:27:22 --> File loaded: /volume1/web/invoice_1511/application/modules/invoices/models/Mdl_invoice_amounts.php
DEBUG - 2020-11-30 14:27:22 --> File loaded: /volume1/web/invoice_1511/application/modules/quotes/models/Mdl_quote_amounts.php
DEBUG - 2020-11-30 14:27:22 --> File loaded: /volume1/web/invoice_1511/application/modules/invoices/models/Mdl_invoices.php
DEBUG - 2020-11-30 14:27:22 --> File loaded: /volume1/web/invoice_1511/application/modules/quotes/models/Mdl_quotes.php
DEBUG - 2020-11-30 14:27:22 --> File loaded: /volume1/web/invoice_1511/application/modules/projects/models/Mdl_projects.php
DEBUG - 2020-11-30 14:27:22 --> File loaded: /volume1/web/invoice_1511/application/modules/tasks/models/Mdl_tasks.php
DEBUG - 2020-11-30 14:27:22 --> File loaded: /volume1/web/invoice_1511/application/modules/layout/views/alerts.php
DEBUG - 2020-11-30 14:27:22 --> File loaded: /volume1/web/invoice_1511/application/modules/dashboard/views/index.php
DEBUG - 2020-11-30 14:27:22 --> File loaded: /volume1/web/invoice_1511/application/modules/layout/views/includes/head.php
DEBUG - 2020-11-30 14:27:22 --> File loaded: /volume1/web/invoice_1511/application/modules/layout/views/includes/navbar.php
DEBUG - 2020-11-30 14:27:22 --> File loaded: /volume1/web/invoice_1511/application/modules/layout/views/includes/fullpage-loader.php
DEBUG - 2020-11-30 14:27:22 --> File loaded: /volume1/web/invoice_1511/application/modules/layout/views/layout.php
DEBUG - 2020-11-30 14:27:22 --> Total execution time: 0.0743
DEBUG - 2020-11-30 14:27:26 --> UTF-8 Support Enabled
DEBUG - 2020-11-30 14:27:26 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2020-11-30 14:27:26 --> Invoices MX_Controller Initialized
DEBUG - 2020-11-30 14:27:26 --> Config file loaded: /volume1/web/invoice_1511/application/config/invoice_plane.php
DEBUG - 2020-11-30 14:27:26 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2020-11-30 14:27:26 --> File loaded: /volume1/web/invoice_1511/application/modules/settings/models/Mdl_settings.php
DEBUG - 2020-11-30 14:27:26 --> File loaded: /volume1/web/invoice_1511/application/modules/settings/models/Mdl_versions.php
DEBUG - 2020-11-30 14:27:26 --> File loaded: /volume1/web/invoice_1511/application/controllers/../modules/layout/controllers/Layout.php
DEBUG - 2020-11-30 14:27:26 --> Layout MX_Controller Initialized
DEBUG - 2020-11-30 14:27:26 --> File loaded: /volume1/web/invoice_1511/application/modules/invoices/models/Mdl_invoices.php
DEBUG - 2020-11-30 14:27:26 --> File loaded: /volume1/web/invoice_1511/application/modules/invoices/models/Mdl_items.php
DEBUG - 2020-11-30 14:27:26 --> File loaded: /volume1/web/invoice_1511/application/modules/invoices/models/Mdl_invoice_tax_rates.php
DEBUG - 2020-11-30 14:27:26 --> File loaded: /volume1/web/invoice_1511/application/modules/custom_fields/models/Mdl_custom_fields.php
DEBUG - 2020-11-30 14:27:26 --> File loaded: /volume1/web/invoice_1511/application/modules/payment_methods/models/Mdl_payment_methods.php
DEBUG - 2020-11-30 14:27:26 --> File loaded: /volume1/web/invoice_1511/application/modules/payments/models/Mdl_payments.php
DEBUG - 2020-11-30 14:27:26 --> File loaded: /volume1/web/invoice_1511/application/modules/custom_fields/models/Mdl_invoice_custom.php
DEBUG - 2020-11-30 14:27:26 --> File loaded: /volume1/web/invoice_1511/application/modules/custom_values/models/Mdl_custom_values.php
DEBUG - 2020-11-30 14:27:26 --> File loaded: /volume1/web/invoice_1511/application/modules/custom_fields/models/Mdl_client_custom.php
DEBUG - 2020-11-30 14:27:26 --> File loaded: /volume1/web/invoice_1511/application/modules/custom_fields/models/Mdl_user_custom.php
DEBUG - 2020-11-30 14:27:26 --> File loaded: /volume1/web/invoice_1511/application/views/invoice_templates/pdf/InvoicePlaneCD.php

Browser console is throwing generic 404
Failed to load resource: the server responded with a status of 404 (Not Found)

I have installed InvoicePlane on an Apache 2.4 and with PHP 7.2 with all required packages enabled (mbcrypt may be not available but openssl). Browser is Safari 14.0.1.

What hasn’t helped so far

  • Use standard invoice template
  • Downgrade PHP 7.2 -> 7.0
  • Restart of Apache
  • Clean install of 1.5.11

Same holds true for me: Any help is appreciated! Thanks

Since when is this happending?
What was the latest change?

Could you provide a complete serverlog from PHP & Apache?

Hi Martin

thanks for replying!

Edit:
Its happening since 2 months and I didnt change anything. Last time it didnt work I restarted the webserver and it worked again.

I tried to retrieve requested logs from the /var/log folder but somehow don’t have read permissions. I need to figure out how to get them. The apache is running on a Synology so maybe there is a special way to do that. I will respond as soon as I have them.

All this sound like its a Server-Problem and not a problem related to InvoicePlane.
But without logs I can not even debug it or help you.

PHP 7.2 log

2020-11-30T02:00:37+01:00 RUP8 php72-fpm[30380]: [NOTICE] Terminating ...
2020-11-30T02:00:37+01:00 RUP8 php72-fpm[30380]: [NOTICE] exiting, bye-bye!
2020-11-30T02:00:53+01:00 RUP8 php72-fpm[4274]: [NOTICE] fpm is running, pid 4274
2020-11-30T02:00:53+01:00 RUP8 php72-fpm[4274]: [NOTICE] ready to handle connections
2020-11-30T11:34:30+01:00 RUP8 php72-fpm[4274]: [NOTICE] Terminating ...
2020-11-30T11:34:30+01:00 RUP8 php72-fpm[4274]: [NOTICE] exiting, bye-bye!
2020-11-30T11:36:46+01:00 RUP8 php72-fpm[12648]: [NOTICE] fpm is running, pid 12648
2020-11-30T11:36:46+01:00 RUP8 php72-fpm[12648]: [NOTICE] ready to handle connections

Apache 2.4 log entry

2020-11-30T14:26:49+01:00 RUP8 [Mon Nov 30 14:26:49.079429 2020] [mpm_worker:notice] [pid 19340:tid 548529766400] AH00292: Apache/2.4.43 (Unix) configured -- resuming normal operations
2020-11-30T14:26:49+01:00 RUP8 [Mon Nov 30 14:26:49.079842 2020] [core:notice] [pid 19340:tid 548529766400] AH00094: Command line: '/var/packages/Apache2.4/target/usr/local/bin/httpd24'
2020-11-30T14:26:52+01:00 RUP8 [Mon Nov 30 14:26:52.459711 2020] [mpm_worker:notice] [pid 19340:tid 548529766400] AH00297: SIGUSR1 received.  Doing graceful restart
2020-11-30T14:26:52+01:00 RUP8 AH00558: httpd24: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
2020-11-30T14:26:52+01:00 RUP8 [Mon Nov 30 14:26:52.529456 2020] [mpm_worker:notice] [pid 19340:tid 548529766400] AH00292: Apache/2.4.43 (Unix) configured -- resuming normal operations
2020-11-30T14:26:52+01:00 RUP8 [Mon Nov 30 14:26:52.529516 2020] [core:notice] [pid 19340:tid 548529766400] AH00094: Command line: '/var/packages/Apache2.4/target/usr/local/bin/httpd24'
2020-11-30T14:28:26+01:00 RUP8 [Mon Nov 30 14:28:26.210734 2020] [proxy_fcgi:error] [pid 20204:tid 548287803808] (70007)The timeout specified has expired: [client 2a01:c22:d417:4100:71a4:ff39:a625:b1f5:33858] AH01075: Error dispatching request to : (polling), referer: https://rup8.fritz.box/invoice_1511/index.php/dashboard
2020-11-30T15:13:41+01:00 RUP8 [Mon Nov 30 15:13:41.593702 2020] [proxy_fcgi:error] [pid 20204:tid 548413632928] (70007)The timeout specified has expired: [client 2a01:c22:d417:4100:71a4:ff39:a625:b1f5:34060] AH01075: Error dispatching request to : (polling), referer: https://rup8.fritz.box/v1/index.php/dashboard
2020-11-30T15:14:02+01:00 RUP8 [Mon Nov 30 15:14:02.000679 2020] [proxy_fcgi:error] [pid 20204:tid 548405244320] (70007)The timeout specified has expired: [client 2a01:c22:d417:4100:71a4:ff39:a625:b1f5:34066] AH01075: Error dispatching request to : (polling), referer: https://rup8.fritz.box/v1/index.php/dashboard
2020-11-30T15:19:59+01:00 RUP8 [Mon Nov 30 15:19:59.040678 2020] [proxy_fcgi:error] [pid 20204:tid 548503241120] (70007)The timeout specified has expired: [client 2a01:c22:d417:4100:71a4:ff39:a625:b1f5:34172] AH01075: Error dispatching request to : (polling), referer: https://rup8.fritz.box/v1/index.php/invoices/view/21
2020-11-30T15:23:57+01:00 RUP8 [Mon Nov 30 15:23:57.630675 2020] [proxy_fcgi:error] [pid 20204:tid 548237472160] (70007)The timeout specified has expired: [client 2a01:c22:d417:4100:71a4:ff39:a625:b1f5:34244] AH01075: Error dispatching request to : (polling), referer: https://rup8.fritz.box/v1/index.php/dashboard
2020-11-30T15:27:41+01:00 RUP8 [Mon Nov 30 15:27:41.280674 2020] [proxy_fcgi:error] [pid 20204:tid 548296192416] (70007)The timeout specified has expired: [client 2a01:c22:d417:4100:71a4:ff39:a625:b1f5:34320] AH01075: Error dispatching request to : (polling), referer: https://rup8.fritz.box/v1/index.php/dashboard

Seems like you run your InvoicePlane installation in your local network and map a fritzbox domain to it.
I have never done this with InvoicePland and therefor can not really help you.

I guess it does have something to do with some firewall blocking the requests. But as I said: dunno exactly, never hosted it in a local network with a Fritz!Box infront of it.

Fritz!Box is just the DHCP and switch for the local network. Ports 80, 443 are open. I don’t think this is much of an issue.

Funny thing is now the PDF feature is working again. Haven’t changed anything to the config.

If you have not changed anything on InvoicePlane, the cause of the problem can not be anything related to invoicePlane. Like I said, its more likely to be a firewall/network thing.

What else you could try, as the log shows a proxy_fcgi:error increase your FCGI value of limit to run to about 300s. Its possible that your value is to low and your server can not generate the PDF in this time.

Yep probably. I will keep an eye on the logs and try to find out the root cause.

This info may be added to deployment notes for Synology/local network users.

Thanks for looking into it, Martin.