opendistro-for-elasticsearch / kibana-reports

Kibana Reports
https://opendistro.github.io/
39 stars 31 forks source link

Error while downloading reports to PDF/PNG #365

Closed rpudlowski93 closed 3 years ago

rpudlowski93 commented 3 years ago

Describe the bug I can't download reports from dashboards or visualisation to PDF/PNG using Kibana UI. I'm getting the following error: "Download error, There was an error generating this report." Under the hood, there error appears with "{statusCode: 404, error: "Not Found", message: "Not Found"}"

More details related to the error: opendistroReportsKibana.plugin.js:1 POST http://VM_IP:5601/app/api/reporting/generateReport?timezone=Europe/Warsaw 404 (Not Found)

Request header which is generated automatically to API:

POST /app/api/reporting/generateReport?timezone=Europe/Warsaw HTTP/1.1
Host: VM_IP:5601
Connection: keep-alive
Content-Length: 140021
pragma: no-cache
accept: */*
accept-language: en-US,en;q=0.9,zh-CN;q=0.8,zh;q=0.7,zh-TW;q=0.6
kbn-version: 7.10.2
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/MY_IP Safari/537.36
Content-Type: application/json
Origin: http://VM_IP:5601
Referer: http://VM_IP:5601/app/visualize/
Accept-Encoding: gzip, deflate
Cookie: security_authentication=....

Steps to reproduce the behavior:

  1. Install opendistroforelasticsearch-1.13.2 using official documentation: https://opendistro.github.io/for-elasticsearch-docs/docs/install/rpm/
  2. Install opendistroforelasticsearch-kibana-1.13.2-1 using official documentation https://opendistro.github.io/for-elasticsearch-docs/docs/kibana/
  3. OpendistroReportsKibana installed by default
  4. Login to Kibana UI
  5. Discover some logs, visualize it and try to download report to PDF or PNG

Environment

Cloud provider: AWS OS: RHEL 7.9 Kibana reports plugin version: 1.13.2

Additional context Everything else is working fine, it is possible for example to inspect visualization and generate CSV file.

zhongnansu commented 3 years ago

could you get he Kibana logs from the kibana server side and provide to us? thx

rpudlowski93 commented 3 years ago

Yes sure, here You have: kibana.log

The request in the file - one before last one (line 229 with 404 error code) was logged when the error arose

zhongnansu commented 3 years ago

Please try the Dashboards-reports plugin. We are deprecating this repo.

OpenSearch 1.0 just released: https://opensearch.org/downloads.html