Can't do rolling upgrade from 7.6.2 to 7.10.0

Hello. I was trying to do rolling update data node from 7.6.2 to 7.10.0 on Ubuntu 18.04.
I followed the instructions:


but after the update Elasticsearch can't start with next outputs:
Dec 03 17:15:21 test-es-data-05 systemd-entrypoint[1221]: Error: Could not create the Java Virtual Machine.
Dec 03 17:15:21 test-es-data-05 systemd-entrypoint[1221]: Error: A fatal exception has occurred. Program will exit.
Dec 03 17:15:21 test-es-data-05 systemd-entrypoint[1221]:         at org.elasticsearch.tools.launchers.JvmErgonomics.flagsFinal(JvmErgonomics.java:126)
Dec 03 17:15:21 test-es-data-05 systemd-entrypoint[1221]:         at org.elasticsearch.tools.launchers.JvmErgonomics.finalJvmOptions(JvmErgonomics.java:88)
Dec 03 17:15:21 test-es-data-05 systemd-entrypoint[1221]:         at org.elasticsearch.tools.launchers.JvmErgonomics.choose(JvmErgonomics.java:59)
Dec 03 17:15:21 test-es-data-05 systemd-entrypoint[1221]:         at org.elasticsearch.tools.launchers.JvmOptionsParser.jvmOptions(JvmOptionsParser.java:137)
Dec 03 17:15:21 test-es-data-05 systemd-entrypoint[1221]:         at org.elasticsearch.tools.launchers.JvmOptionsParser.main(JvmOptionsParser.java:95)
Dec 03 17:15:21 test-es-data-05 systemd[1]: elasticsearch.service: Main process exited, code=exited, status=1/FAILURE
Dec 03 17:15:21 test-es-data-05 systemd[1]: elasticsearch.service: Failed with result 'exit-code'.
Dec 03 17:15:21 test-es-data-05 systemd[1]: Failed to start Elasticsearch.

after updating Elasticsearch I also updated jvm.options based on clear 7.10.0 version, here:

-Xms16069m
-Xmx16069m
8-13:-XX:+UseConcMarkSweepGC
8-13:-XX:CMSInitiatingOccupancyFraction=75
8-13:-XX:+UseCMSInitiatingOccupancyOnly
14-:-XX:+UseG1GC
14-:-XX:G1ReservePercent=25
14-:-XX:InitiatingHeapOccupancyPercent=30
-Djava.io.tmpdir=${ES_TMPDIR}
-XX:+HeapDumpOnOutOfMemoryError
-XX:HeapDumpPath=/var/lib/elasticsearch
-XX:ErrorFile=/var/log/elasticsearch/hs_err_pid%p.log
8:-XX:+PrintGCDetails
8:-XX:+PrintGCDateStamps
8:-XX:+PrintTenuringDistribution
8:-XX:+PrintGCApplicationStoppedTime
8:-Xloggc:/var/log/elasticsearch/gc.log
8:-XX:+UseGCLogFileRotation
8:-XX:NumberOfGCLogFiles=32
8:-XX:GCLogFileSize=64m
9-:-Xlog:gc*,gc+age=trace,safepoint:file=/var/log/elasticsearch/gc.log:utctime,pid,tags:filecount=32,filesize=64m 

JDK updated succesfully:

/usr/share/elasticsearch/jdk/bin/java -version
openjdk version "15.0.1" 2020-10-20
OpenJDK Runtime Environment AdoptOpenJDK (build 15.0.1+9)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 15.0.1+9, mixed mode, sharing)

So, how can i debug this issue or to which version should I update?

The answer will be in the Elasticsearch server logs. The systemd ones only show the last couple of lines of the error which isn't enough.

Also in 7.10 you should leave the jvm.options file untouched and use separate options files for any customisation.

The jvm.options file which I provided in previous post is mostly untouched except all comments and this lines:

-Xms16069m
-Xmx16069m

Anyway I just used jvm.options from fresh 7.10.0 install and then override -Xms/x in /etc/elasticsearch/jvm.options.d/jvm.config and Elasticsearch start on new version.
Thanks for help!

1 Like

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