# .marvel-kibana has an unassigned primary. How to fix this?

**URL:** <https://discuss.elastic.co/t/marvel-kibana-has-an-unassigned-primary-how-to-fix-this/69786>\
**Category:** Elasticsearch\
**Created:** [December 22, 2016, 12:30pm UTC](https://discuss.elastic.co/t/marvel-kibana-has-an-unassigned-primary-how-to-fix-this/69786 "2016-12-22T12:30:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![adkrish22290](https://avatars.discourse-cdn.com/v4/letter/a/6bbea6/32.png) [@adkrish22290](https://discuss.elastic.co/u/adkrish22290)\
**Post date:** [December 22, 2016, 12:30pm UTC](https://discuss.elastic.co/t/marvel-kibana-has-an-unassigned-primary-how-to-fix-this/69786/1 "2016-12-22T12:30:09Z")

</div>

Hi,

I have a 3-node Elasticsearch cluster. When I perform a rolling restart on the cluster, once the restart is completed, the Elasticsearch cluster status is coming as red. Even with multiple restarts I am unable to bring the cluster state to even yellow.

On checking with the Marvel plugin installed on all 3 of my Elasticsearch nodes, hovering over the i symbol next to the cluster status its showing this error:

> .marvel-kibana has an unassigned primary

This problem is coming only for the .marvel-kibana index, the other indices there is no issue.

I am doing the following when doing the rolling restart:

1. Disabling shard allocation on all nodes.
2. Stopping Elasticsearch on all nodes by killing the running Elasticsearch process (I'm not running ES as a service, I'm starting it via a script).
3. Starting Elasticsearch on the primary master node first via a script.
4. Starting Elasticsearch on the other nodes.
5. Enabling shard allocation on all nodes.

I checked the logs also, all nodes are joining the cluster after starting Elasticsearch on them. I can't forcibly reroute the shards, it would delete the data from the index.

I am unable to find a permanent solution to the problem even after 1 week of debugging. How to fix this issue?

---

<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:** [January 19, 2017, 12:30pm UTC](https://discuss.elastic.co/t/marvel-kibana-has-an-unassigned-primary-how-to-fix-this/69786/2 "2017-01-19T12:30:23Z")

</div>

Closed on January 19, 2017, 12:30pm UTC

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