# Installing elasticsearch 8.6.2 on a windows server with ealsticserach 7.6.1

**URL:** <https://discuss.elastic.co/t/installing-elasticsearch-8-6-2-on-a-windows-server-with-ealsticserach-7-6-1/329281>\
**Category:** Elasticsearch\
**Created:** [April 4, 2023, 7:05am UTC](https://discuss.elastic.co/t/installing-elasticsearch-8-6-2-on-a-windows-server-with-ealsticserach-7-6-1/329281 "2023-04-04T07:05:54Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![hadi\_farzipour](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hadi_farzipour/32/69187_2.png) [@hadi\_farzipour](https://discuss.elastic.co/u/hadi_farzipour)\
**Post date:** [April 4, 2023, 7:05am UTC](https://discuss.elastic.co/t/installing-elasticsearch-8-6-2-on-a-windows-server-with-ealsticserach-7-6-1/329281/1 "2023-04-04T07:05:54Z")

</div>

In our company we have been using Elasticsearch 7.6.1 for two years, right now we need to update it to version 8.6.2, however, we can not move to version 8.6.2 immediately, we need first run Elasticsearch 8.6.2 beside the older version and changing beats and agents configs, move to the newest version, however when I run \elasticserach8.6.2\bin\elastichserach.bat, I faced with the following error:

[ELK] fatal exception while booting Elasticsearch  
java.lang.RuntimeException: org.elasticsearch.cli.UserException: will not overwrite keystore at [E:\Config\elasticsearch.keystore], because this incurs changing the file owner  
at org.elasticsearch.bootstrap.Elasticsearch.initPhase2(Elasticsearch.java:150) ~[elasticsearch-8.6.2.jar:?]

The mentioned directory is where contains my previous Elasticsearch config files, I don't know how to make Elasticsearch 8.6.2 read configs from its own config files.

in additional I have installed ElasticSerach 7.6.1 with .msi file on windows operating system

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 4, 2023, 7:10am UTC](https://discuss.elastic.co/t/installing-elasticsearch-8-6-2-on-a-windows-server-with-ealsticserach-7-6-1/329281/2 "2023-04-04T07:10:36Z")

</div>

It'd help if you could share your `elasticsearch.yml` from both versions.

---

<div class="post-metadata">

**Author:** ![hadi\_farzipour](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hadi_farzipour/32/69187_2.png) [@hadi\_farzipour](https://discuss.elastic.co/u/hadi_farzipour)\
**Post date:** [April 4, 2023, 9:35am UTC](https://discuss.elastic.co/t/installing-elasticsearch-8-6-2-on-a-windows-server-with-ealsticserach-7-6-1/329281/4 "2023-04-04T09:35:29Z")

</div>

Elasticserach 7.6.2  
Address: E:\config\elasticsearch.yml

bootstrap.memory\_lock: false  
cluster.initial\_master\_nodes:ELK  
cluster.name: elasticsearch  
http.port: 8606  
network.host: 0.0.0.0  
node.data: true  
node.ingest: true  
node.master: true  
node.max\_local\_storage\_nodes: 1  
node.name: ELK  
path.data: E:\Data  
path.logs: E:\Logs  
transport.tcp.port: 8300  
xpack.license.self\_generated.type: basic  
xpack.security.enabled: false

For ElasticSerach 8.6.2 I have no configs and all lines are comments, because elasticsearch.bat have not been run yet.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 4, 2023, 9:49am UTC](https://discuss.elastic.co/t/installing-elasticsearch-8-6-2-on-a-windows-server-with-ealsticserach-7-6-1/329281/5 "2023-04-04T09:49:22Z")

</div>

> [@hadi\_farzipour](#):
>
> The mentioned directory is where contains my previous Elasticsearch config files, I don't know how to make Elasticsearch 8.6.2 read configs from its own config files.

Did you see [Install Elasticsearch with .zip on Windows | Elasticsearch Guide [8.7] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/8.7/zip-windows.html)?

---

<div class="post-metadata">

**Author:** ![hadi\_farzipour](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hadi_farzipour/32/69187_2.png) [@hadi\_farzipour](https://discuss.elastic.co/u/hadi_farzipour)\
**Post date:** [April 5, 2023, 8:29am UTC](https://discuss.elastic.co/t/installing-elasticsearch-8-6-2-on-a-windows-server-with-ealsticserach-7-6-1/329281/6 "2023-04-05T08:29:57Z")

</div>

I faced the following error when I run elasticsearch-8.7.0\bin\>.\elasticsearch.bat

ERROR: will not overwrite keystore at [E:\Config\elasticsearch.keystore], because this incurs changing the file owner

the mentioned address belongs to elasticsearch 7.6.1, should I create a new Java environment manualy for new elasticsearch?

---

<div class="post-metadata">

**Author:** ![hadi\_farzipour](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hadi_farzipour/32/69187_2.png) [@hadi\_farzipour](https://discuss.elastic.co/u/hadi_farzipour)\
**Post date:** [April 6, 2023, 4:17pm UTC](https://discuss.elastic.co/t/installing-elasticsearch-8-6-2-on-a-windows-server-with-ealsticserach-7-6-1/329281/7 "2023-04-06T16:17:45Z")

</div>

Does anyone know what i should do in order to resolve this error?

---

<div class="post-metadata">

**Author:** ![rugenl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rugenl/32/12887_2.png) [@rugenl](https://discuss.elastic.co/u/rugenl)\
**Post date:** [April 6, 2023, 7:15pm UTC](https://discuss.elastic.co/t/installing-elasticsearch-8-6-2-on-a-windows-server-with-ealsticserach-7-6-1/329281/8 "2023-04-06T19:15:20Z")

</div>

Are you trying to run both these on the same windows server? That is probably dangerous and this error is preventing your new system from destroying the old system!

You probably need to use a new path for everything, maybe E:/NewConfig, also E:NewData, E:/NewLogs.

Many configuration options have defaults if not specified in elasticsearch.yml. There used to be an elasticsearch\_reference.yml (or simlar) file that listed all options, but it seems to have disappeared in current versions. It may get the location from the startup option location for elasticsearch.yml, yours seems to match.

But, don't trust your production data to net advise!

---

<div class="post-metadata">

**Author:** ![hadi\_farzipour](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hadi_farzipour/32/69187_2.png) [@hadi\_farzipour](https://discuss.elastic.co/u/hadi_farzipour)\
**Post date:** [April 9, 2023, 5:01am UTC](https://discuss.elastic.co/t/installing-elasticsearch-8-6-2-on-a-windows-server-with-ealsticserach-7-6-1/329281/9 "2023-04-09T05:01:58Z")

</div>

My problem has been solved by following command on cmd prompt

set ES\_PATH\_CONF=D:\ELK8\elasticsearch-8.7.0\config

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 7, 2023, 5:02am UTC](https://discuss.elastic.co/t/installing-elasticsearch-8-6-2-on-a-windows-server-with-ealsticserach-7-6-1/329281/10 "2023-05-07T05:02:32Z")

</div>

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