# X-Pack PDF Report Generation fails - Kibana 5.5.2

**URL:** <https://discuss.elastic.co/t/x-pack-pdf-report-generation-fails-kibana-5-5-2/106940>\
**Category:** Kibana\
**Created:** [November 8, 2017, 10:25pm UTC](https://discuss.elastic.co/t/x-pack-pdf-report-generation-fails-kibana-5-5-2/106940 "2017-11-08T22:25:10Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![tamisalex](https://avatars.discourse-cdn.com/v4/letter/t/cdc98d/32.png) [@tamisalex](https://discuss.elastic.co/u/tamisalex)\
**Post date:** [November 8, 2017, 10:25pm UTC](https://discuss.elastic.co/t/x-pack-pdf-report-generation-fails-kibana-5-5-2/106940/1 "2017-11-08T22:25:10Z")

</div>

After I click the generate printable pdf, I get this error:

There was an error generating your report for the "Report Dashboard" dashboard: Max attempts reached (3)

If I add xpack.reporting.queue.timeout to 90000 to the config I get:

There was an error generating your report for the "Report Dashboard" dashboard: Error: Kibana took too long to load - Timeout exceeded (30000)

The logs below are without this setting.

I am not using a proxy. I am using https for kibana and elasticsearch.

I believe the error is here at this 404 error where its trying communicate with port 59104 instead of 5601. Yet I don't know how to config kibana to not use that port.

> {"type":"response","@timestamp":"2017-11-08T21:51:05Z","tags":,"pid":24056,"method":"get","statusCode":404,"req":{"url":"/gmo/app/kibana","method":"get","headers":{"accept":"application/json, text/plain, /","accept-language":"en-US,en;q=0.5","connection":"keep-alive","kbn-version":"5.5.2","referer":"[https://localhost:5601/gmo/app/kibana","user-agent":"Mozilla/5.0](https://localhost:5601/gmo/app/kibana%22,%22user-agent%22:%22Mozilla/5.0) (X11; Ubuntu; Linux x86\_64; rv:56.0) Gecko/20100101 Firefox/56.0","x-forwarded-for":"127.0.0.1","x-forwarded-port":"59104","x-forwarded-proto":"https","accept-encoding":"gzip, deflate","host":"localhost:5603"},"remoteAddress":"127.0.0.1","userAgent":"127.0.0.1","referer":"[https://localhost:5601/gmo/app/kibana"},"res":{"statusCode":404,"responseTime":5,"contentLength":9},"message":"GET](https://localhost:5601/gmo/app/kibana%22%7D,%22res%22:%7B%22statusCode%22:404,%22responseTime%22:5,%22contentLength%22:9%7D,%22message%22:%22GET) /gmo/app/kibana 404 5ms - 9.0B"}

My Kibana.yml looks like this

> logging.dest: /home/xxx/kibana/kibana.log  
> elasticsearch.url: "[https://127.0.0.1:9200/](https://127.0.0.1:9200/)"  
> server.ssl.enabled: true  
> server.ssl.key: /home/xxx/kibana/config/xxx.key  
> server.ssl.certificate: /home/xxx/kibana/config/xxx.crt
> 
> elasticsearch.ssl.certificateAuthorities: "/home/xxx/kibana/config/xx.crt"  
> logging.events.log: ['reporting']

Let me know if you need any more information.

Full logs in following posts

---

<div class="post-metadata">

**Author:** ![tamisalex](https://avatars.discourse-cdn.com/v4/letter/t/cdc98d/32.png) [@tamisalex](https://discuss.elastic.co/u/tamisalex)\
**Post date:** [November 8, 2017, 10:27pm UTC](https://discuss.elastic.co/t/x-pack-pdf-report-generation-fails-kibana-5-5-2/106940/2 "2017-11-08T22:27:36Z")

</div>

{"type":"response","@timestamp":"2017-11-08T21:51:03Z","tags":[],"pid":24056,"method":"post","statusCode":200,"req":{"url":"/api/reporting/generate/printablePdf?jobParams=(objectType%3Adashboard%2CqueryString%3A'\_g%3D(refreshInterval%3A(display%3AOff%2Cpause%3A!!f%2Cvalue%3A0)%2Ctime%3A(from%3Anow-5y%2Cmode%3Aquick%2Cto%3Anow))%26\_a%3D(description%3A%2527Report%2BPrototype%2Bfor%2Bdynamic%2Btext%2Breports%2527%2Cfilters%3A!!()%2Coptions%3A(darkTheme%3A!!f)%2Cpanels%3A!!((col%3A1%2Cid%3Af5ddca30-41a2-11e7-9a3c-77d827be43ad%2CpanelIndex%3A5%2Crow%3A5%2Csize\_x%3A6%2Csize\_y%3A6%2Ctype%3Avisualization)%2C(col%3A7%2Cid%3A%252723587f50-419e-11e7-9a3c-77d827be43ad%2527%2CpanelIndex%3A7%2Crow%3A5%2Csize\_x%3A6%2Csize\_y%3A6%2Ctype%3Avisualization)%2C(col%3A1%2Cid%3A%252781b7c640-b9ea-11e7-a4c0-a1e4e0f541b8%2527%2CpanelIndex%3A8%2Crow%3A11%2Csize\_x%3A12%2Csize\_y%3A3%2Ctype%3Avisualization)%2C(col%3A7%2Cid%3A%252740880130-419f-11e7-9a3c-77d827be43ad%2527%2CpanelIndex%3A10%2Crow%3A14%2Csize\_x%3A6%2Csize\_y%3A4%2Ctype%3Avisualization)%2C(col%3A1%2Cid%3Afde7e660-6179-11e7-a679-f1d5f797a6b5%2CpanelIndex%3A11%2Crow%3A14%2Csize\_x%3A6%2Csize\_y%3A4%2Ctype%3Avisualization)%2C(col%3A1%2Cid%3A%25279ec45a00-b9ef-11e7-a943-21c6912d7e38%2527%2CpanelIndex%3A13%2Crow%3A18%2Csize\_x%3A12%2Csize\_y%3A3%2Ctype%3Avisualization)%2C(col%3A1%2Cid%3A%25275c10edc0-ba9b-11e7-8f53-65ee4724c36b%2527%2CpanelIndex%3A14%2Crow%3A1%2Csize\_x%3A12%2Csize\_y%3A4%2Ctype%3Avisualization))%2Cquery%3A(query\_string%3A(analyze\_wildcard%3A!!t%2Cquery%3ASupercapacitor))%2CtimeRestore%3A!!f%2Ctitle%3A%2527Report%2BDashboard%2527%2CuiState%3A(P-5%3A(mapCenter%3A!!(31.353636941500987%2C-4.21875)%2CmapZoom%3A1%2Cspy%3A(mode%3A(fill%3A!!f%2Cname%3A!!n)))%2CP-7%3A(spy%3A(mode%3A(fill%3A!!f%2Cname%3A!!n))%2Cvis%3A(legendOpen%3A!!t)))%2CviewMode%3Aview)'%2CsavedObjectId%3Aabd477c0-b9ef-11e7-a943-21c6912d7e38)","method":"post","headers":{"user-agent":"Mozilla/5.0 (X11; Ubuntu; Linux x86\_64; rv:56.0) Gecko/20100101 Firefox/56.0","accept":"application/json, text/plain, _/_","accept-language":"en-US,en;q=0.5","accept-encoding":"gzip, deflate, br","referer":"[https://localhost:5601/gmo/app/kibana","content-type":"application/json;charset=utf-8","kbn-version":"5.5.2","content-length":"2","connection":"keep-alive","x-forwarded-for":"127.0.0.1","x-forwarded-port":"59104","x-forwarded-proto":"https","host":"localhost:5603"},"remoteAddress":"127.0.0.1","userAgent":"127.0.0.1","referer":"https://localhost:5601/gmo/app/kibana"},"res":{"statusCode":200,"responseTime":40,"contentLength":9},"message":"POST](https://localhost:5601/gmo/app/kibana%22,%22content-type%22:%22application/json;charset=utf-8%22,%22kbn-version%22:%225.5.2%22,%22content-length%22:%222%22,%22connection%22:%22keep-alive%22,%22x-forwarded-for%22:%22127.0.0.1%22,%22x-forwarded-port%22:%2259104%22,%22x-forwarded-proto%22:%22https%22,%22host%22:%22localhost:5603%22%7D,%22remoteAddress%22:%22127.0.0.1%22,%22userAgent%22:%22127.0.0.1%22,%22referer%22:%22https://localhost:5601/gmo/app/kibana%22%7D,%22res%22:%7B%22statusCode%22:200,%22responseTime%22:40,%22contentLength%22:9%7D,%22message%22:%22POST) /api/reporting/generate/printablePdf?jobParams=(objectType%3Adashboard%2CqueryString%3A'\_g%3D(refreshInterval%3A(display%3AOff%2Cpause%3A!!f%2Cvalue%3A0)%2Ctime%3A(from%3Anow-5y%2Cmode%3Aquick%2Cto%3Anow))%26\_a%3D(description%3A%2527Report%2BPrototype%2Bfor%2Bdynamic%2Btext%2Breports%2527%2Cfilters%3A!!()%2Coptions%3A(darkTheme%3A!!f)%2Cpanels%3A!!((col%3A1%2Cid%3Af5ddca30-41a2-11e7-9a3c-77d827be43ad%2CpanelIndex%3A5%2Crow%3A5%2Csize\_x%3A6%2Csize\_y%3A6%2Ctype%3Avisualization)%2C(col%3A7%2Cid%3A%252723587f50-419e-11e7-9a3c-77d827be43ad%2527%2CpanelIndex%3A7%2Crow%3A5%2Csize\_x%3A6%2Csize\_y%3A6%2Ctype%3Avisualization)%2C(col%3A1%2Cid%3A%252781b7c640-b9ea-11e7-a4c0-a1e4e0f541b8%2527%2CpanelIndex%3A8%2Crow%3A11%2Csize\_x%3A12%2Csize\_y%3A3%2Ctype%3Avisualization)%2C(col%3A7%2Cid%3A%252740880130-419f-11e7-9a3c-77d827be43ad%2527%2CpanelIndex%3A10%2Crow%3A14%2Csize\_x%3A6%2Csize\_y%3A4%2Ctype%3Avisualization)%2C(col%3A1%2Cid%3Afde7e660-6179-11e7-a679-f1d5f797a6b5%2CpanelIndex%3A11%2Crow%3A14%2Csize\_x%3A6%2Csize\_y%3A4%2Ctype%3Avisualization)%2C(col%3A1%2Cid%3A%25279ec45a00-b9ef-11e7-a943-21c6912d7e38%2527%2CpanelIndex%3A13%2Crow%3A18%2Csize\_x%3A12%2Csize\_y%3A3%2Ctype%3Avisualization)%2C(col%3A1%2Cid%3A%25275c10edc0-ba9b-11e7-8f53-65ee4724c36b%2527%2CpanelIndex%3A14%2Crow%3A1%2Csize\_x%3A12%2Csize\_y%3A4%2Ctype%3Avisualization))%2Cquery%3A(query\_string%3A(analyze\_wildcard%3A!!t%2Cquery%3ASupercapacitor))%2CtimeRestore%3A!!f%2Ctitle%3A%2527Report%2BDashboard%2527%2CuiState%3A(P-5%3A(mapCenter%3A!!(31.353636941500987%2C-4.21875)%2CmapZoom%3A1%2Cspy%3A(mode%3A(fill%3A!!f%2Cname%3A!!n)))%2CP-7%3A(spy%3A(mode%3A(fill%3A!!f%2Cname%3A!!n))%2Cvis%3A(legendOpen%3A!!t)))%2CviewMode%3Aview)'%2CsavedObjectId%3Aabd477c0-b9ef-11e7-a943-21c6912d7e38) 200 40ms - 9.0B"}  
{"type":"log","@timestamp":"2017-11-08T21:51:04Z","tags":["reporting","esqueue","worker","debug"],"pid":24056,"message":"j9rki90m0ik8e89737852v4d - querying for outstanding jobs"}  
{"type":"log","@timestamp":"2017-11-08T21:51:04Z","tags":["reporting","esqueue","worker","debug"],"pid":24056,"message":"j9rki90m0ik8e89737852v4d - 1 outstanding jobs returned"}  
{"type":"log","@timestamp":"2017-11-08T21:51:04Z","tags":["reporting","esqueue","worker","debug"],"pid":24056,"message":"j9rki90m0ik8e89737852v4d - Claimed job j9rkwpbp0ik8e89737deya7u"}  
{"type":"log","@timestamp":"2017-11-08T21:51:04Z","tags":["reporting","esqueue","worker","debug"],"pid":24056,"message":"j9rki90m0ik8e89737852v4d - Starting job j9rkwpbp0ik8e89737deya7u"}  
{"type":"log","@timestamp":"2017-11-08T21:51:04Z","tags":["reporting","worker","debug"],"pid":24056,"message":"Printable PDF: Processing Printable PDF job"}  
{"type":"log","@timestamp":"2017-11-08T21:51:04Z","tags":["reporting","debug"],"pid":24056,"message":"fetching screenshot of [https://localhost:5603/gmo/app/kibana#/dashboard/abd477c0-b9ef-11e7-a943-21c6912d7e38?\_g=(time:(from:'2012-11-08T21:51:03.730Z',mode:absolute,to:'2017-11-08T21:51:03.731Z')](https://localhost:5603/gmo/app/kibana#/dashboard/abd477c0-b9ef-11e7-a943-21c6912d7e38?_g=(time:(from:'2012-11-08T21:51:03.730Z',mode:absolute,to:'2017-11-08T21:51:03.731Z')))&\_a=(description:'Report%20Prototype%20for%20dynamic%20text%20reports',filters:!(),options:(darkTheme:!f),panels:!((col:1,id:f5ddca30-41a2-11e7-9a3c-77d827be43ad,panelIndex:5,row:5,size\_x:6,size\_y:6,type:visualization),(col:7,id:'23587f50-419e-11e7-9a3c-77d827be43ad',panelIndex:7,row:5,size\_x:6,size\_y:6,type:visualization),(col:1,id:'81b7c640-b9ea-11e7-a4c0-a1e4e0f541b8',panelIndex:8,row:11,size\_x:12,size\_y:3,type:visualization),(col:7,id:'40880130-419f-11e7-9a3c-77d827be43ad',panelIndex:10,row:14,size\_x:6,size\_y:4,type:visualization),(col:1,id:fde7e660-6179-11e7-a679-f1d5f797a6b5,panelIndex:11,row:14,size\_x:6,size\_y:4,type:visualization),(col:1,id:'9ec45a00-b9ef-11e7-a943-21c6912d7e38',panelIndex:13,row:18,size\_x:12,size\_y:3,type:visualization),(col:1,id:'5c10edc0-ba9b-11e7-8f53-65ee4724c36b',panelIndex:14,row:1,size\_x:12,size\_y:4,type:visualization)),query:(query\_string:(analyze\_wildcard:!t,query:Supercapacitor)),timeRestore:!f,title:'Report%20Dashboard',uiState:(P-5:(mapCenter:!(31.353636941500987,-4.21875),mapZoom:1,spy:(mode:(fill:!f,name:!n))),P-7:(spy:(mode:(fill:!f,name:!n)),vis:(legendOpen:!t))),viewMode:view)"}

---

<div class="post-metadata">

**Author:** ![tamisalex](https://avatars.discourse-cdn.com/v4/letter/t/cdc98d/32.png) [@tamisalex](https://discuss.elastic.co/u/tamisalex)\
**Post date:** [November 8, 2017, 10:28pm UTC](https://discuss.elastic.co/t/x-pack-pdf-report-generation-fails-kibana-5-5-2/106940/3 "2017-11-08T22:28:22Z")

</div>

{"type":"response","@timestamp":"2017-11-08T21:51:05Z","tags":[],"pid":24056,"method":"get","statusCode":404,"req":{"url":"/gmo/app/kibana","method":"get","headers":{"accept":"application/json, text/plain, _/_","accept-language":"en-US,en;q=0.5","connection":"keep-alive","kbn-version":"5.5.2","referer":"[https://localhost:5601/gmo/app/kibana","user-agent":"Mozilla/5.0](https://localhost:5601/gmo/app/kibana%22,%22user-agent%22:%22Mozilla/5.0) (X11; Ubuntu; Linux x86\_64; rv:56.0) Gecko/20100101 Firefox/56.0","x-forwarded-for":"127.0.0.1","x-forwarded-port":"59104","x-forwarded-proto":"https","accept-encoding":"gzip, deflate","host":"localhost:5603"},"remoteAddress":"127.0.0.1","userAgent":"127.0.0.1","referer":"[https://localhost:5601/gmo/app/kibana"},"res":{"statusCode":404,"responseTime":5,"contentLength":9},"message":"GET](https://localhost:5601/gmo/app/kibana%22%7D,%22res%22:%7B%22statusCode%22:404,%22responseTime%22:5,%22contentLength%22:9%7D,%22message%22:%22GET) /gmo/app/kibana 404 5ms - 9.0B"}  
{"type":"response","@timestamp":"2017-11-08T21:51:09Z","tags":[],"pid":24056,"method":"get","statusCode":200,"req":{"url":"/api/reporting/jobs/list\_completed\_since?since=2017-11-08T21%3A34%3A23.297Z","method":"get","headers":{"user-agent":"Mozilla/5.0 (X11; Ubuntu; Linux x86\_64; rv:56.0) Gecko/20100101 Firefox/56.0","accept":"application/json, text/plain, _/_","accept-language":"en-US,en;q=0.5","accept-encoding":"gzip, deflate, br","referer":"[https://localhost:5601/gmo/app/kibana","kbn-system-api":"true","kbn-version":"5.5.2","connection":"keep-alive","x-forwarded-for":"127.0.0.1","x-forwarded-port":"59302","x-forwarded-proto":"https","host":"localhost:5603"},"remoteAddress":"127.0.0.1","userAgent":"127.0.0.1","referer":"https://localhost:5601/gmo/app/kibana"},"res":{"statusCode":200,"responseTime":7,"contentLength":9},"message":"GET](https://localhost:5601/gmo/app/kibana%22,%22kbn-system-api%22:%22true%22,%22kbn-version%22:%225.5.2%22,%22connection%22:%22keep-alive%22,%22x-forwarded-for%22:%22127.0.0.1%22,%22x-forwarded-port%22:%2259302%22,%22x-forwarded-proto%22:%22https%22,%22host%22:%22localhost:5603%22%7D,%22remoteAddress%22:%22127.0.0.1%22,%22userAgent%22:%22127.0.0.1%22,%22referer%22:%22https://localhost:5601/gmo/app/kibana%22%7D,%22res%22:%7B%22statusCode%22:200,%22responseTime%22:7,%22contentLength%22:9%7D,%22message%22:%22GET) /api/reporting/jobs/list\_completed\_since?since=2017-11-08T21%3A34%3A23.297Z 200 7ms - 9.0B"}  
{"type":"response","@timestamp":"2017-11-08T21:51:21Z","tags":[],"pid":24056,"method":"get","statusCode":200,"req":{"url":"/api/reporting/jobs/list\_completed\_since?since=2017-11-08T21%3A34%3A23.297Z","method":"get","headers":{"user-agent":"Mozilla/5.0 (X11; Ubuntu; Linux x86\_64; rv:56.0) Gecko/20100101 Firefox/56.0","accept":"application/json, text/plain, _/_","accept-language":"en-US,en;q=0.5","accept-encoding":"gzip, deflate, br","referer":"[https://localhost:5601/gmo/app/kibana","kbn-system-api":"true","kbn-version":"5.5.2","connection":"keep-alive","x-forwarded-for":"127.0.0.1","x-forwarded-port":"59712","x-forwarded-proto":"https","host":"localhost:5603"},"remoteAddress":"127.0.0.1","userAgent":"127.0.0.1","referer":"https://localhost:5601/gmo/app/kibana"},"res":{"statusCode":200,"responseTime":6,"contentLength":9},"message":"GET](https://localhost:5601/gmo/app/kibana%22,%22kbn-system-api%22:%22true%22,%22kbn-version%22:%225.5.2%22,%22connection%22:%22keep-alive%22,%22x-forwarded-for%22:%22127.0.0.1%22,%22x-forwarded-port%22:%2259712%22,%22x-forwarded-proto%22:%22https%22,%22host%22:%22localhost:5603%22%7D,%22remoteAddress%22:%22127.0.0.1%22,%22userAgent%22:%22127.0.0.1%22,%22referer%22:%22https://localhost:5601/gmo/app/kibana%22%7D,%22res%22:%7B%22statusCode%22:200,%22responseTime%22:6,%22contentLength%22:9%7D,%22message%22:%22GET) /api/reporting/jobs/list\_completed\_since?since=2017-11-08T21%3A34%3A23.297Z 200 6ms - 9.0B"}  
{"type":"response","@timestamp":"2017-11-08T21:51:33Z","tags":[],"pid":24056,"method":"get","statusCode":200,"req":{"url":"/api/reporting/jobs/list\_completed\_since?since=2017-11-08T21%3A34%3A23.297Z","method":"get","headers":{"user-agent":"Mozilla/5.0 (X11; Ubuntu; Linux x86\_64; rv:56.0) Gecko/20100101 Firefox/56.0","accept":"application/json, text/plain, _/_","accept-language":"en-US,en;q=0.5","accept-encoding":"gzip, deflate, br","referer":"[https://localhost:5601/gmo/app/kibana","kbn-system-api":"true","kbn-version":"5.5.2","connection":"keep-alive","x-forwarded-for":"127.0.0.1","x-forwarded-port":"60218","x-forwarded-proto":"https","host":"localhost:5603"},"remoteAddress":"127.0.0.1","userAgent":"127.0.0.1","referer":"https://localhost:5601/gmo/app/kibana"},"res":{"statusCode":200,"responseTime":6,"contentLength":9},"message":"GET](https://localhost:5601/gmo/app/kibana%22,%22kbn-system-api%22:%22true%22,%22kbn-version%22:%225.5.2%22,%22connection%22:%22keep-alive%22,%22x-forwarded-for%22:%22127.0.0.1%22,%22x-forwarded-port%22:%2260218%22,%22x-forwarded-proto%22:%22https%22,%22host%22:%22localhost:5603%22%7D,%22remoteAddress%22:%22127.0.0.1%22,%22userAgent%22:%22127.0.0.1%22,%22referer%22:%22https://localhost:5601/gmo/app/kibana%22%7D,%22res%22:%7B%22statusCode%22:200,%22responseTime%22:6,%22contentLength%22:9%7D,%22message%22:%22GET) /api/reporting/jobs/list\_completed\_since?since=2017-11-08T21%3A34%3A23.297Z 200 6ms - 9.0B"}  
{"type":"log","@timestamp":"2017-11-08T21:51:34Z","tags":["reporting","esqueue","worker","debug"],"pid":24056,"message":"j9rki90m0ik8e89737852v4d - Timeout processing job j9rkwpbp0ik8e89737deya7u"}  
{"type":"log","@timestamp":"2017-11-08T21:51:34Z","tags":["reporting","esqueue","worker","debug"],"pid":24056,"message":"j9rki90m0ik8e89737852v4d - Timeout on job j9rkwpbp0ik8e89737deya7u"}  
{"type":"log","@timestamp":"2017-11-08T21:51:34Z","tags":["reporting","worker","debug"],"pid":24056,"message":"Printable PDF: Job timeout exceeded: (j9rkwpbp0ik8e89737deya7u)"}  
{"type":"log","@timestamp":"2017-11-08T21:51:35Z","tags":["reporting","debug"],"pid":24056,"level":"error","message":"Kibana took too long to load - Timeout exceeded (30000)","error":{"message":"Kibana took too long to load - Timeout exceeded (30000)","name":"Error","stack":"Error: Kibana took too long to load - Timeout exceeded (30000)\n at waitForSelector.catch.err (/home/atam6/kibana/plugins/x-pack/plugins/reporting/server/lib/phantom/index.js:131:23)\n at tryCatcher (/home/atam6/kibana/plugins/x-pack/node\_modules/bluebird/js/release/util.js:11:23)\n at Promise.\_settlePromiseFromHandler (/home/atam6/kibana/plugins/x-pack/node\_modules/bluebird/js/release/promise.js:489:31)\n at Promise.\_settlePromise (/home/atam6/kibana/plugins/x-pack/node\_modules/bluebird/js/release/promise.js:546:18)\n at Promise.\_settlePromise0 (/home/atam6/kibana/plugins/x-pack/node\_modules/bluebird/js/release/promise.js:591:10)\n at Promise.\_settlePromises (/home/atam6/kibana/plugins/x-pack/node\_modules/bluebird/js/release/promise.js:670:18)\n at Async.\_drainQueue (/home/atam6/kibana/plugins/x-pack/node\_modules/bluebird/js/release/async.js:125:16)\n at Async.\_drainQueues (/home/atam6/kibana/plugins/x-pack/node\_modules/bluebird/js/release/async.js:135:10)\n at Immediate.Async.drainQueues (/home/atam6/kibana/plugins/x-pack/node\_modules/bluebird/js/release/async.js:16:14)\n at runCallback (timers.js:781:20)\n at tryOnImmediate (timers.js:743:5)\n at processImmediate [as \_immediateCallback] (timers.js:714:5)"}}

---

<div class="post-metadata">

**Author:** ![tamisalex](https://avatars.discourse-cdn.com/v4/letter/t/cdc98d/32.png) [@tamisalex](https://discuss.elastic.co/u/tamisalex)\
**Post date:** [November 8, 2017, 10:33pm UTC](https://discuss.elastic.co/t/x-pack-pdf-report-generation-fails-kibana-5-5-2/106940/4 "2017-11-08T22:33:02Z")

</div>

{"type":"log","@timestamp":"2017-11-08T21:51:37Z","tags":["reporting","esqueue","worker","debug"],"pid":24056,"message":"j9rki90m0ik8e89737852v4d - querying for outstanding jobs"}  
{"type":"log","@timestamp":"2017-11-08T21:51:37Z","tags":["reporting","esqueue","worker","debug"],"pid":24056,"message":"j9rki90m0ik8e89737852v4d - 1 outstanding jobs returned"}  
{"type":"log","@timestamp":"2017-11-08T21:51:37Z","tags":["reporting","esqueue","worker","debug"],"pid":24056,"message":"j9rki90m0ik8e89737852v4d - Claimed job j9rkwpbp0ik8e89737deya7u"}  
{"type":"log","@timestamp":"2017-11-08T21:51:37Z","tags":["reporting","esqueue","worker","debug"],"pid":24056,"message":"j9rki90m0ik8e89737852v4d - Starting job j9rkwpbp0ik8e89737deya7u"}  
{"type":"log","@timestamp":"2017-11-08T21:51:37Z","tags":["reporting","worker","debug"],"pid":24056,"message":"Printable PDF: Processing Printable PDF job"}  
{"type":"log","@timestamp":"2017-11-08T21:51:37Z","tags":["reporting","debug"],"pid":24056,"message":"fetching screenshot of [https://localhost:5603/gmo/app/kibana#/dashboard/abd477c0-b9ef-11e7-a943-21c6912d7e38?\_g=(time:(from:'2012-11-08T21:51:03.730Z',mode:absolute,to:'2017-11-08T21:51:03.731Z')](https://localhost:5603/gmo/app/kibana#/dashboard/abd477c0-b9ef-11e7-a943-21c6912d7e38?_g=(time:(from:'2012-11-08T21:51:03.730Z',mode:absolute,to:'2017-11-08T21:51:03.731Z')))&\_a=(description:'Report%20Prototype%20for%20dynamic%20text%20reports',filters:!(),options:(darkTheme:!f),panels:!((col:1,id:f5ddca30-41a2-11e7-9a3c-77d827be43ad,panelIndex:5,row:5,size\_x:6,size\_y:6,type:visualization),(col:7,id:'23587f50-419e-11e7-9a3c-77d827be43ad',panelIndex:7,row:5,size\_x:6,size\_y:6,type:visualization),(col:1,id:'81b7c640-b9ea-11e7-a4c0-a1e4e0f541b8',panelIndex:8,row:11,size\_x:12,size\_y:3,type:visualization),(col:7,id:'40880130-419f-11e7-9a3c-77d827be43ad',panelIndex:10,row:14,size\_x:6,size\_y:4,type:visualization),(col:1,id:fde7e660-6179-11e7-a679-f1d5f797a6b5,panelIndex:11,row:14,size\_x:6,size\_y:4,type:visualization),(col:1,id:'9ec45a00-b9ef-11e7-a943-21c6912d7e38',panelIndex:13,row:18,size\_x:12,size\_y:3,type:visualization),(col:1,id:'5c10edc0-ba9b-11e7-8f53-65ee4724c36b',panelIndex:14,row:1,size\_x:12,size\_y:4,type:visualization)),query:(query\_string:(analyze\_wildcard:!t,query:Supercapacitor)),timeRestore:!f,title:'Report%20Dashboard',uiState:(P-5:(mapCenter:!(31.353636941500987,-4.21875),mapZoom:1,spy:(mode:(fill:!f,name:!n))),P-7:(spy:(mode:(fill:!f,name:!n)),vis:(legendOpen:!t))),viewMode:view)"}  
{"type":"response","@timestamp":"2017-11-08T21:51:38Z","tags":[],"pid":24056,"method":"get","statusCode":404,"req":{"url":"/gmo/app/kibana","method":"get","headers":{"accept":"application/json, text/plain, _/_","accept-language":"en-US,en;q=0.5","connection":"keep-alive","kbn-version":"5.5.2","referer":"[https://localhost:5601/gmo/app/kibana","user-agent":"Mozilla/5.0](https://localhost:5601/gmo/app/kibana%22,%22user-agent%22:%22Mozilla/5.0) (X11; Ubuntu; Linux x86\_64; rv:56.0) Gecko/20100101 Firefox/56.0","x-forwarded-for":"127.0.0.1","x-forwarded-port":"59104","x-forwarded-proto":"https","accept-encoding":"gzip, deflate","host":"localhost:5603"},"remoteAddress":"127.0.0.1","userAgent":"127.0.0.1","referer":"[https://localhost:5601/gmo/app/kibana"},"res":{"statusCode":404,"responseTime":5,"contentLength":9},"message":"GET](https://localhost:5601/gmo/app/kibana%22%7D,%22res%22:%7B%22statusCode%22:404,%22responseTime%22:5,%22contentLength%22:9%7D,%22message%22:%22GET) /gmo/app/kibana 404 5ms - 9.0B"}  
{"type":"response","@timestamp":"2017-11-08T21:51:46Z","tags":[],"pid":24056,"method":"get","statusCode":200,"req":{"url":"/api/reporting/jobs/list\_completed\_since?since=2017-11-08T21%3A34%3A23.297Z","method":"get","headers":{"user-agent":"Mozilla/5.0 (X11; Ubuntu; Linux x86\_64; rv:56.0) Gecko/20100101 Firefox/56.0","accept":"application/json, text/plain, _/_","accept-language":"en-US,en;q=0.5","accept-encoding":"gzip, deflate, br","referer":"[https://localhost:5601/gmo/app/kibana","kbn-system-api":"true","kbn-version":"5.5.2","connection":"keep-alive","x-forwarded-for":"127.0.0.1","x-forwarded-port":"60590","x-forwarded-proto":"https","host":"localhost:5603"},"remoteAddress":"127.0.0.1","userAgent":"127.0.0.1","referer":"https://localhost:5601/gmo/app/kibana"},"res":{"statusCode":200,"responseTime":6,"contentLength":9},"message":"GET](https://localhost:5601/gmo/app/kibana%22,%22kbn-system-api%22:%22true%22,%22kbn-version%22:%225.5.2%22,%22connection%22:%22keep-alive%22,%22x-forwarded-for%22:%22127.0.0.1%22,%22x-forwarded-port%22:%2260590%22,%22x-forwarded-proto%22:%22https%22,%22host%22:%22localhost:5603%22%7D,%22remoteAddress%22:%22127.0.0.1%22,%22userAgent%22:%22127.0.0.1%22,%22referer%22:%22https://localhost:5601/gmo/app/kibana%22%7D,%22res%22:%7B%22statusCode%22:200,%22responseTime%22:6,%22contentLength%22:9%7D,%22message%22:%22GET) /api/reporting/jobs/list\_completed\_since?since=2017-11-08T21%3A34%3A23.297Z 200 6ms - 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:** [November 13, 2017, 3:12pm UTC](https://discuss.elastic.co/t/x-pack-pdf-report-generation-fails-kibana-5-5-2/106940/5 "2017-11-13T15:12:29Z")

</div>

@tamisalex are you able to load Kibana using [https://localhost:5603/gmo/app/kibana](https://localhost:5603/gmo/app/kibana)? Would you mind describing how you're running Kibana and your installation method?

---

<div class="post-metadata">

**Author:** ![tamisalex](https://avatars.discourse-cdn.com/v4/letter/t/cdc98d/32.png) [@tamisalex](https://discuss.elastic.co/u/tamisalex)\
**Post date:** [November 13, 2017, 3:54pm UTC](https://discuss.elastic.co/t/x-pack-pdf-report-generation-fails-kibana-5-5-2/106940/6 "2017-11-13T15:54:56Z")

</div>

When I hit localhost:5603 I get a 404 error.

I'm developing a plugin so I start from the plugin directory with npm install && npm start.

---

<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:** [November 13, 2017, 4:11pm UTC](https://discuss.elastic.co/t/x-pack-pdf-report-generation-fails-kibana-5-5-2/106940/7 "2017-11-13T16:11:24Z")

</div>

If you're using `npm start` it's putting Kibana behind a reverse-proxy implicitly, so you'll need to set `xpack.reporting.kibanaServer.port: 5601` in your `kibana.yml`.

---

<div class="post-metadata">

**Author:** ![tamisalex](https://avatars.discourse-cdn.com/v4/letter/t/cdc98d/32.png) [@tamisalex](https://discuss.elastic.co/u/tamisalex)\
**Post date:** [November 13, 2017, 5:43pm UTC](https://discuss.elastic.co/t/x-pack-pdf-report-generation-fails-kibana-5-5-2/106940/8 "2017-11-13T17:43:38Z")

</div>

Hi Brandon,

That worked however I'm receiving another error.

> server log [17:40:27.926] [debug][reporting][worker] Printable PDF: Processing Printable PDF job  
> server log [17:40:27.935] [debug][reporting] fetching screenshot of [https://localhost:5601/aqz/app/kibana#/dashboard/abd477c0-b9ef-11e7-a943-21c6912d7e38?\_g=(time:(from:'2012-11-13T17:40:27.519Z',mode:absolute,to:'2017-11-13T17:40:27.519Z')](https://localhost:5601/aqz/app/kibana#/dashboard/abd477c0-b9ef-11e7-a943-21c6912d7e38?_g=(time:(from:'2012-11-13T17:40:27.519Z',mode:absolute,to:'2017-11-13T17:40:27.519Z')))&\_a=(description:'Report%20Prototype%20for%20dynamic%20text%20reports',filters:!(),options:(darkTheme:!f),panels:!((col:1,id:f5ddca30-41a2-11e7-9a3c-77d827be43ad,panelIndex:5,row:5,size\_x:6,size\_y:6,type:visualization),(col:7,id:'23587f50-419e-11e7-9a3c-77d827be43ad',panelIndex:7,row:5,size\_x:6,size\_y:6,type:visualization),(col:1,id:'81b7c640-b9ea-11e7-a4c0-a1e4e0f541b8',panelIndex:8,row:11,size\_x:12,size\_y:3,type:visualization),(col:7,id:'40880130-419f-11e7-9a3c-77d827be43ad',panelIndex:10,row:14,size\_x:6,size\_y:4,type:visualization),(col:1,id:fde7e660-6179-11e7-a679-f1d5f797a6b5,panelIndex:11,row:14,size\_x:6,size\_y:4,type:visualization),(col:1,id:'9ec45a00-b9ef-11e7-a943-21c6912d7e38',panelIndex:13,row:18,size\_x:12,size\_y:3,type:visualization),(col:1,id:'5c10edc0-ba9b-11e7-8f53-65ee4724c36b',panelIndex:14,row:1,size\_x:12,size\_y:4,type:visualization)),query:(query\_string:(analyze\_wildcard:!t,query:Supercapacitor)),timeRestore:!f,title:'Report%20Dashboard',uiState:(P-5:(mapCenter:!(31.353636941500987,-4.21875),mapZoom:1,spy:(mode:(fill:!f,name:!n))),P-7:(spy:(mode:(fill:!f,name:!n)),vis:(legendOpen:!t))),viewMode:view)  
> server log [17:40:29.690] [debug][phantomConsole][reporting] INFO: 2017-11-13T17:40:29Z  
> Adding connection to [https://localhost:5601/aqz/es\_admin](https://localhost:5601/aqz/es_admin)
> 
> server log [17:40:29.691] [debug][phantomConsole][reporting] INFO: 2017-11-13T17:40:29Z  
> Adding connection to [https://localhost:5601/aqz/elasticsearch](https://localhost:5601/aqz/elasticsearch)
> 
> server log [17:40:30.977] [debug][phantomConsole][reporting] setting active api to [es\_5\_0]  
> server log [17:40:31.478] [debug][phantomConsole][reporting] complete in 8.86ms  
> server log [17:40:31.506] [debug][phantomConsole][reporting] complete in 6.71ms  
> server log [17:40:32.456] [debug][phantomConsole][reporting] complete in 30.26ms  
> server log [17:40:32.768] [debug][phantomConsole][reporting] complete in 1.98ms  
> server log [17:40:52.095] [debug][reporting] Error: Timeout exceeded (20000)  
> at Timeout.waitForCheck [as \_onTimeout] (/home/atam6/kibana/plugins/x-pack/plugins/reporting/server/lib/phantom/index.js:311:29)  
> at ontimeout (timers.js:469:11)  
> at tryOnTimeout (timers.js:304:5)  
> at Timer.listOnTimeout (timers.js:264:5)  
> server log [17:40:52.096] [debug][esqueue][reporting][worker] j9ygqnlt05pze89737f76aaj - Failure occurred on job j9yh5on305pze897371odcie: Error: Timeout exceeded (20000)  
> server log [17:40:52.096] [debug][reporting][worker] Printable PDF: Worker error: (j9yh5on305pze897371odcie)

I've tried changing xpack.reporting.queue.timeout: 90000

Thanks for the help!

---

<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:** [November 13, 2017, 5:58pm UTC](https://discuss.elastic.co/t/x-pack-pdf-report-generation-fails-kibana-5-5-2/106940/9 "2017-11-13T17:58:07Z")

</div>

@tamisalex which version of Kibana are you running, and could you try generating a report without the Tilemap visualization to see if it works then?

---

<div class="post-metadata">

**Author:** ![tamisalex](https://avatars.discourse-cdn.com/v4/letter/t/cdc98d/32.png) [@tamisalex](https://discuss.elastic.co/u/tamisalex)\
**Post date:** [November 13, 2017, 9:11pm UTC](https://discuss.elastic.co/t/x-pack-pdf-report-generation-fails-kibana-5-5-2/106940/10 "2017-11-13T21:11:08Z")

</div>

I'm using kibana 5.5.2.

I ran report generation on a pie chart and it worked.

However I have a custom plugin that displays text in this format:

```
<div ng-controller="Controller">
	<h1>{{title}}</h1>
	<p>{{summary}}</p>
	<p><a href={{link}}>{{link}}</p>
</div>

```

Its not generating a report for this. Do you have some tips for it to generate or can you point me to some documentation to whats required to get viz to be able to exported?

Thanks again! You saved me hours!

---

<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:** [November 13, 2017, 9:36pm UTC](https://discuss.elastic.co/t/x-pack-pdf-report-generation-fails-kibana-5-5-2/106940/11 "2017-11-13T21:36:43Z")

</div>

Hey @tamisalex we haven't formalized the method in which Reporting integrates with all of the visualizations, as it's currently in-flux and will likely change in the future. Once this becomes more stable, we'll document it as such.

With that being said, I can describe how the current process works. Reporting looks for elements with the `data-shared-item` attribute added to them, to determine that a screenshot of them should be taken. Once those items are located, it uses a second `render-counter` attribute to determine when the Visualization itself is done rendering, and if this value is \> 0 or "disabled" it'll consider it to be "done rendering". Then it uses the optional `data-title` and `data-description` attributes to determine the title/description to include in the PDF. The following element would be included in the PDF with a title and description:

```auto
<div data-shared-item render-counter="1" data-title="A title" data-description="A description">
  Our content.
</div>

```

---

<div class="post-metadata">

**Author:** ![tamisalex](https://avatars.discourse-cdn.com/v4/letter/t/cdc98d/32.png) [@tamisalex](https://discuss.elastic.co/u/tamisalex)\
**Post date:** [November 14, 2017, 8:08pm UTC](https://discuss.elastic.co/t/x-pack-pdf-report-generation-fails-kibana-5-5-2/106940/12 "2017-11-14T20:08:21Z")

</div>

I can't get this to work. i'm getting There was an error generating your report for the "Wiki Vis" visualization: Error: Timeout exceeded. Perhaps I'm doing it wrong?

I'm placing the code in your above post in my test\_vis.html in the public folder of my plugin.

I examined kibana's core plugins (markdown and table\_vis) but they don't have data-shared-item or render-counter in their xxx\_vis.html files.

---

<div class="post-metadata">

**Author:** ![tamisalex](https://avatars.discourse-cdn.com/v4/letter/t/cdc98d/32.png) [@tamisalex](https://discuss.elastic.co/u/tamisalex)\
**Post date:** [December 1, 2017, 12:17am UTC](https://discuss.elastic.co/t/x-pack-pdf-report-generation-fails-kibana-5-5-2/106940/13 "2017-12-01T00:17:43Z")

</div>

For future people who come across:

npm start: starts kibana with localhost:5601/afw/app/kibana  
./bin/kibana: starts kibana with localhost:5601/app/kibana/...

I believe the afw or random three char string indicates kibana is running behind a reverse proxy

so if your running npm start you need in your kibana.dev.yml:

xpack.reporting.kibanaServer.protocol: http  
xpack.reporting.kibanaServer.port: 5601

in your kibana.yml, you can leave this out.

---

<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:** [December 29, 2017, 12:18am UTC](https://discuss.elastic.co/t/x-pack-pdf-report-generation-fails-kibana-5-5-2/106940/14 "2017-12-29T00:18:02Z")

</div>

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