# Error when restoring snapshots on ES8

**URL:** <https://discuss.elastic.co/t/error-when-restoring-snapshots-on-es8/361467>\
**Category:** Community Ecosystem\
**Tags:** snapshot-and-restore\
**Created:** [June 14, 2024, 7:50am UTC](https://discuss.elastic.co/t/error-when-restoring-snapshots-on-es8/361467 "2024-06-14T07:50:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dxygit1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dxygit1/32/135045_2.png) [@dxygit1](https://discuss.elastic.co/u/dxygit1)\
**Post date:** [June 14, 2024, 7:50am UTC](https://discuss.elastic.co/t/error-when-restoring-snapshots-on-es8/361467/1 "2024-06-14T07:50:21Z")

</div>

When using the `_restore` API for recovery, no error occurs, but the index appears empty without data. Checking via the API does not show the index, but it appears in Kibana.

```auto
curl -X POST "localhost:9200/_snapshot/es-backup/snapshot_4/_restore" -H 'Content-Type: application/json' -d'
{
  "indices": ".ds-tcc-log-qa-2024.06.03-000012",
}'

```

The following error is seen in the logs:

```auto
{"@timestamp":"2024-06-14T07:33:28.528Z", "log.level":"ERROR", "message":"policy [tcc-qa] for index [.ds-tcc-log-qa-2024.06.03-000012] failed on step [{\"phase\":\"hot\",\"action\":\"rollover\",\"name\":\"check-rollover-ready\"}]. Moving to ERROR step", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"elasticsearch[elasticsearch-es-cluster-2][trigger_engine_scheduler][T#1]","log.logger":"org.elasticsearch.xpack.ilm.IndexLifecycleRunner","elasticsearch.cluster.uuid":"YJJxhTOfReqSvlJ97yJIVQ","elasticsearch.node.id":"6dgbXdt5RmiehH6pejUAkw","elasticsearch.node.name":"elasticsearch-es-cluster-2","elasticsearch.cluster.name":"elasticsearch","error.type":"java.lang.IllegalArgumentException","error.message":"setting [index.lifecycle.rollover_alias] for index [.ds-tcc-log-qa-2024.06.03-000012] is empty or not defined","error.stack_trace":"java.lang.IllegalArgumentException: setting [index.lifecycle.rollover_alias] for index [.ds-tcc-log-qa-2024.06.03-000012] is empty or not defined\n\tat org.elasticsearch.xcore@8.12.2/org.elasticsearch.xpack.core.ilm.WaitForRolloverReadyStep.evaluateCondition(WaitForRolloverReadyStep.java:111)\n\tat org.elasticsearch.ilm@8.12.2/org.elasticsearch.xpack.ilm.IndexLifecycleRunner.runPeriodicStep(IndexLifecycleRunner.java:235)\n\tat org.elasticsearch.ilm@8.12.2/org.elasticsearch.xpack.ilm.IndexLifecycleService.triggerPolicies(IndexLifecycleService.java:430)\n\tat org.elasticsearch.ilm@8.12.2/org.elasticsearch.xpack.ilm.IndexLifecycleService.triggered(IndexLifecycleService.java:358)\n\tat org.elasticsearch.server@8.12.2/org.elasticsearch.common.scheduler.SchedulerEngine.notifyListeners(SchedulerEngine.java:192)\n\tat org.elasticsearch.server@8.12.2/org.elasticsearch.common.scheduler.SchedulerEngine$ActiveSchedule.run(SchedulerEngine.java:226)\n\tat java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)\n\tat java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)\n\tat java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)\n\tat java.base/java.lang.Thread.run(Thread.java:1583)\n"}

```

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/f/6fcdf4ae4abfdefcc7b0a5c999b0c45a70c7e2db.png)

---

<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 12, 2024, 7:50am UTC](https://discuss.elastic.co/t/error-when-restoring-snapshots-on-es8/361467/2 "2024-07-12T07:50:39Z")

</div>

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