opensearch-project / dashboards-reporting

Apache License 2.0
9 stars 32 forks source link

[BUG] Not able to generate PDF reports #355

Open tgeek77 opened 5 months ago

tgeek77 commented 5 months ago

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):

Additional context

This seems to also be happening on these cases:

kavilla commented 5 months ago

@opensearch-project/admin please re-route to https://github.com/opensearch-project/dashboards-reporting

paveljanda commented 4 months ago

👍

paveljanda commented 4 months ago

Hi, is there any status update?

dblock commented 3 months ago

This will need someone to investigate. Anyone care to help?

Catch All Triage - 1 2 3 4 5 6