# SLM policy for elastic snapshot for 30 mins is failing

**URL:** <https://discuss.elastic.co/t/slm-policy-for-elastic-snapshot-for-30-mins-is-failing/237242>\
**Category:** Elasticsearch\
**Created:** [June 16, 2020, 7:44am UTC](https://discuss.elastic.co/t/slm-policy-for-elastic-snapshot-for-30-mins-is-failing/237242 "2020-06-16T07:44:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hello5346](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hello5346/32/68209_2.png) [@hello5346](https://discuss.elastic.co/u/hello5346)\
**Post date:** [June 16, 2020, 7:44am UTC](https://discuss.elastic.co/t/slm-policy-for-elastic-snapshot-for-30-mins-is-failing/237242/1 "2020-06-16T07:44:31Z")

</div>

I had set up a Elasticsearch snapshot to s3 and setup an SLM policy to create snapshot for every 30 mins but it's throwing an error and i'm sharing the slm policy details as well can anyone help me out

curl -X GET "10.0.0.170:9200/\_slm/policy/hourly-snapshots?human&pretty"  
{  
"hourly-snapshots" : {  
"version" : 5,  
"modified\_date" : "2020-06-10T20:20:35.058Z",  
"modified\_date\_millis" : 1591820435058,  
"policy" : {  
"name" : "\<hourly-snap-{now/d}\>",  
"schedule" : "0 0,30 \* \* \* ?",  
"repository" : "my\_s3\_repository",  
"config" : {  
"indices" : [  
"\*"  
]  
},  
"retention" : {  
"expire\_after" : "15d",  
"min\_count" : 5,  
"max\_count" : 700  
}  
},  
"last\_success" : {  
"snapshot\_name" : "hourly-snap-2020.06.16-yqyteoqsr8cqjzcgwv6boq",  
"time\_string" : "2020-06-16T05:00:12.703Z",  
"time" : 1592283612703  
},  
"last\_failure" : {  
"snapshot\_name" : "hourly-snap-2020.06.16-ozk-g5o6tzkyol-qkrjlnq",  
"time\_string" : "2020-06-16T07:00:00.142Z",  
"time" : 1592290800142,  
"details" : "{"type":"concurrent\_snapshot\_execution\_exception","reason":"[my\_s3\_repository:hourly-snap-2020.06.16-ozk-g5o6tzkyol-qkrjlnq] a snapshot is already running","stack\_trace":"ConcurrentSnapshotExecutionException[[my\_s3\_repository:hourly-snap-2020.06.16-ozk-g5o6tzkyol-qkrjlnq] a snapshot is already running]\n\tat org.elasticsearch.snapshots.SnapshotsService$1.execute(SnapshotsService.java:319)\n\tat org.elasticsearch.cluster.ClusterStateUpdateTask.execute(ClusterStateUpdateTask.java:47)\n\tat org.elasticsearch.cluster.service.MasterService.executeTasks(MasterService.java:702)\n\tat org.elasticsearch.cluster.service.MasterService.calculateTaskOutputs(MasterService.java:324)\n\tat org.elasticsearch.cluster.service.MasterService.runTasks(MasterService.java:219)\n\tat org.elasticsearch.cluster.service.MasterService.access$000(MasterService.java:73)\n\tat org.elasticsearch.cluster.service.MasterService$Batcher.run(MasterService.java:151)\n\tat org.elasticsearch.cluster.service.TaskBatcher.runIfNotProcessed(TaskBatcher.java:150)\n\tat org.elasticsearch.cluster.service.TaskBatcher$BatchedTask.run(TaskBatcher.java:188)\n\tat org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:633)\n\tat org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:252)\n\tat org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:215)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)\n\tat java.base/java.lang.Thread.run(Thread.java:830)\n"}"  
},  
"next\_execution" : "2020-06-16T07:30:00.000Z",  
"next\_execution\_millis" : 1592292600000,  
"stats" : {  
"policy" : "hourly-snapshots",  
"snapshots\_taken" : 127,  
"snapshots\_failed" : 174,  
"snapshots\_deleted" : 0,  
"snapshot\_deletion\_failures" : 0  
}  
}  
}

---

<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 14, 2020, 7:44am UTC](https://discuss.elastic.co/t/slm-policy-for-elastic-snapshot-for-30-mins-is-failing/237242/2 "2020-07-14T07:44:34Z")

</div>

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