# Cannot generate report in Kibana

**URL:** <https://discuss.elastic.co/t/cannot-generate-report-in-kibana/107255>\
**Category:** Kibana\
**Created:** [November 10, 2017, 10:44pm UTC](https://discuss.elastic.co/t/cannot-generate-report-in-kibana/107255 "2017-11-10T22:44:43Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![imortalsolitude](https://avatars.discourse-cdn.com/v4/letter/i/6f9a4e/32.png) [@imortalsolitude](https://discuss.elastic.co/u/imortalsolitude)\
**Post date:** [November 10, 2017, 10:44pm UTC](https://discuss.elastic.co/t/cannot-generate-report-in-kibana/107255/1 "2017-11-10T22:44:43Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [November 11, 2017, 1:10am UTC](https://discuss.elastic.co/t/cannot-generate-report-in-kibana/107255/2 "2017-11-11T01:10:15Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![imortalsolitude](https://avatars.discourse-cdn.com/v4/letter/i/6f9a4e/32.png) [@imortalsolitude](https://discuss.elastic.co/u/imortalsolitude)\
**Post date:** [November 13, 2017, 3:23pm UTC](https://discuss.elastic.co/t/cannot-generate-report-in-kibana/107255/3 "2017-11-13T15:23:25Z")

</div>

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

 ![KIbana](https://us1.discourse-cdn.com/elastic/original/3X/b/1/b1d89586443acf0879ffa868f36bbd46cb66db53.JPG)

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [November 15, 2017, 1:17am UTC](https://discuss.elastic.co/t/cannot-generate-report-in-kibana/107255/4 "2017-11-15T01:17:02Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![imortalsolitude](https://avatars.discourse-cdn.com/v4/letter/i/6f9a4e/32.png) [@imortalsolitude](https://discuss.elastic.co/u/imortalsolitude)\
**Post date:** [November 15, 2017, 4:55pm UTC](https://discuss.elastic.co/t/cannot-generate-report-in-kibana/107255/5 "2017-11-15T16:55:28Z")

</div>

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

---

<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 15, 2017, 6:07pm UTC](https://discuss.elastic.co/t/cannot-generate-report-in-kibana/107255/6 "2017-11-15T18:07:10Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![imortalsolitude](https://avatars.discourse-cdn.com/v4/letter/i/6f9a4e/32.png) [@imortalsolitude](https://discuss.elastic.co/u/imortalsolitude)\
**Post date:** [November 15, 2017, 7:12pm UTC](https://discuss.elastic.co/t/cannot-generate-report-in-kibana/107255/7 "2017-11-15T19:12:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [November 16, 2017, 6:25pm UTC](https://discuss.elastic.co/t/cannot-generate-report-in-kibana/107255/8 "2017-11-16T18:25:56Z")

</div>

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

Thanks  
Rashmi

---

<div class="post-metadata">

**Author:** ![FRoodt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/froodt/32/22529_2.png) [@FRoodt](https://discuss.elastic.co/u/FRoodt)\
**Post date:** [December 6, 2017, 9:50am UTC](https://discuss.elastic.co/t/cannot-generate-report-in-kibana/107255/9 "2017-12-06T09:50:55Z")

</div>

> [@rashmi](#):
>
> logging.verbose: true

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')](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)

---

<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:** [December 6, 2017, 1:55pm UTC](https://discuss.elastic.co/t/cannot-generate-report-in-kibana/107255/10 "2017-12-06T13:55:32Z")

</div>

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

---

<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:** [January 3, 2018, 1:55pm UTC](https://discuss.elastic.co/t/cannot-generate-report-in-kibana/107255/11 "2018-01-03T13:55:37Z")

</div>

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