# How i can upgrade elasticsearch 5x to 6x?

**URL:** https://discuss.elastic.co/t/how-i-can-upgrade-elasticsearch-5x-to-6x/170112
**Category:** Elasticsearch
**Created:** [February 27, 2019, 6:50am UTC](https://discuss.elastic.co/t/how-i-can-upgrade-elasticsearch-5x-to-6x/170112 "2019-02-27T06:50:40Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Uporaba](https://avatars.discourse-cdn.com/v4/letter/u/7993a0/32.png) [@Uporaba](https://discuss.elastic.co/u/Uporaba)
#### Post date: [February 27, 2019, 6:50am UTC](https://discuss.elastic.co/t/how-i-can-upgrade-elasticsearch-5x-to-6x/170112/1 "2019-02-27T06:50:40Z")

</div>

Hi all, I have a graylog server with 1.5 billion records. How can I upgrade elasticsearch from version 5 to version 6 without losing all the data that I have now? The instructions on the site are not clear to me. I dont have a cluster, i just havet 1 server with elastic and graylog.

---

<div class="post-metadata">

### Author: ![harshbajaj16](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harshbajaj16/32/44970_2.png) [@harshbajaj16](https://discuss.elastic.co/u/harshbajaj16)
#### Post date: [February 27, 2019, 8:01am UTC](https://discuss.elastic.co/t/how-i-can-upgrade-elasticsearch-5x-to-6x/170112/2 "2019-02-27T08:01:32Z")

</div>

HI @Uporaba,

FIrst, Please ensure that you have backup of your all data before performing this activity. Because without data rollback is not possible in case of any issue while upgrading.  
For backup please use snapshot and restore module.

For upgrade, You can follow the same as mentioned in below documents and you can skip the steps which is related to cluster setting as you have only 1 node.

[https://www.elastic.co/guide/en/elasticsearch/reference/current/restart-upgrade.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/restart-upgrade.html)

Please do let me know in case of you have further query.

Regards,  
Harsh Bajaj

---

<div class="post-metadata">

### Author: ![Uporaba](https://avatars.discourse-cdn.com/v4/letter/u/7993a0/32.png) [@Uporaba](https://discuss.elastic.co/u/Uporaba)
#### Post date: [February 27, 2019, 8:30am UTC](https://discuss.elastic.co/t/how-i-can-upgrade-elasticsearch-5x-to-6x/170112/3 "2019-02-27T08:30:12Z")

</div>

i need to backup all VM or only elastic?

---

<div class="post-metadata">

### Author: ![harshbajaj16](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harshbajaj16/32/44970_2.png) [@harshbajaj16](https://discuss.elastic.co/u/harshbajaj16)
#### Post date: [February 27, 2019, 8:48am UTC](https://discuss.elastic.co/t/how-i-can-upgrade-elasticsearch-5x-to-6x/170112/4 "2019-02-27T08:48:11Z")

</div>

You need to backup of your elasticsearch data i.e. indices.

---

<div class="post-metadata">

### Author: ![Uporaba](https://avatars.discourse-cdn.com/v4/letter/u/7993a0/32.png) [@Uporaba](https://discuss.elastic.co/u/Uporaba)
#### Post date: [February 27, 2019, 9:15am UTC](https://discuss.elastic.co/t/how-i-can-upgrade-elasticsearch-5x-to-6x/170112/5 "2019-02-27T09:15:45Z")

</div>

How i can make this? I just 1st time use elasticsearch and dont know how make backup elasticsearch data.

---

<div class="post-metadata">

### Author: ![harshbajaj16](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harshbajaj16/32/44970_2.png) [@harshbajaj16](https://discuss.elastic.co/u/harshbajaj16)
#### Post date: [February 27, 2019, 9:41am UTC](https://discuss.elastic.co/t/how-i-can-upgrade-elasticsearch-5x-to-6x/170112/6 "2019-02-27T09:41:32Z")

</div>

Hi @Uporaba,

You can use snapshot ans restore module for the same and below is documentation link.  
[https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html)

Regards,  
Harsh Bajaj

---

<div class="post-metadata">

### Author: ![Uporaba](https://avatars.discourse-cdn.com/v4/letter/u/7993a0/32.png) [@Uporaba](https://discuss.elastic.co/u/Uporaba)
#### Post date: [March 1, 2019, 11:47am UTC](https://discuss.elastic.co/t/how-i-can-upgrade-elasticsearch-5x-to-6x/170112/7 "2019-03-01T11:47:43Z")

</div>

Hi, i have some problems. Wen i write `curl -X PUT "localhost:9200/_snapshot/my_backup" -H 'Content-Type: application/json' -d' { "type": "fs", "settings": { "location": "/media/hdd" } } '` in console i get `{"error":{"root_cause":[{"type":"exception","reason":"failed to create blob container"}],"type":"exception","reason":"failed to create blob container","caused_by":{"type":"access_denied_exception","reason":"/media/hdd/tests-ViVV6jp7TTqSj-JOxZpiBw"}},"status":500}` What does this mean and how to fix it?

---

<div class="post-metadata">

### Author: ![Uporaba](https://avatars.discourse-cdn.com/v4/letter/u/7993a0/32.png) [@Uporaba](https://discuss.elastic.co/u/Uporaba)
#### Post date: [March 1, 2019, 11:56am UTC](https://discuss.elastic.co/t/how-i-can-upgrade-elasticsearch-5x-to-6x/170112/8 "2019-03-01T11:56:54Z")

</div>

okay, i think what im solved the problem i used this command `chown -R elasticsearch:elasticsearch` is this true decision?

---

<div class="post-metadata">

### Author: ![harshbajaj16](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harshbajaj16/32/44970_2.png) [@harshbajaj16](https://discuss.elastic.co/u/harshbajaj16)
#### Post date: [March 5, 2019, 11:39am UTC](https://discuss.elastic.co/t/how-i-can-upgrade-elasticsearch-5x-to-6x/170112/9 "2019-03-05T11:39:36Z")

</div>

Hi @Uporaba,

In your error it is showing "type":"access\_denied\_exception".

Yes, please change the directory access as you shown and do let me know if you still facing any issue.

Regards,  
Harsh Bajaj

---

<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: [April 2, 2019, 11:39am UTC](https://discuss.elastic.co/t/how-i-can-upgrade-elasticsearch-5x-to-6x/170112/10 "2019-04-02T11:39:52Z")

</div>

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