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] report downloading is not working on docker image #629

Open
skoczo opened this issue Jan 9, 2023 · 7 comments
Open

[BUG] report downloading is not working on docker image #629

skoczo opened this issue Jan 9, 2023 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@skoczo
Copy link

skoczo commented Jan 9, 2023

Describe the bug

Cannot download generated report

To Reproduce
Steps to reproduce the behavior:

  1. Go to opensearch dashboards
  2. Create dashboards from sample data
  3. Open dashboards
  4. Generate report
  5. Report is generated and visible in reports module but cannot be downloaded

Expected behavior
Report to be generated and possible to download

OpenSearch Version
Latest docker image

Dashboards Version
Latest docker image

Screenshots
obraz

Host/Environment (please complete the following information):

  • OS: Manjaro
  • Browser and version: Chromium Version 108.0.5359.124

Additional context

Logs
opensearch-dashboards.log
docker compose:
docker-compose.zip

@skoczo skoczo added bug Something isn't working untriaged labels Jan 9, 2023
@skoczo skoczo changed the title [BUG] report generating is not working on docker image [BUG] report downloading is not working on docker image Jan 9, 2023
@skoczo
Copy link
Author

skoczo commented Jan 9, 2023

On docker tag 2.3.0 reporting is working. Latest and 2.4.0 are not working.

@joshuarrrr
Copy link
Member

@opensearch-project/transfer-request Please transfer issue to https://github.com/opensearch-project/reporting

@kavilla kavilla transferred this issue from opensearch-project/OpenSearch-Dashboards Jan 10, 2023
@hjkempel
Copy link

hjkempel commented Jan 11, 2023

We are using docker tag 2.4.1 and can confirm this error when generating reports for PDF or PNG. CSV report are produced correctly.
Regards, hjk

Log excerpt:

