Failed to acquire lock for conversation because 1 other item(s) for this conversation ID have to be finished processing first

Hi all,

I deployed Rasa 2.8.8 on aws (Apache 2.x, Ubuntu 18.04, Python 3.8.12). Its runs very smoothly, after few days the “form-validation” is not worked and showing like -

2022-03-24 08:46:03 DEBUG rasa.core.actions.forms - Validating user input ‘UserUttered(text: /get_started, intent: get_started, use_text_for_featurization: False)’.

2022-03-24 08:46:03 DEBUG rasa.core.actions.forms - Validating extracted slots: {}

2022-03-24 08:46:03 DEBUG rasa.core.actions.action - Calling action endpoint to run action ‘validate_customer_form’.

2022-03-24 08:46:04 DEBUG rasa.core.lock_store - Issuing ticket for conversation ‘CVYsBcR8mZdg0Z1FAABv’.

2022-03-24 08:46:04 DEBUG rasa.core.lock_store - Acquiring lock for conversation ‘CVYsBcR8mZdg0Z1FAABv’.

2022-03-24 08:46:04 DEBUG rasa.core.lock_store - Failed to acquire lock for conversation ID ‘CVYsBcR8mZdg0Z1FAABv’ because 1 other item(s) for this conversation ID have to be finished processing first. Retrying in 1 seconds …

2022-03-24 08:46:05 DEBUG rasa.core.lock_store - Issuing ticket for conversation ‘CVYsBcR8mZdg0Z1FAABv’.

2022-03-24 08:46:05 DEBUG rasa.core.lock_store - Acquiring lock for conversation ‘CVYsBcR8mZdg0Z1FAABv’.

2022-03-24 08:46:05 DEBUG rasa.core.lock_store - Failed to acquire lock for conversation ID ‘CVYsBcR8mZdg0Z1FAABv’ because 2 other item(s) for this conversation ID have to be finished processing first. Retrying in 1 seconds …

2022-03-24 08:46:06 DEBUG rasa.core.lock_store - Failed to acquire lock for conversation ID ‘CVYsBcR8mZdg0Z1FAABv’ because 1 other item(s) for this conversation ID have to be finished processing first. Retrying in 1 seconds …

2022-03-24 08:46:06 DEBUG rasa.core.lock_store - Failed to acquire lock for conversation ID ‘CVYsBcR8mZdg0Z1FAABv’ because 2 other item(s) for this conversation ID have to be finished processing first. Retrying in 1 seconds …

The installed packages are -

Package Version


absl-py 0.13.0

aio-pika 6.8.2

aiofiles 0.8.0

aiohttp 3.7.4

aiormq 3.3.1

APScheduler 3.7.0

astunparse 1.6.3

async-generator 1.10

async-timeout 3.0.1

attrs 21.2.0

bidict 0.21.4

boto3 1.21.19

botocore 1.24.19

cachetools 5.0.0

certifi 2021.10.8

cffi 1.15.0

chardet 3.0.4

charset-normalizer 2.0.12

cloudpickle 1.6.0

colorclass 2.2.2

coloredlogs 15.0.1

colorhash 1.0.4

cryptography 36.0.1

cycler 0.11.0

decorator 4.4.2

dm-tree 0.1.6

dnspython 1.16.0

docopt 0.6.2

fbmessenger 6.0.0

future 0.18.2

gast 0.3.3

google-auth 2.6.0

google-auth-oauthlib 0.4.6

google-pasta 0.2.0

greenlet 1.1.2

grpcio 1.44.0

h11 0.9.0

h5py 2.10.0

httpcore 0.11.1

httplib2 0.20.4

httptools 0.4.0

httpx 0.15.4

humanfriendly 10.0

idna 3.3

importlib-metadata 4.11.3

jmespath 0.10.0

joblib 1.0.1

jsonpickle 2.0.0

jsonschema 3.2.0

kafka-python 2.0.2

Keras-Preprocessing 1.1.2

kiwisolver 1.4.0

Markdown 3.3.6

matplotlib 3.3.4

mattermostwrapper 2.2

multidict 5.0.0

networkx 2.5.1

numpy 1.18.5

oauth2client 4.1.3

oauthlib 3.2.0

opt-einsum 3.3.0

packaging 20.9

pamqp 2.3.0

Pillow 9.0.1

pip 22.0.4

prompt-toolkit 2.0.10

protobuf 3.19.4

psycopg2-binary 2.9.3

pyasn1 0.4.8

pyasn1-modules 0.2.8

pycparser 2.21

pydot 1.4.2

PyJWT 2.3.0

pykwalify 1.8.0

pymongo 3.10.1

PyMySQL 1.0.2

pyparsing 3.0.7

pyrsistent 0.18.1

pyTelegramBotAPI 3.8.3

python-crfsuite 0.9.7

python-dateutil 2.8.2

python-engineio 4.3.1

python-socketio 5.5.2

pytz 2021.3

questionary 1.9.0

rasa 2.8.8

rasa-sdk 2.8.4

redis 3.5.3

regex 2021.7.6

requests 2.27.1

requests-oauthlib 1.3.1

requests-toolbelt 0.9.1

rfc3986 1.5.0

rocketchat-API 1.16.0

rsa 4.8

ruamel.yaml 0.16.13

ruamel.yaml.clib 0.2.6

s3transfer 0.5.2

sanic 20.9.1

Sanic-Cors 0.10.0.post3

sanic-jwt 1.5.0

Sanic-Plugins-Framework 0.9.5

scikit-learn 0.24.2

scipy 1.8.0

sentry-sdk 1.2.0

setuptools 56.0.0

six 1.16.0

sklearn-crfsuite 0.3.6

slackclient 2.9.3

sniffio 1.2.0

SQLAlchemy 1.4.32

tabulate 0.8.9

tensorboard 2.8.0

tensorboard-data-server 0.6.1

tensorboard-plugin-wit 1.8.1

tensorflow 2.3.4

tensorflow-addons 0.13.0

tensorflow-estimator 2.3.0

tensorflow-hub 0.12.0

tensorflow-probability 0.13.0

tensorflow-text 2.3.0

termcolor 1.1.0

terminaltables 3.1.10

threadpoolctl 3.1.0

tqdm 4.63.0

twilio 6.50.1

typeguard 2.13.3

typing-extensions 3.10.0.2

tzlocal 2.1

ujson 4.3.0

urllib3 1.26.8

uvloop 0.14.0

wcwidth 0.2.5

webexteamssdk 1.6

websockets 8.1

Werkzeug 2.0.3

wheel 0.37.1

wrapt 1.14.0

yarl 1.7.2

zipp 3.7.0

Also, please find attached files that, I have implemented for Chat-Bot

config.yml (890 Bytes) credentials.yml (934 Bytes) domain.yml (8.6 KB) endpoints.yml (1.1 KB) rules.yml (727 Bytes) stories.yml (244 Bytes) actions.py (4.9 KB)

Note: In credentials.yml and endpoints.yml for url:-

url: “http://xxxxxxxxx:5055/webhook” (I have used domain-name instead of xxxxxxxxxx like- ny.example.com)

The logs in terminal are -

2022-03-24 08:46:03 DEBUG rasa.core.processor - Logged UserUtterance - tracker now has 4 events.

2022-03-24 08:46:03 DEBUG rasa.core.policies.memoization - Current tracker state: [state 1] user intent: get_started | previous action name: action_listen

2022-03-24 08:46:03 DEBUG rasa.core.policies.memoization - There is a memorised next action ‘customer_form’

2022-03-24 08:46:03 DEBUG rasa.core.policies.rule_policy - Current tracker state: [state 1] user text: /get_started | previous action name: action_listen

2022-03-24 08:46:03 DEBUG rasa.core.policies.rule_policy - There is no applicable rule.

2022-03-24 08:46:03 DEBUG rasa.core.policies.rule_policy - Current tracker state: [state 1] user intent: get_started | previous action name: action_listen

2022-03-24 08:46:03 DEBUG rasa.core.policies.rule_policy - There is no applicable rule.

2022-03-24 08:46:03 DEBUG rasa.core.policies.ted_policy - TED predicted ‘customer_form’ based on user intent.

2022-03-24 08:46:03 DEBUG rasa.core.policies.ensemble - Made prediction using user intent.

2022-03-24 08:46:03 DEBUG rasa.core.policies.ensemble - Added DefinePrevUserUtteredFeaturization(False) event.

2022-03-24 08:46:03 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_0_MemoizationPolicy.

2022-03-24 08:46:03 DEBUG rasa.core.processor - Predicted next action ‘customer_form’ with confidence 1.00.

2022-03-24 08:46:03 DEBUG rasa.core.actions.forms - Activated the form ‘customer_form’.

2022-03-24 08:46:03 DEBUG rasa.core.actions.forms - No pre-filled required slots to validate.

2022-03-24 08:46:03 DEBUG rasa.core.actions.forms - Validating user input ‘UserUttered(text: /get_started, intent: get_started, use_text_for_featurization: False)’.

2022-03-24 08:46:03 DEBUG rasa.core.actions.forms - Validating extracted slots: {}

2022-03-24 08:46:03 DEBUG rasa.core.actions.action - Calling action endpoint to run action ‘validate_customer_form’.

2022-03-24 08:46:04 DEBUG rasa.core.lock_store - Issuing ticket for conversation ‘CVYsBcR8mZdg0Z1FAABv’.

2022-03-24 08:46:04 DEBUG rasa.core.lock_store - Acquiring lock for conversation ‘CVYsBcR8mZdg0Z1FAABv’.

2022-03-24 08:46:04 DEBUG rasa.core.lock_store - Failed to acquire lock for conversation ID ‘CVYsBcR8mZdg0Z1FAABv’ because 1 other item(s) for this conversation ID have to be finished processing first. Retrying in 1 seconds …

2022-03-24 08:46:05 DEBUG rasa.core.lock_store - Issuing ticket for conversation ‘CVYsBcR8mZdg0Z1FAABv’.

2022-03-24 08:46:05 DEBUG rasa.core.lock_store - Acquiring lock for conversation ‘CVYsBcR8mZdg0Z1FAABv’.

2022-03-24 08:46:05 DEBUG rasa.core.lock_store - Failed to acquire lock for conversation ID ‘CVYsBcR8mZdg0Z1FAABv’ because 2 other item(s) for this conversation ID have to be finished processing first. Retrying in 1 seconds …

2022-03-24 08:46:06 DEBUG rasa.core.lock_store - Failed to acquire lock for conversation ID ‘CVYsBcR8mZdg0Z1FAABv’ because 1 other item(s) for this conversation ID have to be finished processing first. Retrying in 1 seconds …

2022-03-24 08:46:06 DEBUG rasa.core.lock_store - Failed to acquire lock for conversation ID ‘CVYsBcR8mZdg0Z1FAABv’ because 2 other item(s) for this conversation ID have to be finished processing first. Retrying in 1 seconds …

2022-03-24 08:46:06 DEBUG rasa.core.lock_store - Issuing ticket for conversation ‘CVYsBcR8mZdg0Z1FAABv’.

2022-03-24 08:46:06 DEBUG rasa.core.lock_store - Acquiring lock for conversation ‘CVYsBcR8mZdg0Z1FAABv’.

2022-03-24 08:46:06 DEBUG rasa.core.lock_store - Failed to acquire lock for conversation ID ‘CVYsBcR8mZdg0Z1FAABv’ because 3 other item(s) for this conversation ID have to be finished processing first. Retrying in 1 seconds …

2022-03-24 08:46:07 DEBUG rasa.core.lock_store - Failed to acquire lock for conversation ID ‘CVYsBcR8mZdg0Z1FAABv’ because 1 other item(s) for this conversation ID have to be finished processing first. Retrying in 1 seconds …

2022-03-24 08:46:07 DEBUG rasa.core.lock_store - Failed to acquire lock for conversation ID ‘CVYsBcR8mZdg0Z1FAABv’ because 2 other item(s) for this conversation ID have to be finished processing first. Retrying in 1 seconds …

2022-03-24 08:46:07 DEBUG rasa.core.lock_store - Failed to acquire lock for conversation ID ‘CVYsBcR8mZdg0Z1FAABv’ because 3 other item(s) for this conversation ID have to be finished processing first. Retrying in 1 seconds …

2022-03-24 08:46:07 DEBUG rasa.core.lock_store - Issuing ticket for conversation ‘CVYsBcR8mZdg0Z1FAABv’.

2022-03-24 08:46:07 DEBUG rasa.core.lock_store - Acquiring lock for conversation ‘CVYsBcR8mZdg0Z1FAABv’.

2022-03-24 08:46:07 DEBUG rasa.core.lock_store - Failed to acquire lock for conversation ID ‘CVYsBcR8mZdg0Z1FAABv’ because 4 other item(s) for this conversation ID have to be finished processing first. Retrying in 1 seconds …

2022-03-24 08:46:08 DEBUG rasa.core.lock_store - Failed to acquire lock for conversation ID ‘CVYsBcR8mZdg0Z1FAABv’ because 1 other item(s) for this conversation ID have to be finished processing first. Retrying in 1 seconds …

2022-03-24 08:46:08 DEBUG rasa.core.lock_store - Failed to acquire lock for conversation ID ‘CVYsBcR8mZdg0Z1FAABv’ because 2 other item(s) for this conversation ID have to be finished processing first. Retrying in 1 seconds …

2022-03-24 08:46:08 DEBUG rasa.core.lock_store - Failed to acquire lock for conversation ID ‘CVYsBcR8mZdg0Z1FAABv’ because 3 other item(s) for this conversation ID have to be finished processing first. Retrying in 1 seconds …

2022-03-24 08:46:08 DEBUG rasa.core.lock_store - Failed to acquire lock for conversation ID ‘CVYsBcR8mZdg0Z1FAABv’ because 4 other item(s) for this conversation ID have to be finished processing first. Retrying in 1 seconds …

2022-03-24 08:46:09 DEBUG rasa.core.lock_store - Failed to acquire lock for conversation ID ‘CVYsBcR8mZdg0Z1FAABv’ because 1 other item(s) for this conversation ID have to be finished processing first. Retrying in 1 seconds …

2022-03-24 08:46:09 DEBUG rasa.core.lock_store - Failed to acquire lock for conversation ID ‘CVYsBcR8mZdg0Z1FAABv’ because 2 other item(s) for this conversation ID have to be finished processing first. Retrying in 1 seconds …

2022-03-24 08:46:09 DEBUG rasa.core.lock_store - Failed to acquire lock for conversation ID ‘CVYsBcR8mZdg0Z1FAABv’ because 3 other item(s) for this conversation ID have to be finished processing first. Retrying in 1 seconds …

2022-03-24 08:46:09 DEBUG rasa.core.lock_store - Failed to acquire lock for conversation ID ‘CVYsBcR8mZdg0Z1FAABv’ because 4 other item(s) for this conversation ID have to be finished processing first. Retrying in 1 seconds …

2022-03-24 08:46:10 DEBUG rasa.core.lock_store - Failed to acquire lock for conversation ID ‘CVYsBcR8mZdg0Z1FAABv’ because 1 other item(s) for this conversation ID have to be finished processing first. Retrying in 1 seconds …

2022-03-24 08:46:10 DEBUG rasa.core.lock_store - Failed to acquire lock for conversation ID ‘CVYsBcR8mZdg0Z1FAABv’ because 2 other item(s) for this conversation ID have to be finished processing first. Retrying in 1 seconds …

2022-03-24 08:46:10 DEBUG rasa.core.lock_store - Issuing ticket for conversation ‘CVYsBcR8mZdg0Z1FAABv’.

2022-03-24 08:46:10 DEBUG rasa.core.lock_store - Acquiring lock for conversation ‘CVYsBcR8mZdg0Z1FAABv’.

2022-03-24 08:46:10 DEBUG rasa.core.lock_store - Failed to acquire lock for conversation ID ‘CVYsBcR8mZdg0Z1FAABv’ because 5 other item(s) for this conversation ID have to be finished processing first. Retrying in 1 seconds …

2022-03-24 08:46:10 DEBUG rasa.core.lock_store - Failed to acquire lock for conversation ID ‘CVYsBcR8mZdg0Z1FAABv’ because 3 other item(s) for this conversation ID have to be finished processing first. Retrying in 1 seconds …

2022-03-24 08:46:10 DEBUG rasa.core.lock_store - Failed to acquire lock for conversation ID ‘CVYsBcR8mZdg0Z1FAABv’ because 4 other item(s) for this conversation ID have to be finished processing first. Retrying in 1 seconds …

2022-03-24 08:46:11 DEBUG rasa.core.lock_store - Failed to acquire lock for conversation ID ‘CVYsBcR8mZdg0Z1FAABv’ because 1 other item(s) for this conversation ID have to be finished processing first. Retrying in 1 seconds …

2022-03-24 08:46:11 DEBUG rasa.core.lock_store - Failed to acquire lock for conversation ID ‘CVYsBcR8mZdg0Z1FAABv’ because 2 other item(s) for this conversation ID have to be finished processing first. Retrying in 1 seconds …

2022-03-24 08:46:11 DEBUG rasa.core.lock_store - Failed to acquire lock for conversation ID ‘CVYsBcR8mZdg0Z1FAABv’ because 5 other item(s) for this conversation ID have to be finished processing first. Retrying in 1 seconds …

2022-03-24 08:46:11 DEBUG rasa.core.lock_store - Failed to acquire lock for conversation ID ‘CVYsBcR8mZdg0Z1FAABv’ because 3 other item(s) for this conversation ID have to be finished processing first. Retrying in 1 seconds …

2022-03-24 08:46:11 DEBUG rasa.core.lock_store - Failed to acquire lock for conversation ID ‘CVYsBcR8mZdg0Z1FAABv’ because 4 other item(s) for this conversation ID have to be finished processing first. Retrying in 1 seconds …

2022-03-24 08:46:12 DEBUG rasa.core.lock_store - Failed to acquire lock for conversation ID ‘CVYsBcR8mZdg0Z1FAABv’ because 1 other item(s) for this conversation ID have to be finished processing first. Retrying in 1 seconds …

2022-03-24 08:46:12 DEBUG rasa.core.lock_store - Failed to acquire lock for conversation ID ‘CVYsBcR8mZdg0Z1FAABv’ because 2 other item(s) for this conversation ID have to be finished processing first. Retrying in 1 seconds …

2022-03-24 08:46:12 DEBUG rasa.core.lock_store - Failed to acquire lock for conversation ID ‘CVYsBcR8mZdg0Z1FAABv’ because 5 other item(s) for this conversation ID have to be finished processing first. Retrying in 1 seconds …

2022-03-24 08:46:12 DEBUG rasa.core.lock_store - Failed to acquire lock for conversation ID ‘CVYsBcR8mZdg0Z1FAABv’ because 3 other item(s) for this conversation ID have to be finished processing first. Retrying in 1 seconds …

2022-03-24 08:46:12 DEBUG rasa.core.lock_store - Failed to acquire lock for conversation ID ‘CVYsBcR8mZdg0Z1FAABv’ because 4 other item(s) for this conversation ID have to be finished processing first. Retrying in 1 seconds …

2022-03-24 08:46:13 DEBUG rasa.core.lock_store - Failed to acquire lock for conversation ID ‘CVYsBcR8mZdg0Z1FAABv’ because 1 other item(s) for this conversation ID have to be finished processing first. Retrying in 1 seconds …

2022-03-24 08:46:13 DEBUG rasa.core.lock_store - Failed to acquire lock for conversation ID ‘CVYsBcR8mZdg0Z1FAABv’ because 2 other item(s) for this conversation ID have to be finished processing first. Retrying in 1 seconds …

2022-03-24 08:46:13 DEBUG rasa.core.lock_store - Failed to acquire lock for conversation ID ‘CVYsBcR8mZdg0Z1FAABv’ because 5 other item(s) for this conversation ID have to be finished processing first. Retrying in 1 seconds …

2022-03-24 08:46:13 DEBUG rasa.core.lock_store - Failed to acquire lock for conversation ID ‘CVYsBcR8mZdg0Z1FAABv’ because 3 other item(s) for this conversation ID have to be finished processing first. Retrying in 1 seconds …

2022-03-24 08:46:13 DEBUG rasa.core.lock_store - Failed to acquire lock for conversation ID ‘CVYsBcR8mZdg0Z1FAABv’ because 4 other item(s) for this conversation ID have to be finished processing first. Retrying in 1 seconds …

2022-03-24 08:46:14 DEBUG rasa.core.lock_store - Failed to acquire lock for conversation ID ‘CVYsBcR8mZdg0Z1FAABv’ because 1 other item(s) for this conversation ID have to be finished processing first. Retrying in 1 seconds …

2022-03-24 08:46:14 DEBUG rasa.core.lock_store - Failed to acquire lock for conversation ID ‘CVYsBcR8mZdg0Z1FAABv’ because 2 other item(s) for this conversation ID have to be finished processing first. Retrying in 1 seconds …

2022-03-24 08:46:14 DEBUG rasa.core.lock_store - Failed to acquire lock for conversation ID ‘CVYsBcR8mZdg0Z1FAABv’ because 5 other item(s) for this conversation ID have to be finished processing first. Retrying in 1 seconds …

2022-03-24 08:46:14 DEBUG rasa.core.lock_store - Failed to acquire lock for conversation ID ‘CVYsBcR8mZdg0Z1FAABv’ because 3 other item(s) for this conversation ID have to be finished processing first. Retrying in 1 seconds …

2022-03-24 08:46:14 DEBUG rasa.core.lock_store - Failed to acquire lock for conversation ID ‘CVYsBcR8mZdg0Z1FAABv’ because 4 other

I have integrate Rasa using Rasa-WebChat, below is the code-

Please, help me to fix this issue…

Thanks all.

@ck4all89 You mentioned get_started but in your domain.yml there is no utterance ? Please mentioned the utterance for get_started and it’s good to go.

- rule: Activate form
  steps: 
  - intent: get_started
  - action: customer_form
  - active_loop: customer_form

In stories.yml

 - story: welcome path1
    steps:
      - intent: get_started
      - action: utter_welcome_message or utter_greet

Note: I have seen all your code, as today me free :stuck_out_tongue:

Good Luck!

Hi @nik202,

Thanks for your immediate response.

I have passed- initPayload: “/get_started” for when our WebChat is open then it should be asked for name, organization, email and contact no. And I have write the codes in action.py file. Its working fine in my local machine but on server, the form-validation is not working (means its not asking for name, org…)

Instead of “utter_welcome_message or utter_greet” I write “action_ask_cust_name” to reply Bot msg…

On local (working fine)-

On Server (Nothing to come)-

Please let me know if I missed anything… Thanks

but where is the story for this? and even you mentioned that in the rule for form? do it make sense?

I guess you not got my point, try cross-check the scenario again :slight_smile:

Hi @nik202

Can I write code like below in stories.yml

@ck4all89 show me in code you mentioned the get_started (utterance) the file you shared with me in domain.yml ?? paste it please now.

Hi @nik202

PFA.

domain.yml (8.6 KB) stories.yml (334 Bytes) rules.yml (727 Bytes)

I have some doubts,

When WebChat will open it shows only “Welcome. How can I help you today?”.

But I want to ask Name, Organization, Email and Contact No.

Please, help me.

Thanks

You can create the more question based on your form? and add inside the Story and it will follow your form?

I’d recommend to see every section of form from the gitthub repo, focus more on action and domain files : GitHub - RasaHQ/rasa-2.x-form-examples: This repository contains a few simple projects with forms.

It’s your learning, but you are just near to your solution. Good Luck!

Hi @nik202

Thanks for your reply.

Yes, It’s my learning phase. Thanku for your support…