PDF generation not working after moving to new server

Hello all,

I am hosting my ERPnext installation on Digital Ocean. Recently I moved the whole image of my server (Droplet) to a new server in Digital Ocean. Everything worked fine after the move except for PDF generation of any doctype. I read somewhere that it may relate to headers, and photos in it being Private rather than Public, but this was not the thing in my case. I even made a new header to test with it but it’s didn’t help.

Can someone guide me to what may be a the problem?

By the way, I recently did a bench update which didn’t help either.


Try updating your wkhtmltopdf instance to the new version

It was fixed by changing the hostname in site_config.json to localhost.
“host_name”: “http://localhost/”