Cannot run kibana on Mac OS X


(Hideto Masuoka) #1

Kibana version:6.5.2

  • OS
$ sw_vers
ProductName:	Mac OS X
ProductVersion:	10.14.2
BuildVersion:	18C54
  • I get the following error which I cannot figure out what happend:
$  ./bin/kibana
  log   [01:22:32.107] [info][status][plugin:kibana@6.5.2] Status changed from uninitialized to green - Ready
  log   [01:22:32.208] [info][status][plugin:elasticsearch@6.5.2] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [01:22:32.212] [info][status][plugin:xpack_main@6.5.2] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [01:22:32.221] [info][status][plugin:searchprofiler@6.5.2] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [01:22:32.225] [info][status][plugin:ml@6.5.2] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [01:22:32.298] [info][status][plugin:tilemap@6.5.2] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [01:22:32.301] [info][status][plugin:watcher@6.5.2] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [01:22:32.348] [info][status][plugin:license_management@6.5.2] Status changed from uninitialized to green - Ready
  log   [01:22:32.354] [info][status][plugin:index_management@6.5.2] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [01:22:32.382] [info][status][plugin:rollup@6.5.2] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [01:22:32.735] [info][status][plugin:timelion@6.5.2] Status changed from uninitialized to green - Ready
  log   [01:22:32.738] [info][status][plugin:graph@6.5.2] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [01:22:32.747] [info][status][plugin:monitoring@6.5.2] Status changed from uninitialized to green - Ready
  log   [01:22:32.751] [info][status][plugin:spaces@6.5.2] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [01:22:32.765] [warning][security] Generating a random key for xpack.security.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.security.encryptionKey in kibana.yml
  log   [01:22:32.779] [warning][security] Session cookies will be transmitted over insecure connections. This is not recommended.
  log   [01:22:32.809] [info][status][plugin:security@6.5.2] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [01:22:32.854] [info][status][plugin:grokdebugger@6.5.2] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [01:22:32.865] [info][status][plugin:dashboard_mode@6.5.2] Status changed from uninitialized to green - Ready
  log   [01:22:32.869] [info][status][plugin:logstash@6.5.2] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [01:22:32.886] [info][status][plugin:beats_management@6.5.2] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [01:22:32.937] [info][status][plugin:apm@6.5.2] Status changed from uninitialized to green - Ready
  log   [01:22:33.510] [info][status][plugin:canvas@6.5.2] Status changed from uninitialized to green - Ready
  log   [01:22:33.519] [info][status][plugin:console@6.5.2] Status changed from uninitialized to green - Ready
  log   [01:22:33.522] [info][status][plugin:console_extensions@6.5.2] Status changed from uninitialized to green - Ready
  log   [01:22:33.526] [info][status][plugin:notifications@6.5.2] Status changed from uninitialized to green - Ready
  log   [01:22:33.567] [info][status][plugin:infra@6.5.2] Status changed from uninitialized to green - Ready
  log   [01:22:33.573] [info][status][plugin:metrics@6.5.2] Status changed from uninitialized to green - Ready
  log   [01:22:34.216] [warning][reporting] Generating a random key for xpack.reporting.encryptionKey. To prevent pending reports from failing on restart, please set xpack.reporting.encryptionKey in kibana.yml
  log   [01:22:34.222] [info][status][plugin:reporting@6.5.2] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [01:22:34.231] [info][status][plugin:elasticsearch@6.5.2] Status changed from yellow to green - Ready
  log   [01:22:34.235] [error][reporting] Failed to install browser. See kibana logs for more details.
 error  [01:22:34.244] [fatal][root] ExtractError: Failed to extract the phantom.js archive
    at err (/Users/masuoka/kibana-6.5.2-linux-x86_64/node_modules/x-pack/plugins/reporting/server/browsers/extract/unzip.js:14:23)
    at /Users/masuoka/kibana-6.5.2-linux-x86_64/node_modules/extract-zip/index.js:20:23
    at /Users/masuoka/kibana-6.5.2-linux-x86_64/node_modules/extract-zip/node_modules/yauzl/index.js:29:21
    at FSReqWrap.oncomplete (fs.js:135:15)

installed phantom.js

$ phantomjs -v
2.1.1

(Marius Dragomir) #2

Kibana should be working even with that error, but in order to fix it you can check if you have the correct permissions for that. By default you shouldn't unzip or run Kibana as root, you should use either the es user as described in the docs or a normal user.


(Marius Dragomir) #3

You can also try to copy the phantomjs zip here:
/usr/local/www/kibana6/node_modules/x-pack/plugins/reporting/.phantom/


(Hideto Masuoka) #4

Thanks!

run Kibana on Mac.
Change permission and phantomjs path.