wkhtmltopdf_binary_gem icon indicating copy to clipboard operation
wkhtmltopdf_binary_gem copied to clipboard

Jobs not generating files and returning error Text file busy Errno::ETXTBSY

Open caffo opened this issue 2 years ago • 2 comments

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_amd64 binary

Flow

CleanShot 2023-07-13 at 13 09 30@2x

caffo avatar Jul 13 '23 16:07 caffo

I got the same problem when having jobs running at the same time. have you fixed it yet? Screenshot 2024-05-27 at 22 26 32

KimTrijnh avatar May 27 '24 15:05 KimTrijnh

See also https://github.com/mileszs/wicked_pdf/issues/1029

ghiculescu avatar Jul 01 '24 03:07 ghiculescu