I'm using an ubuntu 16.04 server on a VM.
and installed elasticsearch and kibana both version 7.14.
elasticsearch works properly.
but when I start the kibana service first it logs running on "systemctl status kibana" command after seconds it becomes activating and stopped at the end.
Startup log in "var/log/kibana/startup.log"
Configuring logger failed: UnableToReadKeystore: unable to read keystore
at Function.decrypt (/usr/share/kibana/src/cli/keystore/keystore.js:55:13)
at Keystore.load (/usr/share/kibana/src/cli/keystore/keystore.js:72:39)
at new Keystore (/usr/share/kibana/src/cli/keystore/keystore.js:29:10)
at readKeystore (/usr/share/kibana/src/cli/keystore/read_keystore.js:22:20)
at applyConfigOverrides (/usr/share/kibana/src/cli/serve/serve.js:165:41)
at applyConfigOverrides (/usr/share/kibana/src/cli/serve/serve.js:227:42)
at MapSubscriber.project (/usr/share/kibana/node_modules/@kbn/config/target/raw/raw_config_service.js:30:24)
at MapSubscriber._next (/usr/share/kibana/node_modules/rxjs/internal/operators/map.js:49:35)
at MapSubscriber.Subscriber.next (/usr/share/kibana/node_modules/rxjs/internal/Subscriber.js:66:18)
at ReplaySubject._subscribe (/usr/share/kibana/node_modules/rxjs/internal/ReplaySubject.js:80:28)
FATAL UnableToReadKeystore: unable to read keystore
The line Which exception is thrown "/usr/share/kibana/src/cli/keystore/keystore.js"
static decrypt(data, password = '') {
try {
const bData = Buffer.from(data, 'base64'); // convert data to buffers
const salt = bData.slice(0, 64);
const iv = bData.slice(64, 76);
const tag = bData.slice(76, 92);
const text = bData.slice(92);
const key = (0, _crypto.pbkdf2Sync)(password, salt, ITERATIONS, 32, 'sha512');
const decipher = (0, _crypto.createDecipheriv)(ALGORITHM, key, iv);
decipher.setAuthTag(tag);
return decipher.update(text, 'binary', 'utf8') + decipher.final('utf8');
} catch (e) {
throw new errors.UnableToReadKeystore();
}
}
lines 42-57
I didn't found the error on the internet.