Snapshot Error 404

(Juan Andres Ramirez) #1

Hello Guys,
I decidied replace my current ELK version from 2.3.5 to 5, so I'm preparing my cluster for the migration.
My first step was take some snapshot and try restore in the same version 2.3.5, just for sure if my snapshot will be works as well.

I have 4 nodes, every node has in the configuration the place where the backup will be saved:

path.repo: ["/mnt/backup"]

I register my backup:

    curl -XPUT 'http://localhost:9200/_snapshot/backup_kibana' -d '{
    "type": "fs",
    "settings": {
    "location": "/mnt/backup",
     "compress": true }}'

list the registered repository:

curl -XGET 'http://cviadpzl01:9200/_snapshot/_all'?pretty
"backup_kibana" : {
 "type" : "fs",
 "settings" : {
  "compress" : "true",
  "location" : "/mnt/backup"  }  } }

Now , I verified if the repository is fine:

 curl -XGET 'http://localhost:9200/_snapshot/backup_kibana/_verify'?pretty
 "error" : {
 "root_cause" : [ {
  "type" : "invalid_snapshot_name_exception",
  "reason" : "[backup_kibana:_verify] Invalid snapshot name [_verify], must not start with '_'"
  } ],
  "type" : "invalid_snapshot_name_exception",
  "reason" : "[backup_kibana:_verify] Invalid snapshot name [_verify], must not start with '_'"
  "status" : 400

Well, I don't know what are I doing bad, and please let me know if you need additional info.


(Abdon Pijpelink) #2

You need to issue a POST instead of a GET. The below should work:

curl -XPOST 'http://localhost:9200/_snapshot/backup_kibana/_verify'?pretty

(Juan Andres Ramirez) #3

OMG sorry, I'm so stupid, I tried found the solution yesterday and I didn't see my error.

Thank you!!

(system) #4

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