Error: EISDIR: illegal operation on a directory, read
when I try to start Kibana manually. This is the stack trace:
Configuring logger failed: { Error: EISDIR: illegal operation on a directory, read
at Object.readSync (fs.js:498:3)
at tryReadSync (fs.js:332:20)
at readFileSync (fs.js:369:19)
at Keystore.load (/usr/local/Cellar/kibana-full/7.9.0/libexec/src/legacy/server/keystore/keystore.js:70:45)
at new Keystore (/usr/local/Cellar/kibana-full/7.9.0/libexec/src/legacy/server/keystore/keystore.js:29:10)
at readKeystore (/usr/local/Cellar/kibana-full/7.9.0/libexec/src/cli/serve/read_keystore.js:33:20)
at applyConfigOverrides (/usr/local/Cellar/kibana-full/7.9.0/libexec/src/cli/serve/serve.js:164:41)
at applyConfigOverrides (/usr/local/Cellar/kibana-full/7.9.0/libexec/src/cli/serve/serve.js:223:42)
at MapSubscriber.RawConfigService.config$.rawConfigFromFile$.pipe.rawConfig [as project] (/usr/local/Cellar/kibana-full/7.9.0/libexec/src/core/server/config/raw_config_service.js:39:16)
at MapSubscriber._next (/usr/local/Cellar/kibana-full/7.9.0/libexec/node_modules/rxjs/internal/operators/map.js:49:35)
at MapSubscriber.Subscriber.next (/usr/local/Cellar/kibana-full/7.9.0/libexec/node_modules/rxjs/internal/Subscriber.js:66:18)
at ReplaySubject._subscribe (/usr/local/Cellar/kibana-full/7.9.0/libexec/node_modules/rxjs/internal/ReplaySubject.js:76:28)
at ReplaySubject.Observable._trySubscribe (/usr/local/Cellar/kibana-full/7.9.0/libexec/node_modules/rxjs/internal/Observable.js:44:25)
at ReplaySubject.Subject._trySubscribe (/usr/local/Cellar/kibana-full/7.9.0/libexec/node_modules/rxjs/internal/Subject.js:102:51)
at ReplaySubject.Observable.subscribe (/usr/local/Cellar/kibana-full/7.9.0/libexec/node_modules/rxjs/internal/Observable.js:30:22)
at MapOperator.call (/usr/local/Cellar/kibana-full/7.9.0/libexec/node_modules/rxjs/internal/operators/map.js:32:23) errno: -21, syscall: 'read', code: 'EISDIR' }
FATAL Error: EISDIR: illegal operation on a directory, read
I have the same error while starting Kibana. Is there another workaround for this issue? I've set an external data path for Kibana for the ease of upgrade so commenting out path.data in kibana.yml is not an option for me.
Without path.data it works. At the failure point it's trying to read '/usr/local/var/lib/kibana/data' as the keystore filename but that's a directory name.
Seems to be related to this change in 7.9.0:
kibana.keystore moved from the data folder to the config folder
kibana.keystore has moved from the configured path.data folder to <root>/config for archive distributions and /etc/kibana for package distributions. If a pre-existing keystore exists in the data directory, that path will continue to be used.
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.