Cannot generate report in Kibana

Hi

I have Xpack installed on ELK 5.6 but unable to generate report . When i try to generate report i get the following error "There was an error generating your report for the "1" dashboard: HeadlessError: Request() error evaluating createPage() call: Error: connect ECONNREFUSED" I have libfreetype6, libfontconfig1,libxrender1 already installed and i am logging in using the default x-pack username and password. I tried to find reporting setting in kibana.yml but there is none.

I just downloaded 5.6 and I was able to generate a report successfully on the dashboard I had created. Logs looked clean as well. Can you provide more details like screenshot, detailed steps, any special environment setting like proxy etc ?

Thanks
Rashmi

There is no special environment ELK is running on the single server instance.

My first guess was there might be a firewall which is blocking access to the port that Kibana is trying to talk to PhantomJS using. Pls set logging.verbose: true in your kibana.yml and trying to generate the report again and attaching the logs.

More logs would be helpful.

Thanks
Rashmi

I have uploaded the Kibana logs here ---- https://drive.google.com/open?id=1IrHDuhJB1Cog3NdvUj43eWZEEuMMSsjB

Hey @imortalsolitude Reporting uses a headless browser (PhantomJS) to create the actual screenshots, and the communication between Kibana and PhantomJS occurs over a random port. Could you try disabling your firewall to see if it's blocking communication between Kibana and PhantomJS?

@Brandon_Kobel Firewall was disabled during installation and it it still disabled checked iptabled for any exclusion but found none.

This seems really strange. Can you download everything fresh and reinstall again.

Thanks
Rashmi

Hi There,

Im getting the same error. Is there a fix available for this yet?

