Hi I'm trying to get reporting to work in kibana without luck.
"There was an error generating your report for the "MyVis" visualization: Max attempts reached (3)"
Using this thread I managed to get logging working and rule out some issues... Kibana 5.2 +x-pack error when generating reports - #56 by Apache_HOU
Basically when I try to curl http://localhost:5601 I get a 302 with redirect to login page. I would assume that the user would follow what I'm logged into kibana with, but maybe not? Can I config user/pass for how kibana should connect to itself. No sign of it here: Reporting settings in Kibana | Kibana Guide [8.11] | Elastic
In the logs I see:
{"type":"log","@timestamp":"2017-04-27T18:07:46Z","tags":["reporting","debug","phantomConsole"],"pid":340,"message":"complete in 229.61ms"}
{"type":"log","@timestamp":"2017-04-27T18:08:12Z","tags":["reporting","worker","debug"],"pid":340,"message":"printable_pdf: Job timeout exceeded: (j20q1nze009g68bbd4axsuhq)"}
{"type":"log","@timestamp":"2017-04-27T18:08:14Z","tags":["reporting","debug"],"pid":340,"message":"Screenshot failed Kibana took too long to load - Timeout exceeded (30000)"}
{"type":"log","@timestamp":"2017-04-27T18:08:15Z","tags":["reporting","worker","debug"],"pid":340,"message":"printable_pdf: Worker error: (undefined)"}
{"type":"log","@timestamp":"2017-04-27T18:22:40Z","tags":["reporting","debug"],"pid":1895,"message":"Phantom installed at /var/lib/kibana/phantomjs-2.1.1-linux-x86_64/bin/phantomjs"}
{"type":"log","@timestamp":"2017-04-27T18:22:40Z","tags":["reporting","debug"],"pid":1895,"message":"Screenshot concurrency: 8"}
{"type":"log","@timestamp":"2017-04-27T18:22:40Z","tags":["reporting","worker","debug"],"pid":1895,"message":"printable_pdf: Registering printable_pdf worker"}
{"type":"log","@timestamp":"2017-04-27T18:23:34Z","tags":["reporting","debug"],"pid":1895,"message":"1 saved object(s) to process"}
{"type":"log","@timestamp":"2017-04-27T18:24:07Z","tags":["reporting","worker","debug"],"pid":1895,"message":"Converting 1 saved object(s) to printable_pdf"}
{"type":"log","@timestamp":"2017-04-27T18:24:07Z","tags":["reporting","debug"],"pid":1895,"message":"fetching screenshot of http://localhost:5601/app/kibana#/visualize/edit/f0452120-1dc3-11e7-a9b3-f9ecc71b9f18?_g=()&_a=(filters:!(),linked:!f,query:(query_string:(analyze_wildcard:!t,query:'application:abcapp%20AND%20abcapp.call.request.method.raw:GET')),uiState:(),vis:(aggs:!((enabled:!t,id:'1',params:(),schema:metric,type:count),(enabled:!t,id:'2',params:(customInterval:'2h',extended_bounds:(),field:'@timestamp',interval:auto,min_doc_count:1),schema:segment,type:date_histogram),(enabled:!t,id:'3',params:(field:jfox.call.request.handler.signature.raw,order:desc,orderBy:'1',size:20),schema:group,type:terms)),listeners:(),params:(addLegend:!t,addTimeMarker:!f,addTooltip:!t,defaultYExtents:!f,drawLinesBetweenPoints:!t,interpolate:linear,legendPosition:right,radiusRatio:9,scale:linear,setYExtents:!f,showCircles:!t,times:!()),title:'JFox%20-%20Request%20handler%20(read)',type:line))"}
{"type":"log","@timestamp":"2017-04-27T18:24:10Z","tags":["reporting","debug","phantomConsole"],"pid":1895,"message":"INFO: 2017-04-27T18:24:10Z\n Adding connection to http://localhost:5601/es_admin\n\n"}
{"type":"log","@timestamp":"2017-04-27T18:24:10Z","tags":["reporting","debug","phantomConsole"],"pid":1895,"message":"INFO: 2017-04-27T18:24:10Z\n Adding connection to http://localhost:5601/elasticsearch\n\n"}
{"type":"log","@timestamp":"2017-04-27T18:24:10Z","tags":["reporting","debug","phantomConsole"],"pid":1895,"message":"setting active api to [es_5_0]"}
{"type":"log","@timestamp":"2017-04-27T18:24:11Z","tags":["reporting","debug","phantomConsole"],"pid":1895,"message":"Index Patterns: index pattern set to logstash-syslog-*"}
{"type":"log","@timestamp":"2017-04-27T18:24:11Z","tags":["reporting","debug","phantomConsole"],"pid":1895,"message":"complete in 193.52ms"}
{"type":"log","@timestamp":"2017-04-27T18:24:37Z","tags":["reporting","worker","debug"],"pid":1895,"message":"printable_pdf: Job timeout exceeded: (j20qmrmf01gn68bbd42k1zt8)"}
{"type":"log","@timestamp":"2017-04-27T18:24:38Z","tags":["reporting","debug"],"pid":1895,"message":"Screenshot failed Kibana took too long to load - Timeout exceeded (30000)"}
I've set xpack.reporting.kibanaServer.hostname: localhost
Curiously I don't see any access logs that indicate that kibana has attempted to fetch this url in /var/log/kibana/kibana.stdout