Skip to content
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

Problem with the CONFIG_PATH variable #9791

Closed
inexxt opened this issue Jan 9, 2017 · 4 comments
Closed

Problem with the CONFIG_PATH variable #9791

inexxt opened this issue Jan 9, 2017 · 4 comments
Labels
Team:Operations Team label for Operations Team

Comments

@inexxt
Copy link

inexxt commented Jan 9, 2017

The config path variable is now named CONFIG_PATH - as it is quite a common name, it is possible that many other tasks may require the same name - in my case, it was set up by some other process.
It led to some quite cryptic error stack and took me a while to solve.

FATAL CLI ERROR Error: EISDIR: illegal operation on a directory, read
    at Error (native)
    at Object.fs.readSync (fs.js:731:19)
    at tryReadSync (fs.js:486:20)
    at fs.readFileSync (fs.js:534:19)
    at /home/user/Programs/kibana-5.1.1-linux-x86_64/src/cli/serve/read_yaml_config.js:52:55
    at Array.map (native)
    at exports.default (/home/user/Programs/kibana-5.1.1-linux-x86_64/src/cli/serve/read_yaml_config.js:51:21)
    at readServerSettings (/home/user/Programs/kibana-5.1.1-linux-x86_64/src/cli/serve/serve.js:48:52)
    at getCurrentSettings (/home/user/Programs/kibana-5.1.1-linux-x86_64/src/cli/serve/serve.js:104:14)
    at Command.<anonymous> (/home/user/Programs/kibana-5.1.1-linux-x86_64/src/cli/serve/serve.js:106:20)

Maybe changing the name of the variable to something like KIBANA_CONFIG_PATH or changing the way the exception stack is printed when there is a problem with that would be a good solution?

@tylersmalley tylersmalley added the Team:Operations Team label for Operations Team label Jan 9, 2017
@jbudz
Copy link
Member

jbudz commented Jan 9, 2017

@tsullivan
Copy link
Member

tsullivan commented Mar 29, 2019

You can give different environment variables to different processes: the variables don't need to be global in the OS / shell.

Also, you can run different processes in different containers nowadays, and whitelist variables to expose to running containers.

I'm inclined to see this closed as a wont-fix

@jbudz
Copy link
Member

jbudz commented Mar 29, 2019

It'll be changed to KIBANA_PATH_CONF to align with elasticsearch in #32049

@tsullivan
Copy link
Member

closing per #32049

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Operations Team label for Operations Team
Projects
None yet
Development

No branches or pull requests

4 participants