# Rasa X Fails to train/upload model

**URL:** <https://forum.rasa.com/t/rasa-x-fails-to-train-upload-model/42932>\
**Category:** \[Deprecated\] Rasa X Community Edition\
**Created:** [April 27, 2021, 1:51pm UTC](https://forum.rasa.com/t/rasa-x-fails-to-train-upload-model/42932 "2021-04-27T13:51:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![philippa](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@philippa](https://forum.rasa.com/u/philippa)\
**Post date:** [April 27, 2021, 1:51pm UTC](https://forum.rasa.com/t/rasa-x-fails-to-train-upload-model/42932/1 "2021-04-27T13:51:09Z")

</div>

Hi,

I am getting the following error when trying to train a model in Rasa X. The deployment is on kubernetes in AWS, has anyone seen this before and could help ? Could this be to do with the memory on rasa-production or rasa-worker , we have the amounts given in [Helm Chart Installation](https://rasa.com/docs/rasa-x/installation-and-setup/install/helm-chart#cluster-requirements)

{version: “0.38.1”, status: “failure”, message: “Failed to train a Rasa model.”,…}

code: 500

details: “Cannot connect to host rasa-x-1619477442-rasa-worker.ai-inv.svc:5005 ssl:default [Connection refused]”

help: null

message: “Failed to train a Rasa model.”

reason: “StackTrainingFailed”

status: “failure”

version: “0.38.1”

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [April 28, 2021, 11:47am UTC](https://forum.rasa.com/t/rasa-x-fails-to-train-upload-model/42932/2 "2021-04-28T11:47:06Z")

</div>

Are all of your pods running? It looks like Rasa X is not able to connect to your rasa worker pod.

---

<div class="post-metadata">

**Author:** ![philippa](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@philippa](https://forum.rasa.com/u/philippa)\
**Post date:** [April 28, 2021, 1:01pm UTC](https://forum.rasa.com/t/rasa-x-fails-to-train-upload-model/42932/3 "2021-04-28T13:01:49Z")

</div>

Hi Ella,

Yes all pods were running before I tried to run the training, it looks like it crashes when I try and do that.

---

<div class="post-metadata">

**Author:** ![philippa](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@philippa](https://forum.rasa.com/u/philippa)\
**Post date:** [April 28, 2021, 8:45pm UTC](https://forum.rasa.com/t/rasa-x-fails-to-train-upload-model/42932/4 "2021-04-28T20:45:47Z")

</div>

This has now been solved, some of the values added in the values.yml file were incorrect.

---

<div class="post-metadata">

**Author:** ![jkoenig](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/jkoenig/32/15560_2.png) [@jkoenig](https://forum.rasa.com/u/jkoenig)\
**Post date:** [July 15, 2021, 10:38am UTC](https://forum.rasa.com/t/rasa-x-fails-to-train-upload-model/42932/5 "2021-07-15T10:38:08Z")

</div>

Which values? I am having the same problem.
