# Error while genrating reports

**URL:** <https://discuss.elastic.co/t/error-while-genrating-reports/251051>\
**Category:** Kibana\
**Created:** [October 5, 2020, 9:34pm UTC](https://discuss.elastic.co/t/error-while-genrating-reports/251051 "2020-10-05T21:34:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anjana1](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@anjana1](https://discuss.elastic.co/u/anjana1)\
**Post date:** [October 5, 2020, 9:34pm UTC](https://discuss.elastic.co/t/error-while-genrating-reports/251051/1 "2020-10-05T21:34:25Z")

</div>

I am working with Kibana versio 7.9 and I tried to generate a PDF report of my dashboad. Keep getting the below error

Unable to generate report

Error: Error spawning Chromium browser: [Error: Protocol error (Target.setDiscoverTargets): Target closed.]

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [October 6, 2020, 3:40pm UTC](https://discuss.elastic.co/t/error-while-genrating-reports/251051/2 "2020-10-06T15:40:25Z")

</div>

Can you post an excerpt from your kibana logs when the reporting job fails? Kibana should be writing errors to the log indicating what happened.  
Can you try following the troubleshooting steps at the bottom of this page for your particular error message? [https://www.elastic.co/guide/en/kibana/master/reporting-troubleshooting.html#\_literal\_caught\_error\_spawning\_chromium\_literal](https://www.elastic.co/guide/en/kibana/master/reporting-troubleshooting.html#_literal_caught_error_spawning_chromium_literal)

cc @tsullivan/ @joelgriffith  
Thanks  
Rashmi

---

<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:** [October 6, 2020, 4:18pm UTC](https://discuss.elastic.co/t/error-while-genrating-reports/251051/3 "2020-10-06T16:18:12Z")

</div>

Hi, the error message seems to say that the headless browser couldn't stay running through the entire PDF export.

I recommend trying Reporting on a server that has more RAM available.

---

<div class="post-metadata">

**Author:** ![anjana1](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@anjana1](https://discuss.elastic.co/u/anjana1)\
**Post date:** [October 6, 2020, 6:05pm UTC](https://discuss.elastic.co/t/error-while-genrating-reports/251051/4 "2020-10-06T18:05:10Z")

</div>

I have the below configuration. Is it not sufficient?

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/c/bc42eb87d2efafa0bc20ccc949fd67b9cf694d4f.png)

---

<div class="post-metadata">

**Author:** ![anjana1](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@anjana1](https://discuss.elastic.co/u/anjana1)\
**Post date:** [October 7, 2020, 10:59pm UTC](https://discuss.elastic.co/t/error-while-genrating-reports/251051/5 "2020-10-07T22:59:02Z")

</div>

Any updates?

---

<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:** [November 2, 2020, 6:03pm UTC](https://discuss.elastic.co/t/error-while-genrating-reports/251051/6 "2020-11-02T18:03:25Z")

</div>

Hi again, I hope things have been worked out on your side by now. If not, there is more general guidance I can provide:

- The RAM that matters is how much RAM is available to the Chromium headless browser at the time when a report job is executed. Metric logs of memory usage on the server can help a lot here.
- The link that Rashmi provided [here](https://discuss.elastic.co/t/error-while-genrating-reports/251051/2) will get you the furthest on troubleshooting and how to do it. Pay special attention to the system requirements section, and the list of dependencies, file permissions, `nss` requirement, and Chromium sandbox setting.
- In 7.10, there will be a built-in troubleshooting tool that tracks error messages from Chromium and interprets it into steps that an administrator can do to fix Reporting.

Hope that helps!

---

<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:** [November 30, 2020, 6:03pm UTC](https://discuss.elastic.co/t/error-while-genrating-reports/251051/7 "2020-11-30T18:03:33Z")

</div>

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