Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Not able to generate PDF reports #355

Open
tgeek77 opened this issue Apr 25, 2024 · 4 comments
Open

[BUG] Not able to generate PDF reports #355

tgeek77 opened this issue Apr 25, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@tgeek77
Copy link

tgeek77 commented Apr 25, 2024

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:

@tgeek77 tgeek77 added bug Something isn't working untriaged labels Apr 25, 2024
@kavilla
Copy link
Member

kavilla commented May 1, 2024

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

@kavilla kavilla removed the untriaged label May 1, 2024
@paveljanda
Copy link

👍

@bbarani bbarani transferred this issue from opensearch-project/OpenSearch-Dashboards May 9, 2024
@paveljanda
Copy link

Hi, is there any status update?

@dblock
Copy link
Member

dblock commented Jun 24, 2024

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

Catch All Triage - 1 2 3 4 5 6

@dblock dblock removed the untriaged label Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants