Ошибка при обновлении ElasticSearch

При обновлении ElasticSearch с 7.9.0 на 7.10.0 возникает ошибка. С чем может быть связано? Ранее таких ошибок не было. Что-то изменилось?

$ sudo dpkg -i elasticsearch-7.10.0-amd64.deb
(Reading database ... 203772 files and directories currently installed.)
Preparing to unpack elasticsearch-7.10.0-amd64.deb ...
Unpacking elasticsearch (7.10.0) over (7.9.0) ...
Setting up elasticsearch (7.10.0) ...
Installing new version of config file /etc/elasticsearch/log4j2.properties ...
Exception in thread "main" java.lang.InternalError: java.lang.reflect.Invocation                                                                                                                               TargetException
        at java.base/jdk.internal.platform.Metrics.systemMetrics(Metrics.java:65                                                                                                                               )
        at java.base/jdk.internal.platform.Container.metrics(Container.java:43)
        at jdk.management/com.sun.management.internal.OperatingSystemImpl.<init>                                                                                                                               (OperatingSystemImpl.java:48)
        at jdk.management/com.sun.management.internal.PlatformMBeanProviderImpl.                                                                                                                               getOperatingSystemMXBean(PlatformMBeanProviderImpl.java:281)
        at jdk.management/com.sun.management.internal.PlatformMBeanProviderImpl$                                                                                                                               3.nameToMBeanMap(PlatformMBeanProviderImpl.java:198)
        at java.management/java.lang.management.ManagementFactory.lambda$getPlat                                                                                                                               formMBeanServer$0(ManagementFactory.java:487)
        at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipe                                                                                                                               line.java:271)
        at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipe                                                                                                                               line.java:177)
        at java.base/java.util.HashMap$ValueSpliterator.forEachRemaining(HashMap                                                                                                                               .java:1766)
        at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline                                                                                                                               .java:484)
        at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractP                                                                                                                               ipeline.java:474)
        at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(Fo                                                                                                                               rEachOps.java:150)
        at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequent                                                                                                                               ial(ForEachOps.java:173)
        at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline                                                                                                                               .java:234)
        at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipelin                                                                                                                               e.java:497)
        at java.management/java.lang.management.ManagementFactory.getPlatformMBe                                                                                                                               anServer(ManagementFactory.java:488)
        at org.apache.logging.log4j.core.jmx.Server.reregisterMBeansAfterReconfi                                                                                                                               gure(Server.java:140)
        at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerCo                                                                                                                               ntext.java:558)
        at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:                                                                                                                               263)
        at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log                                                                                                                               4jContextFactory.java:207)
        at org.apache.logging.log4j.core.config.Configurator.initialize(Configur                                                                                                                               ator.java:220)
        at org.apache.logging.log4j.core.config.Configurator.initialize(Configur                                                                                                                               ator.java:197)
        at org.elasticsearch.common.logging.LogConfigurator.configureStatusLogge                                                                                                                               r(LogConfigurator.java:259)
        at org.elasticsearch.common.logging.LogConfigurator.configureWithoutConf                                                                                                                               ig(LogConfigurator.java:106)
        at org.elasticsearch.cli.CommandLoggingConfigurator.configureLoggingWith                                                                                                                               outConfig(CommandLoggingConfigurator.java:40)
        at org.elasticsearch.cli.Command.main(Command.java:87)
        at org.elasticsearch.common.settings.KeyStoreCli.main(KeyStoreCli.java:4                                                                                                                               3)
Caused by: java.lang.reflect.InvocationTargetException
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Nativ                                                                                                                               e Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Native                                                                                                                               MethodAccessorImpl.java:64)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(De                                                                                                                               legatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:564)
        at java.base/jdk.internal.platform.Metrics.systemMetrics(Metrics.java:61                                                                                                                               )
        ... 26 more
Caused by: java.lang.ExceptionInInitializerError
        at java.base/jdk.internal.platform.CgroupSubsystemFactory.create(CgroupS                                                                                                                               ubsystemFactory.java:77)
        at java.base/jdk.internal.platform.CgroupMetrics.getInstance(CgroupMetri                                                                                                                               cs.java:163)
        ... 31 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 4 out of bounds for l                                                                                                                               ength 1
        at java.base/jdk.internal.platform.cgroupv2.CgroupV2Subsystem.initSubsys                                                                                                                               tem(CgroupV2Subsystem.java:71)
        at java.base/jdk.internal.platform.cgroupv2.CgroupV2Subsystem.<clinit>(C                                                                                                                               groupV2Subsystem.java:42)
        ... 33 more
dpkg: error processing package elasticsearch (--install):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for ureadahead (0.100.0-16) ...
Errors were encountered while processing:
 elasticsearch

А какая версия java у вас на машине стоит?

Добрый день, Игорь.
java -version
java version "1.8.0_221"
Java(TM) SE Runtime Environment (build 1.8.0_221-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.221-b11, mixed mode)

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.