[V7] Error in PDF generation in Selling module after update


Have been facing a typical issue in PDF generation in all Selling module only. It gives error of 504 Gateway Time-out. While at same time PDF generation in all other modules like Buying, CRM etc works fine.

I had custom format for Quotation, Sales Order & Invoice before I upgraded to version 7, which I deleted and reverted to standard format in my quest to solve the issue. But it didn’t work. Later I found if I remove “encryption_key”: “SJ…”, from site config file the it solves the problem and PDF generation works fine in all modules including Selling.

But each update re-writes this config file with encryption key so I have to change it manually each time after update to solve the issue. Can anyone suggest some permanent solution?

@Mukesh_Variyani will you able to post you logs from following file, use pastebin.com and share raw source link in your post,

$ tail -60 /var/log/nginx/error.log
$ tail -60 /home/frappe/frappe-bench/logs/web.error.log
$ tail -60 /home/frappe/frappe-bench/logs/web.log 
$ tail -60 /home/frappe/frappe-bench/logs/worker.error.log
$ tail -60 /home/frappe/frappe-bench/logs/worker.log