Skip to content

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

@caffo

Description

@caffo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions