PDF Generate Worker time out error

Hello Frappe/ERPNext community,

I am currently facing an issue with PDF generation in ERPNext. Whenever I try to download a PDF (for example, from the User doctype or any other report), I encounter a worker timeout error. I am using Ubuntu 24.04.01 V and have the following versions of Frappe and ERPNext installed:

  • Frappe Version: 15.49.1
  • ERPNext Version: 15.45.4

The full error traceback is as follows:
Error handling request /api/method/frappe.utils.print_format.download_pdf?doctype=User&name=Guest&format=Standard&no_letterhead=1&letterhead=No%20Letterhead&settings=%7B%7D&_lang=en
Traceback (most recent call last):