Hi,
I have a problem where i cannot start the elasticsearch. This is what i get from the logs.
[2021-01-11T15:59:36,658][ERROR][o.e.b.ElasticsearchUncaughtExceptionHandler] [vm-elastic-mlearning] fatal error in thread [main], exiting
java.lang.InternalError: java.lang.reflect.InvocationTargetException
at jdk.internal.platform.Metrics.systemMetrics(Metrics.java:65) ~[?:?]
at jdk.internal.platform.Container.metrics(Container.java:43) ~[?:?]
at com.sun.management.internal.OperatingSystemImpl.<init>(OperatingSystemImpl.java:48) ~[?:?]
at com.sun.management.internal.PlatformMBeanProviderImpl.getOperatingSystemMXBean(PlatformMBeanProviderImpl.java:281) ~[?:?]
at com.sun.management.internal.PlatformMBeanProviderImpl$3.nameToMBeanMap(PlatformMBeanProviderImpl.java:198) ~[?:?]
at sun.management.spi.PlatformMBeanProvider$PlatformComponent.getMBeans(PlatformMBeanProvider.java:195) ~[?:?]
at java.lang.management.ManagementFactory.getPlatformMXBean(ManagementFactory.java:686) ~[?:?]
at java.lang.management.ManagementFactory.getOperatingSystemMXBean(ManagementFactory.java:388) ~[?:?]
at org.elasticsearch.monitor.process.ProcessProbe.<clinit>(ProcessProbe.java:33) ~[elasticsearch-7.9.3.jar:7.9.3]
at org.elasticsearch.bootstrap.Bootstrap.initializeProbes(Bootstrap.java:164) ~[elasticsearch-7.9.3.jar:7.9.3]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:185) ~[elasticsearch-7.9.3.jar:7.9.3]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:393) ~[elasticsearch-7.9.3.jar:7.9.3]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:170) ~[elasticsearch-7.9.3.jar:7.9.3]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:161) ~[elasticsearch-7.9.3.jar:7.9.3]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-7.9.3.jar:7.9.3]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:127) ~[elasticsearch-cli-7.9.3.jar:7.9.3]
at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-7.9.3.jar:7.9.3]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:126) ~[elasticsearch-7.9.3.jar:7.9.3]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92) ~[elasticsearch-7.9.3.jar:7.9.3]
Caused by: java.lang.reflect.InvocationTargetException
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:564) ~[?:?]
at jdk.internal.platform.Metrics.systemMetrics(Metrics.java:61) ~[?:?]
... 18 more
Caused by: java.lang.ExceptionInInitializerError
at jdk.internal.platform.CgroupSubsystemFactory.create(CgroupSubsystemFactory.java:77) ~[?:?]
at jdk.internal.platform.CgroupMetrics.getInstance(CgroupMetrics.java:163) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:564) ~[?:?]
at jdk.internal.platform.Metrics.systemMetrics(Metrics.java:61) ~[?:?]
... 18 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 4 out of bounds for length 1
at jdk.internal.platform.cgroupv2.CgroupV2Subsystem.initSubsystem(CgroupV2Subsystem.java:71) ~[?:?]
at jdk.internal.platform.cgroupv2.CgroupV2Subsystem.<clinit>(CgroupV2Subsystem.java:42) ~[?:?]
at jdk.internal.platform.CgroupSubsystemFactory.create(CgroupSubsystemFactory.java:77) ~[?:?]
at jdk.internal.platform.CgroupMetrics.getInstance(CgroupMetrics.java:163) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:564) ~[?:?]
at jdk.internal.platform.Metrics.systemMetrics(Metrics.java:61) ~[?:?]
... 18 more
The errors just suddenly showing this before elasticsearch checked my config file, so i think the problem is not in my elasticsearch.yml. I tried to reinstall the elasticsearch by extracting .tar.gz files to different directory with simple configurations (only configure cluster.name
, node.name
, network.host
, discovery.seed_hosts
, and cluster.initial_master_nodes
), but the same error appears.
I also found additional errors when i tried to run elasticsearch directly by running the elasticsearch script (./bin/elasticsearch)
ERROR CLogger.cc@310 Cannot log to named pipe /tmp/elasticsearch-16057353071057324891/controller_log_30952 as it could not be opened for writing
I checked the directory under /tmp/elasticsearch-16057353071057324891/ but there's nothing in it. I also tried to create a file in it, and it worked.
Am i missing something here ?