Invalid snapshot name [_restore], must not start with '_'


(Epiq Sty) #1

Hello,

I tried to restore data from elasticsearch 2.4.3 cluster to new 5.5.1, and faced with strange issue:

New ES 5.5.1 seen the snapshots itself:

$ curl -XGET 'localhost:9200/_snapshot/backup/sl-backup-2017.08.10?pretty'
{
  "snapshots" : [
    {
      "snapshot" : "sl-backup-2017.08.10",
      "uuid" : "sl-backup-2017.08.10",
      "version_id" : 2040399,
      "version" : "2.4.3",
      "indices" : [
        "sl",
        "loadingtimes",
        "slagents"
      ],
      "state" : "SUCCESS",
      "start_time" : "2017-08-10T12:00:45.640Z",
      "start_time_in_millis" : 1502366445640,
      "end_time" : "2017-08-10T12:00:49.300Z",
      "end_time_in_millis" : 1502366449300,
      "duration_in_millis" : 3660,
      "failures" : [ ],
      "shards" : {
        "total" : 3,
        "failed" : 0,
        "successful" : 3
      }
    }
  ]
}

But, when i am trying to restore them i get strange error:

$ curl -XPOST 'localhost:9200/_snapshot/sl-backup-2017.08.10/_restore?pretty'
{
  "error" : {
    "root_cause" : [
      {
        "type" : "invalid_snapshot_name_exception",
        "reason" : "[sl-backup-2017.08.10:_restore]Invalid snapshot name [_restore], must not start with '_'"
      }
    ],
    "type" : "invalid_snapshot_name_exception",
    "reason" : "[sl-backup-2017.08.10:_restore]Invalid snapshot name [_restore], must not start with '_'"
  },
  "status" : 400
}

I took this curl from documentation (https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html#_restore), but it not works for me.

What could be wrong here?

Thanks in advance!


(David Pilato) #2

Should be

$ curl -XPOST 'localhost:9200/_snapshot/backup/sl-backup-2017.08.10/_restore?pretty'

(Epiq Sty) #3

thanks, it works!

But, sadly it helps us only with data, but not for kibana dashboard.

Probably be it's offtopic here, but maybe you know , where kibana 4 are store their dashboards?

We have installed elasticsearch 5.5 on the same host , where was our kibana 4 installation, and suddenly, kibana also has upgraded to kibana 5.5.

We have file backups for such node, but I don't know where exactly kibana 4 are stored dashboards configuration.


(David Pilato) #4

Yeah better to ask on #kibana.

I suppose it's stored in default .kibana index.


(Epiq Sty) #5

Right, i just realised my mistake.
I will try restore with .kibana index, and proceed in in #kibana if will be any problems ,
Thanks a lot!


(system) #6

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