Hello,
just installed ElasticSearch 5.2.2 through RPM packages on Redhat 7, VMware VM x64.
when starting, ES throws an error:
Mar 28 18:36:54 rcsloggen02bp elasticsearch: 2017-03-28 18:36:54,812 main ERROR Could not register mbeans java.security.AccessControlException: access denied ("javax.management.MBeanTrustPermission" "register")
Mar 28 18:36:54 rcsloggen02bp elasticsearch: at java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
Mar 28 18:36:54 rcsloggen02bp elasticsearch: at java.lang.SecurityManager.checkPermission(SecurityManager.java:585)
Mar 28 18:36:54 rcsloggen02bp elasticsearch: at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.checkMBeanTrustPermission(DefaultMBeanServerInterceptor.java:1848)
Mar 28 18:36:54 rcsloggen02bp elasticsearch: at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:322)
Mar 28 18:36:54 rcsloggen02bp elasticsearch: at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:522)
Mar 28 18:36:54 rcsloggen02bp elasticsearch: at org.apache.logging.log4j.core.jmx.Server.register(Server.java:389)
Mar 28 18:36:54 rcsloggen02bp elasticsearch: at org.apache.logging.log4j.core.jmx.Server.reregisterMBeansAfterReconfigure(Server.java:167)
Mar 28 18:36:54 rcsloggen02bp elasticsearch: at org.apache.logging.log4j.core.jmx.Server.reregisterMBeansAfterReconfigure(Server.java:140)
Mar 28 18:36:54 rcsloggen02bp elasticsearch: at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:541)
Mar 28 18:36:54 rcsloggen02bp elasticsearch: at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:258)
Mar 28 18:36:54 rcsloggen02bp elasticsearch: at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:206)
Mar 28 18:36:54 rcsloggen02bp elasticsearch: at org.apache.logging.log4j.core.config.Configurator.initialize(Configurator.java:220)
Mar 28 18:36:54 rcsloggen02bp elasticsearch: at org.apache.logging.log4j.core.config.Configurator.initialize(Configurator.java:197)
Mar 28 18:36:54 rcsloggen02bp elasticsearch: at org.elasticsearch.common.logging.LogConfigurator.configureStatusLogger(LogConfigurator.java:125)
Mar 28 18:36:54 rcsloggen02bp elasticsearch: at org.elasticsearch.common.logging.LogConfigurator.configureWithoutConfig(LogConfigurator.java:67)
Mar 28 18:36:54 rcsloggen02bp elasticsearch: at org.elasticsearch.cli.Command.main(Command.java:85)
Mar 28 18:36:54 rcsloggen02bp elasticsearch: at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:89)
Mar 28 18:36:54 rcsloggen02bp elasticsearch: at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:82)
Mar 28 18:36:55 rcsloggen02bp elasticsearch: 2017-03-28 18:36:55,235 main ERROR Could not register mbeans java.security.AccessControlException: access denied ("javax.management.MBeanTrustPermission" "register")
Mar 28 18:36:55 rcsloggen02bp elasticsearch: at java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
Mar 28 18:36:55 rcsloggen02bp elasticsearch: at java.lang.SecurityManager.checkPermission(SecurityManager.java:585)
Mar 28 18:36:55 rcsloggen02bp elasticsearch: at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.checkMBeanTrustPermission(DefaultMBeanServerInterceptor.java:1848)
Mar 28 18:36:55 rcsloggen02bp elasticsearch: at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:322)
Mar 28 18:36:55 rcsloggen02bp elasticsearch: at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:522)
Mar 28 18:36:55 rcsloggen02bp elasticsearch: at org.apache.logging.log4j.core.jmx.Server.register(Server.java:389)
Mar 28 18:36:55 rcsloggen02bp elasticsearch: at org.apache.logging.log4j.core.jmx.Server.reregisterMBeansAfterReconfigure(Server.java:167)
Mar 28 18:36:55 rcsloggen02bp elasticsearch: at org.apache.logging.log4j.core.jmx.Server.reregisterMBeansAfterReconfigure(Server.java:140)
Mar 28 18:36:55 rcsloggen02bp elasticsearch: at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:541)
Mar 28 18:36:55 rcsloggen02bp elasticsearch: at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:258)
Mar 28 18:36:55 rcsloggen02bp elasticsearch: at org.elasticsearch.common.logging.LogConfigurator.configure(LogConfigurator.java:116)
Mar 28 18:36:55 rcsloggen02bp elasticsearch: at org.elasticsearch.common.logging.LogConfigurator.configure(LogConfigurator.java:83)
Mar 28 18:36:55 rcsloggen02bp elasticsearch: at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:299)
Mar 28 18:36:55 rcsloggen02bp elasticsearch: at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:121)
Mar 28 18:36:55 rcsloggen02bp elasticsearch: at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:112)
Mar 28 18:36:55 rcsloggen02bp elasticsearch: at org.elasticsearch.cli.SettingCommand.execute(SettingCommand.java:54)
Mar 28 18:36:55 rcsloggen02bp elasticsearch: at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:122)
Mar 28 18:36:55 rcsloggen02bp elasticsearch: at org.elasticsearch.cli.Command.main(Command.java:88)
Mar 28 18:36:55 rcsloggen02bp elasticsearch: at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:89)
Mar 28 18:36:55 rcsloggen02bp elasticsearch: at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:82)
I had found some posts about those permission denied, but they did not help.
- tried to chown -R elasticsearch /usr/share/elasticsearch
=> same error - reverted back to how it was before
- tried to setenforce 0
=> same error
from the logs I cannot find the culprit.
did anyone get something similar ?
thank you, best regards
Mathias