Error in Repository Creation on Windows


(Tanwer Siddiqui) #1

Hi All,

I received the below error while creation of repository on Windows.

PUT http://localhost:9200/_snapshot/backup -d
{
"type": "fs",
"settings": {
"location": "C:\Users\Downloads\elasticsearch-1.6.0\es_backup_folder"
}
}

Error Received
......................
{
"error": "ElasticsearchParseException[Failed to derive xcontent from PUT http://localhost:9200/_snapshot/backup -d \n{\n"type": "fs",\n"settings": {\n"location": "C:\\Users\\Downloads\\elasticsearch-1.6.0\\es_backup_folder"\n}\n}\n]",
"status": 400
}


(David Pilato) #2

Replace \ by /


(Tanwer Siddiqui) #3

Hi David

Received same error after doing changes to Single / and double //

PUT http://localhost:9200/_snapshot/backup -d
{
"type": "fs",
"settings": {
"location": "C:/Users/Downloads/elasticsearch-1.6.0/es_backup_folder"}}

{
"error": "ElasticsearchParseException[Failed to derive xcontent from PUT http://localhost:9200/_snapshot/backup -d\n{\n"type": "fs",\n"settings": {\n"location": "C:/Users/Downloads/elasticsearch-1.6.0/es_backup_folder"}}\n]",
"status": 400
}


(David Pilato) #4

Remove -d


(Tanwer Siddiqui) #5

I removed -d and its working now, Thanks David.


(system) #6