# Not able to connect to action server in Kubernetes cluster

**URL:** <https://forum.rasa.com/t/not-able-to-connect-to-action-server-in-kubernetes-cluster/53854>\
**Category:** Rasa Open Source\
**Created:** [June 20, 2022, 12:45pm UTC](https://forum.rasa.com/t/not-able-to-connect-to-action-server-in-kubernetes-cluster/53854 "2022-06-20T12:45:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deepti22](https://avatars.discourse-cdn.com/v4/letter/d/43a26b/32.png) [@Deepti22](https://forum.rasa.com/u/Deepti22)\
**Post date:** [June 20, 2022, 12:45pm UTC](https://forum.rasa.com/t/not-able-to-connect-to-action-server-in-kubernetes-cluster/53854/1 "2022-06-20T12:45:20Z")

</div>

Hi,

I am trying to deploy rasa chatbot with Kubernetes cluster on aws. i see there is an issue that it is not able to connect to action server

deployment.yaml

apiVersion: apps/v1 kind: Deployment metadata: name: app-rasa-deployment labels: app: app-rasa spec: replicas: 2 selector: matchLabels: app: app-rasa template: metadata: labels: app: app-rasa spec: containers: - name: app-rasa-opensource image: [377.dkr.ecr.ap-south-1.amazonaws.com/oxyjon\_bot:latest](http://377.dkr.ecr.ap-south-1.amazonaws.com/oxyjon_bot:latest) ports: - containerPort: 5005 - name: action-server image: [377.dkr.ecr.ap-south-1.amazonaws.com/oxyjon\_action\_rasa:latest](http://377.dkr.ecr.ap-south-1.amazonaws.com/oxyjon_action_rasa:latest) ports: - containerPort: 5055

* * *

kind: Service apiVersion: v1 metadata: name: app-rasa-service spec: type: LoadBalancer selector: app: app-rasa ports: - protocol: TCP port: 80 targetPort: 5005

endpoints.yml

action\_endpoint: url: “http://action\_server:5055/webhook”

error raise ClientConnectorError(req.connection\_key, exc) from exc aiohttp.client\_exceptions.ClientConnectorError: Cannot connect to host action\_server:5055 ssl:default [Name or service not known]

---

<div class="post-metadata">

**Author:** ![stephens](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/stephens/32/1632_2.png) [@stephens](https://forum.rasa.com/u/stephens)\
**Post date:** [June 29, 2022, 4:23am UTC](https://forum.rasa.com/t/not-able-to-connect-to-action-server-in-kubernetes-cluster/53854/2 "2022-06-29T04:23:39Z")

</div>

Please use markdown for your log output.

Your action server pod must not be named `action_server`. You should use the standard helm chart which will automatically set the hostname for the action server.

---

<div class="post-metadata">

**Author:** ![Deepti22](https://avatars.discourse-cdn.com/v4/letter/d/43a26b/32.png) [@Deepti22](https://forum.rasa.com/u/Deepti22)\
**Post date:** [July 1, 2022, 11:06am UTC](https://forum.rasa.com/t/not-able-to-connect-to-action-server-in-kubernetes-cluster/53854/3 "2022-07-01T11:06:24Z")

</div>

Hi, I am using helm chart but getting below error for rasa oss pod and it is not executing custom action

Error in logs `Failed to execute custom action 'validate_phone_form' because no endpoint is configured to run this custom action.`

I dont see any error on action server pod.

```auto
2022-07-01 10:51:24 INFO rasa_sdk.endpoint - Starting action endpoint server...
2022-07-01 10:51:24 INFO rasa_sdk.executor - Registered function for 'action_hello_world'.
2022-07-01 10:51:24 INFO rasa_sdk.executor - Registered function for 'action_start_conversation'.
2022-07-01 10:51:24 INFO rasa_sdk.executor - Registered function for 'action_say_hello'.
2022-07-01 10:51:24 INFO rasa_sdk.executor - Registered function for 'validate_fasting_sugar_form'.
2022-07-01 10:51:24 INFO rasa_sdk.executor - Registered function for 'validate_phone_form'.
2022-07-01 10:51:24 INFO rasa_sdk.endpoint - Action endpoint is up and running on http://0.0.0.0:5055

```

I also tried with endpoint entry in rasa-valies.yaml for rasa-action-server but it didn’t help, getting same error

```auto
  endpoints:
    ## Fetch the model from your own HTTP server
    ## See: https://rasa.com/docs/rasa/model-storage#load-model-from-server
    action_endpoint:
      url: "http:/localhost:5055/webhook"

```

---

<div class="post-metadata">

**Author:** ![donbale](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/donbale/32/11019_2.png) [@donbale](https://forum.rasa.com/u/donbale)\
**Post date:** [February 2, 2023, 8:26am UTC](https://forum.rasa.com/t/not-able-to-connect-to-action-server-in-kubernetes-cluster/53854/4 "2023-02-02T08:26:37Z")

</div>

Super old thread but I’m trawling for answers and saw an error in your endpoint which is missing a forward slash. If anyone else comes across this the correct format should be:

```auto
action_endpoint:
      url: "http://localhost:5055/webhook"

```
