504 Gateway Timeout on custom print format


Whenever I click the PDF button to export a custom print format, I get the error 504 Gateway Timeout

I have a VPS 1 core 1 gb ram and there’s nothing else running, I think that’s enough for it to run and export PDF’s?

I’m on the latest v6 erpnext version.


To run ERPNext at least 2 GB RAM is needed.
You can setup swap memory if possible.

Sambhaji Kolate,
New Indictrans Technologies Pvt Ltd.


i have the same problem .
when i click on pdf button it take over 1:50 min then i got " 504 gateaway timeout".
i have 1,88GB RAM (swp) in my server.
is it because of that i got that error?