log [21:34:55.708] [error][status][plugin:reporting] Status changed from uninitialized to red - Command failed: tar jxf /opt/kibana/installedPlugins/x-pack/.phantom/phantomjs-1.9.8-linux-x86_64.tar.bz2 tar (child): bzip2: Cannot exec: No such file or directory tar (child): Error is not recoverable: exiting now tar: Child returned status 2 tar: Error is not recoverable: exiting now
The Kibana service is failing to start because of this.. I've verified that the file does exist.. Any help would be appreciated.
Make sure you have the bzip2 executables installed on the machine:
which bzip2
which bunzip2
Check the file permissions on the file that the process is trying to read: ls -la installedPlugins/x-pack/.phantom
That will also list the permissions of the parent directory, where the decompressed files will need to be created.
If bzip is not installed on the machine, it will need to be. If it is a permissions issue, the installedPlugins directory ownership will need to be recursively changed to the user that runs the Kibana process.
I'm playing a bit more with this and I figured out the problem with permissions might be broader.
I added: logging.dest: /var/log/kibana.log to kibana.yml. That prevents kibana from starting. I fails with a permition error: Error: EACCES: permission denied, open '/var/log/kibana.log'
In case it is expected behavior that the log file should be owned by a kibana user it should state so in the comments. This also makes me wonder if any other configs are subjected to the same problems (pid files, certificates etc.).
I tried to run it "manually" with sudo bin/kibana and the permissions problems (reporting plugin, custom log file) went away. So I came to the conclusion that sudo service kibana start just runs it without the necessary permissions to actually work.
I've installed it as a deb package on a Ubuntu 16 OS.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.