{"type":"log","@timestamp":"2023-01-11T10:04:42Z","tags":["error","plugins","reportsDashboards"],"pid":1,"message":"Failed to generate report by id: ProtocolError: Protocol error (Target.setDiscoverTargets): Target closed."}
{"type":"log","@timestamp":"2023-01-11T10:04:42Z","tags":["error","plugins","reportsDashboards"],"pid":1,"message":"ProtocolError: Protocol error (Target.setDiscoverTargets): Target closed.\n    at /usr/share/opensearch-dashboards/plugins/reportsDashboards/node_modules/puppeteer-core/src/common/Connection.ts:106:16\n    at new Promise (<anonymous>)\n    at Connection.send (/usr/share/opensearch-dashboards/plugins/reportsDashboards/node_modules/puppeteer-core/src/common/Connection.ts:102:12)\n    at Function.create (/usr/share/opensearch-dashboards/plugins/reportsDashboards/node_modules/puppeteer-core/src/common/Browser.ts:231:22)\n    at ChromeLauncher.launch (/usr/share/opensearch-dashboards/plugins/reportsDashboards/node_modules/puppeteer-core/src/node/Launcher.ts:179:31)\n    at createVisualReport (/usr/share/opensearch-dashboards/plugins/reportsDashboards/server/routes/utils/visual_report/visualReportHelper.ts:68:19)\n    at createReport (/usr/share/opensearch-dashboards/plugins/reportsDashboards/server/routes/lib/createReport.ts:93:30)\n    at /usr/share/opensearch-dashboards/plugins/reportsDashboards/server/routes/report.ts:131:28\n    at Router.handle (/usr/share/opensearch-dashboards/src/core/server/http/router/router.js:163:44)\n    at handler (/usr/share/opensearch-dashboards/src/core/server/http/router/router.js:124:50)\n    at exports.Manager.execute (/usr/share/opensearch-dashboards/node_modules/@hapi/hapi/lib/toolkit.js:60:28)\n    at Object.internals.handler (/usr/share/opensearch-dashboards/node_modules/@hapi/hapi/lib/handler.js:46:20)\n    at exports.execute (/usr/share/opensearch-dashboards/node_modules/@hapi/hapi/lib/handler.js:31:20)\n    at Request._lifecycle (/usr/share/opensearch-dashboards/node_modules/@hapi/hapi/lib/request.js:371:32)\n    at Request._execute (/usr/share/opensearch-dashboards/node_modules/@hapi/hapi/lib/request.js:281:9) {\n  originalMessage: ''\n}"}
{"type":"error","@timestamp":"2023-01-11T10:04:42Z","tags":[],"pid":1,"level":"error","error":{"message":"Internal Server Error","name":"Error","stack":"Error: Internal Server Error\n    at HapiResponseAdapter.toError (/usr/share/opensearch-dashboards/src/core/server/http/router/response_adapter.js:143:19)\n    at HapiResponseAdapter.toHapiResponse (/usr/share/opensearch-dashboards/src/core/server/http/router/response_adapter.js:97:19)\n    at HapiResponseAdapter.handle (/usr/share/opensearch-dashboards/src/core/server/http/router/response_adapter.js:92:17)\n    at Router.handle (/usr/share/opensearch-dashboards/src/core/server/http/router/router.js:164:34)\n    at handler (/usr/share/opensearch-dashboards/src/core/server/http/router/router.js:124:50)\n    at exports.Manager.execute (/usr/share/opensearch-dashboards/node_modules/@hapi/hapi/lib/toolkit.js:60:28)\n    at Object.internals.handler (/usr/share/opensearch-dashboards/node_modules/@hapi/hapi/lib/handler.js:46:20)\n    at exports.execute (/usr/share/opensearch-dashboards/node_modules/@hapi/hapi/lib/handler.js:31:20)\n    at Request._lifecycle (/usr/share/opensearch-dashboards/node_modules/@hapi/hapi/lib/request.js:371:32)\n    at Request._execute (/usr/share/opensearch-dashboards/node_modules/@hapi/hapi/lib/request.js:281:9)"},"url":"https://pu-prod-log.der.de/api/reporting/generateReport/9kxIoIUBxzwO1xalPJdo?timezone=Europe%2FBerlin&dateFormat=DD.MM.YY%2C%20HH%3Amm%3Ass.SSS&csvSeparator=%2C","message":"Internal Server Error"}
{"type":"response","@timestamp":"2023-01-11T10:04:42Z","tags":[],"pid":1,"method":"get","statusCode":500,"req":{"url":"/api/reporting/generateReport/9kxIoIUBxzwO1xalPJdo?timezone=Europe%2FBerlin&dateFormat=DD.MM.YY%2C%20HH%3Amm%3Ass.SSS&csvSeparator=%2C","method":"get","headers":{"host":"pu-prod-log.der.de","content-type":"application/json","osd-version":"2.4.1","connection":"keep-alive","accept":"*/*","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.2 Safari/605.1.15","referer":"https://pu-prod-log.der.de/app/reports-dashboards","accept-language":"de-DE,de;q=0.9","accept-encoding":"gzip, deflate, br","securitytenant":""},"remoteAddress":"10.254.240.10","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.2 Safari/605.1.15","referer":"https://pu-prod-log.der.de/app/reports-dashboards"},"res":{"statusCode":500,"responseTime":253,"contentLength":9},"message":"GET /api/reporting/generateReport/9kxIoIUBxzwO1xalPJdo?timezone=Europe%2FBerlin&dateFormat=DD.MM.YY%2C%20HH%3Amm%3Ass.SSS&csvSeparator=%2C 500 253ms - 9.0B"}

@rupal-bq rupal-bq removed the untriaged label Feb 9, 2023
@rupal-bq rupal-bq self-assigned this Feb 9, 2023
@mmguero
Copy link

mmguero commented Aug 29, 2023

I'm experiencing this as well, with the 2.8.0-tagged Docker image. CSV reports (from saved searches in Dashboards' discover tab) generate fine, but I cannot generate a PDF or PNG without the "Download error There was an error generating this report." error.

@mmguero
Copy link

mmguero commented Aug 29, 2023

Perhaps the same as #590?

@mmguero
Copy link

mmguero commented Oct 25, 2023

Any chance of getting this looked at?

@mmguero
Copy link

mmguero commented Dec 5, 2023

still broken in v2.11.1

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

6 participants