Cannot generate report PDF or PNG

Hello there,

I´m trying to generate reports using pdf or png but for some reason is not showing on the share option from kibana discover tab.

After checking on the reporting diagnostics tab, I saw something that may be the reason is not working. Follow:

Fontconfig error: Cannot load default config file: No such file: (null)

DevTools listening on ws://127.0.0.1:39351/devtools/browser/53dcf228-2b4f-40d9-842f-8ee14495b124
[0729/172718.355068:FATAL:platform_font_skia.cc(98)] Check failed: InitDefaultFont(). Could not find the default font
#0 0x562270bffe59 (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x5392e58)
#1 0x562270b79893 (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x530c892)
#2 0x562270b8a8d0 (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x531d8cf)
#3 0x562270b8b41e (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x531e41d)
#4 0x56227190ad9f (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x609dd9e)
#5 0x56227190c48b (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x609f48a)
#6 0x5622718febee (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x6091bed)
#7 0x56226fa10b7a (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x41a3b79)
#8 0x56226fa11af6 (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x41a4af5)
#9 0x56226fb341b7 (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x42c71b6)
#10 0x56226f9ee2ec (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x41812eb)
#11 0x56226f9ed780 (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x418077f)
#12 0x56226f9ece07 (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x417fe06)
#13 0x56226f9200b4 (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x40b30b3)
#14 0x56226f9ad71d (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x414071c)
#15 0x56226f97e763 (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x4111762)
#16 0x56226f97e2e6 (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x41112e5)
#17 0x56227452dddc (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x8cc0ddb)
#18 0x56227452dc7f (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x8cc0c7e)
#19 0x562270efd4c8 (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x56904c7)
#20 0x562270b6f2c4 (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x53022c3)
#21 0x56226e7cf979 (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x2f62978)
#22 0x56226f54f0df (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x3ce20de)
#23 0x56226e7c0c57 (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x2f53c56)
#24 0x56226f75922e (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x3eec22d)
#25 0x562270beb5b9 (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x537e5b8)
#26 0x562270bc58a3 (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x53588a2)
#27 0x562270bd6d4e (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x5369d4d)
#28 0x562270bd6a5b (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x5369a5a)
#29 0x562270bd7112 (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x536a111)
#30 0x562270c304cb (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x53c34ca)
#31 0x562270bd7385 (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x536a384)
#32 0x562270baebcb (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x5341bca)
#33 0x562270baf3ec (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x53423eb)
#34 0x56226f68555d (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x3e1855c)
#35 0x56226f686bf2 (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x3e19bf1)
#36 0x562274534643 (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x8cc7642)
#37 0x56226fd265c1 (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x44b95c0)
#38 0x56226fd2617d (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x44b917c)
#39 0x56226fd23b6b (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x44b6b6a)
#40 0x56226fd2446d (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x44b746c)
#41 0x562270b73519 (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x5306518)
#42 0x562270b73238 (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x5306237)
#43 0x7ff177940c87 __libc_start_main
#44 0x56226e66e12a _start
Task trace:
#0 0x562270b6eddc (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x5301ddb)
#1 0x562270b6eddc (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x5301ddb)

