I have recently tried to upgrade Elasticsearch from version 7.17.8 to 8.19.8.
However, I am facing this error:
java.io.EOFException
at org.elasticsearch.common.io.stream.InputStreamStreamInput.readByte(InputStreamStreamInput.java:49)
at org.elasticsearch.common.io.stream.StreamInput.readBoolean(StreamInput.java:644)
at org.elasticsearch.bootstrap.ServerArgs.(ServerArgs.java:65)
at org.elasticsearch.bootstrap.Elasticsearch.initPhase1(Elasticsearch.java:139)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:95)
Previously with 7.17.8, there were no errors and I see something like this which was what I expected for 8.19.8 as well:
[mylocalnode] version[7.17.8], pid[43820], build[unknown/unknown/..], OS[..], JVM[..]
[mylocalnode] JVM home [..]
[mylocalnode] JVM arguments [..]
What I have done:
- In modules, I updated x-pack-core, x-pack-security, transport-netty4 and reindex modules such that the jars are compatible to 8.19.8.
- Updated lib to use the jars that version 8.19.8 uses.
- JVM args remain the same as 7.17.8: -XX:+UseG1GC, -Delasticsearch, -Des.path.home=elasticsearch/src, -Dconfig.file=elasticsearch/src/main/resources/application.conf, -Des.path.conf=elasticsearch/src/config, -Djava.security.policy=elasticsearch/src/config/security.policy, -Dlog4j2.disable.jmx=true, -Xmx4g, -Xms4g
I am not even sure where to start debugging from as there are no errors. Does anybody have any idea? Please let me know if more information is required for this issue.
I appreciate all help!