# When i try to download the pdf using reporting option getting error: HeadlessError: Phantom immediately exited with: 1

**URL:** <https://discuss.elastic.co/t/when-i-try-to-download-the-pdf-using-reporting-option-getting-error-headlesserror-phantom-immediately-exited-with-1/85619>\
**Category:** Elasticsearch\
**Created:** [May 12, 2017, 8:10pm UTC](https://discuss.elastic.co/t/when-i-try-to-download-the-pdf-using-reporting-option-getting-error-headlesserror-phantom-immediately-exited-with-1/85619 "2017-05-12T20:10:53Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shashidhar\_Wl](https://avatars.discourse-cdn.com/v4/letter/s/a88e4f/32.png) [@Shashidhar\_Wl](https://discuss.elastic.co/u/Shashidhar_Wl)\
**Post date:** [May 12, 2017, 8:10pm UTC](https://discuss.elastic.co/t/when-i-try-to-download-the-pdf-using-reporting-option-getting-error-headlesserror-phantom-immediately-exited-with-1/85619/1 "2017-05-12T20:10:53Z")

</div>

Hello Kibana Team,

I was able to install and configure ELK and x-pack-5.4.0  
and able to retrieve the data of Apache logs and able to create dashboards and everything seems to be working fine except reporting option. getting below error when i try to generate dashboard in PDF format.

There was an error generating your report for the "Sample Dashboard Logs" dashboard: HeadlessError: Phantom immediately exited with: 1

let me know if you need any logs i will update here.

Below is my stack details :

Elastic search 5.4.0  
Logstash 5.4.0  
Kibana 5.4.0

server :  
Red Hat Enterprise Linux Server release 5.11

i see below fonts are installed and i explicitly added phantomjs in the server. below fonts also installed.

bin]$ rpm -q fontconfig.x86\_64  
fontconfig-2.4.1-7.el5

rpm -q fontconfig.i386  
fontconfig-2.4.1-7.el5

$ which phantomjs  
/usr/bin/phantomjs

---

<div class="post-metadata">

**Author:** ![Shashidhar\_Wl](https://avatars.discourse-cdn.com/v4/letter/s/a88e4f/32.png) [@Shashidhar\_Wl](https://discuss.elastic.co/u/Shashidhar_Wl)\
**Post date:** [May 15, 2017, 8:46pm UTC](https://discuss.elastic.co/t/when-i-try-to-download-the-pdf-using-reporting-option-getting-error-headlesserror-phantom-immediately-exited-with-1/85619/2 "2017-05-15T20:46:17Z")

</div>

Any suggestions to fix this issue ???

---

<div class="post-metadata">

**Author:** ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)\
**Post date:** [May 17, 2017, 11:29am UTC](https://discuss.elastic.co/t/when-i-try-to-download-the-pdf-using-reporting-option-getting-error-headlesserror-phantom-immediately-exited-with-1/85619/3 "2017-05-17T11:29:39Z")

</div>

Hey @Shashidhar_Wl would you mind seeing how much free memory that you have on the server that is running Kibana? The PhantomJS process can require a moderate amount of memory, and I'm wondering whether there's too little and the process is crashing immediately.

---

<div class="post-metadata">

**Author:** ![Shashidhar\_Wl](https://avatars.discourse-cdn.com/v4/letter/s/a88e4f/32.png) [@Shashidhar\_Wl](https://discuss.elastic.co/u/Shashidhar_Wl)\
**Post date:** [May 17, 2017, 1:22pm UTC](https://discuss.elastic.co/t/when-i-try-to-download-the-pdf-using-reporting-option-getting-error-headlesserror-phantom-immediately-exited-with-1/85619/4 "2017-05-17T13:22:40Z")

</div>

Thank you Brandon. I don't have enough memory on this server. I will try the same settings in other server and post the updates.

---

<div class="post-metadata">

**Author:** ![Shashidhar\_Wl](https://avatars.discourse-cdn.com/v4/letter/s/a88e4f/32.png) [@Shashidhar\_Wl](https://discuss.elastic.co/u/Shashidhar_Wl)\
**Post date:** [May 17, 2017, 6:26pm UTC](https://discuss.elastic.co/t/when-i-try-to-download-the-pdf-using-reporting-option-getting-error-headlesserror-phantom-immediately-exited-with-1/85619/5 "2017-05-17T18:26:36Z")

</div>

I tried in the different host which is running with 32gb of RAM. got the same error. i see similar errors in the logs. could you please check.

{"type":"response","@timestamp":"2017-05-17T18:20:43Z","tags":[],"pid":30068,"method":"post","statusCode":200,"req":{"url":"/api/reporting/generate/dashboard/Sample-Dashboard-for-Apache-Logs?\_g=(time%3A(from%3A'2017-05-11T20%3A53%3A53.284Z'%2Cmode%3Aabsolute%2Cto%3A'2017-05-11T21%3A08%3A53.284Z'))&\_a=(filters%3A!()%2Coptions%3A(darkTheme%3A!t)%2Cpanels%3A!((col%3A1%2Cid%3AApache-Dashboard%2CpanelIndex%3A1%2Crow%3A1%2Csize\_x%3A3%2Csize\_y%3A4%2Ctype%3Avisualization)%2C(col%3A7%2Cid%3ATraffic-by-Country-ampersand-Device%2CpanelIndex%3A2%2Crow%3A5%2Csize\_x%3A6%2Csize\_y%3A3%2Ctype%3Avisualization)%2C(col%3A7%2Cid%3ATraffic-by-Country-ampersand-OS%2CpanelIndex%3A3%2Crow%3A8%2Csize\_x%3A6%2Csize\_y%3A3%2Ctype%3Avisualization)%2C(col%3A4%2Cid%3ATraffic-vs.-Location%2CpanelIndex%3A4%2Crow%3A1%2Csize\_x%3A9%2Csize\_y%3A4%2Ctype%3Avisualization)%2C(col%3A1%2Cid%3AUnique-Visitors%2CpanelIndex%3A5%2Crow%3A5%2Csize\_x%3A3%2Csize\_y%3A2%2Ctype%3Avisualization)%2C(col%3A1%2Cid%3ANon-200-Response-Code-vs.-Time%2CpanelIndex%3A6%2Crow%3A11%2Csize\_x%3A6%2Csize\_y%3A3%2Ctype%3Avisualization)%2C(col%3A4%2Cid%3ATotal-Hits-by-City%2CpanelIndex%3A7%2Crow%3A7%2Csize\_x%3A3%2Csize\_y%3A4%2Ctype%3Avisualization)%2C(col%3A1%2Cid%3AUnique-Visits-by-City%2CpanelIndex%3A8%2Crow%3A7%2Csize\_x%3A3%2Csize\_y%3A4%2Ctype%3Avisualization)%2C(col%3A4%2Cid%3ATotal-Visitors%2CpanelIndex%3A9%2Crow%3A5%2Csize\_x%3A3%2Csize\_y%3A2%2Ctype%3Avisualization)%2C(col%3A7%2Cid%3ABytes-vs.-Time%2CpanelIndex%3A10%2Crow%3A11%2Csize\_x%3A6%2Csize\_y%3A3%2Ctype%3Avisualization)%2C(col%3A1%2Cid%3Aaa9f0590-3688-11e7-834b-55be5050851e%2CpanelIndex%3A11%2Crow%3A14%2Csize\_x%3A6%2Csize\_y%3A3%2Ctype%3Avisualization))%2Cquery%3A(query\_string%3A(analyze\_wildcard%3A!t%2Cquery%3A'_'))%2CtimeRestore%3A!t%2Ctitle%3A'Sample%20Dashboard%20for%20Apache%20Logs'%2CuiState%3A(P-11%3A(spy%3A(mode%3A(fill%3A!f%2Cname%3Atable)))%2CP-7%3A(vis%3A(params%3A(sort%3A(columnIndex%3A!n%2Cdirection%3A!n))))%2CP-8%3A(vis%3A(params%3A(sort%3A(columnIndex%3A!n%2Cdirection%3A!n)))))%2CviewMode%3Aview)","method":"post","headers":{"host":"0.0.0.0:8007","connection":"keep-alive","content-length":"2","accept":"application/json, text/plain, /","origin":"[http://0.0.0.0:8007](http://0.0.0.0:8007)","kbn-version":"5.4.0","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36","content-type":"application/json;charset=UTF-8","referer":"[http://0.0.0.0:8007/app/kibana","accept-encoding":"gzip](http://0.0.0.0:8007/app/kibana%22,%22accept-encoding%22:%22gzip), deflate","accept-language":"en-US,en;q=0.8"},"remoteAddress":"_._._._","userAgent":"_._._._","referer":"[http://0.0.0.0:8007/app/kibana"},"res":{"statusCode":200,"responseTime":113,"contentLength":9},"message":"POST](http://0.0.0.0:8007/app/kibana%22%7D,%22res%22:%7B%22statusCode%22:200,%22responseTime%22:113,%22contentLength%22:9%7D,%22message%22:%22POST) /api/reporting/generate/dashboard/Sample-Dashboard-for-Apache-Logs?\_g=(time%3A(from%3A'2017-05-11T20%3A53%3A53.284Z'%2Cmode%3Aabsolute%2Cto%3A'2017-05-11T21%3A08%3A53.284Z'))&\_a=(filters%3A!()%2Coptions%3A(darkTheme%3A!t)%2Cpanels%3A!((col%3A1%2Cid%3AApache-Dashboard%2CpanelIndex%3A1%2Crow%3A1%2Csize\_x%3A3%2Csize\_y%3A4%2Ctype%3Avisualization)%2C(col%3A7%2Cid%3ATraffic-by-Country-ampersand-Device%2CpanelIndex%3A2%2Crow%3A5%2Csize\_x%3A6%2Csize\_y%3A3%2Ctype%3Avisualization)%2C(col%3A7%2Cid%3ATraffic-by-Country-ampersand-OS%2CpanelIndex%3A3%2Crow%3A8%2Csize\_x%3A6%2Csize\_y%3A3%2Ctype%3Avisualization)%2C(col%3A4%2Cid%3ATraffic-vs.-Location%2CpanelIndex%3A4%2Crow%3A1%2Csize\_x%3A9%2Csize\_y%3A4%2Ctype%3Avisualization)%2C(col%3A1%2Cid%3AUnique-Visitors%2CpanelIndex%3A5%2Crow%3A5%2Csize\_x%3A3%2Csize\_y%3A2%2Ctype%3Avisualization)%2C(col%3A1%2Cid%3ANon-200-Response-Code-vs.-Time%2CpanelIndex%3A6%2Crow%3A11%2Csize\_x%3A6%2Csize\_y%3A3%2Ctype%3Avisualization)%2C(col%3A4%2Cid%3ATotal-Hits-by-City%2CpanelIndex%3A7%2Crow%3A7%2Csize\_x%3A3%2Csize\_y%3A4%2Ctype%3Avisualization)%2C(col%3A1%2Cid%3AUnique-Visits-by-City%2CpanelIndex%3A8%2Crow%3A7%2Csize\_x%3A3%2Csize\_y%3A4%2Ctype%3Avisualization)%2C(col%3A4%2Cid%3ATotal-Visitors%2CpanelIndex%3A9%2Crow%3A5%2Csize\_x%3A3%2Csize\_y%3A2%2Ctype%3Avisualization)%2C(col%3A7%2Cid%3ABytes-vs.-Time%2CpanelIndex%3A10%2Crow%3A11%2Csize\_x%3A6%2Csize\_y%3A3%2Ctype%3Avisualization)%2C(col%3A1%2Cid%3Aaa9f0590-3688-11e7-834b-55be5050851e%2CpanelIndex%3A11%2Crow%3A14%2Csize\_x%3A6%2Csize\_y%3A3%2Ctype%3Avisualization))%2Cquery%3A(query\_string%3A(analyze\_wildcard%3A!t%2Cquery%3A'_'))%2CtimeRestore%3A!t%2Ctitle%3A'Sample%20Dashboard%20for%20Apache%20Logs'%2CuiState%3A(P-11%3A(spy%3A(mode%3A(fill%3A!f%2Cname%3Atable)))%2CP-7%3A(vis%3A(params%3A(sort%3A(columnIndex%3A!n%2Cdirection%3A!n))))%2CP-8%3A(vis%3A(params%3A(sort%3A(columnIndex%3A!n%2Cdirection%3A!n)))))%2CviewMode%3Aview) 200 113ms - 9.0B"}  
Unhandled rejection HeadlessError: Phantom immediately exited with: 1  
at ChildProcess.immediateExit (/u01/app/ELK/kibana-5.4.0-linux-x86\_64/plugins/x-pack/node\_modules/@elastic/node-phantom-simple/node-phantom-simple.js:157:23)  
at ChildProcess.g (events.js:291:16)  
at emitTwo (events.js:106:13)  
at ChildProcess.emit (events.js:191:7)  
at Process.ChildProcess.\_handle.onexit (internal/child\_process.js:215:12)  
{"type":"response","@timestamp":"2017-05-17T18:20:46Z","tags":[],"pid":30068,"method":"get","statusCode":200,"req":{"url":"/api/reporting/jobs/list\_completed\_since?since=2017-05-17T18%3A19%3A52.810Z","method":"get","headers":{"host":"0.0.0.0:8007","connection":"keep-alive","accept":"application/json, text/plain, _/_","kbn-system-api":"true","kbn-version":"5.4.0","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36","referer":"[http://0.0.0.0:8007/app/kibana","accept-encoding":"gzip](http://0.0.0.0:8007/app/kibana%22,%22accept-encoding%22:%22gzip), deflate, sdch","accept-language":"en-US,en;q=0.8"},"remoteAddress":"_._._._","userAgent":"_._._._","referer":"[http://0.0.0.0:8007/app/kibana"},"res":{"statusCode":200,"responseTime":23,"contentLength":9},"message":"GET](http://0.0.0.0:8007/app/kibana%22%7D,%22res%22:%7B%22statusCode%22:200,%22responseTime%22:23,%22contentLength%22:9%7D,%22message%22:%22GET) /api/reporting/jobs/list\_completed\_since?since=2017-05-17T18%3A19%3A52.810Z 200 23ms - 9.0B"}  
{"type":"response","@timestamp":"2017-05-17T18:20:55Z","tags":[],"pid":30068,"method":"get","statusCode":200,"req":{"url":"/api/security/v1/me","method":"get","headers":{"host":"0.0.0.0:8007","connection":"keep-alive","accept":"application/json, text/plain, _/_","kbn-version":"5.4.0","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36","referer":"[http://0.0.0.0:8007/app/kibana","accept-encoding":"gzip](http://0.0.0.0:8007/app/kibana%22,%22accept-encoding%22:%22gzip), deflate, sdch","accept-language":"en-US,en;q=0.8"},"remoteAddress":"_._._._","userAgent":"_._._._","referer":"[http://0.0.0.0:8007/app/kibana"},"res":{"statusCode":200,"responseTime":14,"contentLength":9},"message":"GET](http://0.0.0.0:8007/app/kibana%22%7D,%22res%22:%7B%22statusCode%22:200,%22responseTime%22:14,%22contentLength%22:9%7D,%22message%22:%22GET) /api/security/v1/me 200 14ms - 9.0B"}

---

<div class="post-metadata">

**Author:** ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)\
**Post date:** [May 17, 2017, 8:06pm UTC](https://discuss.elastic.co/t/when-i-try-to-download-the-pdf-using-reporting-option-getting-error-headlesserror-phantom-immediately-exited-with-1/85619/6 "2017-05-17T20:06:40Z")

</div>

@Shashidhar_Wl did you install phantomjs explicitly on the second box as well? And if so, would you mind describing the steps that you took to install it?

Kibana comes packaged with it's own instance of PhantomJS and I'm wondering whether they're conflicting somehow.

---

<div class="post-metadata">

**Author:** ![Shashidhar\_Wl](https://avatars.discourse-cdn.com/v4/letter/s/a88e4f/32.png) [@Shashidhar\_Wl](https://discuss.elastic.co/u/Shashidhar_Wl)\
**Post date:** [May 17, 2017, 8:24pm UTC](https://discuss.elastic.co/t/when-i-try-to-download-the-pdf-using-reporting-option-getting-error-headlesserror-phantom-immediately-exited-with-1/85619/7 "2017-05-17T20:24:50Z")

</div>

Step 1\> $ wget [https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86\_64.tar.bz2](https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2)

Step 2\> $ tar -xvf phantomjs-1.9.7-linux-x86\_64.tar.bz2

Step 3\> $ cd phantomjs-1.9.7-linux-x86\_64

Step 4\> $ cd bin

Step 5\> $ sudo cp phantomjs /usr/bin

To check phantomjs installed properly perform the following step :

Step 6\> $ phantomjs -h

To install the dependencies on Red Hat based systems:

Step 7\> $ sudo yum install fontconfig freetype libfreetype.so.6 libfontconfig.so.1 libstdc++.so.6

---

<div class="post-metadata">

**Author:** ![Shashidhar\_Wl](https://avatars.discourse-cdn.com/v4/letter/s/a88e4f/32.png) [@Shashidhar\_Wl](https://discuss.elastic.co/u/Shashidhar_Wl)\
**Post date:** [May 17, 2017, 9:47pm UTC](https://discuss.elastic.co/t/when-i-try-to-download-the-pdf-using-reporting-option-getting-error-headlesserror-phantom-immediately-exited-with-1/85619/8 "2017-05-17T21:47:42Z")

</div>

I tried with the phantomjs-2.1.1-linux-x86\_64 also. Same issue.

---

<div class="post-metadata">

**Author:** ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)\
**Post date:** [May 18, 2017, 11:46am UTC](https://discuss.elastic.co/t/when-i-try-to-download-the-pdf-using-reporting-option-getting-error-headlesserror-phantom-immediately-exited-with-1/85619/9 "2017-05-18T11:46:00Z")

</div>

@Shashidhar_Wl you shouldn't have to install a separate instance of PhantomJS to use Reporting with Kibana; however, I'm not seeing how the version that you're installing is conflicting with the version that comes packaged with Kibana.

Would you mind verifying that the following exists and you're able to run it: `kibana-5.4.0-linux-x86_64/data/phantomjs-2.1.1-linux-x86_64/bin/phantomjs`

---

<div class="post-metadata">

**Author:** ![Shashidhar\_Wl](https://avatars.discourse-cdn.com/v4/letter/s/a88e4f/32.png) [@Shashidhar\_Wl](https://discuss.elastic.co/u/Shashidhar_Wl)\
**Post date:** [May 18, 2017, 1:39pm UTC](https://discuss.elastic.co/t/when-i-try-to-download-the-pdf-using-reporting-option-getting-error-headlesserror-phantom-immediately-exited-with-1/85619/10 "2017-05-18T13:39:47Z")

</div>

phantomjs-2.1.1-linux-x86\_64/bin/phantomjs is missing on Kibana. do i need to install explicitly or does it comes with kibana ??

---

<div class="post-metadata">

**Author:** ![Shashidhar\_Wl](https://avatars.discourse-cdn.com/v4/letter/s/a88e4f/32.png) [@Shashidhar\_Wl](https://discuss.elastic.co/u/Shashidhar_Wl)\
**Post date:** [May 18, 2017, 2:18pm UTC](https://discuss.elastic.co/t/when-i-try-to-download-the-pdf-using-reporting-option-getting-error-headlesserror-phantom-immediately-exited-with-1/85619/11 "2017-05-18T14:18:16Z")

</div>

$ /u01/app/ELK/kibana-5.4.0-linux-x86\_64/data/phantomjs-2.1.1-linux-x86\_64/bin/phantomjs

/u01/app/ELK/kibana-5.4.0-linux-x86\_64/data/phantomjs-2.1.1-linux-x86\_64/bin/phantomjs: /lib64/libz.so.1: no version information available (required by /u01/app/ELK/kibana-5.4.0-linux-x86\_64/data/phantomjs-2.1.1-linux-x86\_64/bin/phantomjs)  
/u01/app/ELK/kibana-5.4.0-linux-x86\_64/data/phantomjs-2.1.1-linux-x86\_64/bin/phantomjs: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /u01/app/ELK/kibana-5.4.0-linux-x86_64/data/phantomjs-2.1.1-linux-x86_64/bin/phantomjs) /u01/app/ELK/kibana-5.4.0-linux-x86_64/data/phantomjs-2.1.1-linux-x86_64/bin/phantomjs: /usr/lib64/libstdc++.so.6: version`GLIBCXX\_3.4.11' not found (required by /u01/app/ELK/kibana-5.4.0-linux-x86\_64/data/phantomjs-2.1.1-linux-x86\_64/bin/phantomjs)  
/u01/app/ELK/kibana-5.4.0-linux-x86\_64/data/phantomjs-2.1.1-linux-x86\_64/bin/phantomjs: /lib64/libc.so.6: version `GLIBC_2.9' not found (required by /u01/app/ELK/kibana-5.4.0-linux-x86_64/data/phantomjs-2.1.1-linux-x86_64/bin/phantomjs) /u01/app/ELK/kibana-5.4.0-linux-x86_64/data/phantomjs-2.1.1-linux-x86_64/bin/phantomjs: /lib64/libc.so.6: version`GLIBC\_2.10' not found (required by /u01/app/ELK/kibana-5.4.0-linux-x86\_64/data/phantomjs-2.1.1-linux-x86\_64/bin/phantomjs)  
/u01/app/ELK/kibana-5.4.0-linux-x86\_64/data/phantomjs-2.1.1-linux-x86\_64/bin/phantomjs: /lib64/libc.so.6: version `GLIBC\_2.7' not found (required by /u01/app/ELK/kibana-5.4.0-linux-x86\_64/data/phantomjs-2.1.1-linux-x86\_64/bin/phantomjs)

---

<div class="post-metadata">

**Author:** ![Shashidhar\_Wl](https://avatars.discourse-cdn.com/v4/letter/s/a88e4f/32.png) [@Shashidhar\_Wl](https://discuss.elastic.co/u/Shashidhar_Wl)\
**Post date:** [May 18, 2017, 2:57pm UTC](https://discuss.elastic.co/t/when-i-try-to-download-the-pdf-using-reporting-option-getting-error-headlesserror-phantom-immediately-exited-with-1/85619/12 "2017-05-18T14:57:07Z")

</div>

Quiclk update : phantomjs-2.1.1-linux-x86\_64 is not compatible on RHEL 5.11 so i copied 1.7 phantomjs to /u01/app/ELK/kibana-5.4.0-linux-x86\_64/data/phantomjs-2.1.1-linux-x86\_64/bin/phantomjs and tried to download the pdf of some of the reports i can download but the dashboard that i am downloading getting below timeout error.

There was an error generating your report for the "Sample Dashboard for Apache Logs" dashboard: Error: Timeout exceeded (20000)

---

<div class="post-metadata">

**Author:** ![Shashidhar\_Wl](https://avatars.discourse-cdn.com/v4/letter/s/a88e4f/32.png) [@Shashidhar\_Wl](https://discuss.elastic.co/u/Shashidhar_Wl)\
**Post date:** [May 18, 2017, 7:44pm UTC](https://discuss.elastic.co/t/when-i-try-to-download-the-pdf-using-reporting-option-getting-error-headlesserror-phantom-immediately-exited-with-1/85619/13 "2017-05-18T19:44:21Z")

</div>

I enabled debug

log [19:35:50.602] [debug][reporting] fetching screenshot of http://_._._._:8005/app/kibana#/dashboard/Sample-Dashboard-for-Apache-Logs?\_g=(time:(from:'2017-05-11T20:53:53.284Z',mode:absolute,to:'2017-05-11T21:08:53.284Z'))&\_a=(filters:!(),options:(darkTheme:!t),panels:!((col:1,id:Apache-Dashboard,panelIndex:1,row:1,size\_x:3,size\_y:4,type:visualization),(col:7,id:Traffic-by-Country-ampersand-Device,panelIndex:2,row:5,size\_x:6,size\_y:3,type:visualization),(col:7,id:Traffic-by-Country-ampersand-OS,panelIndex:3,row:8,size\_x:6,size\_y:3,type:visualization),(col:4,id:Traffic-vs.-Location,panelIndex:4,row:1,size\_x:9,size\_y:4,type:visualization),(col:1,id:Unique-Visitors,panelIndex:5,row:5,size\_x:3,size\_y:2,type:visualization),(col:1,id:Non-200-Response-Code-vs.-Time,panelIndex:6,row:11,size\_x:6,size\_y:3,type:visualization),(col:4,id:Total-Hits-by-City,panelIndex:7,row:7,size\_x:3,size\_y:4,type:visualization),(col:1,id:Unique-Visits-by-City,panelIndex:8,row:7,size\_x:3,size\_y:4,type:visualization),(col:4,id:Total-Visitors,panelIndex:9,row:5,size\_x:3,size\_y:2,type:visualization),(col:7,id:Bytes-vs.-Time,panelIndex:10,row:11,size\_x:6,size\_y:3,type:visualization),(col:1,id:aa9f0590-3688-11e7-834b-55be5050851e,panelIndex:11,row:14,size\_x:6,size\_y:3,type:visualization)),query:(query\_string:(analyze\_wildcard:!t,query:'_')),timeRestore:!t,title:'Sample%20Dashboard%20for%20Apache%20Logs',uiState:(P-11:(spy:(mode:(fill:!f,name:table))),P-7:(vis:(params:(sort:(columnIndex:!n,direction:!n)))),P-8:(vis:(params:(sort:(columnIndex:!n,direction:!n))))),viewMode:view)  
respons [19:35:50.916] GET /app/kibana 200 123ms - 9.0B  
respons [19:35:50.939] GET /bundles/commons.style.css?v=15063 200 10ms - 9.0B  
respons [19:35:50.975] GET /bundles/kibana.style.css?v=15063 200 34ms - 9.0B  
respons [19:35:51.096] GET /bundles/commons.bundle.js?v=15063 200 130ms - 9.0B  
ops [19:35:51.819] memory: 342.3MB uptime: 0:00:46 load: [1.57 0.85 0.47] delay: 5.289  
log [19:35:51.822] [debug][monitoring-ui] Received Monitoring event data  
log [19:35:51.823] [debug][plugin] Checking Elasticsearch version  
log [19:35:52.005] [debug][plugin] Checking Elasticsearch version  
respons [19:35:52.127] GET /bundles/kibana.bundle.js?v=15063 200 942ms - 9.0B  
log [19:35:52.358] [debug][license][xpack] Calling Elasticsearch \_xpack API  
log [19:35:52.427] [debug][license][xpack] Calling Elasticsearch \_xpack API  
log [19:35:52.521] [debug][monitoring-ui] Sending Monitoring payload to Elasticsearch  
respons [19:35:52.876] GET /api/reporting/jobs/list\_completed\_since?since=2017-05-18T15%3A26%3A52.008Z 200 20ms - 9.0B  
respons [19:35:53.397] GET /api/console/api\_server?sense\_version=%40%40SENSE\_VERSION&apis=es\_5\_0 200 16ms - 9.0B  
respons [19:35:53.602] GET /api/security/v1/me 200 13ms - 9.0B  
log [19:35:53.645] [debug][phantomConsole][reporting] INFO: 2017-05-18T19:35:53Z  
Adding connection to http://_._._.\*:8005/es\_admin

log [19:35:53.647] [debug][phantomConsole][reporting] INFO: 2017-05-18T19:35:53Z  
Adding connection to http://_._._._:8005/elasticsearch

log [19:35:53.789] [debug][phantomConsole][reporting] setting active api to [es\_5\_0]  
respons [19:35:53.815] GET /api/xpack/v1/info 200 39ms - 9.0B  
respons [19:35:53.819] GET /plugins/graph/icon.png 200 36ms - 9.0B  
respons [19:35:53.822] GET /plugins/kibana/assets/visualize.svg 200 42ms - 9.0B  
respons [19:35:53.823] GET /plugins/kibana/assets/discover.svg 200 42ms - 9.0B  
respons [19:35:53.824] GET /plugins/timelion/icon.svg 200 41ms - 9.0B  
respons [19:35:53.826] GET /plugins/kibana/assets/dashboard.svg 200 41ms - 9.0B  
respons [19:35:53.840] GET /plugins/kibana/assets/wrench.svg 200 24ms - 9.0B  
respons [19:35:53.845] GET /plugins/monitoring/icons/monitoring.svg 200 27ms - 9.0B  
respons [19:35:53.848] GET /plugins/kibana/assets/play-circle.svg 200 21ms - 9.0B  
respons [19:35:53.849] GET /plugins/security/images/logout.svg 200 21ms - 9.0B  
respons [19:35:53.850] GET /plugins/security/images/person.svg 200 22ms - 9.0B  
respons [19:35:53.851] GET /plugins/kibana/assets/settings.svg 200 23ms - 9.0B  
respons [19:35:53.880] GET /bundles/0cebf3d61338c454670b1c5bdf5d6d8d.svg 200 4ms - 9.0B

---

<div class="post-metadata">

**Author:** ![Shashidhar\_Wl](https://avatars.discourse-cdn.com/v4/letter/s/a88e4f/32.png) [@Shashidhar\_Wl](https://discuss.elastic.co/u/Shashidhar_Wl)\
**Post date:** [May 18, 2017, 7:44pm UTC](https://discuss.elastic.co/t/when-i-try-to-download-the-pdf-using-reporting-option-getting-error-headlesserror-phantom-immediately-exited-with-1/85619/14 "2017-05-18T19:44:32Z")

</div>

respons [19:35:53.930] POST /es\_admin/.kibana/index-pattern/\_search?stored\_fields= 200 48ms - 9.0B  
respons [19:35:54.004] GET /es\_admin/.kibana/\_mapping/\*/field/_source?_=1495136153985 200 16ms - 9.0B  
respons [19:35:54.089] POST /es\_admin/\_mget 200 46ms - 9.0B  
log [19:35:54.349] [debug][plugin] Checking Elasticsearch version  
respons [19:35:54.422] GET /bundles/dfb02f8f6d0cedc009ee5887cc68f1f3.woff 200 6ms - 9.0B  
log [19:35:54.530] [debug][plugin] Checking Elasticsearch version  
log [19:35:55.441] [debug][phantomConsole][reporting] complete in 59.00ms  
respons [19:35:55.498] GET /plugins/reporting/styles/reporting-overrides.css 200 11ms - 9.0B  
respons [19:35:55.503] POST /es\_admin/\_mget 200 53ms - 9.0B  
respons [19:35:55.658] POST /es\_admin/\_mget 200 59ms - 9.0B  
log [19:35:56.223] [debug][phantomConsole][reporting] complete in 162.00ms  
respons [19:35:56.398] POST /elasticsearch/\_msearch 200 154ms - 9.0B  
ops [19:35:56.816] memory: 345.8MB uptime: 0:00:51 load: [1.69 0.88 0.48] delay: 0.892  
log [19:35:56.818] [debug][monitoring-ui] Received Monitoring event data  
log [19:35:56.868] [debug][plugin] Checking Elasticsearch version  
log [19:35:56.900] [debug][phantomConsole][reporting] complete in 2.00ms  
log [19:35:56.901] [debug][phantomConsole][reporting] complete in 1.00ms  
log [19:35:56.902] [debug][phantomConsole][reporting] complete in 1.00ms  
log [19:35:56.903] [debug][phantomConsole][reporting] complete in 0.00ms  
log [19:35:56.904] [debug][phantomConsole][reporting] complete in 0.00ms  
log [19:35:56.906] [debug][phantomConsole][reporting] complete in 0.00ms  
log [19:35:56.907] [debug][phantomConsole][reporting] complete in 1.00ms  
log [19:35:56.908] [debug][phantomConsole][reporting] complete in 1.00ms  
log [19:35:57.058] [debug][plugin] Checking Elasticsearch version  
log [19:35:57.372] [debug][phantomConsole][reporting] complete in 125.00ms  
respons [19:35:59.176] GET /api/security/v1/me 200 16ms - 9.0B  
log [19:35:59.382] [debug][plugin] Checking Elasticsearch version  
respons [19:35:59.446] GET /bundles/4eae70b44c4e3b69f2357bff8f1e67f1.svg 304 9ms - 9.0B  
respons [19:35:59.449] GET /bundles/6199ab7146b1eb859db9ffd2b9b786d3.svg 304 11ms - 9.0B  
log [19:35:59.589] [debug][plugin] Checking Elasticsearch version  
respons [19:36:00.603] GET /api/security/v1/me 200 15ms - 9.0B  
respons [19:36:00.795] GET /api/reporting/jobs/list?page=0 200 36ms - 9.0B  
respons [19:36:00.980] GET /api/reporting/jobs/count 200 32ms - 9.0B  
ops [19:36:01.815] memory: 353.2MB uptime: 0:00:56 load: [1.71 0.90 0.49] delay: 0.834  
log [19:36:01.816] [debug][monitoring-ui] Received Monitoring event data  
log [19:36:01.902] [debug][plugin] Checking Elasticsearch version  
log [19:36:02.119] [debug][plugin] Checking Elasticsearch version  
log [19:36:02.523] [debug][monitoring-ui] Sending Monitoring payload to Elasticsearch  
respons [19:36:02.861] GET /api/reporting/jobs/list\_completed\_since?since=2017-05-18T15%3A26%3A52.008Z 200 18ms - 9.0B  
respons [19:36:03.486] GET /api/reporting/jobs/list\_completed\_since?since=2017-05-18T15%3A15%3A32.280Z 200 26ms - 9.0B  
respons [19:36:03.516] GET /api/reporting/jobs/output/j2ukjsa1037db30bdcaan7ne 200 25ms - 9.0B  
log [19:36:04.415] [debug][plugin] Checking Elasticsearch version  
log [19:36:04.644] [debug][plugin] Checking Elasticsearch version  
respons [19:36:05.778] GET /api/reporting/jobs/list?page=0 200 32ms - 9.0B  
respons [19:36:05.975] GET /api/reporting/jobs/count 200 20ms - 9.0B  
ops [19:36:06.815] memory: 349.5MB uptime: 0:01:01 load: [1.57 0.89 0.49] delay: 0.889  
log [19:36:06.817] [debug][monitoring-ui] Received Monitoring event data  
log [19:36:06.928] [debug][plugin] Checking Elasticsearch version  
log [19:36:07.171] [debug][plugin] Checking Elasticsearch version  
respons [19:36:08.214] GET /api/security/v1/me 200 18ms - 9.0B  
respons [19:36:09.138] GET /api/security/v1/me 200 11ms - 9.0B  
respons [19:36:09.364] GET /api/reporting/jobs/list?page=0 200 24ms - 9.0B  
log [19:36:09.441] [debug][plugin] Checking Elasticsearch version  
respons [19:36:09.567] GET /api/reporting/jobs/count 200 21ms - 9.0B  
log [19:36:09.693] [debug][plugin] Checking Elasticsearch version  
ops [19:36:11.816] memory: 356.2MB uptime: 0:01:06 load: [1.45 0.87 0.48] delay: 0.890  
log [19:36:11.818] [debug][monitoring-ui] Received Monitoring event data  
log [19:36:11.952] [debug][plugin] Checking Elasticsearch version  
log [19:36:12.218] [debug][plugin] Checking Elasticsearch version  
log [19:36:12.526] [debug][monitoring-ui] Sending Monitoring payload to Elasticsearch  
respons [19:36:12.865] GET /api/reporting/jobs/list\_completed\_since?since=2017-05-18T15%3A26%3A52.008Z 200 18ms - 9.0B  
respons [19:36:13.482] GET /api/reporting/jobs/list\_completed\_since?since=2017-05-18T15%3A26%3A52.008Z 200 25ms - 9.0B  
respons [19:36:14.344] GET /api/reporting/jobs/list?page=0 200 33ms - 9.0B  
log [19:36:14.463] [debug][plugin] Checking Elasticsearch version  
respons [19:36:14.526] GET /api/reporting/jobs/count 200 20ms - 9.0B  
log [19:36:14.738] [debug][plugin] Checking Elasticsearch version  
ops [19:36:16.815] memory: 363.0MB uptime: 0:01:11 load: [1.49 0.89 0.49] delay: 0.699  
log [19:36:16.817] [debug][monitoring-ui] Received Monitoring event data  
log [19:36:16.974] [debug][plugin] Checking Elasticsearch version  
log [19:36:17.034] [debug][reporting] Error: Timeout exceeded (20000)  
at Timeout.waitForCheck [as \_onTimeout] (/u01/app/ELK/kibana-5.4.0-linux-x86\_64/plugins/x-pack/plugins/reporting/server/lib/phantom/index.js:311:29)  
at ontimeout (timers.js:380:14)  
at tryOnTimeout (timers.js:244:5)  
at Timer.listOnTimeout (timers.js:214:5)  
log [19:36:17.036] [debug][esqueue][reporting][worker] j2utfz4t096rb30bdc72blsi - Failure occurred on job j2utgl19096rb30bdcderss2: Error: Timeout exceeded (20000)

---

<div class="post-metadata">

**Author:** ![Shashidhar\_Wl](https://avatars.discourse-cdn.com/v4/letter/s/a88e4f/32.png) [@Shashidhar\_Wl](https://discuss.elastic.co/u/Shashidhar_Wl)\
**Post date:** [May 24, 2017, 6:26pm UTC](https://discuss.elastic.co/t/when-i-try-to-download-the-pdf-using-reporting-option-getting-error-headlesserror-phantom-immediately-exited-with-1/85619/15 "2017-05-24T18:26:58Z")

</div>

I was able to create reports and email notification after fixing the issue. thanks for helping me on this issue.

---

<div class="post-metadata">

**Author:** ![trex](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/trex/32/34230_2.png) [@trex](https://discuss.elastic.co/u/trex)\
**Post date:** [June 13, 2017, 2:59pm UTC](https://discuss.elastic.co/t/when-i-try-to-download-the-pdf-using-reporting-option-getting-error-headlesserror-phantom-immediately-exited-with-1/85619/16 "2017-06-13T14:59:37Z")

</div>

@Shashidhar_Wl can you share your solution?  
Thank you.

---

<div class="post-metadata">

**Author:** ![Shashidhar\_Wl](https://avatars.discourse-cdn.com/v4/letter/s/a88e4f/32.png) [@Shashidhar\_Wl](https://discuss.elastic.co/u/Shashidhar_Wl)\
**Post date:** [June 13, 2017, 5:34pm UTC](https://discuss.elastic.co/t/when-i-try-to-download-the-pdf-using-reporting-option-getting-error-headlesserror-phantom-immediately-exited-with-1/85619/17 "2017-06-13T17:34:22Z")

</div>

After adding phantomjs to the kibana, reporting started working fine.

/u01/app/ELK/kibana-5.4.0-linux-x86\_64/data/phantomjs-2.1.1-linux-x86\_64/bin/phantomjs

---

<div class="post-metadata">

**Author:** ![Raj\_Kumar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/raj_kumar/32/25420_2.png) [@Raj\_Kumar](https://discuss.elastic.co/u/Raj_Kumar)\
**Post date:** [June 29, 2017, 7:39am UTC](https://discuss.elastic.co/t/when-i-try-to-download-the-pdf-using-reporting-option-getting-error-headlesserror-phantom-immediately-exited-with-1/85619/18 "2017-06-29T07:39:27Z")

</div>

Hi Shasi,

Iam having the same issue and am using debian package ,using elastic 5.4.2 version ,where should I add in phantomjs in kibana.

Please do let me know ,which could be really helpful for me .

Thanks,  
Raj

---

<div class="post-metadata">

**Author:** ![Shashidhar\_Wl](https://avatars.discourse-cdn.com/v4/letter/s/a88e4f/32.png) [@Shashidhar\_Wl](https://discuss.elastic.co/u/Shashidhar_Wl)\
**Post date:** [June 29, 2017, 6:22pm UTC](https://discuss.elastic.co/t/when-i-try-to-download-the-pdf-using-reporting-option-getting-error-headlesserror-phantom-immediately-exited-with-1/85619/19 "2017-06-29T18:22:45Z")

</div>

under kibana home install phantomjs like below.

data/phantomjs-2.1.1-linux-x86\_64/bin/phantomjs

---

<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:** [July 27, 2017, 6:27pm UTC](https://discuss.elastic.co/t/when-i-try-to-download-the-pdf-using-reporting-option-getting-error-headlesserror-phantom-immediately-exited-with-1/85619/20 "2017-07-27T18:27:36Z")

</div>

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