BookStack v24.02.3 .pdf export failure "Maximum execution time of 30 seconds exceeded" #4617

Closed
opened 2026-02-05 09:07:52 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @YID-C on GitHub (Apr 11, 2024).

Attempted Debugging

  • I have read the debugging page

Searched GitHub Issues

  • I have searched GitHub for the issue.

Describe the Scenario

Hi all.

Thank you for your time today. I'm having an issue with Bookstack where I am unable to export large books. My books contain many pages and these pages collectively contain hundreds of steps and images as I write in depth technical documentation. I initially received an "unknown error" but after enabling debugging, I can see the maximum execution time of 30 seconds is being exceeded.

I have found my way to issues #389 #1603 #1590 and #804

Per the comments in those tickets:

-I have changed the maximum execution time in my php.ini file from 30 to 3000.
-I have set my resource limit to -1 for unlimited resource use
-Checked and confirmed my server has 8gb of RAM available to it.
-Cleared my artisan cache
-Restarted my webserver through both a full system restart and by manually restarting appache via the command line using the command:

# /etc/init.d/apache2 restart

The issue still persists. However, I have noticed that despite having set the maximum execution time to 3000 seconds (fifty minutes) I notice BookStack will still give the error after just 30 seconds. Because of this I can only assume the php.ini file is either being ignored or overridden elsewhere. Is there any code in BookStack itself that could be causing this?

I have attached my debugging log file to this post and here are my version numbers. I installed BookStack into a completely fresh install of Ubuntu using the following commands found on the bookstack installation page. I experienced no issues during installation.

wget https://raw.githubusercontent.com/BookStackApp/devops/main/scripts/installation-ubuntu-22.04.sh

chmod a+x installation-ubuntu-22.04.sh

sudo ./installation-ubuntu-22.04.sh

Here are my versions:

Ubuntu 22.04.4 LTS
PHP Version: 8.1.2-1ubuntu2.14
BookStack Version: v24.02.3
Apache/2.4.52 (Ubuntu)

Here is a screenshot of the error:

Screenshot_4454

I greatly appreciate any assistance with this and thank you for taking the time. I see this as a blocker and don't believe I'm able to resolve this myself.

Exact BookStack Version

v24.02.3

Log Content

