# Restoring all indices fails in ES-1.1

**URL:** <https://discuss.elastic.co/t/restoring-all-indices-fails-in-es-1-1/18686>\
**Category:** Elasticsearch\
**Created:** [July 16, 2014, 12:15am UTC](https://discuss.elastic.co/t/restoring-all-indices-fails-in-es-1-1/18686 "2014-07-16T00:15:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sagarit2](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@sagarit2](https://discuss.elastic.co/u/sagarit2)\
**Post date:** [July 16, 2014, 12:15am UTC](https://discuss.elastic.co/t/restoring-all-indices-fails-in-es-1-1/18686/1 "2014-07-16T00:15:29Z")

</div>

Hi,

We are using Elasticsearch version 1.1 and trying to restore all the  
indices from backup.

```
    String repoN = "myrepo";
    String snapshotN = "snap_abc";
    String indices = "_all";

   RestoreSnapshotResponse restoreSnapshotResponse = 

```

client.admin().cluster().prepareRestoreSnapshot(repoN, snapshotN)  
.setWaitForCompletion(true)  
.setIndices(indices)  
.execute()  
.actionGet();

This call fails with following stacktrace:

org.elasticsearch.indices.IndexMissingException: [\_all] missing  
at  
org.elasticsearch.snapshots.SnapshotUtils.filterIndices(SnapshotUtils.java:77)  
at  
org.elasticsearch.snapshots.RestoreService.restoreSnapshot(RestoreService.java:118)  
at  
org.elasticsearch.action.admin.cluster.snapshots.restore.TransportRestoreSnapshotAction.masterOperation(TransportRestoreSnapshotAction.java:87)  
at  
org.elasticsearch.action.admin.cluster.snapshots.restore.TransportRestoreSnapshotAction.masterOperation(TransportRestoreSnapshotAction.java:41)  
at  
org.elasticsearch.action.support.master.TransportMasterNodeOperationAction$2.run(TransportMasterNodeOperationAction.java:145)  
at  
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  
at  
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  
at java.lang.Thread.run(Thread.java:724)

May I know if it's already fixed in the latest version ?

Thanks,

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/eed7f02b-c9b8-4884-a36a-e54be433e762%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/eed7f02b-c9b8-4884-a36a-e54be433e762%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 16, 2014, 6:12am UTC](https://discuss.elastic.co/t/restoring-all-indices-fails-in-es-1-1/18686/2 "2014-07-16T06:12:59Z")

</div>

Could you try without setting indices?

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

Le 16 juil. 2014 à 02:15, sagarl [sagarit2@gmail.com](mailto:sagarit2@gmail.com) a écrit :

Hi,

We are using Elasticsearch version 1.1 and trying to restore all the indices from backup.

```
    String repoN = "myrepo";
    String snapshotN = "snap_abc";
    String indices = "_all";

   RestoreSnapshotResponse restoreSnapshotResponse = client.admin().cluster().prepareRestoreSnapshot(repoN, snapshotN)
            .setWaitForCompletion(true)
            .setIndices(indices)  
            .execute()
            .actionGet();

```

This call fails with following stacktrace:

org.elasticsearch.indices.IndexMissingException: [\_all] missing  
at org.elasticsearch.snapshots.SnapshotUtils.filterIndices(SnapshotUtils.java:77)  
at org.elasticsearch.snapshots.RestoreService.restoreSnapshot(RestoreService.java:118)  
at org.elasticsearch.action.admin.cluster.snapshots.restore.TransportRestoreSnapshotAction.masterOperation(TransportRestoreSnapshotAction.java:87)  
at org.elasticsearch.action.admin.cluster.snapshots.restore.TransportRestoreSnapshotAction.masterOperation(TransportRestoreSnapshotAction.java:41)  
at org.elasticsearch.action.support.master.TransportMasterNodeOperationAction$2.run(TransportMasterNodeOperationAction.java:145)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  
at java.lang.Thread.run(Thread.java:724)

May I know if it's already fixed in the latest version ?

Thanks,

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/eed7f02b-c9b8-4884-a36a-e54be433e762%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/eed7f02b-c9b8-4884-a36a-e54be433e762%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/E36B23D7-E165-4E76-BCF9-685AC4FCC69E%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/E36B23D7-E165-4E76-BCF9-685AC4FCC69E%40pilato.fr).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:15am UTC](https://discuss.elastic.co/t/restoring-all-indices-fails-in-es-1-1/18686/3 "2017-07-06T01:15:35Z")

</div>

Closed on July 6, 2017, 1:15am UTC


