-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kibana-keystore does not respect path.data in kibana.yml #43539
Comments
Pinging @elastic/kibana-operations |
duplicate of #31171 |
We've moved the keystore to
|
Just adding to this issue. If you installed Kibana via ivan@server:/usr/share/kibana$ bin/kibana-keystore create
FATAL CLI ERROR Error: ENOENT: no such file or directory, open '/usr/share/kibana/config/kibana.keystore'
at Object.openSync (fs.js:443:3)
at writeFileSync (fs.js:1194:35)
at Keystore.save (/usr/share/kibana/src/legacy/server/keystore/keystore.js:65:27)
at create (/usr/share/kibana/src/cli_keystore/create.js:43:12)
at Command.<anonymous> (/usr/share/kibana/src/cli/command.js:113:20)
at Command.listener (/usr/share/kibana/node_modules/commander/index.js:291:8)
at Command.emit (events.js:198:13)
at Command.parseArgs (/usr/share/kibana/node_modules/commander/index.js:672:12)
at Command.parse (/usr/share/kibana/node_modules/commander/index.js:459:21)
at Object.<anonymous> (/usr/share/kibana/src/cli_keystore/cli_keystore.js:69:9) Instead you must run ivan@server:/usr/share/kibana$ sudo bin/kibana-keystore create --allow-root
Created Kibana keystore in /etc/kibana/kibana.keystore which succesfully creates the keystore: ivan@server:/usr/share/kibana$ sudo ls -la /etc/kibana/
total 32
drwxr-s--- 2 root kibana 4096 Dec 31 04:03 .
drwxr-xr-x 111 root root 12288 Dec 31 02:08 ..
-rw-r--r-- 1 root kibana 130 Dec 31 04:03 kibana.keystore
-rw-rw---- 1 root kibana 5211 Dec 31 03:27 kibana.yml
-rw-r--r-- 1 root kibana 216 Dec 5 01:47 node.options |
Here's a simple reproduction:
This appears to be because
keystone-create
only usesgetData
which doesn't chase thepath.data
setting:kibana/src/cli_keystore/cli_keystore.js
Line 24 in 83e3db0
kibana/src/legacy/server/path/index.js
Line 51 in 83e3db0
kibana/src/legacy/server/path/index.js
Lines 32 to 36 in 83e3db0
Note that if we use the deprecated environment variable
DATA_PATH
then everything is fine:Relates #32049
The text was updated successfully, but these errors were encountered: