Kibana 4.5.1 cannot start because of "permission denied"

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.

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.

I've fixed by myself.

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

1 Like

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

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.