Reporting_Plugin error when generating reports

Hi guys , i’m facing a problem downloading reports using the reporting plugin , when i click on dowloand(PDF or PNG) it generates this error , [opendistroReportsKibana][plugins] Error: Failed to launch chrome! spawn C:\Elastic\kibana-7.10.0\kibana-7.10.0\plugins\opendistroReportsKibana\server\routes\utils/../../../.chromium/headless_shell ENOENT

Any idea what’s wrong ?
PS : i’m using the admin user

Hi it seems you are on windows, and chromium failed to launch, are you using the headless Chrome Windows artifacts that we released for reporting? You can find it here Release headless-chrome dependencies for puppeteer-core version 1.19.0 · opendistro-for-elasticsearch/kibana-reports · GitHub

hi @CyberGod thanks for the reply ,just a silly question where should i put those artifacts?

@CyberGod i’ve put the chromium artifacts in the reporting plugin folder ad i manged to bypass that error and now it gives me this error :

log [11:44:04.935] [info][opendistroReportsKibana][plugins] domain enables security, use session cookie to access
log [11:44:04.954] [info][opendistroReportsKibana][plugins] original queryUrl http://localhost:5601/app/dashboards#/view/7adfa750-4c81-11e8-b3d7-01146121b73d?_g=(time:(from:‘2018-01-03T13:43:53.641Z’,to:‘2021-02-05T11:44:04.302Z’))
log [11:44:06.986] [error][opendistroReportsKibana][plugins] Failed to generate report from reportDefinition id dc8alXYBE6qZdmOasM6g : Error: net::ERR_CONNECTION_REFUSED at http://localhost:5601/app/dashboards#/view/7adfa750-4c81-11e8-b3d7-01146121b73d?_g=(time:(from:‘2018-01-03T13:43:53.641Z’,to:‘2021-02-05T11:44:04.302Z’))
log [11:44:06.987] [error][opendistroReportsKibana][plugins] Error: net::ERR_CONNECTION_REFUSED at http://localhost:5601/app/dashboards#/view/7adfa750-4c81-11e8-b3d7-01146121b73d?_g=(time:(from:‘2018-01-03T13:43:53.641Z’,to:‘2021-02-05T11:44:04.302Z’))
at navigate (C:\Elastic\kibana-7.10.0\kibana-7.10.0\plugins\opendistroReportsKibana\node_modules\puppeteer-core\lib\FrameManager.js:120:37)
at process._tickCallback (internal/process/next_tick.js:68:7)
– ASYNC –
at Frame. (C:\Elastic\kibana-7.10.0\kibana-7.10.0\plugins\opendistroReportsKibana\node_modules\puppeteer-core\lib\helper.js:111:15)
at Page.goto (C:\Elastic\kibana-7.10.0\kibana-7.10.0\plugins\opendistroReportsKibana\node_modules\puppeteer-core\lib\Page.js:674:49)
at Page.goto (C:\Elastic\kibana-7.10.0\kibana-7.10.0\plugins\opendistroReportsKibana\node_modules\puppeteer-core\lib\helper.js:112:23)
at createVisualReport (C:\Elastic\kibana-7.10.0\kibana-7.10.0\plugins\opendistroReportsKibana\server\routes\utils\visual_report\visualReportHelper.ts:83:14)
at process._tickCallback (internal/process/next_tick.js:68:7)
error [11:44:04.291] Error: Internal Server Error
at HapiResponseAdapter.toError (C:\Elastic\kibana-7.10.0\kibana-7.10.0\src\core\server\http\router\response_adapter.js:132:19)
at HapiResponseAdapter.toHapiResponse (C:\Elastic\kibana-7.10.0\kibana-7.10.0\src\core\server\http\router\response_adapter.js:86:19)
at HapiResponseAdapter.handle (C:\Elastic\kibana-7.10.0\kibana-7.10.0\src\core\server\http\router\response_adapter.js:81:17)
at Router.handle (C:\Elastic\kibana-7.10.0\kibana-7.10.0\src\core\server\http\router\router.js:164:34)
at process._tickCallback (internal/process/next_tick.js:68:7)

i think it’s due to the fact i changed the server host to my ip address in the kibana.conf but the plugin is pointing on localhost and not the ip address

No question is silly, we love to hear feedback from people who are using our products!
You are right about the error you got. It’s actually related to this issue on github. Access kibana.yml from plugin to read server.host, server.port and server.basePath · Issue #98 · opendistro-for-elasticsearch/kibana-reports · GitHub

We just delivered a fix to the dev branch. Please take a look

1 Like

thanks for the reply , glad to hear that a fix has been delivered , btw i managed to bypass that by putting 0.0.0.0 in my server host.