Workaround with Oracle Java 1.8.0_131 is to open file
<jre>/lib/security/java.policy
and add this line to
grant
section (i.e. between curly brackets):
permission javax.management.MBeanTrustPermission "register";
Why workaround? The upright solution would be to specify extra
grant
section which code exactly should get this permission.
https://stackoverflow.com/questions/44768167/error-could-not-register-mbeans-java-security-accesscontrolexception-access-den/45170748#45170748
share
improve this answer
follow
got the same error and the answer is here
java.security.AccessControlException when using Ant, but runs ok when invoking java from console
Append the grant section in java.policy file with
permission javax.management.MBeanTrustPermission "register";
https://stackoverflow.com/questions/44768167/error-could-not-register-mbeans-java-security-accesscontrolexception-access-den/45442095#45442095
share
improve this answer
follow
I had this same issue when moving from a single instance to two instances locally.
I tried what Alice suggested above. Even re-installed Elasticsearch (5.5.0).
I also updated my Java to the latest one for Linux provided by Oracle.
Nothing was working. Then I discovered, that I couldn't just take the elasticsearch-5.5.0/config directory and rename it to elasticsearch-5.5.0/node1.
So... I had to leave that config directory in place and clone it to node1/node2.
EVEN if I configure path.config in the runtime args, ES still needs that base line config directory.
Hope this helps.
https://stackoverflow.com/questions/44768167/error-could-not-register-mbeans-java-security-accesscontrolexception-access-den/45261106#45261106
share
improve this answer
follow
I faced same issue on Ubuntu-16.04 system.
Solution:
ElasticSeearch service is not allowed to run for "ROOT" user. That's why change the ownership of elasticsearch folder with below command:
go to Elasticseach installation directory
$ sudo chown -R user_name:user_Group elasticsearch-5.5.0
$/bin/elasticsearch
this will start elasticsearch service. It is working form me perfectly.
https://stackoverflow.com/questions/44768167/error-could-not-register-mbeans-java-security-accesscontrolexception-access-den/47830484#47830484
share
improve this answer
follow