# Can't create snapshot repository on Windows cluster

**URL:** <https://discuss.elastic.co/t/cant-create-snapshot-repository-on-windows-cluster/624>\
**Category:** Elasticsearch\
**Created:** [May 13, 2015, 1:47pm UTC](https://discuss.elastic.co/t/cant-create-snapshot-repository-on-windows-cluster/624 "2015-05-13T13:47:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SamJudson](https://avatars.discourse-cdn.com/v4/letter/s/b77776/32.png) [@SamJudson](https://discuss.elastic.co/u/SamJudson)\
**Post date:** [May 13, 2015, 1:47pm UTC](https://discuss.elastic.co/t/cant-create-snapshot-repository-on-windows-cluster/624/1 "2015-05-13T13:47:11Z")

</div>

Hi

I posted this a while back to the mailing list but didn't get a helpful response unfortunately, and I think I need to try again.

I am trying to create a snapshot repository on a 3 node windows cluster:

```
PUT _snapshot/main_backup
{
  "type": "fs",
  "settings": {
    "location": "\\\\gbr-t-ess-003\\Snapshots\\backup2\\",
    "compress": true
  }
}

```

I have tried everything I can think of. The machine is one of the nodes in the cluster, and is therefore not blocked by firewall issues. The share is open read/write to everyone, as is the directory at the ACL level. I have tried various versions of the UNC path with no joy.

Has anyone got this working at their end?

The full error:

```
{
   "error": "RepositoryException[[main_backup] failed to create repository]; nested: CreationException[Guice creation errors:\r\n\r\n1) Error injecting constructor, org.elasticsearch.common.blobstore.BlobStoreException: Failed to create directory at [\\\\gbr-t-ess-003\\Snapshots\\backup2]\r\n at org.elasticsearch.repositories.fs.FsRepository.<init>(Unknown Source)\r\n while locating org.elasticsearch.repositories.fs.FsRepository\r\n while locating org.elasticsearch.repositories.Repository\r\n\r\n1 error]; nested: BlobStoreException[Failed to create directory at [\\\\gbr-t-ess-003\\Snapshots\\backup2]]; ",
   "status": 500
}

```

It would be great if anyone had ideas on this.

Sam

p.s. Original mailing list link: [https://groups.google.com/forum/#!searchin/elasticsearch/windows$20snapshot/elasticsearch/Si8xJ\_K5XmY/\_8BvSWecFYMJ](https://groups.google.com/forum/#!searchin/elasticsearch/windows%2420snapshot/elasticsearch/Si8xJ_K5XmY/_8BvSWecFYMJ)

---

<div class="post-metadata">

**Author:** ![eperry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eperry/32/551_2.png) [@eperry](https://discuss.elastic.co/u/eperry)\
**Post date:** [June 13, 2015, 2:10pm UTC](https://discuss.elastic.co/t/cant-create-snapshot-repository-on-windows-cluster/624/2 "2015-06-13T14:10:53Z")

</div>

Sorry have not tried on windows, though it looks like you are trying to save it to a share not local directory.

This maybe an alternate for you.

> **[taskrabbit/elasticsearch-dump](https://github.com/taskrabbit/elasticsearch-dump)**
>
> elasticsearch-dump - Import and export tools for elasticsearch

---

<div class="post-metadata">

**Author:** ![andrzejm](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@andrzejm](https://discuss.elastic.co/u/andrzejm)\
**Post date:** [May 13, 2016, 3:26pm UTC](https://discuss.elastic.co/t/cant-create-snapshot-repository-on-windows-cluster/624/3 "2016-05-13T15:26:04Z")

</div>

Try to share the last directory directly like this:  
`"location": "\\\\gbr-t-ess-003\\backup2"`  
(just the server and the share)

I have reproduced your issue, and then tried shorter path and succeeded.  
Hope it helps.

---

<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:** [July 5, 2017, 10:51pm UTC](https://discuss.elastic.co/t/cant-create-snapshot-repository-on-windows-cluster/624/4 "2017-07-05T22:51:46Z")

</div>


