# Snapshot failed every time - failing update snapshot state

**URL:** <https://discuss.elastic.co/t/snapshot-failed-every-time-failing-update-snapshot-state/234199>\
**Category:** Elasticsearch\
**Created:** [May 25, 2020, 7:47pm UTC](https://discuss.elastic.co/t/snapshot-failed-every-time-failing-update-snapshot-state/234199 "2020-05-25T19:47:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Newbieuser](https://avatars.discourse-cdn.com/v4/letter/n/59ef9b/32.png) [@Newbieuser](https://discuss.elastic.co/u/Newbieuser)\
**Post date:** [May 25, 2020, 7:47pm UTC](https://discuss.elastic.co/t/snapshot-failed-every-time-failing-update-snapshot-state/234199/1 "2020-05-25T19:47:09Z")

</div>

I am trying to get backup for my node but for some reason definitely not working, I tried like 5 times last 2days .. I am using standart process, i have only 1 node its pretty basic setup.

```auto
#Declare informations
curl -X PUT "localhost:9200/_snapshot/esbackup" -H 'Content-Type: application/json' -d'
{
  "type": "fs",
  "settings": {
    "location": "D:\\ES\\BACKUP",
    "compress": true,
  }
}
'

#Start backup process
curl -XPUT "localhost:9200/_snapshot/esbackup/mybackup1"

```

This is my config file,

```auto
thread_pool.get.queue_size: 10000
thread_pool.write.queue_size: 10000
thread_pool.analyze.queue_size: 10000
thread_pool.search.queue_size: 10000
thread_pool.listener.queue_size: 10000
bootstrap.memory_lock: true
discovery.type: single-node
path.repo: ["D:\\ES\\BACKUP"]

```

There is logs, i did same thing million times before but for some reason i am getting a lot of error this time.

```auto

   [2020-05-25T19:32:01,593][WARN][o.e.c.s.MasterService] [WIN-E343S884OIB] failing [update snapshot state[esbackup:mybackup1/aGuLM0rRT9CdXz5iGGesOg, shardId [[emails][13]], status [SUCCESS]]]: failed to commit cluster state version [377]
org.elasticsearch.cluster.coordination.FailedToCommitClusterStateException: publication failed
        at org.elasticsearch.cluster.coordination.Coordinator$CoordinatorPublication$4.onFailure(Coordinator.java:1430) ~[elasticsearch-7.6.2.jar:7.6.2]
        at org.elasticsearch.action.ActionRunnable.onFailure(ActionRunnable.java:88) ~[elasticsearch-7.6.2.jar:7.6.2]
        at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:39) ~[elasticsearch-7.6.2.jar:7.6.2]
        at org.elasticsearch.common.util.concurrent.EsExecutors$DirectExecutorService.execute(EsExecutors.java:225) ~[elasticsearch-7.6.2.jar:7.6.2]
        at org.elasticsearch.common.util.concurrent.ListenableFuture.notifyListener(ListenableFuture.java:106) ~[elasticsearch-7.6.2.jar:7.6.2]
        at org.elasticsearch.common.util.concurrent.ListenableFuture.addListener(ListenableFuture.java:68) ~[elasticsearch-7.6.2.jar:7.6.2]
        at org.elasticsearch.cluster.coordination.Coordinator$CoordinatorPublication.onCompletion(Coordinator.java:1350) ~[elasticsearch-7.6.2.jar:7.6.2]
        at org.elasticsearch.cluster.coordination.Publication.onPossibleCompletion(Publication.java:125) ~[elasticsearch-7.6.2.jar:7.6.2]
        at org.elasticsearch.cluster.coordination.Publication.cancel(Publication.java:89) ~[elasticsearch-7.6.2.jar:7.6.2]
        at org.elasticsearch.cluster.coordination.Coordinator$CoordinatorPublication$2.run(Coordinator.java:1303) ~[elasticsearch-7.6.2.jar:7.6.2]
        at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:633) ~[elasticsearch-7.6.2.jar:7.6.2]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
        at java.lang.Thread.run(Thread.java:830) [?:?]
Caused by: org.elasticsearch.ElasticsearchException: publication cancelled before committing: timed out after 30s
        at org.elasticsearch.cluster.coordination.Publication.cancel(Publication.java:86) ~[elasticsearch-7.6.2.jar:7.6.2]
        ... 5 more

```

Full logs : [https://pastebin.com/raw/x7PDC2XA](https://pastebin.com/raw/x7PDC2XA)

Can anyone please tell me how can i get backup properly ? I really cant understand what is problem.I need to get backups immediately but for some reason i cant ..

If i copy whole elasticsearch folder that must work right ? I have plenty space to do that.

---

<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:** [June 22, 2020, 7:47pm UTC](https://discuss.elastic.co/t/snapshot-failed-every-time-failing-update-snapshot-state/234199/2 "2020-06-22T19:47:09Z")

</div>

Closed on June 22, 2020, 7:47pm UTC

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