ERPNext Print Designer Print Delay Issue 1-2 Minutes

I am using VirtualBox with Ubuntu Server 24.04.1 for running ERPNext.

The Print Designer uses WkHtmlToPDF with patched Qt, which I already have installed.

  • WkHtmlToPdf: wkhtmltopdf 0.12.6.1 (with patched Qt)

Do you have any idea what the issue might be?

Issue Video: ERPNext Print Designer Print Delay Issue.mp4 - Google Drive

I am assuming you are checking the log file for some possible leads.

If the log files doesn’t give any leads, then I would probably start debugging, to find exactly where it is stuck.

First you will have to isolate, if the issue is within the product or at the printer level.
Once you isolate that, you can dig deeper into the cause of the delay

I can tell you what the problem is. During the process of compiling the PDF, the template is referencing CSS files which wkhtmltopdf is attempting to pull from the web server. Due to your particular combination of host/proxy/server, the request just “times out” instead of receiving the referenced files, at which point it proceeds with PDF generation.