Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
2.4.1
Describe the issue:
When downloading a report i get the following errors
and i have no clue what’s going on … can somebody help please?
{"type":"log","@timestamp":"2023-01-23T15:11:05Z","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-23T15:11:05Z","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-23T15:11:05Z","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":"http://xxxx.com/api/reporting/generateReport/M_ko34UBjWts53DK1zKJ?timezone=Europe%2FPrague&dateFormat=MMM%20D%2C%20YYYY%20%40%20HH%3Amm%3Ass.SSS&csvSeparator=%2C","message":"Internal Server Error"}
{"type":"response","@timestamp":"2023-01-23T15:11:05Z","tags":[],"pid":1,"method":"get","statusCode":500,"req":{"url":"/api/reporting/generateReport/M_ko34UBjWts53DK1zKJ?timezone=Europe%2FPrague&dateFormat=MMM%20D%2C%20YYYY%20%40%20HH%3Amm%3Ass.SSS&csvSeparator=%2C","method":"get","headers":{"host":"xxx.com","x-request-id":"e9067998beb01b746f9a8ec76da02c30","x-real-ip":"172.19.128.4","x-forwarded-for":"172.19.128.4","x-forwarded-host":"xxxx.com","x-forwarded-port":"443","x-forwarded-proto":"https","x-forwarded-scheme":"https","x-scheme":"https","sec-ch-ua":"\"Not_A Brand\";v=\"99\", \"Google Chrome\";v=\"109\", \"Chromium\";v=\"109\"","content-type":"application/json","sec-ch-ua-mobile":"?0","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36","osd-version":"2.4.1","sec-ch-ua-platform":"\"Windows\"","accept":"*/*","sec-fetch-site":"same-origin","sec-fetch-mode":"cors","sec-fetch-dest":"empty","referer":"https://xxx.com/app/reports-dashboards","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9,it;q=0.8,cs;q=0.7","securitytenant":""},"remoteAddress":"10.244.1.46","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36","referer":"https://xxxxx.com/app/reports-dashboards"},"res":{"statusCode":500,"responseTime":79,"contentLength":9},"message":"GET /api/reporting/generateReport/M_ko34UBjWts53DK1zKJ?timezone=Europe%2FPrague&dateFormat=MMM%20D%2C%20YYYY%20%40%20HH%3Amm%3Ass.SSS&csvSeparator=%2C 500 79ms - 9.0B"}
Configuration:
deployed with k8s operator and this additionalconfig
opensearch.requestHeadersAllowlist: '["securitytenant","Authorization"]'
opensearch_security.multitenancy.enable_filter: 'false'
opensearch_security.multitenancy.enabled: 'true'
opensearch_security.multitenancy.tenants.enable_global: 'true'
opensearch_security.multitenancy.tenants.enable_private: 'false'
opensearch_security.multitenancy.tenants.preferred: '["Global"]'
server.maxPayloadBytes: '8388608'