# org.elasticsearch.cluster.block.ClusterBlockException: blocked by: \[SERVICE\_UNAVAILABLE/1/state not recovered / initialized\]

**URL:** https://discuss.elastic.co/t/org-elasticsearch-cluster-block-clusterblockexception-blocked-by-service-unavailable-1-state-not-recovered-initialized/105822
**Category:** Elasticsearch
**Created:** [October 31, 2017, 1:15am UTC](https://discuss.elastic.co/t/org-elasticsearch-cluster-block-clusterblockexception-blocked-by-service-unavailable-1-state-not-recovered-initialized/105822 "2017-10-31T01:15:33Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Naftoli\_Gugenheim](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/naftoli_gugenheim/32/23584_2.png) [@Naftoli\_Gugenheim](https://discuss.elastic.co/u/Naftoli_Gugenheim)
#### Post date: [October 31, 2017, 1:15am UTC](https://discuss.elastic.co/t/org-elasticsearch-cluster-block-clusterblockexception-blocked-by-service-unavailable-1-state-not-recovered-initialized/105822/1 "2017-10-31T01:15:33Z")

</div>

Hi, I'm using elasticsearch with graylog. I previously had elasticsearch 2, now I upgraded it to 5. I run it using docker-compose. I'm only using one instance. Here's the service definition:

```
      elasticsearch:
        restart: always
        image: "docker.elastic.co/elasticsearch/elasticsearch:5.6.3"
        command: "elasticsearch -Ecluster.name='graylog' -Expack.security.enabled=false"
        volumes:
          - /home/graylog/.elasticsearch:/usr/share/elasticsearch/data

```

Graylog's System Overview says everything is fine:

> Elasticsearch cluster is green. Shards: 4 active, 0 initializing, 0 relocating, 0 unassigned,

However,

```auto
naftoli@graylog-main:/home/graylog$ curl 172.18.0.3:9200/_cat/health
1509412370 01:12:50 graylog yellow 1 1 9 9 0 0 5 0 - 64.3%
naftoli@graylog-main:/home/graylog$ curl 172.18.0.3:9200/_cat/nodes
172.18.0.3 10 64 8 0.08 0.43 0.66 mdi * 0bjKb6g

```

Here are the logs: [elasticsearch.log · GitHub](https://gist.github.com/nafg/07b5c951b2566a37aec074c0f405da31)

Note the ClusterBlockException.

How to proceed?

Thanks.

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [October 31, 2017, 3:13am UTC](https://discuss.elastic.co/t/org-elasticsearch-cluster-block-clusterblockexception-blocked-by-service-unavailable-1-state-not-recovered-initialized/105822/2 "2017-10-31T03:13:40Z")

</div>

What is the problem you are looking to solve here?

---

<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: [November 28, 2017, 3:14am UTC](https://discuss.elastic.co/t/org-elasticsearch-cluster-block-clusterblockexception-blocked-by-service-unavailable-1-state-not-recovered-initialized/105822/3 "2017-11-28T03:14:05Z")

</div>

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