Kibana Package creation issue

Hi! iwas trying to create kibana rpm package "npm run build -- --rpm", and ran into this issue.
Fatal error: Path must be a string. Received true
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! kibana@6.0.0-alpha2 build: grunt build "--rpm"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the kibana@6.0.0-alpha2 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/farya/.npm/_logs/2017-05-31T10_36_12_445Z-debug.log

i did try upgarding my babel-core@6.10.4 but that agin didnt help me out.

$ npm run build -- --rpm

kibana@6.0.0-alpha2 build /home/farya/kibana
grunt build "--rpm"
Running "build" task

Running "clean:build" (clean) task

1 path cleaned.
Running "clean:target" (clean) task

0 paths cleaned.
Running "_build:downloadNodeBuilds" task

Downloading darwin-x86_64 and corresponding sha
Downloading linux-x86_64 and corresponding sha
Downloading windows-x86_64 and corresponding sha
darwin-x86_64 downloaded and verified
linux-x86_64 downloaded and verified
windows-x86_64 downloaded and verified
Running "_build:extractNodeBuilds" task

Running "copy:devSource" (copy) task
Created 483 directories, copied 2032 files

Running "clean:devSourceForTestbed" (clean) task

1 path cleaned.
Running "babel:build" (babel) task

Running "_build:babelOptions" task

Running "_build:plugins" task

Running "_build:data" task

Running "i18nextract:default_options" (i18nextract) task

Create file: build/i18n_extract/en.json
Statistics : empty: 47 (100%) / Updated: 0 / Deleted: 0 / New: 47

Running "_build:check" task

Running "_build:packageJson" task

Running "_build:readme" task

Running "_build:babelCache" task

Running "_build:installNpmDeps" task

Running "_build:notice" task
Fatal error: Path must be a string. Received true
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! kibana@6.0.0-alpha2 build: grunt build "--rpm"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the kibana@6.0.0-alpha2 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/farya/.npm/_logs/2017-06-01T12_59_41_662Z-debug.log

here is the log file o/p:
0 info it worked if it ends with ok
1 verbose cli [ '/home/farya/.nvm/versions/node/v6.10.2/bin/node',
1 verbose cli '/home/farya/.nvm/versions/node/v6.10.2/bin/npm',
1 verbose cli 'run',
1 verbose cli 'build',
1 verbose cli '--',
1 verbose cli '--rpm' ]
2 info using npm@4.6.1
3 info using node@v6.10.2
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle kibana@6.0.0-alpha2~prebuild: kibana@6.0.0-alpha2
6 silly lifecycle kibana@6.0.0-alpha2~prebuild: no script for prebuild, continuing
7 info lifecycle kibana@6.0.0-alpha2~build: kibana@6.0.0-alpha2
8 verbose lifecycle kibana@6.0.0-alpha2~build: unsafe-perm in lifecycle true
9 verbose lifecycle kibana@6.0.0-alpha2~build: PATH: /home/farya/.nvm/versions/node/v6.10.2/lib/node_modules/npm/bin/node-gyp-bin:/home/farya/kibana/node_modules/.bin:/home/farya/.nvm/versions/node/v6.10.2/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/farya/.local/bin:/home/farya/bin:/home/farya/.nvm/versions/node/v6.10.2/bin/grunt
10 verbose lifecycle kibana@6.0.0-alpha2~build: CWD: /home/farya/kibana
11 silly lifecycle kibana@6.0.0-alpha2~build: Args: [ '-c', 'grunt build "--rpm"' ]
12 silly lifecycle kibana@6.0.0-alpha2~build: Returned: code: 1 signal: null
13 info lifecycle kibana@6.0.0-alpha2~build: Failed to exec build script
14 verbose stack Error: kibana@6.0.0-alpha2 build: grunt build "--rpm"
14 verbose stack Exit status 1
i also tried to edit tasks/build/notice.js by adding console.log({ kibanaDir, noticePath }); after line 22 where noticePath is initialized and the ran npm run build -- --rpm but again i ran into same issue

1 Like

Hi! can anyone help us with this issue?

