5

I am using wicked pdf to generate pdf. Its working fine in local server but on production mode i got into below errors:

Failed to execute: ["/usr/local/bundle/bin/wkhtmltopdf", "-q", "file:////tmp/wicked_pdf20190902-26-811syo.html", "/tmp/wicked_pdf_generated_file20190902-26-1x3596l.pdf"] Error: PDF could not be generated! Command Error:

I am running my application on an Alpine container.

roshita
  • 175
  • 4
  • It says command error, can you log-in/ssh to the machine/container with the same user as the process which executes this command and checks if you're able to run the command there? – Surya Sep 02 '19 at 09:01
  • post full backtrace errors and code that invokes this in your question. – lacostenycoder Sep 02 '19 at 09:09
  • Have you installed `wkhtmltopdf` on this server? `wicked_pdf` requires `wkhtmltopdf` to be installed. – Unixmonkey Oct 29 '19 at 13:46

0 Answers0