Error when restoring snapshots on ES8

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.

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:

{"@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"}

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