I think the pleaserun must be built on the linux machine, and you might also have to do gem install pleaserun

I haven't tried it, so I'm not sure if it will work.

hi@tsullivan, I have tried this and i got the output as :gem install pleaserun
Fetching: dotenv-2.2.1.gem (100%)
Successfully installed dotenv-2.2.1
Fetching: pleaserun-0.0.29.gem (100%)
Successfully installed pleaserun-0.0.29
/usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:45:in require': cannot load such file -- json/pure (LoadError) from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:45:inrequire'
from /usr/share/gems/gems/json-1.7.7/lib/json.rb:60:in rescue in <module:JSON>' from /usr/share/gems/gems/json-1.7.7/lib/json.rb:57:inmodule:JSON'
from /usr/share/gems/gems/json-1.7.7/lib/json.rb:54:in <top (required)>' from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:45:inrequire'
from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:45:in require' from /usr/share/gems/gems/rdoc-4.0.0/lib/rdoc/text.rb:16:in<top (required)>'
from /usr/share/gems/gems/rdoc-4.0.0/lib/rdoc/code_object.rb:28:in <class:CodeObject>' from /usr/share/gems/gems/rdoc-4.0.0/lib/rdoc/code_object.rb:26:in<top (required)>'
from /usr/share/gems/gems/rdoc-4.0.0/lib/rdoc/generator/markup.rb:59:in <top (required)>' from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:45:inrequire'
from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:45:in require' from /usr/share/gems/gems/rdoc-4.0.0/lib/rdoc/generator/darkfish.rb:6:in<top (required)>'
from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:45:in require' from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:45:inrequire'
from /usr/share/gems/gems/rdoc-4.0.0/lib/rdoc/rdoc.rb:563:in <top (required)>' from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:45:inrequire'
from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:45:in require' from /usr/share/gems/gems/rdoc-4.0.0/lib/rdoc/rubygems_hook.rb:64:inload_rdoc'
from /usr/share/gems/gems/rdoc-4.0.0/lib/rdoc/rubygems_hook.rb:229:in setup' from /usr/share/gems/gems/rdoc-4.0.0/lib/rdoc/rubygems_hook.rb:142:ingenerate'
from /usr/share/gems/gems/rdoc-4.0.0/lib/rdoc/rubygems_hook.rb:54:in block in generation_hook' from /usr/share/gems/gems/rdoc-4.0.0/lib/rdoc/rubygems_hook.rb:53:ineach'
from /usr/share/gems/gems/rdoc-4.0.0/lib/rdoc/rubygems_hook.rb:53:in generation_hook' from /usr/local/share/ruby/site_ruby/rubygems/dependency_installer.rb:382:incall'
from /usr/local/share/ruby/site_ruby/rubygems/dependency_installer.rb:382:in block (2 levels) in install' from /usr/local/share/ruby/site_ruby/rubygems/dependency_installer.rb:381:ineach'
from /usr/local/share/ruby/site_ruby/rubygems/dependency_installer.rb:381:in block in install' from /usr/local/share/ruby/site_ruby/rubygems/dependency_installer.rb:401:inin_background'
from /usr/local/share/ruby/site_ruby/rubygems/dependency_installer.rb:380:in install' from /usr/local/share/ruby/site_ruby/rubygems/commands/install_command.rb:166:inblock in execute'
from /usr/local/share/ruby/site_ruby/rubygems/commands/install_command.rb:158:in each' from /usr/local/share/ruby/site_ruby/rubygems/commands/install_command.rb:158:inexecute'
from /usr/local/share/ruby/site_ruby/rubygems/command.rb:305:in invoke_with_build_args' from /usr/local/share/ruby/site_ruby/rubygems/command_manager.rb:170:inprocess_args'
from /usr/local/share/ruby/site_ruby/rubygems/command_manager.rb:130:in run' from /usr/local/share/ruby/site_ruby/rubygems/gem_runner.rb:60:inrun'
from /usr/bin/gem:21:in `'

but after this I am facing the same error while running this command:npm run build -- --rpm --force

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.