OpenSearch-Dashboards icon indicating copy to clipboard operation
OpenSearch-Dashboards copied to clipboard

[BUG] Not able to generate PDF reports

Open tgeek77 opened this issue 10 months ago • 1 comments

Describe the bug

When clicking on the Reporting -> Download PDF link from inside of the Opensearch Dashboard, I get the error "Download error There was an error generating this report."

image

To Reproduce

Steps to reproduce the behavior:

Setup: Install Opensearch + Dashboard using the docker-compose file found in the setup instructions. We are only using the vanilla container images with no extra additions.

From the Web:

First, you must have data that spans at least 2-3 weeks. This is difficult to reproduct using the sample log data and we are not at liberty to share our data for an example.

Using Firefox (Chrome-based browsers have fewer errors)

  1. Go to 'Dashboards -> [Choose your dashboard]'
  2. View ~14 days of data
  3. Click on 'Reporting -> Download PDF'
  4. See the above error

Expected behavior We should see a PDF report of the data on the screen

OpenSearch Version This same issue has been seen in versions: 2.11.1 and 2.13.0

Dashboards Version Same: 2.11.1 and 2.13.0

Plugins

We are not using any extra plugins in Opensearch/Dashboard or on the Browser

Screenshots

Console Errors: Screenshot_2024-04-24_at_13 02 20 As you can see, the issue seems to stem from an issue with reportsDashboards.plugin.js

Container Error Logs

2024/04/15 09:50:12 [error] 1962#1962: *41183 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.254.206, server: lm.logmanager, request: "GET /vendor/dashboards/api/reporting/reports/Tj8q4Y4BUiRXBiryCTHF HTTP/2.0", upstream: "http://[::1]:20000/vendor/dashboards/api/reporting/reports/Tj8q4Y4BUiRXBiryCTHF", host: "192.168.254.90", referrer: "https://192.168.254.90/vendor/dashboards/app/dashboards"
2024/04/15 09:50:33 [error] 1962#1962: *41183 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.254.206, server: lm.logmanager, request: "GET /vendor/dashboards/node_modules/@osd/ui-framework/dist/kui_next_light.css HTTP/2.0", upstream: "http://[::1]:20000/vendor/dashboards/node_modules/@osd/ui-framework/dist/kui_next_light.css", host: "192.168.254.90", referrer: "https://192.168.254.90/vendor/dashboards/app/dashboards"

Host/Environment (please complete the following information):

  • Browser OS: Seen on Ubuntu and MacOS
  • Server OS: Ubuntu Jammy Server
  • Browser: Firefox 123.0.1

Additional context

This seems to also be happening on these cases:

  • https://forum.opensearch.org/t/opensearch-dashboards-report-generate-is-not-working/17712
  • https://forum.opensearch.org/t/report-not-working/6614
  • https://forum.opensearch.org/t/reports-do-not-work/5597

tgeek77 avatar Apr 25 '24 14:04 tgeek77