# Kibana reporting pdf with error: "Error: Error spawning Chromium browser: Error: socket hang up"

**URL:** <https://discuss.elastic.co/t/kibana-reporting-pdf-with-error-error-error-spawning-chromium-browser-error-socket-hang-up/168714>\
**Category:** Kibana\
**Created:** [February 17, 2019, 7:05am UTC](https://discuss.elastic.co/t/kibana-reporting-pdf-with-error-error-error-spawning-chromium-browser-error-socket-hang-up/168714 "2019-02-17T07:05:41Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![saiergon](https://avatars.discourse-cdn.com/v4/letter/s/e95f7d/32.png) [@saiergon](https://discuss.elastic.co/u/saiergon)\
**Post date:** [February 17, 2019, 7:05am UTC](https://discuss.elastic.co/t/kibana-reporting-pdf-with-error-error-error-spawning-chromium-browser-error-socket-hang-up/168714/1 "2019-02-17T07:05:41Z")

</div>

hi, i want to use kibana reporting pdf dashbord, but i got follow error  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/3/9/396e385f99e8097417ee90e3006fe7d7772eb7dc.png)

and i foudn error logs in my kibana log:

```auto
{"type":"error","@timestamp":"2019-02-17T07:03:46Z","tags":["warning","process"],"pid":18769,"level":"error","error":{"message":"Error: socket hang up\n at createHangUpError (_http_client.js:322:15)\n at Socket.socketOnEnd (_http_client.js:425:23)\n at Socket.emit (events.js:187:15)\n at endReadableNT (_stream_readable.js:1094:12)\n at process._tickCallback (internal/process/next_tick.js:63:19)","name":"UnhandledPromiseRejectionWarning","stack":"UnhandledPromiseRejectionWarning: Error: socket hang up\n at createHangUpError (_http_client.js:322:15)\n at Socket.socketOnEnd (_http_client.js:425:23)\n at Socket.emit (events.js:187:15)\n at endReadableNT (_stream_readable.js:1094:12)\n at process._tickCallback (internal/process/next_tick.js:63:19)\n at emitWarning (internal/process/promises.js:81:15)\n at emitPromiseRejectionWarnings (internal/process/promises.js:120:9)\n at process._tickCallback (internal/process/next_tick.js:69:34)"},"message":"Error: socket hang up\n at createHangUpError (_http_client.js:322:15)\n at Socket.socketOnEnd (_http_client.js:425:23)\n at Socket.emit (events.js:187:15)\n at endReadableNT (_stream_readable.js:1094:12)\n at process._tickCallback (internal/process/next_tick.js:63:19)"}
{"type":"error","@timestamp":"2019-02-17T07:03:46Z","tags":["warning","process"],"pid":18769,"level":"error","error":{"message":"Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3)","name":"UnhandledPromiseRejectionWarning","stack":"Error: socket hang up\n at createHangUpError (_http_client.js:322:15)\n at Socket.socketOnEnd (_http_client.js:425:23)\n at Socket.emit (events.js:187:15)\n at endReadableNT (_stream_readable.js:1094:12)\n at process._tickCallback (internal/process/next_tick.js:63:19)"},"message":"Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3)"}

```

and error log in chrome\_debug.log as follows:

```auto
[0217/124726.158736:WARNING:resource_bundle.cc(358)] locale_file_path.empty() for locale
[0217/124726.158900:INFO:cpu_info.cc(46)] Available number of cores: 24
[0217/124726.158935:VERBOSE1:zygote_main_linux.cc(217)] ZygoteMain: initializing 0 fork delegates
[0217/124726.180343:WARNING:resource_bundle.cc(358)] locale_file_path.empty() for locale
[0217/124726.180742:ERROR:egl_util.cc(59)] Failed to load GLES library: /usr/local/kibana-6.6.0-linux-x86_64/data/headless_shell-linux/swiftshader/libGLESv2.so: cannot open shared object file: No such file or directory
[0217/124726.180772:VERBOSE1:gpu_init.cc(238)] gl::init::InitializeGLNoExtensionsOneOff failed
[0217/124726.182461:ERROR:viz_main_impl.cc(184)] Exiting GPU process due to errors during initialization
[0217/124726.182900:VERBOSE1:statistics_recorder.cc(410)] Collections of all histograms

```

could anyone help this? many thanks.

---

<div class="post-metadata">

**Author:** ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)\
**Post date:** [February 18, 2019, 8:33pm UTC](https://discuss.elastic.co/t/kibana-reporting-pdf-with-error-error-error-spawning-chromium-browser-error-socket-hang-up/168714/2 "2019-02-18T20:33:35Z")

</div>

Hello,

Can you please post which distribution and the version of your stack?

@joelgriffith@tsullivan

Thanks,  
Bhavya

---

<div class="post-metadata">

**Author:** ![saiergon](https://avatars.discourse-cdn.com/v4/letter/s/e95f7d/32.png) [@saiergon](https://discuss.elastic.co/u/saiergon)\
**Post date:** [February 19, 2019, 9:27am UTC](https://discuss.elastic.co/t/kibana-reporting-pdf-with-error-error-error-spawning-chromium-browser-error-socket-hang-up/168714/3 "2019-02-19T09:27:10Z")

</div>

i use stack 6.6.0

---

<div class="post-metadata">

**Author:** ![tsullivan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsullivan/32/31077_2.png) [@tsullivan](https://discuss.elastic.co/u/tsullivan)\
**Post date:** [February 19, 2019, 7:03pm UTC](https://discuss.elastic.co/t/kibana-reporting-pdf-with-error-error-error-spawning-chromium-browser-error-socket-hang-up/168714/4 "2019-02-19T19:03:11Z")

</div>

Hi, we're using Puppeteer for launching the headless browser process on the server that will open the URL to the saved object in Kibana and take the screenshot.

If you've already checked the [troubleshooting information on Reporting in the Elastic documentation](https://www.elastic.co/guide/en/kibana/current/reporting-troubleshooting.html) and that didn't resolve it, also take a look at the troubleshooting information in the Puppeteer documentation: [https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md](https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md)

We're working on improving the startup and diagnostic capabilities for reporting. Please bear with us! Thanks

---

<div class="post-metadata">

**Author:** ![saiergon](https://avatars.discourse-cdn.com/v4/letter/s/e95f7d/32.png) [@saiergon](https://discuss.elastic.co/u/saiergon)\
**Post date:** [February 20, 2019, 8:17am UTC](https://discuss.elastic.co/t/kibana-reporting-pdf-with-error-error-error-spawning-chromium-browser-error-socket-hang-up/168714/5 "2019-02-20T08:17:46Z")

</div>

@tsullivan after installed dependencies listed in [https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md](https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md), i can now generate pdf report, thank you very much.

---

<div class="post-metadata">

**Author:** ![tsullivan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsullivan/32/31077_2.png) [@tsullivan](https://discuss.elastic.co/u/tsullivan)\
**Post date:** [February 20, 2019, 4:33pm UTC](https://discuss.elastic.co/t/kibana-reporting-pdf-with-error-error-error-spawning-chromium-browser-error-socket-hang-up/168714/6 "2019-02-20T16:33:53Z")

</div>

Glad to hear you got it working!

I have a pull request open to improve the documentation for Getting Started and Troubleshooting with reporting: [https://github.com/elastic/kibana/pull/31539/files](https://github.com/elastic/kibana/pull/31539/files)

If you have a minute, I'd appreciate if you could take a look and see if these changes would have helped the issue for you.

Thanks!

---

<div class="post-metadata">

**Author:** ![saiergon](https://avatars.discourse-cdn.com/v4/letter/s/e95f7d/32.png) [@saiergon](https://discuss.elastic.co/u/saiergon)\
**Post date:** [February 24, 2019, 5:58am UTC](https://discuss.elastic.co/t/kibana-reporting-pdf-with-error-error-error-spawning-chromium-browser-error-socket-hang-up/168714/7 "2019-02-24T05:58:15Z")

</div>

good job，especially the System Dependencies part mentioned, it solved my problem.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 24, 2019, 5:58am UTC](https://discuss.elastic.co/t/kibana-reporting-pdf-with-error-error-error-spawning-chromium-browser-error-socket-hang-up/168714/8 "2019-03-24T05:58:19Z")

</div>

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