Open skoczo opened 1 year ago
On docker tag 2.3.0 reporting is working. Latest and 2.4.0 are not working.
@opensearch-project/transfer-request Please transfer issue to https://github.com/opensearch-project/reporting
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"}
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.
Perhaps the same as https://github.com/opensearch-project/reporting/issues/590?
Any chance of getting this looked at?
still broken in v2.11.1
Describe the bug
Cannot download generated report
To Reproduce Steps to reproduce the behavior:
Expected behavior Report to be generated and possible to download
OpenSearch Version Latest docker image
Dashboards Version Latest docker image
Screenshots
Host/Environment (please complete the following information):
Additional context
Logs opensearch-dashboards.log docker compose: docker-compose.zip