In the DX UIM Operator Console (OC) BI portlet (from CU5+) or Dashboard Designer (prior to CU5), users encounter an "unable to generate PDF" error in the upper right corner when attempting to export reports. No further error details are provided in the UI.
The dashboard.log (located in /Nimsoft/probes/service/wasp/ or /Nimsoft/probes/service/wasp/logs/ depending on your version) contains errors similar to the following:
[Catalina-utility-1] ERROR com.firehunter.dashboard.service.ReportService:initPlayWrightModule:173 service.ReportService - Unable to initialize playwright module
com.microsoft.playwright.PlaywrightException: Failed to launch driver
...
Caused by: java.io.IOException: Cannot run program "/tmp/playwright-java-3148466505595300415/node": Exec failed, error: 13 (Permission denied)
at java.base/java.lang.ProcessBuilder.start(Unknown Source)
at java.base/java.lang.ProcessBuilder.start(Unknown Source)
at com.microsoft.playwright.impl.PlaywrightImpl.createImpl(PlaywrightImpl.java:51)
... 78 more
Caused by: java.io.IOException: Exec failed, error: 13 (Permission denied)
[http-nio-80-exec-3] ERROR com.firehunter.dashboard.controllers.ReportController:generateReportFromResource:102 controllers.ReportController - Could not generate dashboard PDF
com.firehunter.dashboard.util.ModuleInitializationException: Playwright module is not initialized
DX UIM 23.4.7 and prior
Linux - any version
"noexec" flag set on /tmp folder
In some environments, for security hardening purposes, the "noexec" flag is set on /tmp, which disallows executing programs or scripts from the /tmp folder.
To validate that the above is the root cause of the issue in your environment, execute the following command on the Operator Console Robot:
findmnt /tmp
Check for "noexec" in the output.
Example output:
TARGET SOURCE FSTYPE OPTIONS
/tmp /dev/sda2[/tmp] xfs rw,nosuid,nodev,noexec,relatime,seclabel,attr2,inode64,logbufs=8,logbsize=32k,noquota
If this is the case in your environment, take the following steps to resolve the issue:
This issue will be resolved in DX UIM 23.4.8 (CU8).
The presence of "noexec" may also cause this issue: UIM Installers fail to launch : JRE libraries missing or incompatible
Additional libraries may be required on Red Hat Linux to successfully generate PDF files.
To install those libraries use the following command:sudo dnf install -y atk at-spi2-atk cups-libs libXcomposite libXdamage libXrandr libgbm libxkbcommon alsa-lib nss at-spi2-atk at-spi2-core pango cairo