# Unassigned\_shards":1

**URL:** <https://discuss.elastic.co/t/unassigned-shards-1/273083>\
**Category:** Elasticsearch\
**Created:** [May 15, 2021, 2:33pm UTC](https://discuss.elastic.co/t/unassigned-shards-1/273083 "2021-05-15T14:33:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeyasingh\_t](https://avatars.discourse-cdn.com/v4/letter/j/8e8cbc/32.png) [@jeyasingh\_t](https://discuss.elastic.co/u/jeyasingh_t)\
**Post date:** [May 15, 2021, 2:33pm UTC](https://discuss.elastic.co/t/unassigned-shards-1/273083/1 "2021-05-15T14:33:42Z")

</div>

Hi, We use 6.8.1 with 3 cluster and got into this situation due to one of the hosts ran out of storage.

I used the below command to address the read-only index.

curl -X PUT '[http://xxxxxxxxxxxxx:9200/\_all/\_settings](http://xxxxxxxxxxxxx:9200/_all/_settings) -H 'Content-Type: application/json' -d' {"index.blocks.read\_only": false } '

Any help would be much appriciated.

\<{"cluster\_name":"elasticclusterprod","status":"yellow","timed\_out":false,"number\_of\_nodes":3,"number\_of\_data\_nodes":3,"active\_primary\_shards":246,"active\_shards":491,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1,"delayed\_unassigned\_shards":0,"number\_of\_pending\_tasks":0,"number\_of\_in\_flight\_fetch":0,"task\_max\_waiting\_in\_queue\_millis":0,"active\_shards\_percent\_as\_number":99.79674796747967}/\>

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [May 16, 2021, 3:09pm UTC](https://discuss.elastic.co/t/unassigned-shards-1/273083/2 "2021-05-16T15:09:39Z")

</div>

I think you may need to do both of these.

```
PUT /_all/_settings
{
  "index.blocks.read_only_allow_delete": null,
  "index.blocks.read_only": false
}

```

Also assume you have enough space now?

---

<div class="post-metadata">

**Author:** ![jeyasingh\_t](https://avatars.discourse-cdn.com/v4/letter/j/8e8cbc/32.png) [@jeyasingh\_t](https://discuss.elastic.co/u/jeyasingh_t)\
**Post date:** [May 18, 2021, 10:18am UTC](https://discuss.elastic.co/t/unassigned-shards-1/273083/3 "2021-05-18T10:18:05Z")

</div>

Thanks of the suggestion. unfortunately, it did not help.

xxxxxxxxxxxxx:9200/\_cluster/allocation/explain gives me the result, and translog-1.tlog is missing on the node. can i copy the copy from any one of the other nodes and restart?

/elasticsearch/elasticsearch-6.8.1/data/nodes/0/indices/qWFVysb7Sg65AyHPTJKXsA/0/translog]$ ls  
translog.ckp

{"index":"mqm\_djg8z5rlx1xnehe93109jk5qm\_tr\_test\_index","shard":0,"primary":false,"current\_state":"unassigned","unassigned\_info":{"reason":"ALLOCATION\_FAILED","at":"2021-02-21T02:29:44.489Z","failed\_allocation\_attempts":5,"details":"failed shard on node [nyhbyj\_LT9S9uuPxboBfag]: failed recovery, failure RecoveryFailedException[[mqm\_djg8z5rlx1xnehe93109jk5qm\_tr\_test\_index][0]: Recovery failed from {node-207}{P53GOlmbSmmgfM6VUwxKDQ}{yVyYSaOdRQSYeJFTbEWA5w}{xx.xxx.xx.xxx}{xx.xxx.xx.xxx:zzz}{ml.machine\_memory=12405493760, ml.max\_open\_jobs=20, xpack.installed=true, ml.enabled=true} into {node-728}{nyhbyj\_LT9S9uuPxboBfag}{3XaRctYSQfuBFC1Klif3HQ}{yy.yyyy.yy.yyy}{yy.yyyy.yy.yyy:zzz}{ml.machine\_memory=12405485568, xpack.installed=true, ml.max\_open\_jobs=20, ml.enabled=true}]; nested: RemoteTransportException[[node-207][xx.xxx.xx.xxx:zzz][internal:index/shard/recovery/start\_recovery]]; nested: RecoveryEngineException[Phase[1] prepare target for translog failed]; nested: RemoteTransportException[[node-728][yy.yyyy.yy.yyy:zzz][internal:index/shard/recovery/prepare\_translog]]; nested: TranslogCorruptedException[translog from source [/elasticsearch/elasticsearch-6.8.1/data/nodes/0/indices/qWFVysb7Sg65AyHPTJKXsA/0/translog] is corrupted]; nested: NoSuchFileException[/elasticsearch/elasticsearch-6.8.1/data/nodes/0/indices/qWFVysb7Sg65AyHPTJKXsA/0/translog/translog-1.tlog]; ","last\_allocation\_status":"no\_attempt"},"can\_allocate":"no","allocate\_explanation":"cannot allocate because allocation is not permitted to any of the nodes","node\_allocation\_decisions":[{"node\_id":"P53GOlmbSmmgfM6VUwxKDQ","node\_name":"node-207","transport\_address":"xx.xxx.xx.xxx:zzz","node\_attributes":{"ml.machine\_memory":"12405493760","ml.max\_open\_jobs":"20","xpack.installed":"true","ml.enabled":"true"},"node\_decision":"no","deciders":[{"decider":"max\_retry","decision":"NO","explanation":"shard has exceeded the maximum number of retries [5] on failed allocation attempts - manually call [/\_cluster/reroute?retry\_failed=true] to retry, [unassigned\_info[[reason=ALLOCATION\_FAILED], at[2021-02-21T02:29:44.489Z], failed\_attempts[5], delayed=false, details[failed shard on node [nyhbyj\_LT9S9uuPxboBfag]: failed recovery, failure RecoveryFailedException[[mqm\_djg8z5rlx1xnehe93109jk5qm\_tr\_test\_index][0]: Recovery failed from {node-207}{P53GOlmbSmmgfM6VUwxKDQ}{yVyYSaOdRQSYeJFTbEWA5w}{xx.xxx.xx.xxx}{xx.xxx.xx.xxx:zzz}{ml.machine\_memory=12405493760, ml.max\_open\_jobs=20, xpack.installed=true, ml.enabled=true} into {node-728}{nyhbyj\_LT9S9uuPxboBfag}{3XaRctYSQfuBFC1Klif3HQ}{yy.yyyy.yy.yyy}{yy.yyyy.yy.yyy:zzz}{ml.machine\_memory=12405485568, xpack.installed=true, ml.max\_open\_jobs=20, ml.enabled=true}]; nested: RemoteTransportException[[node-207][xx.xxx.xx.xxx:zzz][internal:index/shard/recovery/start\_recovery]]; nested: RecoveryEngineException[Phase[1] prepare target for translog failed]; nested: RemoteTransportException[[node-728][yy.yyyy.yy.yyy:zzz][internal:index/shard/recovery/prepare\_translog]]; nested: TranslogCorruptedException[translog from source [/elasticsearch/elasticsearch-6.8.1/data/nodes/0/indices/qWFVysb7Sg65AyHPTJKXsA/0/translog] is corrupted]; nested: NoSuchFileException[/elasticsearch/elasticsearch-6.8.1/data/nodes/0/indices/qWFVysb7Sg65AyHPTJKXsA/0/translog/translog-1.tlog]; ], allocation\_status[no\_attempt]]]"}]},{"node\_id":"nyhbyj\_LT9S9uuPxboBfag","node\_name":"node-728","transport\_address":"yy.yyyy.yy.yyy:zzz","node\_attributes":

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [May 18, 2021, 1:40pm UTC](https://discuss.elastic.co/t/unassigned-shards-1/273083/4 "2021-05-18T13:40:01Z")

</div>

Perhaps this will help

> **[elasticsearch-shard | Elasticsearch Guide \[6.8\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/6.8/shard-tool.html#shard-tool)**

---

<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 15, 2021, 1:40pm UTC](https://discuss.elastic.co/t/unassigned-shards-1/273083/5 "2021-06-15T13:40:27Z")

</div>

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