Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 656008 - >=www-apps/kibana-bin-6.2.2 with >=net-libs/nodejs-8.11.1 - error [07:38:24.821] [fatal] /opt/kibana/plugins/x-pack/plugins/reporting/export_types/csv/server/lib/generate_csv.js:51: SyntaxError: Unexpected reserved word
Summary: >=www-apps/kibana-bin-6.2.2 with >=net-libs/nodejs-8.11.1 - error [07:38:24....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tomáš Mózes
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-18 10:04 UTC by massimo
Modified: 2018-09-19 23:44 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description massimo 2018-05-18 10:04:10 UTC
With nodejs-8.11.1 installed kibana won't start:

  log   [07:38:22.641] [warning][plugin] Skipping non-plugin directory at /opt/kibana/plugins/5.5.X-1.tar.gz
  log   [07:38:22.656] [warning][plugin] Skipping non-plugin directory at /opt/kibana/plugins/network_vis.zip
  log   [07:38:23.509] [warning][plugin] Plugin "network_vis" was disabled because it expected Kibana version "5.6.4", and found "6.2.2".
  log   [07:38:24.109] [info][status][plugin:kibana@6.2.2] Status changed from uninitialized to green - Ready
  log   [07:38:24.189] [info][status][plugin:elasticsearch@6.2.2] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [07:38:24.195] [info][status][plugin:xpack_main@6.2.2] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [07:38:24.205] [info][status][plugin:searchprofiler@6.2.2] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [07:38:24.212] [info][status][plugin:ml@6.2.2] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [07:38:24.288] [info][status][plugin:tilemap@6.2.2] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [07:38:24.292] [info][status][plugin:watcher@6.2.2] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [07:38:24.332] [info][status][plugin:license_management@6.2.2] Status changed from uninitialized to green - Ready
  log   [07:38:24.591] [info][status][plugin:timelion@6.2.2] Status changed from uninitialized to green - Ready
  log   [07:38:24.595] [info][status][plugin:graph@6.2.2] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [07:38:24.601] [info][status][plugin:monitoring@6.2.2] Status changed from uninitialized to green - Ready
 error  [07:38:24.821] [fatal] /opt/kibana/plugins/x-pack/plugins/reporting/export_types/csv/server/lib/generate_csv.js:51
    for await (const hit of iterator) {
        ^^^^^

SyntaxError: Unexpected reserved word
    at createScript (vm.js:80:10)
    at Object.runInThisContext (vm.js:139:10)
    at Module._compile (module.js:616:28)
    at loader (/opt/kibana/node_modules/babel-register/lib/node.js:144:5)
    at Object.require.extensions.(anonymous function) [as .js] (/opt/kibana/node_modules/babel-register/lib/node.js:154:7)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/opt/kibana/plugins/x-pack/plugins/reporting/export_types/csv/server/execute_job.js:4:1)
    at Module._compile (module.js:652:30)
    at loader (/opt/kibana/node_modules/babel-register/lib/node.js:144:5)
    at Object.require.extensions.(anonymous function) [as .js] (/opt/kibana/node_modules/babel-register/lib/node.js:154:7)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/opt/kibana/plugins/x-pack/plugins/reporting/export_types/csv/server/index.js:2:1)
    at Module._compile (module.js:652:30)
    at loader (/opt/kibana/node_modules/babel-register/lib/node.js:144:5)


Downgrading to 6.14.1 solved the issue for me

Reproducible: Always

Steps to Reproduce:
1. install kibana
2. start kibana

Actual Results:  
error loading library

Expected Results:  
kibana running
Comment 1 Tomáš Mózes 2018-05-18 11:33:27 UTC
Just testing kibana 6.2.4 with nodejs 8.11.2 and it works fine with the default installation. Seems like you have some plugins installed, x-pack too?
Comment 2 massimo 2018-05-28 08:40:09 UTC
Yes, x-pack is installed but no other plugins.
Comment 3 Tomáš Mózes 2018-05-28 10:24:03 UTC
Can you please try to upgrade the plugin?
Comment 4 massimo 2018-05-28 11:52:42 UTC
Kibana-6.2.2 the corresponding x-pack is installed, i.e., 6.2.2.
Comment 5 Tomáš Mózes 2018-07-11 14:44:42 UTC
I'd prefer not the explicitly limit the nodejs version, but I'll add a note about compatibility. What do you think?
Comment 6 Larry the Git Cow gentoo-dev 2018-07-11 15:46:28 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f5ed1090cea20128041718c106929b663234cf6

commit 8f5ed1090cea20128041718c106929b663234cf6
Author:     Tomas Mozes <hydrapolic@gmail.com>
AuthorDate: 2018-07-11 14:30:29 +0000
Commit:     Manuel Rüger <mrueg@gentoo.org>
CommitDate: 2018-07-11 15:46:05 +0000

    www-apps/kibana-bin: add note about nodejs version
    
    Closes: https://bugs.gentoo.org/656008
    Package-Manager: Portage-2.3.41, Repoman-2.3.9

 www-apps/kibana-bin/kibana-bin-6.2.4.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)