# The shard cannot be allocated to the same node on which a copy of the shard already exists

**URL:** <https://discuss.elastic.co/t/the-shard-cannot-be-allocated-to-the-same-node-on-which-a-copy-of-the-shard-already-exists/233133>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [May 18, 2020, 2:52pm UTC](https://discuss.elastic.co/t/the-shard-cannot-be-allocated-to-the-same-node-on-which-a-copy-of-the-shard-already-exists/233133 "2020-05-18T14:52:27Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [May 18, 2020, 6:21pm UTC](https://discuss.elastic.co/t/the-shard-cannot-be-allocated-to-the-same-node-on-which-a-copy-of-the-shard-already-exists/233133/2 "2020-05-18T18:21:24Z")

</div>

> [@johnny12311](#):
>
> "primary" : false,

This is a replica, but you only have one node, so of course no replicas can be allocated. You should set `number_of_replicas: 0` on all your indices.

---

_[View the full topic](https://discuss.elastic.co/t/the-shard-cannot-be-allocated-to-the-same-node-on-which-a-copy-of-the-shard-already-exists/233133)._
