wkhtmltopdf_binary_gem
wkhtmltopdf_binary_gem copied to clipboard
Jobs not generating files and returning error Text file busy Errno::ETXTBSY
Hi, I'm using wkhtmltopdf in a low-volume app, with the jobs enqueued. From time to time, I encounter the error 'Text file busy', resulting in the PDF not being generated. However, this doesn't always happen. More information is provided below:
Stack:
RuntimeError: PDF could not be generated!
Command Error: /opt/render/project/.gems/ruby/3.0.0/gems/wkhtmltopdf-binary-0.12.6.6/bin/wkhtmltopdf:74:in `exec': Text file busy - /opt/render/project/.gems/ruby/3.0.0/gems/wkhtmltopdf-binary-0.12.6.6/bin/wkhtmltopdf_debian_10_amd64 (Errno::ETXTBSY)
from /opt/render/project/.gems/ruby/3.0.0/gems/wkhtmltopdf-binary-0.12.6.6/bin/wkhtmltopdf:74:in `<top (required)>'
from /opt/render/project/.gems/bin/wkhtmltopdf:27:in `load'
from /opt/render/project/.gems/bin/wkhtmltopdf:27:in `<main>'
System
- Using it through wickedpdf
- Production server running the
wkhtmltopdf_debian_10_amd64binary
Flow
I got the same problem when having jobs running at the same time. have you fixed it yet?
See also https://github.com/mileszs/wicked_pdf/issues/1029