Unable to Generate PDF from UIM Operator Console Dashboard Designer / UIMBI
search cancel

Unable to Generate PDF from UIM Operator Console Dashboard Designer / UIMBI

book

Article ID: 438516

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM)

Issue/Introduction

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

 

Environment

DX UIM 23.4.7 and prior
Linux - any version

Cause

"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.

Resolution

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:

  1. on the Operator Console, create a new folder called /opt/nimsoft/playwright -- this folder must be owned by root, or the same user that owns the Nimsoft robot installation folder.
  2. execute: chmod 744 /opt/nimsoft/playwright  
  3. deactivate the wasp probe on your Operator Console robot
  4. Access Raw Configure or edit wasp.cfg and locate the <startup>section.
  5. In this section, locate the options" key.
  6. At the end of this key, add the following option:  -Dplaywright.driver.tmpdir=/opt/nimsoft/playwright
  7. save the file and activate the wasp probe.

This issue will be resolved in DX UIM 23.4.8 (CU8).

Additional Information

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