# Generate PDF Report Fails

**URL:** <https://discuss.elastic.co/t/generate-pdf-report-fails/263537>\
**Category:** Kibana\
**Tags:** elastic-stack-reporting\
**Created:** [February 8, 2021, 3:13am UTC](https://discuss.elastic.co/t/generate-pdf-report-fails/263537 "2021-02-08T03:13:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AClerk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aclerk/32/55297_2.png) [@AClerk](https://discuss.elastic.co/u/AClerk)\
**Post date:** [February 8, 2021, 3:13am UTC](https://discuss.elastic.co/t/generate-pdf-report-fails/263537/1 "2021-02-08T03:13:01Z")

</div>

Hello,  
I have checked previous posts but still cannot find a solution.  
Kibana/Elastic version - 7.9.1  
5 Elastic nodes  
2 Kibana nodes  
Platinum licenses

When I try to generate a pdf report, it fails.  
I also have a standalone test env, and there the pdf function works well.

Appreciate your guidance and advise.

The errors I see in Kibana logs

```auto
{"type":"error","@timestamp":"2021-02-07T22:39:59Z","tags":["warning","process"],"pid":698,"level":"error","error":{"message":"TimeoutError: waiting for target failed: timeout 30000ms exceeded\n at Function.waitWithTimeout (/usr/share/kibana/node_modules/puppeteer-core/lib/helper.js:215:26)\n at Browser.waitForTarget (/usr/share/kibana/node_modules/puppeteer-core/lib/Browser.js:214:27)\n at Browser.<anonymous> (/usr/share/kibana/node_modules/puppeteer-core/lib/helper.js:112:23)\n at Launcher.launch (/usr/share/kibana/node_modules/puppeteer-core/lib/Launcher.js:185:21)\n at process._tickCallback (internal/process/next_tick.js:68:7)","name":"UnhandledPromiseRejectionWarning","stack":"UnhandledPromiseRejectionWarning: TimeoutError: waiting for target failed: timeout 30000ms exceeded\n at Function.waitWithTimeout (/usr/share/kibana/node_modules/puppeteer-core/lib/helper.js:215:26)\n at Browser.waitForTarget (/usr/share/kibana/node_modules/puppeteer-core/lib/Browser.js:214:27)\n at Browser.<anonymous> (/usr/share/kibana/node_modules/puppeteer-core/lib/helper.js:112:23)\n at Launcher.launch (/usr/share/kibana/node_modules/puppeteer-core/lib/Launcher.js:185:21)\n at process._tickCallback (internal/process/next_tick.js:68:7)\n at emitWarning (internal/process/promises.js:97:15)\n at emitPromiseRejectionWarnings (internal/process/promises.js:143:7)\n at process._tickCallback (internal/process/next_tick.js:69:34)"},"message":"TimeoutError: waiting for target failed: timeout 30000ms exceeded\n at Function.waitWithTimeout (/usr/share/kibana/node_modules/puppeteer-core/lib/helper.js:215:26)\n at Browser.waitForTarget (/usr/share/kibana/node_modules/puppeteer-core/lib/Browser.js:214:27)\n at Browser.<anonymous> (/usr/share/kibana/node_modules/puppeteer-core/lib/helper.js:112:23)\n at Launcher.launch (/usr/share/kibana/node_modules/puppeteer-core/lib/Launcher.js:185:21)\n at process._tickCallback (internal/process/next_tick.js:68:7)"}
{"type":"log","@timestamp":"2021-02-07T22:39:59Z","tags":["error","plugins","reporting","esqueue","queue-worker","error"],"pid":698,"message":"kikaaedb00je07cbf19td7ap - Failure occurred on job kkvqb3ov00ja17d8ab9eql7c: Error: Error spawning Chromium browser: [TimeoutError: waiting for target failed: timeout 30000ms exceeded]\n at Observable.Rx.Observable.create [as _subscribe] (/usr/share/kibana/x-pack/plugins/reporting/server/browsers/chromium/driver_factory/index.js:126:24)"}
{"type":"log","@timestamp":"2021-02-07T22:39:59Z","tags":["warning","plugins","reporting","esqueue","queue-worker"],"pid":698,"message":"kikaaedb00je07cbf19td7ap - Failing job kkvqb3ov00ja17d8ab9eql7c"}
{"type":"error","@timestamp":"2021-02-07T22:39:59Z","tags":["warning","process"],"pid":698,"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: 197)","name":"UnhandledPromiseRejectionWarning","stack":"TimeoutError: waiting for target failed: timeout 30000ms exceeded\n at Function.waitWithTimeout (/usr/share/kibana/node_modules/puppeteer-core/lib/helper.js:215:26)\n at Browser.waitForTarget (/usr/share/kibana/node_modules/puppeteer-core/lib/Browser.js:214:27)\n at Browser.<anonymous> (/usr/share/kibana/node_modules/puppeteer-core/lib/helper.js:112:23)\n at Launcher.launch (/usr/share/kibana/node_modules/puppeteer-core/lib/Launcher.js:185:21)\n at process._tickCallback (internal/process/next_tick.js:68:7)"},"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: 197)"}

```

Cheers!

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [February 8, 2021, 6:02am UTC](https://discuss.elastic.co/t/generate-pdf-report-fails/263537/2 "2021-02-08T06:02:29Z")

</div>

Most likely all the needed dependencies are not installed on the server you are running Kibana on See [here](https://www.elastic.co/guide/en/kibana/current/reporting-troubleshooting.html#reporting-troubleshooting-system-dependencies)

---

<div class="post-metadata">

**Author:** ![AClerk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aclerk/32/55297_2.png) [@AClerk](https://discuss.elastic.co/u/AClerk)\
**Post date:** [February 8, 2021, 10:05pm UTC](https://discuss.elastic.co/t/generate-pdf-report-fails/263537/3 "2021-02-08T22:05:51Z")

</div>

Checking with `rpm -qa` or `yum list installed` shows none of the packages are installed.  
However, the same results on my test environment (where pdf reports work well)  
So, how can I check if I am missing these packages or it is something else? i.e. wrong configurations/settings?

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [February 8, 2021, 10:56pm UTC](https://discuss.elastic.co/t/generate-pdf-report-fails/263537/4 "2021-02-08T22:56:55Z")

</div>

> [@AClerk](#):
>
> `Error: Error spawning Chromium browser: [TimeoutError: waiting for target failed: timeout 30000ms exceeded]\n `

That usually means it can not find the required dependencies, I would run through the installs whether they are reported missing or not.

You can also set kibana logs to verbose.

`logging.verbose: true`

---

<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 8, 2021, 10:57pm UTC](https://discuss.elastic.co/t/generate-pdf-report-fails/263537/5 "2021-03-08T22:57:10Z")

</div>

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