[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
2 tasks done
jtee3d opened this issue Jul 10, 2024 · 2 comments
Closed
2 tasks done

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

jtee3d opened this issue Jul 10, 2024 · 2 comments

Comments

@jtee3d
Copy link
jtee3d commented Jul 10, 2024

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

@ssddanbrown
Copy link
Member

Yeah, we set a hard-coded default 15 second timeout for PDF exports commands:

$process->setTimeout(15);

I guess we could add an option for the timeout, if you'd like to create a feature request for that.

@ssddanbrown
Copy link
Member

Since #5119 has now been opened I'll go ahead and close this off.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants