Rasa X not working properly

Hello all, It has been a real fun to develop my chatbot using Rasa platform! Thanks a ton for providing it!! So, after developing a basic chatbot and testing it on shell, I moved forward to install Rasa X in my system a couple of days back. But somehow I am facing some issues in working with Rasa X.

Following are the issues:

  1. Rasa X interactive training detecting intents correctly but not returning the dialogue or text to be returned along with the intent.


    In the attached image it can be seen that the intents are identified but the response text is not returned. For custom action, I have run command - >rasa run actions -vv in a terminal. Also, the same conversation works absolutely fine in rasa shell.

  2. Default action - restart doesn’t seem to work. Whenever ‘restart’ button is hit in interactive training or conversations, this message is returned - rasa.core.featurizers - Feature ‘intent_restart’ could not be found in feature map. Note: I have used ‘Mapping policy’ in the code.

  3. Bot’s messages does not appear sometimes in the tester’s pane. I think this problem is similar to the first issue I mentioned. Bot is skipping a few messages randomly. In the attached image, it was supposed to return - Did that help you? after telling the symptoms. Since I know the correct path, I responded as ‘Yes’ and it responded as expected. But this skipping messages won’t make sense for the user.

Since, except restart issue, the conversation flow and intent detection is working absolutely fine in shell, I guess it is the problem with the way I installed Rasa X. I installed it w/o docker by using command - pip install rasa-x --extra-index-url Simple Index Rasa X version: rasa-x-0.24.1 Rasa version: Rasa 1.6.1

Please help me out in solving this so that I can quickly move it to next stages.

Hi @Saylee . I have also been facing the same problem. It could happen that your custom actions are not returning properly, but since it is running alright in the shell, i have not idea what could be causing this issue.

Most of times I tried reloading the browser page(maybe more than once) and it worked for me, and when it didn’t, it was because there was something wrong in my actions.

Hi @Saylee and @varunsapre10! If you look at the Rasa X docs, we recommend that instead of using Rasa X locally, that you should deploy it to a server. You can find out the easiest way to do that here.

The pypi install that lets you run it locally is intended to just show you what Rasa X is quickly before you install it on a server. The reason we recommend deploying on a server is because Rasa X is intended to be capturing and collecting conversations users have with your assistant, so you can use those to improve. I recommend watching this video that goes into more depth about this.

Thanks for your response! So, I have started deploying Rasa X on windows server using Docker compose Manual installation steps. But I am getting this error - sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) could not translate host name “db” to address: Name or service not known

Can you please help me out in this?

Hey @Saylee is this after completing all the instructions in the deployment? Could you show me the output of docker ps?

Hey @akelad I followed the instructions till using docker compose up command. docker ps is giving empty output.

I scrolled up in the logs to see the root issue was failure in registering actions.actions Actually, I have used pandas library in my custom actions. But in docker, is not installed it seems as it is showing no module named pandas.

I am not sure how to install this package in docker image. :frowning:

Ok if all containers are down something must have gone wrong. could you send the logs of the rasa-x and rasa-production containers individually as well? You can do that with docker ps rasa-production, docker ps rasa-x

As for custom dependencies in custom actions, take a look here.

The command ‘docker ps rasa-production’ and other one also are giving an error. ps_rp

And, I used ‘docker compose up -d’ instead of ‘docker compose up’ this time and then, used ‘docker ps’ again to give this information:

sorry i meant docker-compose logs rasa-production, rather than docker ps. Ok it looks like the containers are up - do they stay up or are they restarting all the time?

rasa/rasa-x:0.24.1 and bitnami/postgresql:11.3.0 images are restarting all the time.

Also, I ran the commands you gave just now. They show following issues:

rasa-x logs gives a huge response showing following issue repeatedly:

@Saylee could you post the output of sudo docker-compose logs db ? Seems like an issue with the db container since it’s restarting all the time. If you want, we can also arrange to jump on a call with you to help resolve these issues. Just send us an e-mail at support@rasa.com

@akelad The response for command is:


and this response is repeated a lot of times!

@Saylee,

What version of Windows Server are you using?

@Arjaan, the details of server are - Windows Server 2019 Datacenter Version 1809 (OS Build 17763.973)

@Arjaan or @akelad can I please get a response.

@Saylee this may be easier to resolve via call - if you email support@rasa.com, we can set up a call with you to help resolve your issues

@akelad sent the mail. :slight_smile:

An update:

I tried installing Rasa X in a Linux virtual machine as well using the quick installation guide.

The installation went all fine.

But I am facing the same issue which I was facing with pip installation!! The bot is detecting intents and actions correctly, but not responding

This is screenshot of a conversation at admin login:

It can be seen that actions are detected but NO RESPONSE.

This is screenshot from tester’s page:

They get absolutely no idea whether the bot is doing anything or not!

Is is anything with compatibility issue of Rasa X and Rasa nlu?

Rasa Version - Rasa 1.6.1 Rasa X - stable version (https://storage.googleapis.com/rasa-x-releases/stable)

Hey @akelad thanks for the support! And @degiz thanks a ton for helping over the call and solving issue!! :star_struck:

I am documenting the solutions you provided for people who might stumble across the same issues.

For Linux server:

Root issue was that actions.actions was not getting registered.

  1. My installation folder was different than /etc/rasa and somehow probably I missed the step to change RASA_HOME variable to the directory I had installation in. (details given in step 2 here)
  2. The actions.py in my project had dependencies which are not present in default rasa-sdk image. So, created Dockerfile as mentioned here and created custom_sdk

And finally actions.actions got registered!! Yay!!

Then there was ‘File not found error’ for which I got a hint from this post. The problem was, my actions.py was using local files which needed to be included while forming image.

After successfully copying files in the image, then I faced issue with action server not running! So, I explored a bit more to find that my ‘endpoints.yml’ had an issue, it was pointing to localhost i.e. ‘http://localhost:5055/webhook’. The correct URL should be ‘http://<image_name_as_in_docker-compose.yml>:5055/webhook’ which, in my case was ‘app’.

And finallieee Rasa X is up and running flawlessly!! :grin:

1 Like