Caught error spawning Chromium - Generate PDF Error

Hi Community,
Kibana version : 6.5.1 hosted in docker container (the whole stack is in docker container)
When I am trying to 'generate pdf' from 'share' option in dashboard :
image

I am getting the following error :
image

Verbose logging on kibana gives this log trace:

 log   [13:40:03.235] [debug][reporting][worker] PDF: Processing PDF job
  log   [13:40:03.282] [debug][reporting][screenshots] Creating browser driver factory
  log   [13:40:03.357] [esqueue][reporting][warn][worker] jpjsliv200lw28d97a3mvr5c - Failure occurred on job jpjsmah100lw28d97a02hf4w: Error: Caught error spawning Chromium
    at Observable.Rx.Observable.create [as _subscribe] (/opt/kibana/node_modules/x-pack/plugins/reporting/server/browsers/chromium/driver_factory/index.js:56:24)
    at <anonymous>
    at process._tickDomainCallback (internal/process/next_tick.js:228:7)
  log   [13:40:03.359] [debug][reporting][worker] PDF: Worker error: (jpjsmah100lw28d97a02hf4w)
  log   [13:40:03.360] [esqueue][reporting][warn][worker] jpjsliv200lw28d97a3mvr5c - Failing job jpjsmah100lw28d97a02hf4w
  log   [13:40:04.074] [debug][plugin] Checking Elasticsearch version

Permissions on headless_shell binary (data folder):
image

Any ideas?

Thanks

same issue, interested in the answer !

@tsullivan can you please have a look here? thanks!

Hello, I still have the problem, even if my KIBANA is not in a docker. Here is the whole picture: kibana.yml, kibana.logs. I have recorded the whole logs in the server and the HAR in my browser, but cannot send it in the discuss (body too large). I have just appended grep -i reportin kibana.log | grep -v debug

root@int:~# cat /etc/kibana/kibana.yml | grep -v ^# | grep -v ^$
elasticsearch.url: "https://44ddXXXXXXd3c012baa1dc4.eu-west-1.aws.found.io:9243"
kibana.index: .kibana-int
elasticsearch.username: "XXXXX"
elasticsearch.password: "XXXXXX"
logging.dest: /var/log/kibana/kibana.log
logging.verbose: true
xpack.reporting.encryptionKey: "ZHDFEBHAIJOXXXXXMO682351279"
xpack.reporting.kibanaServer.port: 443
xpack.reporting.kibanaServer.protocol: https
xpack.reporting.kibanaServer.hostname: "int.flightwatching.com"
xpack.reporting.index: ".reporting-int"
{"type":"response","@timestamp":"2018-12-17T08:13:18Z","tags":[],"pid":7072,"method":"post","statusCode":200,"req":{"url":"/api/reporting/generate/printablePdf?jobParams=...
{"type":"log","@timestamp":"2018-12-17T08:13:19Z","tags":["trace","legacy","service"],"pid":7072,"message":"Request will be handled by proxy GET:/api/reporting/jobs/list?page=0&ids=jps1l7oh05ggf4f1af3pnefc."}
{"type":"log","@timestamp":"2018-12-17T08:13:20Z","tags":["reporting","esqueue","worker","warn"],"pid":7072,"message":"jps1iru105ggf4f1af688tyb - Failure occurred on job jps1l7oh05ggf4f1af3pnefc: Error: Caught error spawning Chromium\n    at Observable.Rx.Observable.create [as _subscribe] (/usr/share/kibana/node_modules/x-pack/plugins/reporting/server/browsers/chromium/driver_factory/index.js:56:24)\n    at <anonymous>\n    at process._tickDomainCallback (internal/process/next_tick.js:228:7)"}
{"type":"log","@timestamp":"2018-12-17T08:13:20Z","tags":["reporting","esqueue","worker","warn"],"pid":7072,"message":"jps1iru105ggf4f1af688tyb - Failing job jps1l7oh05ggf4f1af3pnefc"}
{"type":"response","@timestamp":"2018-12-17T08:13:19Z","tags":[],"pid":7072,"method":"get","statusCode":200,"req":{"url":"/api/reporting/jobs/list?page=0&ids=jps1l7oh05ggf4f1af3pnefc","method":"get","headers":{"connection":"upgrade","host":"int.flightwatching.com","kbn-system-api":"true","kbn-version":"6.5.1","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36","content-type":"application/json","accept":"*/*","referer":"https://int.flightwatching.com/app/kibana","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9,fr;q=0.8"},"remoteAddress":"127.0.0.1","userAgent":"127.0.0.1","referer":"https://int.flightwatching.com/app/kibana"},"res":{"statusCode":200,"responseTime":240,"contentLength":9},"message":"GET /api/reporting/jobs/list?page=0&ids=jps1l7oh05ggf4f1af3pnefc 200 240ms - 9.0B"}
{"type":"log","@timestamp":"2018-12-17T08:13:30Z","tags":["trace","legacy","service"],"pid":7072,"message":"Request will be handled by proxy GET:/api/reporting/jobs/list?page=0&ids=jps1l7oh05ggf4f1af3pnefc."}
{"type":"response","@timestamp":"2018-12-17T08:13:30Z","tags":[],"pid":7072,"method":"get","statusCode":200,"req":{"url":"/api/reporting/jobs/list?page=0&ids=jps1l7oh05ggf4f1af3pnefc","method":"get","headers":{"connection":"upgrade","host":"int.flightwatching.com","kbn-system-api":"true","kbn-version":"6.5.1","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36","content-type":"application/json","accept":"*/*","referer":"https://int.flightwatching.com/app/kibana","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9,fr;q=0.8"},"remoteAddress":"127.0.0.1","userAgent":"127.0.0.1","referer":"https://int.flightwatching.com/app/kibana"},"res":{"statusCode":200,"responseTime":157,"contentLength":9},"message":"GET /api/reporting/jobs/list?page=0&ids=jps1l7oh05ggf4f1af3pnefc 200 157ms - 9.0B"}
{"type":"log","@timestamp":"2018-12-17T08:13:30Z","tags":["trace","legacy","service"],"pid":7072,"message":"Request will be handled by proxy GET:/api/reporting/jobs/output/jps1l7oh05ggf4f1af3pnefc."}
{"type":"response","@timestamp":"2018-12-17T08:13:30Z","tags":[],"pid":7072,"method":"get","statusCode":200,"req":{"url":"/api/reporting/jobs/output/jps1l7oh05ggf4f1af3pnefc","method":"get","headers":{"connection":"upgrade","host":"int.flightwatching.com","kbn-system-api":"true","kbn-version":"6.5.1","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36","content-type":"application/json","accept":"*/*","referer":"https://int.flightwatching.com/app/kibana","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9,fr;q=0.8"},"remoteAddress":"127.0.0.1","userAgent":"127.0.0.1","referer":"https://int.flightwatching.com/app/kibana"},"res":{"statusCode":200,"responseTime":206,"contentLength":9},"message":"GET /api/reporting/jobs/output/jps1l7oh05ggf4f1af3pnefc 200 206ms - 9.0B"}

Hi, to start, take a look at the troubleshooting guide here: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md. You can try the first step of testing with ldd by using the chromium executable that Kibana provides:

ldd /kibana_directory/data/headless_shell-linux/headless_shell | grep not

I found the solution: here is the thread for that: [kibana 6.5.1] Reporting fails with elasticcloud endpoint (but not elasticsearch selfhosted)

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.