Error while installing X-pack on Kibana

bin/kibana-plugin install x-pack
return, 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


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


OS: Ubuntu
Package: .deb
Not as root.


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;

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

It worked.


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