Error while installing X-pack on Kibana


(Applicate) #1

bin/kibana-plugin install x-pack
fs.js:642
return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
^

Error: EACCES: permission denied, open '/usr/share/kibana/optimize/.babelcache.json'
at Error (native)
at Object.fs.openSync (fs.js:642:18)
at Object.fs.writeFileSync (fs.js:1356:33)
at save (/usr/share/kibana/node_modules/babel-register/lib/cache.js:45:16)
at _combinedTickCallback (internal/process/next_tick.js:73:7)
at process._tickCallback (internal/process/next_tick.js:104:9)
at Module.runMain (module.js:613:11)
at run (bootstrap_node.js:387:7)
at startup (bootstrap_node.js:153:9)
at bootstrap_node.js:500:3


(Bhavya R M) #2

Hi,

which package and OS combo are you trying to install?
Also are you trying to install as root?

Thanks,
Bhavya


(Applicate) #3

OS: Ubuntu
Package: .deb
Not as root.

Thanks


(Lee Drengenberg) #4

You probably have some files owned by root now and that's what's causing the permission denied error.

To fix it I would suggest you do;
sudo chown -R kibana:kibana /usr/share/kibana

And then install x-pack as the kibana user as described in;
https://www.elastic.co/guide/en/kibana/current/installing-xpack-kb.html

Specifically this;
sudo -u kibana bin/kibana-plugin install x-pack


(Applicate) #5

It worked.

Thanks.


(system) #6

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