Restore error (repository_missing_exception)


(Hilal) #1

Hi,

I did snapshot and restore on CentOS platform with ES 2.4.1. After I installed ES 5.0.0 on windows10.
I'm trying to load data:

POST /_snapshot/elastic_titub_yedek/snapshot_elastic_titub_yedek/_restore
{
  "indices": "titub2",
  "ignore_unavailable": true,
  "include_global_state": true,
  "rename_pattern": "index_(.+)",
  "rename_replacement": "restored_index_$1"
}

error :

{
  "error": {
    "root_cause": [
      {
        "type": "repository_missing_exception",
        "reason": "[elastic_titub_yedek] missing"
      }
    ],
    "type": "repository_missing_exception",
    "reason": "[elastic_titub_yedek] missing"
  },
  "status": 404
} 

What is the problem?


(Alexander Reelsen) #2

Hey,

how did you create the elastic_titub_yedek repository? Is that repository shown when you run the cat repositories API?

--Alex


(Hilal) #3

Centos with ES 2.4.1 :

Repository:

 PUT /_snapshot/elastic_titub_yedek
{
  "type": "fs",
  "settings": {
    "location":"/backup/elastic_titub_yedek",
    "compress":true,
    "chunk_size": "10m"
  }
}

Snapshot :

 PUT /_snapshot/elastic_titub_yedek/snapshot_elastic_titub_yedek
{
  "indices": "titub2",
  "ignore_unavailable": true,
  "include_global_state": false
}

Restore:

 POST /_snapshot/elastic_titub_yedek/snapshot_elastic_titub_yedek/_restore
{
  "indices": "titub2",
  "ignore_unavailable": true,
  "include_global_state": true,
  "rename_pattern": "index_(.+)",
  "rename_replacement": "restored_index_$1"
}

It's right here. After I tried windows 10 platform with ES 5.0.0 Restore:

POST /_snapshot/elastic_titub_yedek/snapshot_elastic_titub_yedek/_restore
{
  "indices": "titub2",
  "ignore_unavailable": true,
  "include_global_state": true,
  "rename_pattern": "index_(.+)",
  "rename_replacement": "restored_index_$1"
}

Error:

{
  "error": {
    "root_cause": [
      {
        "type": "repository_missing_exception",
        "reason": "[elastic_titub_yedek] missing"
      }
    ],
    "type": "repository_missing_exception",
    "reason": "[elastic_titub_yedek] missing"
  },
  "status": 404
}

(Hilal) #4

Also I put the data into the C:\\elasticsearch-5.0.0\\backup\\elastic_titub_yedek folder in windows10 platform . After I tried restore. It did not work right


(Alexander Reelsen) #5

Hey,

I am confused now. How can you create a fs repo with a windows path under centos?

Also I have not seen, that the repository was created fine under windows - thats why I asked for the cat repo command.

--Alex


(Hilal) #6

Ok. Firstly, I created repository on Centos 6.7 with ES 2.4.1:

 PUT /_snapshot/elastic_titub_yedek
{
  "type": "fs",
  "settings": {
    "location":"/backup/elastic_titub_yedek",
    "compress":true,
    "chunk_size": "10m"
  }
}

Secondly, I created snapshot on Centos 6.7 with ES 2.4.1:

PUT /_snapshot/elastic_titub_yedek/snapshot_elastic_titub_yedek
{
  "indices": "titub2",
  "ignore_unavailable": true,
  "include_global_state": false
}

Finally I restored on Centos 6.7 with ES 2.4.1

POST /_snapshot/elastic_titub_yedek/snapshot_elastic_titub_yedek/_restore
{
  "indices": "titub2",
  "ignore_unavailable": true,
  "include_global_state": true,
  "rename_pattern": "index_(.+)",
  "rename_replacement": "restored_index_$1"
}

Is it right here?

After I installed windows10 platform and I installedES 5.0.0.

Firstly, I created repository on Windows10 with ES 5.0.0:

PUT /_snapshot/elastic_titub_yedek
{
  "type": "fs",
  "settings": {
    "location":"C:\\elasticsearch-5.0.0\\backup\\elastic_titub_yedek",
    "compress":true,
    "chunk_size": "10m"
  }
}

result:

{
  "acknowledged": true
}

Secondly, I restored on Windows10 with ES 5.0.0

POST /_snapshot/elastic_titub_yedek/snapshot_elastic_titub_yedek/_restore
{
  "indices": "titub2",
  "ignore_unavailable": true,
  "include_global_state": true,
  "rename_pattern": "index_(.+)",
  "rename_replacement": "restored_index_$1"
}

Result:

{
  "accepted": true
}

is it correct?


(system) #7

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