Received signal 6
#0 0x562270bffe59 (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x5392e58)
#1 0x562270b79893 (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x530c892)
#2 0x562270bff931 (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x5392930)
#3 0x7ff178cba980 (/lib/x86_64-linux-gnu/libpthread-2.27.so+0x1297f)
#4 0x7ff17795de87 gsignal
#5 0x7ff17795f7f1 abort
#6 0x562270bfebc5 (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x5391bc4)
#7 0x562270b8acf7 (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x531dcf6)
#8 0x562270b8b41e (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x531e41d)
#9 0x56227190ad9f (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x609dd9e)
#10 0x56227190c48b (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x609f48a)
#11 0x5622718febee (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x6091bed)
#12 0x56226fa10b7a (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x41a3b79)
#13 0x56226fa11af6 (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x41a4af5)
#14 0x56226fb341b7 (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x42c71b6)
#15 0x56226f9ee2ec (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x41812eb)
#16 0x56226f9ed780 (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x418077f)
#17 0x56226f9ece07 (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x417fe06)
#18 0x56226f9200b4 (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x40b30b3)
#19 0x56226f9ad71d (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x414071c)
#20 0x56226f97e763 (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x4111762)
#21 0x56226f97e2e6 (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x41112e5)
#22 0x56227452dddc (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x8cc0ddb)
#23 0x56227452dc7f (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x8cc0c7e)
#24 0x562270efd4c8 (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x56904c7)
#25 0x562270b6f2c4 (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x53022c3)
#26 0x56226e7cf979 (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x2f62978)
#27 0x56226f54f0df (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x3ce20de)
#28 0x56226e7c0c57 (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x2f53c56)
#29 0x56226f75922e (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x3eec22d)
#30 0x562270beb5b9 (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x537e5b8)
#31 0x562270bc58a3 (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x53588a2)
#32 0x[0729/172718.370409:ERROR:gpu_init.cc(441)] Passthrough is not supported, GL is swiftshader
562270bd6d4e (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x5369d4d)
#33 0x562270bd6a5b (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x5369a5a)
#34 0x562270bd7112 (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x536a111)
#35 0x562270c304cb (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x53c34ca)
#36 0x562270bd7385 (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x536a384)
#37 0x562270baebcb (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x5341bca)
#38 0x562270baf3ec (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x53423eb)
#39 0x56226f68555d (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x3e1855c)
#40 0x56226f686bf2 (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x3e19bf1)
#41 0x562274534643 (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x8cc7642)
#42 0x56226fd265c1 (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x44b95c0)
#43 0x56226fd2617d (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x44b917c)
#44 0x56226fd23b6b (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x44b6b6a)
#45 0x56226fd2446d (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x44b746c)
#46 0x562270b73519 (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x5306518)
#47 0x562270b73238 (/usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell+0x5306237)
#48 0x7ff177940c87 __libc_start_main
#49 0x56226e66e12a _start
  r8: 0000000000000000  r9: 00007ffdc5e17820 r10: 0000000000000008 r11: 0000000000000246
 r12: 00003fc6002c1c80 r13: 00007ffdc5e17a80 r14: 00003fc6002c1c90 r15: aaaaaaaaaaaaaaaa
  di: 0000000000000002  si: 00007ffdc5e17820  bp: 00007ffdc5e17a70  bx: 00007ffdc5e182b0
  dx: 0000000000000000  ax: 0000000000000000  cx: 00007ff17795de87  sp: 00007ffdc5e17820
  ip: 00007ff17795de87 efl: 0000000000000246 cgf: 002b000000000033 erf: 0000000000000000
 trp: 0000000000000000 msk: 0000000000000000 cr2: 0000000000000000
[end of stack trace]
Browser exited abnormally during startup

I don´t have a clue how to sort this out so if someone ever had this problem and found the solution, I would appreciate if could share with me.

Thanks for the attention.

Hi

Which version of the stack are you running ? have you tried restarting the kibana server and trying again . Your full reproduction steps would be helpful to dig in deeper.

Thanks
Rashmi

Yes, I've done th restart but the error still persist. Im running elastic stack version 8.3.2

@tsullivan - do u have more insights into this ?

Thanks
Rashmi

The steps to find the problem is straight foward:
1 - Login to kibana
2 - Select discover and select a saved search

Then I´ll go straight to Stack Management -> Reporting and run the diagnostics:

And display the initial message above

Hi @francescouk @rashmi this is an issue of the server OS needing a dependency for the chromium headless server binary to function. It is explained in the Kibana Guide documentation under Set up > Configure reporting, in a section under "Install the reporting packages": Configure reporting in Kibana | Kibana Guide [8.3] | Elastic

I have ran a few searches in Google to find solutions for the `` error, and it looks like the OS needs a path to system fonts registered as an environment variable.

  • What OS are you using?
  • Do you have all the system dependencies installed, as according to the documentation?

Hi @tsullivan thanks for sharing. I´m using Ubuntu/Debian and after checking all the necessary packages, I just found out that two of them as missing:

fonts-liberation
libfontconfig1

After those installed everything started to work as expected.

Thanks for the quick reply and attention.