# Service unavailable when trying to set up opendistro. Getting cluster block exception

**URL:** <https://forum.opensearch.org/t/service-unavailable-when-trying-to-set-up-opendistro-getting-cluster-block-exception/1142>\
**Category:** Security\
**Created:** [July 15, 2019, 7:33pm UTC](https://forum.opensearch.org/t/service-unavailable-when-trying-to-set-up-opendistro-getting-cluster-block-exception/1142 "2019-07-15T19:33:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![daleatav](https://avatars.discourse-cdn.com/v4/letter/d/8baadc/32.png) [@daleatav](https://forum.opensearch.org/u/daleatav)\
**Post date:** [July 15, 2019, 7:33pm UTC](https://forum.opensearch.org/t/service-unavailable-when-trying-to-set-up-opendistro-getting-cluster-block-exception/1142/1 "2019-07-15T19:33:15Z")

</div>

Hello,

I am trying to set up a new ES cluster with the opendistro plugin. I am starting out with one node so far and I can’t do anything with ES from the get go. When I try, “curl -sk [https://localhost:9200](https://localhost:9200)”, I get  
Open Distro Security not initialized. So after looking at my logs, I noticed this:

[2019-07-15T19:14:24,521][INFO][c.a.o.s.c.ConfigurationRepository] [elasticsearch-1] Will create .opendistro\_security index so we can apply default config  
2632 [2019-07-15T19:14:54,528][DEBUG][o.e.a.a.i.c.TransportCreateIndexAction] [elasticsearch-1] timed out while retrying [indices:admin/create] after failure (timeout [30s])  
2633 org.elasticsearch.cluster.block.ClusterBlockException: blocked by: [SERVICE\_UNAVAILABLE/1/state not recovered / initialized];

The service is up and running and I can get to port 9200 and 9300 just fine using telnet, so I know the ports are up and listening. I am at loss as to why this will not start. Any ideas?

I am using ES 7.0.1 with Opendistro 1.0.0.0.

---

<div class="post-metadata">

**Author:** ![Anthony](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/anthony/32/9939_2.png) [@Anthony](https://forum.opensearch.org/u/Anthony)\
**Post date:** [April 15, 2021, 2:02pm UTC](https://forum.opensearch.org/t/service-unavailable-when-trying-to-set-up-opendistro-getting-cluster-block-exception/1142/2 "2021-04-15T14:02:30Z")

</div>

@daleatav Did you manage to get this resolved? If not, can you confirm which way you set up ES and odfe (docker, rpm, etc)
