OpenSearch-Dashboards
OpenSearch-Dashboards copied to clipboard
[BUG] Not able to generate PDF reports
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."
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)
- Go to 'Dashboards -> [Choose your dashboard]'
- View ~14 days of data
- Click on 'Reporting -> Download PDF'
- 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:
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