# X-pack generate printable pdf with security enabled problem

**URL:** https://discuss.elastic.co/t/x-pack-generate-printable-pdf-with-security-enabled-problem/83439
**Category:** Elasticsearch
**Created:** [April 24, 2017, 4:39pm UTC](https://discuss.elastic.co/t/x-pack-generate-printable-pdf-with-security-enabled-problem/83439 "2017-04-24T16:39:38Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jhn134910](https://avatars.discourse-cdn.com/v4/letter/j/90ced4/32.png) [@jhn134910](https://discuss.elastic.co/u/jhn134910)
#### Post date: [April 24, 2017, 4:39pm UTC](https://discuss.elastic.co/t/x-pack-generate-printable-pdf-with-security-enabled-problem/83439/1 "2017-04-24T16:39:38Z")

</div>

Hello there,  
Using version 5.1.2.  
Getting the error:  
"There was an error generating your report for the "irlh3\_System\_Dashboard" dashboard: Max attempts reached (3)."

My kibana.yml reporting configuration is:

server.port: 5601  
server.host: "[tangotelecom.com](http://tangotelecom.com)"  
server.basePath: "/analytics"  
server.name: "kibana"  
elasticsearch.url: "[http://localhost:9200](http://localhost:9200)"  
elasticsearch.preserveHost: true  
kibana.index: ".kibana"  
server.ssl.cert: "/etc/kibana/ssl/tangotelecom.com.cert.pem"  
server.ssl.key: "/etc/kibana/ssl/tangotelecom.com.pem"  
elasticsearch.requestHeadersWhitelist: [authorization, origin, host, x-proxy-user, Credentials]  
logging.events.log: ['reporting']  
xpack.security.enabled: true  
xpack.security.cookieName: "kibana"  
xpack.security.secureCookies: true  
xpack.reporting.kibanaServer.port: 443  
xpack.reporting.enabled: true  
tilemap:  
url: "[https://tiles.elastic.co/v2/default/{z}/{x}/{y}.png?elastic\_tile\_service\_tos=agree&my\_app\_name=kibana](https://tiles.elastic.co/v2/default/%7Bz%7D/%7Bx%7D/%7By%7D.png?elastic_tile_service_tos=agree&my_app_name=kibana)"  
options:  
minZoom: 1  
maxZoom: 10  
attribution: "© [Elastic Tile Service](https://www.elastic.co/elastic-tile-service)"  
xpack.reporting.queue.timeout: 300  
xpack.reporting.kibanaServer.protocol: https  
xpack.reporting.queue.indexInterval: hour

From kibana.logs:  
{"type":"log","@timestamp":"2017-04-24T16:03:43Z","tags":["reporting","debug"],"pid":98133,"message":"Screenshot saved to /var/lib/kibana/screenshot-j1wbb9ds23pxad1c7aap3s8s.png"}  
{"type":"log","@timestamp":"2017-04-24T16:03:43Z","tags":["reporting","debug"],"pid":98133,"message":"fetching screenshot of [https://tangotelecom.com:443/analytics/app/kibana#/visualize/edit/irlh3-Offers-Made?](https://tangotelecom.com:443/analytics/app/kibana#/visualize/edit/irlh3-Offers-Made?)"}  
{"type":"log","@timestamp":"2017-04-24T16:03:43Z","tags":["reporting","debug"],"pid":98133,"message":"irlh3-Offers-Made -\> /var/lib/kibana/screenshot-j1wbb9ds23pxad1c7aap3s8s.png"}

I can open the fetch URL in a tab, and it brings me to a visualization with time last 15 minutes which in my case is empty. I wanted to generate a report on a dashboard that contained this visualization and the dashboard was saved with a time of the last 7 days?

Not sure how to trouble-shoot this? I can see that phantomjs gets downloaded but no png or pdf files there:

# ll

total 4  
drwxr-xr-x 4 kibana kibana 103 Jan 25 2016 phantomjs-2.1.1-linux-x86\_64  
-rw-r--r-- 1 kibana kibana 36 Apr 12 12:30 uuid

Added the tile-map config as don't have accessible DNS server

> [@Kibana 5.2 +x-pack error when generating reports](https://discuss.elastic.co/t/kibana-5-2-x-pack-error-when-generating-reports/72039/74):
>
> @Apache_HOU it ends up that Kibana itself does make a request to the public internet when rendering visualizations to support the Tilemap. There's an underlying issue with the way that this is handled in Kibana that can cause Reporting to timeout because the 'loading' can just stall out - [https://github.com/elastic/kibana/issues/10659](https://github.com/elastic/kibana/issues/10659)

Any help much appreciated.

---

<div class="post-metadata">

### Author: ![jhn134910](https://avatars.discourse-cdn.com/v4/letter/j/90ced4/32.png) [@jhn134910](https://discuss.elastic.co/u/jhn134910)
#### Post date: [April 24, 2017, 5:52pm UTC](https://discuss.elastic.co/t/x-pack-generate-printable-pdf-with-security-enabled-problem/83439/2 "2017-04-24T17:52:26Z")

</div>

I forgot to mention that there is a nginx web-proxy between browser and kibana and between reporting and kibana.

---

<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: [May 22, 2017, 5:55pm UTC](https://discuss.elastic.co/t/x-pack-generate-printable-pdf-with-security-enabled-problem/83439/3 "2017-05-22T17:55:43Z")

</div>

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