Hi, I'm running Kibana 7.7.1 in docker and I get the following errors in output:
{"tags":["error","reporting"],"pid":1,"message":"The Reporting plugin encountered issues launching Chromium in a self-test. You may have trouble generating reports."}
{"tags":["error","reporting"],"pid":1,"message":"Error: Failed to launch chrome! spawn /usr/share/kibana/data/headless_shell-linux/headless_shell ENOENT\n\n\nTROUBLESHOOTING: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md\n\n at onClose (/usr/share/kibana/node_modules/puppeteer-core/lib/Launcher.js:349:14)\n at ChildProcess.helper.addEventListener.error (/usr/share/kibana/node_modules/puppeteer-core/lib/Launcher.js:340:64)\n at ChildProcess.emit (events.js:198:13)\n at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12)\n at onErrorNT (internal/child_process.js:415:16)\n at process._tickCallback (internal/process/next_tick.js:63:19)"}
{"tags":["warning","reporting"],"pid":1,"message":"See Chromium's log output at \"/usr/share/kibana/data/headless_shell-linux/chrome_debug.log\""}
{"tags":["error","reporting"],"pid":1,"message":"Error: Could not close browser client handle!\n at browserFactory.test.then.browser (/usr/share/kibana/x-pack/legacy/plugins/reporting/server/lib/validate/validate_browser.js:26:15)\n at process._tickCallback (internal/process/next_tick.js:68:7)"}
{"tags":["warning","reporting"],"pid":1,"message":"Reporting plugin self-check generated a warning: Error: Could not close browser client handle!"}
I've installed all packages recommended by puppeteer. I'm not sure how to fix this because there's no logs. File /usr/share/kibana/data/headless_shell-linux/chrome_debug.log does not exist. Adding the env var DEBUG="puppeteer:*" did not add anything to output.
# Tell Puppeteer to skip installing Chrome. We'll be using the installed package.
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true \
PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
I'd suggest trying out a symlink from /usr/share/kibana/data/headless_shell-linux/headless_shell to point to your already-installed chromium at chromium-browser.
There's a few caveats: we do roll our own binary, so I'd also suggest looking at startup logs on why that binary isn't there. Things like WebGL visualizations are known to work on our chromium build, but might not on your prior-installed version.
What is the correct way to reinstall kibana's node modules? I can add the env vars I mentioned above so pupeeteer won't download chrome during installation and instead will use the one from alpine packages? I tried deleting node_modules and running npm install but that did nothing.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.