log [09:46:57.396] [debug][esqueue][job][reporting] jauvdckl084a363d0d50dwf7 - Job created in index .reporting-2017.12.03
log [09:46:57.404] [debug][esqueue][job][reporting] jauvdckl084a363d0d50dwf7 - Job index refreshed .reporting-2017.12.03
log [09:46:57.405] [debug][reporting] Saved object to process
respons [09:46:57.412] POST /api/reporting/generate/printablePdf?jobParams=(objectType%3Avisualization%2CqueryString%3A'_g%3D(refreshInterval%3A(display%3AOff%2Cpause%3A!!f%2Cvalue%3A0)%2Ctime%3A(from%3Anow-7d%2Cmode%3Aquick%2Cto%3Anow))%26_a%3D(filters%3A!!((%2527%24state%2527%3A(store%3AappState)%2Cmeta%3A(alias%3A!!n%2Cdisabled%3A!!f%2Cindex%3AAWAmS6Kb8KtH8uP_9wBt%2Ckey%3Abillable.keyword%2Cnegate%3A!!f%2Ctype%3Aphrase%2Cvalue%3ALeave)%2Cquery%3A(match%3A(billable.keyword%3A(query%3ALeave%2Ctype%3Aphrase)))))%2Clinked%3A!!f%2Cquery%3A(match_all%3A())%2CuiState%3A()%2Cvis%3A(aggs%3A!!((enabled%3A!!t%2Cid%3A%25271%2527%2Cparams%3A(customLabel%3A%2527Number%2Bof%2BPeople%2Bon%2BLeave%2527)%2Cschema%3Ametric%2Ctype%3Acount)%2C(enabled%3A!!t%2Cid%3A%25272%2527%2Cparams%3A(customInterval%3A%25272h%2527%2CcustomLabel%3ADay%2Cextended_bounds%3A()%2Cfield%3Atime_logged%2Cinterval%3Ad%2Cmin_doc_count%3A1)%2Cschema%3Asegment%2Ctype%3Adate_histogram))%2Clisteners%3A()%2Cparams%3A(addLegend%3A!!t%2CaddTimeMarker%3A!!f%2CaddTooltip%3A!!t%2CcategoryAxes%3A!!((id%3ACategoryAxis-1%2Clabels%3A(rotate%3A90%2Cshow%3A!!t%2Ctruncate%3A100)%2Cposition%3Abottom%2Cscale%3A(type%3Alinear)%2Cshow%3A!!t%2Cstyle%3A()%2Ctitle%3A(text%3ADay)%2Ctype%3Acategory))%2Cgrid%3A(categoryLines%3A!!f%2Cstyle%3A(color%3A%2523eee)%2CvalueAxis%3AValueAxis-1)%2ClegendPosition%3Aright%2CseriesParams%3A!!((data%3A(id%3A%25271%2527%2Clabel%3A%2527Number%2Bof%2BPeople%2Bon%2BLeave%2527)%2CdrawLinesBetweenPoints%3A!!t%2Cmode%3Anormal%2Cshow%3Atrue%2CshowCircles%3A!!t%2Ctype%3Aline%2CvalueAxis%3AValueAxis-1))%2Ctimes%3A!!()%2Ctype%3Aline%2CvalueAxes%3A!!((id%3AValueAxis-1%2Clabels%3A(filter%3A!!f%2Crotate%3A0%2Cshow%3A!!t%2Ctruncate%3A100)%2Cname%3ALeftAxis-1%2Cposition%3Aleft%2Cscale%3A(mode%3Anormal%2Ctype%3Alinear)%2Cshow%3A!!t%2Cstyle%3A()%2Ctitle%3A(text%3A%2527Number%2Bof%2BPeople%2Bon%2BLeave%2527)%2Ctype%3Avalue)))%2Ctitle%3A%2527Leave%2BTaken%2527%2Ctype%3Aline))'%2CsavedObjectId%3AAWAmddEF8KtH8uP_9yyO) 200 77ms - 9.0B
log [09:46:58.007] [debug][esqueue][reporting][worker] jauv3obo084a363d0dg43av6 - querying for outstanding jobs
log [09:46:58.015] [debug][esqueue][reporting][worker] jauv3obo084a363d0dg43av6 - 1 outstanding jobs returned
log [09:46:58.025] [debug][esqueue][reporting][worker] jauv3obo084a363d0dg43av6 - Claimed job jauvdckl084a363d0d50dwf7
log [09:46:58.025] [debug][esqueue][reporting][worker] jauv3obo084a363d0dg43av6 - Starting job jauvdckl084a363d0d50dwf7
log [09:46:58.026] [debug][reporting][worker] Printable PDF: Processing Printable PDF job
log [09:46:58.047] [debug][reporting] fetching screenshot of http://localhost:5601/app/kibana#/visualize/edit/AWAmddEF8KtH8uP_9yyO?_g=(time:(from:'2017-11-29T09:46:57.379Z',mode:absolute,to:'2017-12-06T09:46:57.379Z'))&_a=(filters:!(('$state':(store:appState),meta:(alias:!n,disabled:!f,index:AWAmS6Kb8KtH8uP_9wBt,key:billable.keyword,negate:!f,type:phrase,value:Leave),query:(match:(billable.keyword:(query:Leave,type:phrase))))),linked:!f,query:(match_all:()),uiState:(),vis:(aggs:!((enabled:!t,id:'1',params:(customLabel:'Number%20of%20People%20on%20Leave'),schema:metric,type:count),(enabled:!t,id:'2',params:(customInterval:'2h',customLabel:Day,extended_bounds:(),field:time_logged,interval:d,min_doc_count:1),schema:segment,type:date_histogram)),listeners:(),params:(addLegend:!t,addTimeMarker:!f,addTooltip:!t,categoryAxes:!((id:CategoryAxis-1,labels:(rotate:90,show:!t,truncate:100),position:bottom,scale:(type:linear),show:!t,style:(),title:(text:Day),type:category)),grid:(categoryLines:!f,style:(color:%23eee),valueAxis:ValueAxis-1),legendPosition:right,seriesParams:!((data:(id:'1',label:'Number%20of%20People%20on%20Leave'),drawLinesBetweenPoints:!t,mode:normal,show:true,showCircles:!t,type:line,valueAxis:ValueAxis-1)),times:!(),type:line,valueAxes:!((id:ValueAxis-1,labels:(filter:!f,rotate:0,show:!t,truncate:100),name:LeftAxis-1,position:left,scale:(mode:normal,type:linear),show:!t,style:(),title:(text:'Number%20of%20People%20on%20Leave'),type:value))),title:'Leave%20Taken',type:line))
log [09:46:58.081] [debug][plugin] Checking Elasticsearch version
log [09:46:58.204] [debug][reporting] HeadlessError: Request() error evaluating createPage() call: Error: connect ECONNREFUSED 10.2.2.33:38125
at ClientRequest. (/kibana-5.6.4-linux-x86_64/plugins/x-pack/node_modules/@elastic/node-phantom-simple/node-phantom-simple.js:510:18)
at emitOne (events.js:96:13)
at ClientRequest.emit (events.js:188:7)
at Socket.socketErrorListener (_http_client.js:310:9)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at emitErrorNT (net.js:1281:8)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickDomainCallback (internal/process/next_tick.js:128:9)
log [09:46:58.205] [debug][esqueue][reporting][worker] jauv3obo084a363d0dg43av6 - Failure occurred on job jauvdckl084a363d0d50dwf7: HeadlessError: Request() error evaluating createPage() call: Error: connect ECONNREFUSED 10.2.2.33:38125
log [09:46:58.206] [debug][reporting][worker] Printable PDF: Worker error: (jauvdckl084a363d0d50dwf7)
log [09:46:58.206] [debug][esqueue][reporting][worker] jauv3obo084a363d0dg43av6 - Failing job jauvdckl084a363d0d50dwf7
Unhandled rejection HeadlessError: Request() error evaluating createPage() call: Error: connect ECONNREFUSED 10.2.2.33:38125
at ClientRequest. (/kibana-5.6.4-linux-x86_64/plugins/x-pack/node_modules/@elastic/node-phantom-simple/node-phantom-simple.js:510:18)
at emitOne (events.js:96:13)
at ClientRequest.emit (events.js:188:7)
at Socket.socketErrorListener (_http_client.js:310:9)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at emitErrorNT (net.js:1281:8)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickDomainCallback (internal/process/next_tick.js:128:9)

@FRoodt Reporting launches a separate PhantomJS process that is communicated with via websockets, and it appears that communication occurring over port 38125 is being blocked, is there a firewall enabled on the server that is blocking this communication?

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