-
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
Upgrade causes root owned files #6730
Comments
@spalger While we can't fix the permissions on the file, we could potentially have kibana write the babel cache file to a tmp directory instead. What do you think? |
This permissions issue also affects the rpm of kibana: kibana-4.5.0-1.x86_64 |
The optimize directory is configurable, but I don't think a temp directory is a good idea. We don't want these files to ever be wiped out by the OS (babel cache is only one of the files that gets written) |
I created another issue #7157 that plugins need a dir (owned by Kibana) they can write to. |
Similar issue with phantomjs (x-pack):
|
@lifeofguenter I think https://github.com/elastic/x-plugins/issues/2201 covers that issue. |
Thanks @LeeDr , I don't think I have access to that repository, hence why I did not find it in first place :) |
Same thing with 5.0 Alpha 3 (even for a fresh install). Install 5.0 Alpha 3, install x-pack, the /opt/kibana/optimize/.babelcache.json is root owned and the kibana service will not start up until it is changed to kibana owner. |
@jbudz Does that PR also solve the problems for files other than babelcache? Reopening this just until confirmation. |
i resolved it by change the service user:
from: to: Not really sure if this is the ideal solution. Running Centos |
@jeremyforan Thanks for that. I think this will be fixed from 4.6.0 onward. |
This issue is still open for everybody who tries to upgrade an existing kibana 4.x to 4.5 on Ubuntu. Found this ticket after stumbling and prodding for an hour :-( 👎 |
@fredvd Unfortunately this is not something that we can retroactively fix since the underlying permissions issue is the result of the circumstances at the original install time rather than at upgrade time. So when the fixed version is released, it will require a fresh install, and then all upgrades from that point onward should work as you'd expect. It's possible the fix will go out in 4.5.4 instead of 4.6.0, but we're not really sure yet. |
fresh install, same problem.
RPM kibana-5.0.2-1.x86_64 update: This occurs when disabling x-pack components, as per guide. |
@celesteking tracking that one at #8818 |
I just ran into this exact same error with 5.1.2, what I did was edited the kibana.yml file to disable non free xpack plugins. When I restarted the node, it wouldn't boot. |
Edit: I posted this in the wrong issue. I ran into this error after installing x-pack on Kibana 5.3. |
@spalger : Could you please let me know how to configure optimize directory? |
@emanzaman I assume that since you commented here that you know the optimize directory can't be configured... |
@spalger Thanks for the confirmation 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? |
I am on Version 7.8.1
Error still persists,
What all I have tried:
EDIT: |
Same problem since upgrade from to 7.8.1 to 7.9 on centos 7 |
And fails when (re)start(ing) KB after the upgrade;
Here are the files;
I did a dirty
chown -R kibana /opt/kibana/
, but not sure if there is a cleaner settings.The text was updated successfully, but these errors were encountered: