# Rasa X: the bot is hanging, 'listening', instead of answering

**URL:** <https://forum.rasa.com/t/rasa-x-the-bot-is-hanging-listening-instead-of-answering/29377>\
**Category:** \[Deprecated\] Rasa X Community Edition\
**Created:** [May 27, 2020, 12:45pm UTC](https://forum.rasa.com/t/rasa-x-the-bot-is-hanging-listening-instead-of-answering/29377 "2020-05-27T12:45:49Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Titus](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/titus/32/8782_2.png) [@Titus](https://forum.rasa.com/u/Titus)\
**Post date:** [May 27, 2020, 12:45pm UTC](https://forum.rasa.com/t/rasa-x-the-bot-is-hanging-listening-instead-of-answering/29377/1 "2020-05-27T12:45:49Z")

</div>

Hello,

I have a problem when trying to converse with the bot using Rasa X: the bot is not responding, it is hanging, ‘listening’, no matter what question I am asking. The bot responds well when I am using the command prompt.

In my Anaconda prompt I get the following error:

```auto
WARNING:rasax.community.services.event_consumers.event_consumer:Saving event failed due to an 'IntegrityError'. This means that the event is already stored in the database. The event data was '{"sender_id": "6cf8714191eb42ed9d3f1d638b6749a4", "event": "action", "timestamp": 1590582983.2550197, "name": "action_listen", "policy": null, "confidence": null}'. (sqlite3.IntegrityError) UNIQUE constraint failed: conversation_event.conversation_id, conversation_event.timestamp, conversation_event.type_name
[SQL: INSERT INTO conversation_event (conversation_id, type_name, timestamp, intent_name, action_name, slot_name, slot_value, policy, is_flagged, data, evaluation, rasa_environment) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)]
[parameters: ('6cf8714191eb42ed9d3f1d638b6749a4', 'action', 1590582983.2550197, None, 'action_listen', None, None, None, 0, '{"sender_id": "6cf8714191eb42ed9d3f1d638b6749a4", "event": "action", "timestamp": 1590582983.2550197, "name": "action_listen", "policy": null, "confidence": null}', None, 'production')]
(Background on this error at: http://sqlalche.me/e/gkpj)

```

Could you please tell me how to fix this problem?

Thank you, and have a great afternoon.

---

<div class="post-metadata">

**Author:** ![fede](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/fede/32/7095_2.png) [@fede](https://forum.rasa.com/u/fede)\
**Post date:** [May 28, 2020, 7:29am UTC](https://forum.rasa.com/t/rasa-x-the-bot-is-hanging-listening-instead-of-answering/29377/2 "2020-05-28T07:29:49Z")

</div>

Hi @Titus! What Rasa X version are you currently using? Are you running it via docker-compose, Kubernetes or directly from the command line (`rasa x`) ?

---

<div class="post-metadata">

**Author:** ![Titus](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/titus/32/8782_2.png) [@Titus](https://forum.rasa.com/u/Titus)\
**Post date:** [May 28, 2020, 8:23am UTC](https://forum.rasa.com/t/rasa-x-the-bot-is-hanging-listening-instead-of-answering/29377/3 "2020-05-28T08:23:10Z")

</div>

Hi @fede ,

I am using the version that is installed from this command:

```auto
pip install rasa-x --extra-index-url https://pypi.rasa.com/simple

```

Then I am running Rasa X from the command line (rasa x).

---

<div class="post-metadata">

**Author:** ![fede](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/fede/32/7095_2.png) [@fede](https://forum.rasa.com/u/fede)\
**Post date:** [May 28, 2020, 8:36am UTC](https://forum.rasa.com/t/rasa-x-the-bot-is-hanging-listening-instead-of-answering/29377/4 "2020-05-28T08:36:46Z")

</div>

Ok, could you try backing up your database file (`rasa.db`), then deleting `rasa.db` and trying again? That way we’re sure we are testing this on a completely new database.

---

<div class="post-metadata">

**Author:** ![Titus](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/titus/32/8782_2.png) [@Titus](https://forum.rasa.com/u/Titus)\
**Post date:** [May 28, 2020, 8:40am UTC](https://forum.rasa.com/t/rasa-x-the-bot-is-hanging-listening-instead-of-answering/29377/5 "2020-05-28T08:40:19Z")

</div>

Thank you, @fede.

Please let me get back later this afternoon, after 5. I’m at work, on a different project, and I can’t do it right now. Much appreciated.

Best, Titus.

---

<div class="post-metadata">

**Author:** ![Titus](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/titus/32/8782_2.png) [@Titus](https://forum.rasa.com/u/Titus)\
**Post date:** [May 28, 2020, 3:38pm UTC](https://forum.rasa.com/t/rasa-x-the-bot-is-hanging-listening-instead-of-answering/29377/6 "2020-05-28T15:38:43Z")

</div>

Hello @fede!

I just wanted to let you know that Rasa X seems to be working OK, in spite of the warning, on my laptop. This weekend I’ll try to replicate what I’ve been doing on the laptop, on my PC, and I’ll get back.

Thank you for responding. Best, Titus.

---

<div class="post-metadata">

**Author:** ![murtuza-workruit](https://avatars.discourse-cdn.com/v4/letter/m/ecae2f/32.png) [@murtuza-workruit](https://forum.rasa.com/u/murtuza-workruit)\
**Post date:** [June 4, 2020, 8:38am UTC](https://forum.rasa.com/t/rasa-x-the-bot-is-hanging-listening-instead-of-answering/29377/7 "2020-06-04T08:38:05Z")

</div>

Hi,

Facing the same issue after I updated to Rasa X 0.28.5. And I have deleted the previous db’s, models everything and trained from scratch.

Thank you!

---

<div class="post-metadata">

**Author:** ![moodaye](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@moodaye](https://forum.rasa.com/u/moodaye)\
**Post date:** [June 4, 2020, 10:39pm UTC](https://forum.rasa.com/t/rasa-x-the-bot-is-hanging-listening-instead-of-answering/29377/8 "2020-06-04T22:39:54Z")

</div>

Same issue - i tried installing RasaX on ubuntu on AWS and on my macbook pro - used the one line install script. Both installations had the same issue - the bot receives the message - the intents are displayed - but then no response. I do see a response only for the greeting and when it cannot understand.

---

<div class="post-metadata">

**Author:** ![nadamakram](https://avatars.discourse-cdn.com/v4/letter/n/c68b51/32.png) [@nadamakram](https://forum.rasa.com/u/nadamakram)\
**Post date:** [June 5, 2020, 3:28am UTC](https://forum.rasa.com/t/rasa-x-the-bot-is-hanging-listening-instead-of-answering/29377/9 "2020-06-05T03:28:40Z")

</div>

I am having the same issue as well :((

---

<div class="post-metadata">

**Author:** ![murtuza-workruit](https://avatars.discourse-cdn.com/v4/letter/m/ecae2f/32.png) [@murtuza-workruit](https://forum.rasa.com/u/murtuza-workruit)\
**Post date:** [June 5, 2020, 4:13am UTC](https://forum.rasa.com/t/rasa-x-the-bot-is-hanging-listening-instead-of-answering/29377/10 "2020-06-05T04:13:31Z")

</div>

Hi guys,

As a quick fix for this issue, you can uninstall Rasa X 0.28.5 and install Rasa X 0.28, its working for me with this version.

Hope it helps!

---

<div class="post-metadata">

**Author:** ![nadamakram](https://avatars.discourse-cdn.com/v4/letter/n/c68b51/32.png) [@nadamakram](https://forum.rasa.com/u/nadamakram)\
**Post date:** [June 5, 2020, 5:24am UTC](https://forum.rasa.com/t/rasa-x-the-bot-is-hanging-listening-instead-of-answering/29377/11 "2020-06-05T05:24:30Z")

</div>

@murtuza-workruitwhen installed rasa x == 0.28.0 and run rasa x I got

> Make sure to start Rasa X with valid data and valid domain and config files. Please, also check any warnings that popped up

I wonder if you faced the same message, how did you solve it?

---

<div class="post-metadata">

**Author:** ![murtuza-workruit](https://avatars.discourse-cdn.com/v4/letter/m/ecae2f/32.png) [@murtuza-workruit](https://forum.rasa.com/u/murtuza-workruit)\
**Post date:** [June 5, 2020, 5:56am UTC](https://forum.rasa.com/t/rasa-x-the-bot-is-hanging-listening-instead-of-answering/29377/12 "2020-06-05T05:56:53Z")

</div>

Nop, I didn’t get this message. It was working for me. Try deleting the old model and db files and also update Rasa aswell to the latest if you haven’t.

---

<div class="post-metadata">

**Author:** ![nadamakram](https://avatars.discourse-cdn.com/v4/letter/n/c68b51/32.png) [@nadamakram](https://forum.rasa.com/u/nadamakram)\
**Post date:** [June 6, 2020, 2:05am UTC](https://forum.rasa.com/t/rasa-x-the-bot-is-hanging-listening-instead-of-answering/29377/13 "2020-06-06T02:05:22Z")

</div>

Hello all, I found this related topic, it may help you

> [@Could not save event of type 'action' with timestamp](http://forum.rasa.com/t/could-not-save-event-of-type-action-with-timestamp/26430):
>
> Hi, On Rasa X, when I try to create intents using interactive mode I get an exception in the console .I get below error when I interact on the interactive learning tab to test the base model . Could not save event of type ‘action’ with timestamp. Please help on resolving this issue. The detailed stack trace is WARNING:rasax.community.services.event\_consumers.event\_consumer:Could not save event of type ‘action’ with timestamp '1584943030.4710948 for conversation ID ‘c2963f1fda6c4fbaaeb35445bfc5…

---

<div class="post-metadata">

**Author:** ![nadamakram](https://avatars.discourse-cdn.com/v4/letter/n/c68b51/32.png) [@nadamakram](https://forum.rasa.com/u/nadamakram)\
**Post date:** [June 10, 2020, 1:09am UTC](https://forum.rasa.com/t/rasa-x-the-bot-is-hanging-listening-instead-of-answering/29377/14 "2020-06-10T01:09:57Z")

</div>

I checked this issue [rasa x with own data failing · Issue #3563 · RasaHQ/rasa · GitHub](https://github.com/RasaHQ/rasa/issues/3563) and it supposed to have this issue on windows and we should consider using Ubuntu instead!  
Are you still having the same problem with Ubuntu!!

---

<div class="post-metadata">

**Author:** ![moodaye](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@moodaye](https://forum.rasa.com/u/moodaye)\
**Post date:** [June 10, 2020, 11:49am UTC](https://forum.rasa.com/t/rasa-x-the-bot-is-hanging-listening-instead-of-answering/29377/15 "2020-06-10T11:49:30Z")

</div>

The root cause of my issue is not having the action server available. I have been started Rasax using the one line deploy script - and then connecting to the financial-demo repository on Github that i have forked.

Getting the action server going and communicating with the kubernetes cluster is not working even though no changes have been made.

Rasax works fine in local mode.

---

<div class="post-metadata">

**Author:** ![moodaye](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@moodaye](https://forum.rasa.com/u/moodaye)\
**Post date:** [June 10, 2020, 8:54pm UTC](https://forum.rasa.com/t/rasa-x-the-bot-is-hanging-listening-instead-of-answering/29377/16 "2020-06-10T20:54:00Z")

</div>

Still not getting the actions to execute in Rasa X.

I think this has to do with how i am running the action server.

I used the one line deploy script. Then i set environment variables export ACTION\_SERVER\_IMAGE=rasa/financial-demo export ACTION\_SERVER\_TAG=latest

I reran the one line deploy script.

Can someone please let me know how to fix the steps to get to executing actions in Rasa-X UI? thanks
