You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a report is scheduled to be sent via mail as a PDF, after the first iteration the scheduler stops to work.
The scheduled job to send the report PDF via mail breaks the scheduler, no jobs are executed anymore after that.
Configure the pdfexport module to use the local Chrome binary (/usr/bin/google-chrome)
Run icingacli reporting schedule run --debug
Wait at least 3 minutes.
Pay attention: the scheduler stops to execute next scheduled jobs after the first time.
Expected behavior
The scheduler should not stop after the first execution but it should continue to send the report as scheduled.
Your Environment
Icinga Web 2 version and modules (System - About):
Server operating system and version: Debian 11.9
/usr/bin/google-chrome --version: Google Chrome 122.0.6261.111
Additional context
From a little bit of investigation, it could be related to a conflict between the React\EventLoop\LoopInterface object instanciated into the reporting scheduler and the one instanciated in the icingaweb2-module-pdfreport:library/Pdfexport/HeadlessChrome.php.
The text was updated successfully, but these errors were encountered:
The current implementation of `HeadlessChrome::toPdf()` always assumes
that it controls the event loop instance, i.e. `HeadlessChrome` creates
and starts the event loop manually. This may work for most use cases as
they are mostly triggered via Icinga Web, but not if you want to
generate PDFs using a daemon. Since our scheduler uses the same global
event instance, it is unfavourable to call `Factory::create()` over
again occasionally.
refs Icinga/icingaweb2-module-reporting#229
Describe the bug
When a report is scheduled to be sent via mail as a PDF, after the first iteration the scheduler stops to work.
The scheduled job to send the report PDF via mail breaks the scheduler, no jobs are executed anymore after that.
To Reproduce
Steps to reproduce the behavior:
/usr/bin/google-chrome
)icingacli reporting schedule run --debug
Expected behavior
The scheduler should not stop after the first execution but it should continue to send the report as scheduled.
Your Environment
Additional context
From a little bit of investigation, it could be related to a conflict between the
React\EventLoop\LoopInterface
object instanciated into the reporting scheduler and the one instanciated in theicingaweb2-module-pdfreport:library/Pdfexport/HeadlessChrome.php
.The text was updated successfully, but these errors were encountered: