Kibana PDF Report Fails to Generate

1. Unable to generate report Error: Error spawning Chromium browser: [TimeoutError: waiting for target failed: timeout 30000ms exceeded]
  1. Unable to generate reportError: Error spawning Chromium browser:
    [Error: Protocol error (Target.setDiscoverTargets): Target closed.]

Perform the first step to check if the underlying Chromium browser works independently from Kibana. To do so, run the following command on the Kibana system from the Kibana sub-directory

x-pack/plugins/reporting/chromium/headless_shell-linux:

  • ./headless_shell --disable-translate --disable-extensions --disable-background-networking --safebrowsing-disable-auto-update --disable-sync --metrics-recording-only --disable-default-apps --mute-audio --no-first-run --disable-gpu --no-sandbox --headless --hide-scrollbars --window-size=400,400 --remote-debugging-port=9221 https://example.com/


Output of the command :

h-4.2$ ./headless_shell --disable-translate --disable-extensions --disable-background-networking --safebrowsing-disable-auto-update --disable-sync --metrics-recording-only --disable-default-apps --mute-audio --no-first-run --disable-gpu --no-sandbox --headless --hide-scrollbars --window-size=400,400 --remote-debugging-port=9221 https://www.google.com/

[1208/114230.597167:WARNING:resource_bundle.cc(358)] locale_file_path.empty() for locale

[1208/114230.604606:WARNING:resource_bundle.cc(358)] locale_file_path.empty() for locale

Fontconfig error: Cannot load default config file

DevTools listening on ws://127.0.0.1:9221/devtools/browser/97ee6cc8-fe9b-4000-896c-00e88af358fb

[1208/114230.615259:FATAL:platform_font_skia.cc(93)] Check failed: InitDefaultFont(). Could not find the default font

#0 0x55c51a061bf9

This is failing because of the missing fonts:

The required fonts can be found at the previously provided link at Reporting Troubleshooting System Dependencies. Once installed the reporting should work as expected.