Rasa X with Docker, Custom action not working

I just installed Rasa X on a server, I followed the instructions step by step, but can’t make custom actions work.

This is the error I’m getting:

rasa-production_1 | 2020-03-11 15:14:26 ERROR rasa.core.actions.action - Failed to run custom action 'start_treatment_form'. Couldn't connect to the server at 'http://action_server:5055/webhook'. Is the server running? Error: Cannot connect to host action_server:5055 ssl:default [Name or service not known]

Anybody can help me out?

Thank you, Tiziano

Hi @tiziano what does your endpoints.yml file look like?

Hi @akelad, this is my endpoint file:

action_endpoint:
  url: "http://178.62.104.99:5055/webhook"

Could you tell me which deployment option you’re using?

I installed it following this guide. Btw after facing many problems, I decided to uninstall everything and start over, but now I’m not able to install Rasa X with any deployment option…

Ok, I could solve my installation problems, now I’m back to the problem of this topic.

I tried both with:

action_endpoint:
  url: "http://<my-ip>:5055/webhook"

and with:

action_endpoint:
  url: "http://action_server:5055/webhook"

But I’m still getting this error:

rasa-production_1  | 2020-03-17 12:04:32 ERROR    rasa.core.actions.action  - Failed to run custom action 'start_treatment_form'. Couldn't connect to the server at 'http://178.62.83.66:5055/webhook'. Is the server running? Error: Cannot connect to host 178.62.83.66:5055 ssl:default [Connection refused]
rasa-production_1  | 2020-03-17 12:04:32 ERROR    rasa.core.processor  - Encountered an exception while running action 'start_treatment_form'. Bot will continue, but the actions events are lost. Please check the logs of your action server for more information.

How can I solve this?

Thank you, Tiziano

Hi @tiziano you shouldn’t modify the endpoints.yml, it should already be configured for you. It looks like this:

action_endpoint:
  url: ${RASA_USER_APP}/webhook
  token:  ""

The RASA_USER_APP variable should already contain the right value in your docker-compose.yml file under the rasax-credentials: RASA_USER_APP: "http://app:5055"

Thank you! Now it works.

I already moved to the next problem :persevere: No registered action found Can you help me with that?