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

Configure optimise directory using BABEL_CACHE_PATH #18856

Closed
emanzaman opened this issue May 7, 2018 · 8 comments
Closed

Configure optimise directory using BABEL_CACHE_PATH #18856

emanzaman opened this issue May 7, 2018 · 8 comments
Labels
feedback_needed Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc

Comments

@emanzaman
Copy link

emanzaman commented May 7, 2018

Kibana version: 5.6.8

Elasticsearch version: 5.6.8

Server OS version: Red Hat Enterprise Linux 7.3

Describe the feature: As per the discussions in #6730, it is not possible to configure the Optimize directory. But when we copied the whole optimize directory to a different folder (owned by kibana user) and tried exporting BABEL_CACHE_PATH which is the path upto ${DIR_OWNED_BY_KIBANA_USER}/optimize/.babelcache.json file, kibana seems to be working fine. Is there any other problem that we might encounter in future?

@emanzaman emanzaman changed the title Configure optimise directory Configure optimise directory using BABEL_CACHE_PATH May 7, 2018
@ppisljar ppisljar added the Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc label May 7, 2018
@emanzaman
Copy link
Author

To update on the issue further we are getting the following error on starting Kibana:

FATAL { Error: EACCES: permission denied, open '/opt/app/ignite/pkgs/tp/kibana/5.6.8/optimize/bundles/kibana.entry.js' at Error (native) cause: { Error: EACCES: permission denied, open '/opt/app/ignite/pkgs/tp/kibana/5.6.8/optimize/bundles/kibana.entry.js' at Error (native) errno: -13, code: 'EACCES', syscall: 'open', path: '/opt/app/ignite/pkgs/tp/kibana/5.6.8/optimize/bundles/kibana.entry.js' }, isOperational: true, errno: -13, code: 'EACCES', syscall: 'open', path: '/opt/app/ignite/pkgs/tp/kibana/5.6.8/optimize/bundles/kibana.entry.js' }

We have also not installed any plugin on Kibana. And read permission is provided to the user starting up Kibana on the /opt/app/ignite/pkgs/tp/kibana/5.6.8/optimize/bundles directory.

@epixa
Copy link
Contributor

epixa commented Aug 24, 2018

That error message is what you'll see when the user running Kibana doesn't have sufficient permissions to the optimize directory and contents. If this is still an issue, can you verify whether the user has read permissions to that entry file?

@emanzaman
Copy link
Author

Yes, your are right , seems like BABLE_CACHE_PATH didn't actually override the optimize bundles directory path. We ended up keeping the whole of kibana package in a directory owned by the user running kibana but revoked write access to all the directories inside the package except for optimize directory.

@epixa
Copy link
Contributor

epixa commented Aug 28, 2018

@emanzaman That's a good plan. I'm going to close this because we'd prefer people don't configure different locations for optimize.

@epixa epixa closed this as completed Aug 28, 2018
@rnalrd
Copy link

rnalrd commented Sep 13, 2018

@epixa you leave distro packagers with no options, other than patching the source. You really don't want to have kibana or any other process writing temporary files into /usr.
Thanks for considering this issue.

@epixa
Copy link
Contributor

epixa commented Sep 13, 2018

@rnalrd Can you elaborate? We release official rpm/deb packages for Kibana, so distro packages are available today.

@perlei
Copy link

perlei commented Nov 21, 2018

The official deb packages also is writing temporary files to /usr/ they should be in something like /var/run/kibana. The best would ofcource if this was a configurable directory.

Like in this proposal : #5071

@epixa
Copy link
Contributor

epixa commented Nov 21, 2018

@perlei We're in agreement there. #15899 is the issue tracking that, and there's a recent PR that looks to handle this for the optimize directory specifically: #25944

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feedback_needed Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
Projects
None yet
Development

No branches or pull requests

6 participants