Getting fatal exception while booting Elasticsearch while trying to start elasticsearch in Vm

getting this error

fatal exception while booting Elasticsearch

java.lang.IllegalStateException: cannot downgrade a node from version [8.10.3] to version [8.9.0]
	at org.elasticsearch.env.NodeMetadata.verifyUpgradeToCurrentVersion( ~[elasticsearch-8.9.0.jar:?]
	at org.elasticsearch.env.NodeMetadata.upgradeToCurrentVersion( ~[elasticsearch-8.9.0.jar:?]
	at org.elasticsearch.env.NodeEnvironment.loadNodeMetadata( ~[elasticsearch-8.9.0.jar:?]
	at org.elasticsearch.env.NodeEnvironment.<init>( ~[elasticsearch-8.9.0.jar:?]
	at org.elasticsearch.node.Node.<init>( ~[elasticsearch-8.9.0.jar:?]
	at org.elasticsearch.node.Node.<init>( ~[elasticsearch-8.9.0.jar:?]
	at org.elasticsearch.bootstrap.Elasticsearch$2.<init>( ~[elasticsearch-8.9.0.jar:?]
	at org.elasticsearch.bootstrap.Elasticsearch.initPhase3( ~[elasticsearch-8.9.0.jar:?]
	at org.elasticsearch.bootstrap.Elasticsearch.main( ~[elasticsearch-8.9.0.jar:?]

but all the nodes have 8.9.0 version es-hotel-meta-indexer "es-hotel-meta-master-1"
path.logs: /var/log/elasticsearch /data
discovery.seed_hosts: ["","",""]
cluster.initial_master_nodes: ["","",""]
http.port: 9200 false

all other nodes have similar config just the node name changes

This error isn't related to the current version of the Elasticsearch instances you're trying to start, but implies that you'd previously started an Elasticsearch instance that was using version 8.10.3 that wrote data to the same place one of these instances is trying to read from.

This is controlled by this config: /data

If you don't care about whatever was saved in there by an 8.10.3 instance, you can do rm -rf /data/*. If you do care about that old data, just create a new dir like /data-8.9.0 and change all the configs for these new instances to point to the new path.

thanks for the reply

tried upgrading the elasticsearch and it is working fine now

1 Like

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