Hello,
i have setup a normal 7.10.0 elasticsearch cluster, kibana and beats (metric- and filebeat on clusterserver) with multiple nodes which all communicate SSL-encrypted.
On every node of the elasticsearch cluster i installed open-distro-anomaly-detection
and opendistro-job-scheduler
in the version 1.12.0.0 and i installed opendistroAnomalyDetectionKibana@1.12.0.0
on kibana.
This works fine, but every hour i get the following error. Have i forgotten to install or configure something wrong?
[2021-01-29T00:49:46,203][ERROR][c.a.o.a.c.HourlyCron ] [bdp-node-12] Hourly maintenance has exception.
org.elasticsearch.ElasticsearchSecurityException: action [cluster:admin/opendistro/adinternal/cron] is unauthorized for user [_system]
at org.elasticsearch.xpack.core.security.support.Exceptions.authorizationError(Exceptions.java:34) ~[x-pack-core-7.10.0.jar:7.10.0]
at org.elasticsearch.xpack.security.authz.AuthorizationService.denialException(AuthorizationService.java:613) ~[x-pack-security-7.10.0.jar:7.10.0]
at org.elasticsearch.xpack.security.authz.AuthorizationService.authorizeSystemUser(AuthorizationService.java:404) [x-pack-security-7.10.0.jar:7.10.0]
at org.elasticsearch.xpack.security.authz.AuthorizationService.authorize(AuthorizationService.java:205) [x-pack-security-7.10.0.jar:7.10.0]
at org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.authorizeRequest(SecurityActionFilter.java:173) [x-pack-security-7.10.0.jar:7.10.0]
at org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.lambda$applyInternal$3(SecurityActionFilter.java:159) [x-pack-security-7.10.0.jar:7.10.0]
at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:63) [elasticsearch-7.10.0.jar:7.10.0]
at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.lambda$authenticateAsync$2(AuthenticationService.java:323) [x-pack-security-7.10.0.jar:7.10.0]
at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.lambda$lookForExistingAuthentication$6(AuthenticationService.java:384) [x-pack-security-7.10.0.jar:7.10.0]
at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.lookForExistingAuthentication(AuthenticationService.java:395) [x-pack-security-7.10.0.jar:7.10.0]
at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.authenticateAsync(AuthenticationService.java:320) [x-pack-security-7.10.0.jar:7.10.0]
at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.access$000(AuthenticationService.java:261) [x-pack-security-7.10.0.jar:7.10.0]
at org.elasticsearch.xpack.security.authc.AuthenticationService.authenticate(AuthenticationService.java:156) [x-pack-security-7.10.0.jar:7.10.0]
at org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.applyInternal(SecurityActionFilter.java:156) [x-pack-security-7.10.0.jar:7.10.0]
at org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.lambda$apply$1(SecurityActionFilter.java:93) [x-pack-security-7.10.0.jar:7.10.0]
at org.elasticsearch.xpack.core.security.SecurityContext.executeAsUser(SecurityContext.java:138) [x-pack-core-7.10.0.jar:7.10.0]
at org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.apply(SecurityActionFilter.java:91) [x-pack-security-7.10.0.jar:7.10.0]
at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:177) [elasticsearch-7.10.0.jar:7.10.0]
at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:155) [elasticsearch-7.10.0.jar:7.10.0]
at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:83) [elasticsearch-7.10.0.jar:7.10.0]
at org.elasticsearch.client.node.NodeClient.executeLocally(NodeClient.java:86) [elasticsearch-7.10.0.jar:7.10.0]
at org.elasticsearch.client.node.NodeClient.doExecute(NodeClient.java:75) [elasticsearch-7.10.0.jar:7.10.0]
at org.elasticsearch.client.support.AbstractClient.execute(AbstractClient.java:412) [elasticsearch-7.10.0.jar:7.10.0]
at com.amazon.opendistroforelasticsearch.ad.cluster.HourlyCron.run(HourlyCron.java:49) [opendistro-anomaly-detection-1.12.0.0.jar:1.12.0.0]
at org.elasticsearch.threadpool.Scheduler$ReschedulingRunnable.doRun(Scheduler.java:213) [elasticsearch-7.10.0.jar:7.10.0]
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:737) [elasticsearch-7.10.0.jar:7.10.0]
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) [elasticsearch-7.10.0.jar:7.10.0]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) [?:?]
at java.lang.Thread.run(Thread.java:832) [?:?]
I have seen, that Open Distro alert plugin elasticsearch exception has a similar exception and thats it not possible with xpack, but kibana - Enable xpack features on Open Distro For Elasticsearch - Stack Overflow stated, that some xpack features are included in BASIC version.
So doesn’t it definitely work with xpack installed or can these ERRORs be safely ignored, because the installation and kibana visualisation seems to work.