Kibana 4.5.1 cannot start because of "permission denied"


(Feng Yu (Abcfy2)) #1

I install kibana on Ubuntu Server 14.04.4 LTS.

But when I upgrade kibana from 4.5.0 to 4.5.1, it cannot startup any more.

Here is the /var/log/kibana/kibana.stderr:

FATAL { [Error: EACCES: permission denied, open '/opt/kibana/optimize/bundles/kibana.entry.js']
  cause: 
   { [Error: EACCES: permission denied, open '/opt/kibana/optimize/bundles/kibana.entry.js']
     errno: -13,
     code: 'EACCES',
     syscall: 'open',
     path: '/opt/kibana/optimize/bundles/kibana.entry.js' },
  isOperational: true,
  errno: -13,
  code: 'EACCES',
  syscall: 'open',
  path: '/opt/kibana/optimize/bundles/kibana.entry.js' }
FATAL { [Error: EACCES: permission denied, open '/opt/kibana/optimize/bundles/kibana.entry.js']
  cause: 
   { [Error: EACCES: permission denied, open '/opt/kibana/optimize/bundles/kibana.entry.js']
     errno: -13,
     code: 'EACCES',
     syscall: 'open',
     path: '/opt/kibana/optimize/bundles/kibana.entry.js' },
  isOperational: true,
  errno: -13,
  code: 'EACCES',
  syscall: 'open',
  path: '/opt/kibana/optimize/bundles/kibana.entry.js' }

I've tried to use apt-get purge kibana to uninstall kibana, and use apt-get install kibana to install it agent.


(Feng Yu (Abcfy2)) #2

I've downgraded to 4.5.0 by using apt-get install kibana=4.5.0. It works well for me.

Hope this issue will be fixed.


(Feng Yu (Abcfy2)) #3

I've fixed by myself.

Just use chmod -R kibana:kibana /opt/kibana/optimize/.


(Mark Walkom) #4

There's an existing issue on GH for this - https://github.com/elastic/kibana/issues/6730


(Feng Yu (Abcfy2)) #5

That's right, same issue. I've compared the packages between 4.5.0 and 4.5.1. I find that 4.5.0 deb package does not contain config/kibana.yml and optimize/bundles/. Kibana 4.5.0 will automate create these files and dirs at first startup.


(system) #6