Skip to content

The process weasyprint exceeded the timeout of 15 seconds. #5111

Closed
@jtee3d

Description

@jtee3d

Attempted Debugging

  • I have read the debugging page

Searched GitHub Issues

  • I have searched GitHub for the issue.

Describe the Scenario

I am having trouble with Bookstack generating PDFs of large books. When using the built-in PDF generator, I am greeted with a 504 Time-out error:
image

But when I use weasyprint, with debug turned on, I'm presented with the following error:
image

I am running Bookstack using the LinuxServer.io Docker image. To get weasyprint installed, in my docker-compose.yml, I have added the following:

    command: >
      sh -c "
      apk add --no-cache weasyprint && tail -F anything
      "

Then in /www/.env, I'm using the following for EXPORT_PDF_COMMAND:
EXPORT_PDF_COMMAND="weasyprint {input_html_path} {output_pdf_path}"

Exact BookStack Version

v24.05.2

Log Content

No response

Hosting Environment

OVH VPS running Ubuntu 22.04.4 LTS
Bookstack runs using the latest LinuxServer.io Docker image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions