Cannot connect to the Elasticsearch 6.4 after upgrade 6.3 to 6.4

I tryed to upgrade ElasticSearch from 6.3 to 6.4, my elasticsearch.repo file contain


[elasticsearch-6.x]
name=Elasticsearch repository for 6.x packages
baseurl=https://artifacts.elastic.co/packages/6.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md


I executed $sudo yum install elasticseach command but elasticsearch do not run...!!!!
with status like this:
elasticsearch dead but subsys locked after 2s


Starting elasticsearch: [ OK ]
[me]$ sudo -i service elasticsearch status
elasticsearch (pid 11545) is running...
[me]$ sudo -i service elasticsearch status
elasticsearch dead but subsys locked


my elasticsearch.yml contains these lines:


cluster.name: my-application
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
path.conf: /etc/elasticsearch
network.host: localhost
http.port: 9200


I have many index in my old elastic version (6.3)
I Need help please

Hi Maher,

Have you looked into the issue/solution decribed here?

Thank you fkelert,
Problem has been fixed, I removed with yum remove elasticsearch and reinstall with yum install and all indexes are always kept