Restore snapshot not working


(Hermanto Phang) #1

Hi All,

I try to restore my backup snapshot using command
curl -XPOST "localhost:9200/_snapshot/my_backup/snapshot_1/_restore"

But it was come up error

{"error":"SnapshotRestoreException[[my_backup:snapshot_1] cannot restore
index [cobbler_api] because it's open]","status":500}

Any input to fix this error?
Do I need to close the index before restore and how can I do that?
Thanks in advance for the input.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/19b2fe55-29a6-4936-b12b-fdae6d9e6fe8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(David Pilato) #2

Try to close the index first: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-open-close.html#indices-open-close

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 9 juin 2014 à 08:19, Hermanto Phang hermyphang@gmail.com a écrit :

Hi All,

I try to restore my backup snapshot using command
curl -XPOST "localhost:9200/_snapshot/my_backup/snapshot_1/_restore"

But it was come up error

{"error":"SnapshotRestoreException[[my_backup:snapshot_1] cannot restore index [cobbler_api] because it's open]","status":500}

Any input to fix this error?
Do I need to close the index before restore and how can I do that?
Thanks in advance for the input.

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/19b2fe55-29a6-4936-b12b-fdae6d9e6fe8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/83DC53B2-450B-4781-B9E2-F83D649F9D34%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.


(Mark Walkom) #3

Take a look at
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-open-close.html

Regards,
Mark Walkom

Infrastructure Engineer
Campaign Monitor
email: markw@campaignmonitor.com
web: www.campaignmonitor.com

On 9 June 2014 16:19, Hermanto Phang hermyphang@gmail.com wrote:

Hi All,

I try to restore my backup snapshot using command
curl -XPOST "localhost:9200/_snapshot/my_backup/snapshot_1/_restore"

But it was come up error

{"error":"SnapshotRestoreException[[my_backup:snapshot_1] cannot restore
index [cobbler_api] because it's open]","status":500}

Any input to fix this error?
Do I need to close the index before restore and how can I do that?
Thanks in advance for the input.

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/19b2fe55-29a6-4936-b12b-fdae6d9e6fe8%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/19b2fe55-29a6-4936-b12b-fdae6d9e6fe8%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAEM624ZpU85e6v7NsZ4k76rNEd0sDSQUM8jJAqzMDySKiJB%3DBQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


(system) #4