[2024-04-11 00:22:45] production.ERROR: Maximum execution time of 30 seconds exceeded {"userId":1,"exception":"[object] (Symfony\Component\ErrorHandler\Error\FatalError(code: 0): Maximum execution time of 30 seconds exceeded at /var/www/bookstack/vendor/dompdf/dompdf/lib/Cpdf.php:5748)
[stacktrace]
#0 {main}
"}
[2024-04-11 00:27:45] production.ERROR: Maximum execution time of 30 seconds exceeded {"userId":1,"exception":"[object] (Symfony\Component\ErrorHandler\Error\FatalError(code: 0): Maximum execution time of 30 seconds exceeded at /var/www/bookstack/vendor/dompdf/dompdf/lib/Cpdf.php:5765)
[stacktrace]
#0 {main}
"}
[2024-04-11 01:03:47] production.ERROR: Maximum execution time of 30 seconds exceeded {"userId":1,"exception":"[object] (Symfony\Component\ErrorHandler\Error\FatalError(code: 0): Maximum execution time of 30 seconds exceeded at /var/www/bookstack/vendor/dompdf/dompdf/lib/Cpdf.php:5757)
[stacktrace]
#0 {main}
"}
[2024-04-11 01:11:17] production.ERROR: Maximum execution time of 30 seconds exceeded {"userId":1,"exception":"[object] (Symfony\Component\ErrorHandler\Error\FatalError(code: 0): Maximum execution time of 30 seconds exceeded at /var/www/bookstack/vendor/dompdf/dompdf/lib/Cpdf.php:5748)
[stacktrace]
#0 {main}
"}
[2024-04-11 01:22:16] production.ERROR: Maximum execution time of 30 seconds exceeded {"userId":1,"exception":"[object] (Symfony\Component\ErrorHandler\Error\FatalError(code: 0): Maximum execution time of 30 seconds exceeded at /var/www/bookstack/vendor/dompdf/dompdf/lib/Cpdf.php:5748)
[stacktrace]
#0 {main}
"}
[2024-04-11 01:36:31] production.ERROR: Maximum execution time of 30 seconds exceeded {"userId":1,"exception":"[object] (Symfony\Component\ErrorHandler\Error\FatalError(code: 0): Maximum execution time of 30 seconds exceeded at /var/www/bookstack/vendor/dompdf/dompdf/lib/Cpdf.php:5762)
[stacktrace]
#0 {main}
"}
[2024-04-11 01:50:31] production.ERROR: Maximum execution time of 30 seconds exceeded {"userId":1,"exception":"[object] (Symfony\Component\ErrorHandler\Error\FatalError(code: 0): Maximum execution time of 30 seconds exceeded at /var/www/bookstack/vendor/dompdf/dompdf/lib/Cpdf.php:5771)
[stacktrace]
#0 {main}
"}
[2024-04-11 01:55:33] production.ERROR: Maximum execution time of 30 seconds exceeded {"userId":1,"exception":"[object] (Symfony\Component\ErrorHandler\Error\FatalError(code: 0): Maximum execution time of 30 seconds exceeded at /var/www/bookstack/vendor/dompdf/dompdf/lib/Cpdf.php:5746)
[stacktrace]
#0 {main}
"}

Hosting Environment

Ubuntu 22.04.4 LTS
PHP Version: 8.1.2-1ubuntu2.14
Apache/2.4.52 (Ubuntu)

Originally created by @YID-C on GitHub (Apr 11, 2024). ### Attempted Debugging - [X] I have read the debugging page ### Searched GitHub Issues - [X] I have searched GitHub for the issue. ### Describe the Scenario Hi all. Thank you for your time today. I'm having an issue with Bookstack where I am unable to export large books. My books contain many pages and these pages collectively contain hundreds of steps and images as I write in depth technical documentation. I initially received an "unknown error" but after enabling debugging, I can see the maximum execution time of 30 seconds is being exceeded. I have found my way to issues #389 #1603 #1590 and #804 Per the comments in those tickets: -I have changed the maximum execution time in my php.ini file from 30 to 3000. -I have set my resource limit to -1 for unlimited resource use -Checked and confirmed my server has 8gb of RAM available to it. -Cleared my artisan cache -Restarted my webserver through both a full system restart and by manually restarting appache via the command line using the command: `# /etc/init.d/apache2 restart` The issue still persists. However, I have noticed that despite having set the maximum execution time to 3000 seconds (fifty minutes) I notice BookStack will still give the error after just 30 seconds. Because of this I can only assume the php.ini file is either being ignored or overridden elsewhere. Is there any code in BookStack itself that could be causing this? I have attached my debugging log file to this post and here are my version numbers. I installed BookStack into a completely fresh install of Ubuntu using the following commands found on the bookstack installation page. I experienced no issues during installation. `wget https://raw.githubusercontent.com/BookStackApp/devops/main/scripts/installation-ubuntu-22.04.sh` `chmod a+x installation-ubuntu-22.04.sh` `sudo ./installation-ubuntu-22.04.sh` Here are my versions: Ubuntu 22.04.4 LTS PHP Version: 8.1.2-1ubuntu2.14 BookStack Version: v24.02.3 Apache/2.4.52 (Ubuntu) Here is a screenshot of the error: ![Screenshot_4454](https://github.com/BookStackApp/BookStack/assets/166672041/05467ba7-5314-4740-8b47-2edfdd678d2a) I greatly appreciate any assistance with this and thank you for taking the time. I see this as a blocker and don't believe I'm able to resolve this myself. ### Exact BookStack Version v24.02.3 ### Log Content [2024-04-11 00:22:45] production.ERROR: Maximum execution time of 30 seconds exceeded {"userId":1,"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Maximum execution time of 30 seconds exceeded at /var/www/bookstack/vendor/dompdf/dompdf/lib/Cpdf.php:5748) [stacktrace] #0 {main} "} [2024-04-11 00:27:45] production.ERROR: Maximum execution time of 30 seconds exceeded {"userId":1,"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Maximum execution time of 30 seconds exceeded at /var/www/bookstack/vendor/dompdf/dompdf/lib/Cpdf.php:5765) [stacktrace] #0 {main} "} [2024-04-11 01:03:47] production.ERROR: Maximum execution time of 30 seconds exceeded {"userId":1,"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Maximum execution time of 30 seconds exceeded at /var/www/bookstack/vendor/dompdf/dompdf/lib/Cpdf.php:5757) [stacktrace] #0 {main} "} [2024-04-11 01:11:17] production.ERROR: Maximum execution time of 30 seconds exceeded {"userId":1,"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Maximum execution time of 30 seconds exceeded at /var/www/bookstack/vendor/dompdf/dompdf/lib/Cpdf.php:5748) [stacktrace] #0 {main} "} [2024-04-11 01:22:16] production.ERROR: Maximum execution time of 30 seconds exceeded {"userId":1,"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Maximum execution time of 30 seconds exceeded at /var/www/bookstack/vendor/dompdf/dompdf/lib/Cpdf.php:5748) [stacktrace] #0 {main} "} [2024-04-11 01:36:31] production.ERROR: Maximum execution time of 30 seconds exceeded {"userId":1,"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Maximum execution time of 30 seconds exceeded at /var/www/bookstack/vendor/dompdf/dompdf/lib/Cpdf.php:5762) [stacktrace] #0 {main} "} [2024-04-11 01:50:31] production.ERROR: Maximum execution time of 30 seconds exceeded {"userId":1,"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Maximum execution time of 30 seconds exceeded at /var/www/bookstack/vendor/dompdf/dompdf/lib/Cpdf.php:5771) [stacktrace] #0 {main} "} [2024-04-11 01:55:33] production.ERROR: Maximum execution time of 30 seconds exceeded {"userId":1,"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Maximum execution time of 30 seconds exceeded at /var/www/bookstack/vendor/dompdf/dompdf/lib/Cpdf.php:5746) [stacktrace] #0 {main} "} ### Hosting Environment Ubuntu 22.04.4 LTS PHP Version: 8.1.2-1ubuntu2.14 Apache/2.4.52 (Ubuntu)
OVERLORD added the 🐕 Support label 2026-02-05 09:07:52 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#4617