Opensearch-dashboards errors

opensearch-dashboards | {“type”:“log”,“@timestamp”:“2022-07-18T19:13:43Z”,“tags”:[“error”,“opensearch”,“data”],“pid”:1,“message”:“[ResponseError]: Response Error”}
opensearch-node1 | [2022-07-18T19:13:43,848][ERROR][o.o.s.c.ConfigurationRepository] [opensearch-node1] Cannot apply default config (this is maybe not an error!)
opensearch-node1 | com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Failed on call to getDeclaredMethods() on class org.opensearch.common.xcontent.ToXContent, problem: (java.security.AccessControlException) access denied (“java.lang.RuntimePermission” “accessDeclaredMembers”)
opensearch-node1 | at com.fasterxml.jackson.databind.exc.InvalidDefinitionException.from(InvalidDefinitionException.java:77) ~[jackson-databind-2.13.2.2.jar:2.13.2.2]
opensearch-node1 | at com.fasterxml.jackson.databind.SerializerProvider.reportBadDefinition(SerializerProvider.java:1300) ~[jackson-databind-2.13.2.2.jar:2.13.2.2]
opensearch-node1 | at com.fasterxml.jackson.databind.SerializerProvider._createAndCacheUntypedSerializer(SerializerProvider.java:1447) ~[jackson-databind-2.13.2.2.jar:2.13.2.2]
opensearch-node1 | at com.fasterxml.jackson.databind.SerializerProvider.findValueSerializer(SerializerProvider.java:544) ~[jackson-databind-2.13.2.2.jar:2.13.2.2]
opensearch-node1 | at com.fasterxml.jackson.databind.SerializerProvider.findTypedValueSerializer(SerializerProvider.java:822) ~[jackson-databind-2.13.2.2.jar:2.13.2.2]
opensearch-node1 | at com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.serializeValue(DefaultSerializerProvider.java:308) ~[jackson-databind-2.13.2.2.jar:2.13.2.2]
opensearch-node1 | at com.fasterxml.jackson.databind.ObjectMapper._writeValueAndClose(ObjectMapper.java:4568) ~[jackson-databind-2.13.2.2.jar:2.13.2.2]
opensearch-node1 | at com.fasterxml.jackson.databind.ObjectMapper.writeValueAsString(ObjectMapper.java:3821) ~[jackson-databind-2.13.2.2.jar:2.13.2.2]
opensearch-node1 | at org.opensearch.security.support.ConfigHelper.createEmptySdcYaml(ConfigHelper.java:115) ~[opensearch-security-2.1.0.0.jar:2.1.0.0]
opensearch-node1 | at org.opensearch.security.support.ConfigHelper.createFileOrStringReader(ConfigHelper.java:96) ~[opensearch-security-2.1.0.0.jar:2.1.0.0]
opensearch-node1 | at org.opensearch.security.support.ConfigHelper.uploadFile(ConfigHelper.java:72) ~[opensearch-security-2.1.0.0.jar:2.1.0.0]
opensearch-node1 | at org.opensearch.security.configuration.ConfigurationRepository$1.run(ConfigurationRepository.java:144) [opensearch-security-2.1.0.0.jar:2.1.0.0]
opensearch-node1 | at java.lang.Thread.run(Thread.java:833) [?:?]
opensearch-node1 | Suppressed: org.yaml.snakeyaml.emitter.EmitterException: expected NodeEvent, but got <org.yaml.snakeyaml.events.DocumentEndEvent()>
opensearch-node1 | at org.yaml.snakeyaml.emitter.Emitter.expectNode(Emitter.java:412) ~[snakeyaml-1.26.jar:?]
opensearch-node1 | at org.yaml.snakeyaml.emitter.Emitter.access$1600(Emitter.java:62) ~[snakeyaml-1.26.jar:?]
opensearch-node1 | at org.yaml.snakeyaml.emitter.Emitter$ExpectDocumentRoot.expect(Emitter.java:379) ~[snakeyaml-1.26.jar:?]
opensearch-node1 | at org.yaml.snakeyaml.emitter.Emitter.emit(Emitter.java:220) ~[snakeyaml-1.26.jar:?]
opensearch-node1 | at com.fasterxml.jackson.dataformat.yaml.YAMLGenerator._emit(YAMLGenerator.java:969) ~[jackson-dataformat-yaml-2.13.2.jar:2.13.2]
opensearch-node1 | at com.fasterxml.jackson.dataformat.yaml.YAMLGenerator._emitEndDocument(YAMLGenerator.java:964) ~[jackson-dataformat-yaml-2.13.2.jar:2.13.2]
opensearch-node1 | at com.fasterxml.jackson.dataformat.yaml.YAMLGenerator.close(YAMLGenerator.java:489) ~[jackson-dataformat-yaml-2.13.2.jar:2.13.2]
opensearch-node1 | at com.fasterxml.jackson.databind.util.ClassUtil.closeOnFailAndThrowAsIOE(ClassUtil.java:497) ~[jackson-databind-2.13.2.2.jar:2.13.2.2]
opensearch-node1 | at com.fasterxml.jackson.databind.ObjectMapper._writeValueAndClose(ObjectMapper.java:4570) ~[jackson-databind-2.13.2.2.jar:2.13.2.2]
opensearch-node1 | at com.fasterxml.jackson.databind.ObjectMapper.writeValueAsString(ObjectMapper.java:3821) ~[jackson-databind-2.13.2.2.jar:2.13.2.2]
opensearch-node1 | at org.opensearch.security.support.ConfigHelper.createEmptySdcYaml(ConfigHelper.java:115) ~[opensearch-security-2.1.0.0.jar:2.1.0.0]
opensearch-node1 | at org.opensearch.security.support.ConfigHelper.createFileOrStringReader(ConfigHelper.java:96) ~[opensearch-security-2.1.0.0.jar:2.1.0.0]
opensearch-node1 | at org.opensearch.security.support.ConfigHelper.uploadFile(ConfigHelper.java:72) ~[opensearch-security-2.1.0.0.jar:2.1.0.0]
opensearch-node1 | at org.opensearch.security.configuration.ConfigurationRepository$1.run(ConfigurationRepository.java:144) [opensearch-security-2.1.0.0.jar:2.1.0.0]
opensearch-node1 | at java.lang.Thread.run(Thread.java:833) [?:?]
opensearch-node1 | [2022-07-18T19:13:43,932][INFO ][o.o.a.u.d.DestinationMigrationCoordinator] [opensearch-node1] Detected cluster change event for destination migration

Hey @infodata it would really help if you could briefly describe what is going on. I am not sure anyone can determine just based off a log snippet what is wrong here.

@dtaivpp thank you for reply

yes im getting these when run from docker containers (on amzn ami linux instances)
I do not see any issue in using opensearch or dashboards for basic logs storage visualize
but get these errros in logs

also another post below but no issue in using opensearch itself
“Failed to load default template for OpenSearch v2 with ECS disabled;

Okay we are getting a little closer but still I dont know what the issue seems to be? Is OpenSearch not starting, are logs not coming through?

no issue in using opensearch
FYI or if any other issue that hasnt been reported

1 Like

Ah okay, that makes a lot more sense. Yeah these warnings and things bother me a lot actually as they seem to just add clutter rather than provide insight. :confused:

some of them are errors
[ERROR]
Failed to install template {:message=>“Failed to load default template for OpenSearch v2 with ECS disabled; caused by: #<ArgumentError: Template file ‘/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-output-opensearch-1.2.0-java/lib/logstash/outputs/opensearch/templates/ecs-disabled/2x.json’ could not be found>”, :exception=>RuntimeError, :backtrace=>

That could be a false error though. It’s looking for a default template that doesn’t exist which may not be a real error depending on whether or not you need that.