# Get my servers to communicate with each other

**URL:** <https://community.okteto.com/t/get-my-servers-to-communicate-with-each-other/144>\
**Category:** Not sure?\
**Created:** [July 8, 2022, 12:28pm UTC](https://community.okteto.com/t/get-my-servers-to-communicate-with-each-other/144 "2022-07-08T12:28:49Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![AbrahamOwos](https://avatars.discourse-cdn.com/v4/letter/a/958977/32.png) [@AbrahamOwos](https://community.okteto.com/u/AbrahamOwos)\
**Post date:** [July 8, 2022, 12:28pm UTC](https://community.okteto.com/t/get-my-servers-to-communicate-with-each-other/144/1 "2022-07-08T12:28:49Z")

</div>

Hello, I have three servers (pods) running on my Okteto space. For context, they are pods for a Rasa chatbot deployment: duckling server, action server and the chatbot server.  
I need to make the chatbot server to communicate with the action server which is on port 5055 but I can’t do this. I used the action server endpoint but it still didn’t work.  
Please how can I go about this?

---

<div class="post-metadata">

**Author:** ![ramiro](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/ramiro/32/6_2.png) [@ramiro](https://community.okteto.com/u/ramiro)\
**Post date:** [July 11, 2022, 8:02pm UTC](https://community.okteto.com/t/get-my-servers-to-communicate-with-each-other/144/2 "2022-07-11T20:02:23Z")

</div>

Hi @AbrahamOwos ! Could you share your repository, and/or talk about what you’ve tried so far with more details?

In general, for service-to-service communication you should use “protocol://service-name:port”, since everything is running on the same network. The external endpoints should be used for the end user behavior.

---

<div class="post-metadata">

**Author:** ![AbrahamOwos](https://avatars.discourse-cdn.com/v4/letter/a/958977/32.png) [@AbrahamOwos](https://community.okteto.com/u/AbrahamOwos)\
**Post date:** [July 13, 2022, 1:06am UTC](https://community.okteto.com/t/get-my-servers-to-communicate-with-each-other/144/3 "2022-07-13T01:06:31Z")

</div>

Here’s the repo.  
[https://github.com/owos/logistics\_chatbot](https://github.com/owos/logistics_chatbot)

---

<div class="post-metadata">

**Author:** ![AbrahamOwos](https://avatars.discourse-cdn.com/v4/letter/a/958977/32.png) [@AbrahamOwos](https://community.okteto.com/u/AbrahamOwos)\
**Post date:** [July 13, 2022, 1:21am UTC](https://community.okteto.com/t/get-my-servers-to-communicate-with-each-other/144/4 "2022-07-13T01:21:01Z")

</div>

For more context. when I run my bot on my computer, it get the first image but when I run it on okteto, I the second image: it seems like my custom actions are not loading on Okteto.

 ![Screenshot from 2022-07-13 00-53-43](https://us1.discourse-cdn.com/flex019/uploads/okteto/original/1X/a8cf381621b7b133a0129700d97294a04c5ac263.png)

---

<div class="post-metadata">

**Author:** ![AbrahamOwos](https://avatars.discourse-cdn.com/v4/letter/a/958977/32.png) [@AbrahamOwos](https://community.okteto.com/u/AbrahamOwos)\
**Post date:** [July 13, 2022, 1:21am UTC](https://community.okteto.com/t/get-my-servers-to-communicate-with-each-other/144/5 "2022-07-13T01:21:47Z")

</div>

The second image from Okteto

 ![Screenshot from 2022-07-13 00-55-31](https://us1.discourse-cdn.com/flex019/uploads/okteto/original/1X/aef221ae8fd9e12915ceab4efb3e7f908110cebf.png)

---

<div class="post-metadata">

**Author:** ![ramiro](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/ramiro/32/6_2.png) [@ramiro](https://community.okteto.com/u/ramiro)\
**Post date:** [July 13, 2022, 3:31am UTC](https://community.okteto.com/t/get-my-servers-to-communicate-with-each-other/144/6 "2022-07-13T03:31:37Z")

</div>

Unfortunately, we are not experts on RASA, so we’ll need help understanding this a bit more. How are the functions registered? Are there any error messages that you’re seeing?

---

<div class="post-metadata">

**Author:** ![AbrahamOwos](https://avatars.discourse-cdn.com/v4/letter/a/958977/32.png) [@AbrahamOwos](https://community.okteto.com/u/AbrahamOwos)\
**Post date:** [July 13, 2022, 4:05am UTC](https://community.okteto.com/t/get-my-servers-to-communicate-with-each-other/144/7 "2022-07-13T04:05:39Z")

</div>

Ohh, I thought that was a python thing. So basically, the registered actions are methods defined a action.py file, so the action server on okteto is supposed to run the actions.py file and call a particular Method anytime it receives an input from the normal Rasa server.  
do you understand?

---

<div class="post-metadata">

**Author:** ![ramiro](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/ramiro/32/6_2.png) [@ramiro](https://community.okteto.com/u/ramiro)\
**Post date:** [July 13, 2022, 4:13am UTC](https://community.okteto.com/t/get-my-servers-to-communicate-with-each-other/144/8 "2022-07-13T04:13:17Z")

</div>

I think your .rasa folder is too big and it looks to be causing some interference with the loader. As soon as I deleted that folder, everything worked fine for me.

This seems like a RASA-related issue, and not caused by Okteto. I think you might have better luck finding the root cause in a RASA-specific forum.

---

<div class="post-metadata">

**Author:** ![AbrahamOwos](https://avatars.discourse-cdn.com/v4/letter/a/958977/32.png) [@AbrahamOwos](https://community.okteto.com/u/AbrahamOwos)\
**Post date:** [July 13, 2022, 4:30am UTC](https://community.okteto.com/t/get-my-servers-to-communicate-with-each-other/144/9 "2022-07-13T04:30:51Z")

</div>

Hmmm, I’ll try it out.

1. Do you still have access to the repo, it was private before, I had to make it public so I could share with you. I have my API keys and secrets in some files.
2. I’ve made some changes to the endpoint.yml file since I last shared it with you. Do you mind showing me the action\_endpioint: url that’s in the endpoint.yml file you used?
3. I actually started debugging from the Rasa forum but then, I was told that if the bot works well on my machine, then they’re sure it’s not a problem of there’s.  
Thank you so much once again.

---

<div class="post-metadata">

**Author:** ![ramiro](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/ramiro/32/6_2.png) [@ramiro](https://community.okteto.com/u/ramiro)\
**Post date:** [July 13, 2022, 5:04am UTC](https://community.okteto.com/t/get-my-servers-to-communicate-with-each-other/144/10 "2022-07-13T05:04:40Z")

</div>

The file looks like this (comments removed):

```auto
action_endpoint:
  url: "http://rasa-actions-server/webhook"

```

Given how the service `rasa-actions-server` is defined in your docker-compose, I think you need to use this URL instead:

```auto
action_endpoint:
  url: "http://rasa-actions-server:5055/webhook"

```

As for the API key, instead of having it in your repository, you should look at using [Okteto Secrets](https://www.okteto.com/docs/cloud/secrets/) instead.

---

<div class="post-metadata">

**Author:** ![AbrahamOwos](https://avatars.discourse-cdn.com/v4/letter/a/958977/32.png) [@AbrahamOwos](https://community.okteto.com/u/AbrahamOwos)\
**Post date:** [July 14, 2022, 10:54am UTC](https://community.okteto.com/t/get-my-servers-to-communicate-with-each-other/144/11 "2022-07-14T10:54:13Z")

</div>

Thank you so much Ramiro for all your support, I later abandoned the repo I shared with you to pick another one I saw on GitHub that uses version 3 style of writing the docket compose. I’ve been able to successfully deployed my bot with Okteto and it runs well. I’m happy to help anyone that has similar problems like mine.

---

<div class="post-metadata">

**Author:** ![Hebifa.Rafiki](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/hebifa.rafiki/32/182_2.png) [@Hebifa.Rafiki](https://community.okteto.com/u/Hebifa.Rafiki)\
**Post date:** [October 17, 2022, 9:41am UTC](https://community.okteto.com/t/get-my-servers-to-communicate-with-each-other/144/12 "2022-10-17T09:41:29Z")

</div>

Hi @AbrahamOwos, i have rasa on version 3 running on okteto. Could you confirm the format which i should use to define the action server from enpoints.yml file. I am experiencing some challenges to make action server work
