# ES 7.1 repository type \[azure\] does not exist

**URL:** <https://discuss.elastic.co/t/es-7-1-repository-type-azure-does-not-exist/225468>\
**Category:** Elasticsearch\
**Created:** [March 27, 2020, 10:14pm UTC](https://discuss.elastic.co/t/es-7-1-repository-type-azure-does-not-exist/225468 "2020-03-27T22:14:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jperezvt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jperezvt/32/47384_2.png) [@jperezvt](https://discuss.elastic.co/u/jperezvt)\
**Post date:** [March 27, 2020, 10:14pm UTC](https://discuss.elastic.co/t/es-7-1-repository-type-azure-does-not-exist/225468/1 "2020-03-27T22:14:03Z")

</div>

I'm running ES 7.1 in Azure govcloud, its working fine and now wish to setting snapshots. Here is what I've done

# Install plugin

`PLUGIN_BIN=/usr/share/elasticsearch/bin/elasticsearch-plugin`  
`echo "y" | $PLUGIN_BIN install repository-azure`  
and restarting ES. Now `curl 0:9200/_cat/plugins?v` showing `es-cluster-vm0 repository-azure 7.1.1`  
Next, defined my storage setting via  
export ES\_KEYSTORE="/usr/share/elasticsearch/bin/elasticsearch-keystore"  
export STORAGE\_ACC\_NAME="redacted"  
export STORAGE\_ACC\_KEY="redacted"  
echo {STORAGE\_ACC\_NAME} | {ES\_KEYSTORE} add azure.client.default.account  
echo {STORAGE\_ACC\_KEY} | {ES\_KEYSTORE} add azure.client.default.key  
echo "[core.usgovcloudapi.net](http://core.usgovcloudapi.net)" | ${ES\_KEYSTORE} add azure.client.default.endpoint\_suffix

Next, created new container named `es-snapshots` with private access.

Next, to define my snapshot config ran  
`curl -XPUT 0:9200/_snapshot/azure_prod -H'Content-Type: application/json' -d '{ "type": "azure", "settings": { "container": "es-snapshots", "base_path": "backups", "chunk_size": "32m", "compress": true } }'`

but getting error  
`{"error":{"root_cause":[{"type":"repository_exception","reason":"[azure_prod] repository type [azure] does not exist"}],"type":"repository_exception","reason":"[azure_prod] repository type [azure] does not exist"},"status":500}`

Would really appreciate some clues/hints. Thanks, Jesse

---

<div class="post-metadata">

**Author:** ![Armin\_Braun](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/armin_braun/32/20092_2.png) [@Armin\_Braun](https://discuss.elastic.co/u/Armin_Braun)\
**Post date:** [March 30, 2020, 1:42pm UTC](https://discuss.elastic.co/t/es-7-1-repository-type-azure-does-not-exist/225468/2 "2020-03-30T13:42:30Z")

</div>

Hi @jperezvt

did you install the Azure repository plugin on all your cluster nodes? The exception suggestions that its missing from some or all of your nodes. Since you say it shows up properly in the plugins list, it seems likely it's missing from a subset of your nodes.

---

<div class="post-metadata">

**Author:** ![jperezvt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jperezvt/32/47384_2.png) [@jperezvt](https://discuss.elastic.co/u/jperezvt)\
**Post date:** [March 30, 2020, 2:49pm UTC](https://discuss.elastic.co/t/es-7-1-repository-type-azure-does-not-exist/225468/3 "2020-03-30T14:49:07Z")

</div>

Thanks Armin, I had only installed Azure repository plugin on one of the master nodes for testing, did not realized I needed it on all nodes, doing that now, thanks

---

<div class="post-metadata">

**Author:** ![jperezvt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jperezvt/32/47384_2.png) [@jperezvt](https://discuss.elastic.co/u/jperezvt)\
**Post date:** [March 31, 2020, 9:01pm UTC](https://discuss.elastic.co/t/es-7-1-repository-type-azure-does-not-exist/225468/4 "2020-03-31T21:01:58Z")

</div>

My cluster consist of 4 nodes so I went ahead and setup Azure repository plugin on the rest of the nodes and restarted ES on each. Now when I try **curl -XPUT 0:9200/\_snapshot/azure\_prod -H'Content-Type: application/json' -d '{ "type": "azure" }'** I'm getting

> {"error":{"root\_cause":[{"type":"repository\_verification\_exception","reason":"[azure\_prod] path is not accessible on master node"}],"type":"repository\_verification\_exception","reason":"[azure\_prod] path is not accessible on master node","caused\_by":{"type":"i\_o\_exception","reason":"Can not write blob master.dat","caused\_by":{"type":"storage\_exception","reason":"","caused\_by":{"type":"unknown\_host\_exception","reason":"[vtstorcoreprod.blob.core.windows.net](http://vtstorcoreprod.blob.core.windows.net)"}}}},"status":500}

On each node I did set endpoint like **echo "[core.usgovcloudapi.net](http://core.usgovcloudapi.net)" | ${ES\_KEYSTORE} add azure.client.default.endpoint\_suffix** since this is Azure govcloud (not commercial) and in the error above its still trying to use **[core.windows.net](http://core.windows.net)**  
Any other suggestion? Thanks, Jesse

---

<div class="post-metadata">

**Author:** ![Armin\_Braun](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/armin_braun/32/20092_2.png) [@Armin\_Braun](https://discuss.elastic.co/u/Armin_Braun)\
**Post date:** [April 1, 2020, 7:31am UTC](https://discuss.elastic.co/t/es-7-1-repository-type-azure-does-not-exist/225468/5 "2020-04-01T07:31:13Z")

</div>

> [@jperezvt](#):
>
> On each node I did set endpoint like **echo "[core.usgovcloudapi.net](http://core.usgovcloudapi.net)" | ${ES\_KEYSTORE} add azure.client.default.endpoint\_suffix** since this is Azure govcloud (not commercial) and in the error above its still trying to use **[core.windows.net](http://core.windows.net)**

You'll have to put the `azure.client.default.endpoint_suffix` setting in the `elasticsearch.yml` instead of into the secure settings. It's just a standard setting. See docs [here](https://www.elastic.co/guide/en/elasticsearch/plugins/7.x/repository-azure-client-settings.html).

---

<div class="post-metadata">

**Author:** ![jperezvt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jperezvt/32/47384_2.png) [@jperezvt](https://discuss.elastic.co/u/jperezvt)\
**Post date:** [April 1, 2020, 3:09pm UTC](https://discuss.elastic.co/t/es-7-1-repository-type-azure-does-not-exist/225468/6 "2020-04-01T15:09:23Z")

</div>

Thank you. I was confused from the online doc.

---

<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 29, 2020, 3:09pm UTC](https://discuss.elastic.co/t/es-7-1-repository-type-azure-does-not-exist/225468/7 "2020-04-29T15:09:32Z")

</div>

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