Knowledge Base

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I resolve an Events Service stack trace start-up error?

How do I resolve this error: "ERROR: java.security.AccessControlException: access denied while starting events service"

 

Events Service stack trace error during start-up

While starting, the Events Service fails to start up due to following stack trace error:

[ERROR]  [ProcessQueue0]  [c.a.a.p.e.e.ElasticSearchExecutor]  This message was throttled 
[1] times: java.security.AccessControlException: access denied (
"java.lang.RuntimePermission" "getClassLoader")
[ERROR]  [ProcessQueue0]  [c.a.a.p.e.e.ElasticSearchExecutor]  
java.security.AccessControlException: 
access denied ("java.lang.RuntimePermission" 
"getClassLoader")
[ERROR]  [ProcessQueue0]  [c.a.a.p.e.e.ElasticSearchExecutor]      at 
java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
[ERROR]  [ProcessQueue0]  [c.a.a.p.e.e.ElasticSearchExecutor]

 

Solution

To resolve this issue, the classloader permit-list can be customized by tweaking the local Java Security Policy. This can be done in one of the following ways:

  • system-wide: $JAVA_HOME/lib/security/java.policy

  • for just the elasticsearch user: /home/elasticsearch/.java.policy

  • from a file specified in the JAVA_OPTS environment variable with -Djava.security.policy=someURL:

    export JAVA_OPTS="${JAVA_OPTS} -Djava.security.policy=file:///path/to/my.policy`
    ./bin/elasticsearch 

 

Once this is complete, the error should be resolved.

 

Reference

https://www.elastic.co/guide/en/elasticsearch/reference/2.2/modules-scripting-security.html

Version history
Revision #:
4 of 4
Last update:
‎07-08-2020 03:13 PM
Updated by:
 
Labels (1)


Found this article helpful? Click the Thumbs Up button.
Have an additional comment? Post it below.