# Getting error to run the snapshot script to back up indexes

**URL:** <https://discuss.elastic.co/t/getting-error-to-run-the-snapshot-script-to-back-up-indexes/157743>\
**Category:** Elasticsearch\
**Created:** [November 21, 2018, 4:23pm UTC](https://discuss.elastic.co/t/getting-error-to-run-the-snapshot-script-to-back-up-indexes/157743 "2018-11-21T16:23:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ganesh2303](https://avatars.discourse-cdn.com/v4/letter/g/57b2e6/32.png) [@Ganesh2303](https://discuss.elastic.co/u/Ganesh2303)\
**Post date:** [November 21, 2018, 4:23pm UTC](https://discuss.elastic.co/t/getting-error-to-run-the-snapshot-script-to-back-up-indexes/157743/1 "2018-11-21T16:23:28Z")

</div>

HI,  
i want to take back up my indices using snapshot and my ES is running on docker,

```
cluster.name: "docker-cluster"
node.name: lpdosput020008.node
node.master: true
node.data: false
node.ingest: false
node.ml: false
xpack.ml.enabled: true
#network.host: 0.0.0.0
network.bind_host: 0.0.0.0
network.publish_host: 10.3.195.14
path.repo: ["/usr/share/elasticsearch/snapshot"]

discovery.zen.ping.unicast.hosts: ["10.3.195.14","10.3.195.38","10.3.195.41","10.3.195.43","10.3.195.37","10.3.195.17"]
discovery.zen.minimum_master_nodes: 2
#xpack.license.self_generated.type: trial
xpack.security.enabled: true
#xpack.monitoring.enabled : true
#xpack.security.http.ssl.enabled: true
#xpack.security.http.ssl.key: /usr/share/elasticsearch/config/elasticsearch/elasticsearch.key
#xpack.security.http.ssl.certificate: /usr/share/elasticsearch/config/elasticsearch/elasticsearch.crt
#xpack.security.http.ssl.client_authentication: none
#xpack.security.http.ssl.verification_mode: certificate

```

I have defined the snapshot path in es yml and getting below error while running below,

```
PUT /_snapshot/test
{
    "type": "fs",
    "settings": {
        "location": "/usr/share/elasticsearch/snapshot",
        "compress": true
    }

```

Error msg:

```
{
  "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": "/usr/share/elasticsearch/snapshot/tests-5ZGUmWT4Tg2oa5_gte4Dbw"
    }
  },
  "status": 500
}
```

---

<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:** [December 19, 2018, 4:23pm UTC](https://discuss.elastic.co/t/getting-error-to-run-the-snapshot-script-to-back-up-indexes/157743/2 "2018-12-19T16:23:28Z")

</div>

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