ElasticSearch restart problem (Lucene Version mismatch)

Hi I using Azure Vm and Elastic & Kibana
I restart the vm and i Encounterd the error

when i restart the Elasticsearch
the error message is

Job for elasticsearch.service failed because the control process exited with error code.
See "systemctl status elasticsearch.service" and "journalctl -xe" for details.

when i find log of this

[2022-07-29T13:41:56,909][WARN ][stderr                   ] [Dev-Elasticsearch-KK
ibana-VM] Exception in thread "main" java.lang.AssertionError: Lucene version mii
smatch this version of Elasticsearch requires lucene version [8.9.0]  but the cuu
rrent lucene version is [8.11.1]
[2022-07-29T13:41:56,911][WARN ][stderr                   ] [Dev-Elasticsearch-KK
ibana-VM]       at org.elasticsearch.bootstrap.Bootstrap.checkLucene(Bootstrap.jj
ava:472)
[2022-07-29T13:41:56,911][WARN ][stderr                   ] [Dev-Elasticsearch-KK
ibana-VM]       at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:3922
)
[2022-07-29T13:41:56,912][WARN ][stderr                   ] [Dev-Elasticsearch-KK
ibana-VM]       at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch..
java:159)
[2022-07-29T13:41:56,912][WARN ][stderr                   ] [Dev-Elasticsearch-KK
ibana-VM]       at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearr
ch.java:150)
[2022-07-29T13:41:56,913][WARN ][stderr                   ] [Dev-Elasticsearch-KK
ibana-VM]       at org.elasticsearch.cli.EnvironmentAwareCommand.execute(Environn
mentAwareCommand.java:75)

i think it is because of the version problem, because before the restart vm i did apt-upgrade..

how can i solve this problem. please help, I am just new to elasticsearch( only 2days)

Welcome to our community! :smiley:

What was the results of the apt-upgrade?

Hi~
That Upgrade for the azure vm but it makes crash the version of Lucene and Elasticsearch

In this case just uninstall and install elasticsearch will help?
Is there a way not to affect the existing configuration file and data file?

It really depends on what happened with the upgrade, what the steps were to upgrade, what version you went from and to, what the outcome was.

sudo -i
systemctl restart kibana
systemctl status kibana.service
systemctl restart kibana
systemctl start kibana
sudo systemctl start elasticsearch.service
systemctl start kibana
sudo apt-get -y install xrdp
sudo apt-get update
sudo DEVIAN_FRONTEND=noninteractive apt-g
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install xfce4
sudo apt install xfce4 -session
sudo systemctl enable xrdp
sudo adduser xdrp ssl-cert
echo xfce4-session >~/.xsession
sudo service srdp restart
sudo systemctl enable xrdp
sudo adduser xrdp ssl-cert
sudo adduser xrdp ssl-cert
echo xfce4-session >~/.xsession
sudo netstat -plnt | grep rdAp
tail -f /var/log/syslog
sudo service xrdp start
sudo apt install ubuntu-desktop -y
sudo rm /var/lib/dpkg/info/
clear
sudo dpkg --configure-a
sudo mkdir /var/lib/dpkg/info/
sudo dpkg --configure -a
sudo apt update -y
sudo apt-get update'''
linux-cloud-tools-common
linux-azure-5.15-cloud-tools-5.15.0-1014
linux-clound-tools-5.15.0-1014-azure
linux-cloud-tools-azure
linux-azure
'''
sudo apt-get -y install xrdp
cd /var/lib/dpkg
sudo mv info info.bak
sudo mkdir info
sudo apt-get upgrade

above code is my whole upgrade progress by log
for azure vm rdp connection i did upgrade and it made this happening..!

so after vm restart
i can't start elasticsearch and kibana both
and the log of elasticsearch is in the main question content

Please don't post pictures of text, logs or code. They are difficult to read, impossible to search and replicate (if it's code), and some people may not be even able to see them :slight_smile:

i typed it all and modified above image to code!

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