# Repositry Creation on Windows

**URL:** <https://discuss.elastic.co/t/repositry-creation-on-windows/24405>\
**Category:** Elasticsearch\
**Created:** [June 26, 2015, 7:52am UTC](https://discuss.elastic.co/t/repositry-creation-on-windows/24405 "2015-06-26T07:52:12Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![tanveer3](https://avatars.discourse-cdn.com/v4/letter/t/ecae2f/32.png) [@tanveer3](https://discuss.elastic.co/u/tanveer3)\
**Post date:** [June 26, 2015, 7:52am UTC](https://discuss.elastic.co/t/repositry-creation-on-windows/24405/1 "2015-06-26T07:52:12Z")

</div>

Hi,

I have installed ElasticSearch on my Windows machine. While creating a repository i pointed the location to my Windows location and executed the below command

PUT [http://localhost:9200/\_snapshot/backup](http://localhost:9200/_snapshot/backup)  
{  
"type": "fs",  
"settings": {  
"location": "C:\Users\Downloads\elasticsearch-1.6.0\es\_backup\_folder"  
}  
}

i received the below error

{  
"error": "ElasticsearchIllegalArgumentException[failed to parse repository source [{\n"type": "fs",\n"settings": {\n"location": "C:\Users\Downloads\elasticsearch-1.6.0\es\_backup\_folder"\n}\n}\n]]; nested: JsonParseException[Unrecognized character escape 'U' (code 85)\n at [Source: {\n"type": "fs",\n"settings": {\n"location": "C:\Users\Downloads\elasticsearch-1.6.0\es\_backup\_folder"\n}\n}\n; line: 4, column: 18]]; ",  
"status": 400  
}

Please advice how to create repository.

Thanks

---

<div class="post-metadata">

**Author:** ![dantuff](https://avatars.discourse-cdn.com/v4/letter/d/e79b87/32.png) [@dantuff](https://discuss.elastic.co/u/dantuff)\
**Post date:** [June 26, 2015, 8:02am UTC](https://discuss.elastic.co/t/repositry-creation-on-windows/24405/2 "2015-06-26T08:02:40Z")

</div>

Your JSON is not valid, you need to escape the backslashes.

```
{
    "type": "fs",
    "settings": {
        "location": "C:\\Users\\Downloads\\elasticsearch-1.6.0\\es_backup_folder"
    }
}
```

---

<div class="post-metadata">

**Author:** ![tanveer3](https://avatars.discourse-cdn.com/v4/letter/t/ecae2f/32.png) [@tanveer3](https://discuss.elastic.co/u/tanveer3)\
**Post date:** [June 26, 2015, 8:49am UTC](https://discuss.elastic.co/t/repositry-creation-on-windows/24405/3 "2015-06-26T08:49:31Z")

</div>

Hi Dan

I executed the code as shared above, but unlucky received error

{  
"error": "RepositoryException[[backup] failed to create repository]; nested: CreationException[Guice creation errors:\r\n\r\n1) Error injecting constructor, org.elasticsearch.repositories.RepositoryException: [backup] location [C:\Users\Downloads\elasticsearch-1.6.0\es\_backup\_folder] doesn't match any of the locations specified by path.repo because this setting is empty\r\n at org.elasticsearch.repositories.fs.FsRepository.(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: RepositoryException[[backup] location [C:\Users\t.islam.siddiqui\Downloads\elasticsearch-1.6.0\es\_backup\_folder] doesn't match any of the locations specified by path.repo because this setting is empty]; ",  
"status": 500  
}

---

<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:** [June 26, 2015, 9:23am UTC](https://discuss.elastic.co/t/repositry-creation-on-windows/24405/4 "2015-06-26T09:23:25Z")

</div>

> [@tanveer3](#):
>
> doesn't match any of the locations specified by path.repo because this setting is empty

Did you set `path.repo` in `elasticsearch.yml`?

---

<div class="post-metadata">

**Author:** ![tanveer3](https://avatars.discourse-cdn.com/v4/letter/t/ecae2f/32.png) [@tanveer3](https://discuss.elastic.co/u/tanveer3)\
**Post date:** [June 26, 2015, 9:48am UTC](https://discuss.elastic.co/t/repositry-creation-on-windows/24405/5 "2015-06-26T09:48:21Z")

</div>

Hi Mark

i installed Elastisearch on Windows and unable to find elasticsearch.yml in it.

---

<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:** [June 26, 2015, 9:52am UTC](https://discuss.elastic.co/t/repositry-creation-on-windows/24405/6 "2015-06-26T09:52:22Z")

</div>

It'll be in the config directory in where ever you extracted the zip file.

---

<div class="post-metadata">

**Author:** ![tanveer3](https://avatars.discourse-cdn.com/v4/letter/t/ecae2f/32.png) [@tanveer3](https://discuss.elastic.co/u/tanveer3)\
**Post date:** [June 26, 2015, 10:12am UTC](https://discuss.elastic.co/t/repositry-creation-on-windows/24405/7 "2015-06-26T10:12:02Z")

</div>

Hi Mark

Please help to correct my entries

My code  
.............

PUT [http://localhost:9200/\_snapshot/backup](http://localhost:9200/_snapshot/backup) -d  
{  
"type": "fs",  
"settings": {  
"location": "C:\Users\\t.islam.siddiqui\Downloads\elasticsearch-1.6.0\es\_backup\_folder"  
}  
}

Entry in elasticsearch.yml  
.......................................

path.data: C:\Users\Downloads\elasticsearch-1.6.0\es\_backup\_folder

Message Received  
......................

{  
"error": "ElasticsearchParseException[Failed to derive xcontent from PUT [http://localhost:9200/\_snapshot/backup](http://localhost:9200/_snapshot/backup) -d \n{\n"type": "fs",\n"settings": {\n"location": "C:\\Users\\\t.islam.siddiqui\\Downloads\\elasticsearch-1.6.0\\es\_backup\_folder"\n}\n}\n]",  
"status": 400  
}

---

<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 6, 2017, 12:05am UTC](https://discuss.elastic.co/t/repositry-creation-on-windows/24405/8 "2017-07-06T00:05:13Z")

</div>


