[Elastic] kibana reporting error

[에러메시지]

log   [08:12:47.276] [error][reporting] The Reporting plugin encountered issues launching Chromium in a self-test. You may have trouble generating reports.
 error  [08:12:47.276] [error][reporting] Error: Failed to launch chrome!
/home/ubuntu/elastic/kibana-7.6.2-linux-x86_64/data/headless_shell-linux/headless_shell: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory


TROUBLESHOOTING: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md

    at onClose (/home/ubuntu/elastic/kibana-7.6.2-linux-x86_64/node_modules/puppeteer-core/lib/Launcher.js:349:14)
    at Interface.helper.addEventListener (/home/ubuntu/elastic/kibana-7.6.2-linux-x86_64/node_modules/puppeteer-core/lib/Launcher.js:338:50)
    at Interface.emit (events.js:203:15)
    at Interface.close (readline.js:397:8)
    at Socket.onend (readline.js:173:10)
    at Socket.emit (events.js:203:15)
    at endReadableNT (_stream_readable.js:1145:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)
  log   [08:12:47.279] [warning][reporting] See Chromium's log output at "/home/ubuntu/elastic/kibana-7.6.2-linux-x86_64/data/headless_shell-linux/chrome_debug.log"
  log   [08:12:47.280] [warning][reporting] Reporting plugin self-check generated a warning: Error: Could not close browser client handle!


sudo apt-get install libnss3-dev


[설치 후 에러메시지]

log   [08:22:20.239] [error][reporting] The Reporting plugin encountered issues launching Chromium in a self-test. You may have trouble generating reports.
  log   [08:22:20.239] [error][reporting] ErrorEvent {
  target:
   WebSocket {
     _events:
      [Object: null prototype] { open: [Function], error: [Function] },
     _eventsCount: 2,
     _maxListeners: undefined,
     readyState: 3,
     protocol: '',
     _binaryType: 'nodebuffer',
     _closeFrameReceived: false,
     _closeFrameSent: false,
     _closeMessage: '',
     _closeTimer: null,
     _closeCode: 1006,
     _extensions: {},
     _receiver: null,
     _sender: null,
     _socket: null,
     _isServer: false,
     _redirects: 0,
     url:
      'ws://127.0.0.1:40903/devtools/browser/f718e224-b272-425f-b6b9-41d14f42207f',
     _req: null },
  type: 'error',
  message: 'connect ECONNREFUSED 127.0.0.1:40903',
  error:
   { Error: connect ECONNREFUSED 127.0.0.1:40903
       at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1107:14)
     errno: 'ECONNREFUSED',
     code: 'ECONNREFUSED',
     syscall: 'connect',
     address: '127.0.0.1',
     port: 40903 } }
  log   [08:22:20.244] [warning][reporting] See Chromium's log output at "/home/ubuntu/elastic/kibana-7.6.2-linux-x86_64/data/headless_shell-linux/chrome_debug.log"
  log   [08:22:20.245] [warning][reporting] Reporting plugin self-check generated a warning: Error: Could not close browser client handle!


[최종 조치]

System dependencies

Reporting launches a "headless" web browser called Chromium on the Kibana server. It is a custom build made by Elastic of an open source project, and it is intended to have minimal dependencies on OS libraries. However, the Kibana server OS might still require additional dependencies to run the Chromium executable.
Make sure Kibana server OS has the appropriate packages installed for the distribution.
If you are using CentOS/RHEL systems, install the following packages:
  • ipa-gothic-fonts
  • xorg-x11-fonts-100dpi
  • xorg-x11-fonts-75dpi
  • xorg-x11-utils
  • xorg-x11-fonts-cyrillic
  • xorg-x11-fonts-Type1
  • xorg-x11-fonts-misc
  • fontconfig
  • freetype
If you are using Ubuntu/Debian systems, install the following packages:
  • fonts-liberation
  • libfontconfig1
If the system is missing dependencies, then Reporting will fail in a non-deterministic way. Kibana runs a self-test at server startup, and if it encounters errors, logs them in the Console. Unfortunately, the error message does not include information about why Chromium failed to run. The most common error message is Error: connect ECONNREFUSED, which indicates that Kibana could not connect to the Chromium process.
To troubleshoot the problem, start the Kibana server with environment variables that tell Chromium to print verbose logs. See the Puppeteer debug method for more information.

댓글

이 블로그의 인기 게시물

[Django Install] 9.1 sc제일은행 nginx-django 연결

[Django APP] django-widget-tweaks

[Django App] django-user-agents