X-Pack PDF Report Generation fails - Kibana 5.5.2

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 (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 /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/"
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

{"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 /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'))&_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: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 (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 /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 /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 /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 /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)"}}

{"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'))&_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 (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 /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 /api/reporting/jobs/list_completed_since?since=2017-11-08T21%3A34%3A23.297Z 200 6ms - 9.0B"}

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

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.

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.

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'))&_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

server log [17:40:29.691] [debug][phantomConsole][reporting] INFO: 2017-11-13T17:40:29Z
Adding connection to 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!

@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?

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!

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:

<div data-shared-item render-counter="1" data-title="A title" data-description="A description">
  Our content.
</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.

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.

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