# Failed attempts to create a deployment

**URL:** <https://discuss.elastic.co/t/failed-attempts-to-create-a-deployment/155039>\
**Category:** Elastic Cloud Enterprise (ECE)\
**Created:** [November 1, 2018, 3:12pm UTC](https://discuss.elastic.co/t/failed-attempts-to-create-a-deployment/155039 "2018-11-01T15:12:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![wpitt13](https://avatars.discourse-cdn.com/v4/letter/w/f9ae1b/32.png) [@wpitt13](https://discuss.elastic.co/u/wpitt13)\
**Post date:** [November 1, 2018, 3:12pm UTC](https://discuss.elastic.co/t/failed-attempts-to-create-a-deployment/155039/1 "2018-11-01T15:12:16Z")

</div>

ECE 2.0.0  
Failed attempts to create a deployment result in a failed cluster showing in the list of deployments that cannot be removed. The deployment shows the following status:  
Deployment health issues:  
Some instances in the deployment are unhealthy  
The latest attempt to change the configuration failed

When looking at the ECE Cloud UI, the node appears under the allocator with a Red X and the version is showing 'v'. However, when logging into the OS on the allocator the node is not showing in the list of docker containers.

---

<div class="post-metadata">

**Author:** ![Alex\_Piggott](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex_piggott/32/11053_2.png) [@Alex\_Piggott](https://discuss.elastic.co/u/Alex_Piggott)\
**Post date:** [November 1, 2018, 3:35pm UTC](https://discuss.elastic.co/t/failed-attempts-to-create-a-deployment/155039/2 "2018-11-01T15:35:06Z")

</div>

What was the failure in the deployment activity plan listed as?

There is annoying known bug with deployments that fail on their first plan ... to remove it you can either "reapply" that plan from the activity log (assuming we understand why it failed, and that it won't fail again), or

- you can copy that plan (clipboard icon next to "reapply" button)
- go into the advanced editor, set the `size.value` to 0 in the `cluster_topology` array and `transient.plan_configuration.skip_snapshots` to `false`, then save
- once that "downscale" plan completes you can delete the cluster

---

<div class="post-metadata">

**Author:** ![wpitt13](https://avatars.discourse-cdn.com/v4/letter/w/f9ae1b/32.png) [@wpitt13](https://discuss.elastic.co/u/wpitt13)\
**Post date:** [November 1, 2018, 4:22pm UTC](https://discuss.elastic.co/t/failed-attempts-to-create-a-deployment/155039/3 "2018-11-01T16:22:04Z")

</div>

That partially worked. Now when I select the cluster, it now shows "Deployment is stopped" with the following error:  
"TypeError: Cannot read property 'plan' of null

I still do not have an option to delete the cluster

---

<div class="post-metadata">

**Author:** ![Alex\_Piggott](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex_piggott/32/11053_2.png) [@Alex\_Piggott](https://discuss.elastic.co/u/Alex_Piggott)\
**Post date:** [November 1, 2018, 4:35pm UTC](https://discuss.elastic.co/t/failed-attempts-to-create-a-deployment/155039/4 "2018-11-01T16:35:11Z")

</div>

2.0 must have a new related UI bug, I'll get an issue raised so we can fix that - you can always fix these issues from the API:

`curl -XPOST -u 'admin:PASS' 'localhost:12400/api/v1/clusters/elasticsearch/ID/_shutdown?skip_snapshot=true'`  
`curl -XDELETE -u 'admin:PASS' 'localhost:12400/api/v1/clusters/elasticsearch/ID`

(since you applied the downscale plan, you shouldn't need the first step)

---

<div class="post-metadata">

**Author:** ![wpitt13](https://avatars.discourse-cdn.com/v4/letter/w/f9ae1b/32.png) [@wpitt13](https://discuss.elastic.co/u/wpitt13)\
**Post date:** [November 1, 2018, 4:55pm UTC](https://discuss.elastic.co/t/failed-attempts-to-create-a-deployment/155039/5 "2018-11-01T16:55:53Z")

</div>

That helped very much. Thanks Alex

---

<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 15, 2018, 5:06pm UTC](https://discuss.elastic.co/t/failed-attempts-to-create-a-deployment/155039/6 "2018-11-15T17:06:12Z")

</div>

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