Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'RedisTrackerStore' object has no attribute 'prefix' #7306

Closed
ducminh-phan opened this issue Nov 18, 2020 · 5 comments · Fixed by #7334
Closed

'RedisTrackerStore' object has no attribute 'prefix' #7306

ducminh-phan opened this issue Nov 18, 2020 · 5 comments · Fixed by #7334
Labels
area:rasa-oss 🎡 Anything related to the open source Rasa framework type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors.

Comments

@ducminh-phan
Copy link
Contributor

Rasa version: 2.1.0

Python version: 3.7.9

Operating system (windows, osx, ...):

Issue:

An error occurred when using tracker_store of type redis.

Error (including full traceback):

2020-11-18 08:22:25 ERROR    rasa.core.tracker_store  - Error happened when trying to save conversation tracker to 'RedisTrackerStore'. Falling back to use the 'InMemoryTrackerStore'. Please investigate the following error: 'RedisTrackerStore' object has no attribute 'prefix'.

Looks like the issue comes from this line:

self.red.set(self.prefix + tracker.sender_id, serialised_tracker, ex=timeout)

It should be self.key_prefix instead of self.prefix.

@ducminh-phan ducminh-phan added area:rasa-oss 🎡 Anything related to the open source Rasa framework type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors. labels Nov 18, 2020
@sara-tagger
Copy link
Collaborator

Thanks for the issue, @erohmensing will get back to you about it soon!

You may find help in the docs and the forum, too 🤗

@erohmensing
Copy link
Contributor

Thanks @ducminh-phan for pointing this out. Do you want to open a PR against 2.1.x to contibute this fix?

@ducminh-phan
Copy link
Contributor Author

Thanks @ducminh-phan for pointing this out. Do you want to open a PR against 2.1.x to contibute this fix?

Sure, I will try to fix the issue and open a PR then.

@erohmensing
Copy link
Contributor

Awesome 🚀

eanile added a commit to UTkzhang/rasa that referenced this issue Dec 2, 2020
* backport fix

* backport pika fix

* pika fix backport

* fix tests

* test fixes

* remove logger statement

* Updated version of PikaMessageProcessor from the source branch

* Small bugfix

* changelog

* prepared release of version 1.10.16

* Update CHANGELOG.rst

Co-authored-by: Ella Rohm-Ensing <erohmensing@gmail.com>

* add robots.txt and redirection headers

* bump rasabaster version

* Fix Pika multiprocessing for 1.10.x

* Reformatting

* Changelog entry

* Updated tests

* is_ready method is back

* uninstall cached pydocstyle

* also uninstall pydocstyle

* uninstall in poetry env

* Removing f-string

* NoReturn -> None

* prepared release of version 1.10.17

* Fix incorrect attribute for key prefix in RedisTrackerStore

Fix RasaHQ#7306

* Add changelog entry

* Remove the set-env command - 1.10.x (RasaHQ#7367)

* Fix DynamoDB TrackerStore (RasaHQ#7340)

* attempting to fix dynamo

* fixed

* fixed import

* applied some more fixes

* added deprecation warning for DynamoDB tracker store attribute

* added changelog description for PR 7340

* fix formatting

Co-authored-by: Tom Bocklisch <tom@rasa.com>

* prepared release of version 1.10.18 (RasaHQ#7381)

* Update docstrings

* Update CHANGELOG.mdx

* line length fix

* Add print to confirm that the failed_test_stories.yml has been saved (RasaHQ#6793)

* Add print to confirm that the failed_test_stories.yml has been saved (RasaHQ#3998)

Co-authored-by: Henrike100 <henrikem100@gmail.com>

* Change the way to show the file name

* files formatted with black

* add changelog

* Update test core

* Formatted with black

* Update print

Co-authored-by: mbslet <lmbs.geo@gmail.com>

* Amend response schema to support missing top-level keys (RasaHQ#7232)

* amend response schema to support missing top level keys

* changelog entry

* download mitie from github instead of s3 (RasaHQ#7434)

Co-authored-by: melindaloubser1 <melinda.loubser@gmail.com>
Co-authored-by: alwx <alwxndr@gmail.com>
Co-authored-by: Roberto <43567378+rasabot@users.noreply.github.com>
Co-authored-by: Melinda Loubser <32034278+melindaloubser1@users.noreply.github.com>
Co-authored-by: Ella Rohm-Ensing <erohmensing@gmail.com>
Co-authored-by: m-vdb <m.verger@rasa.com>
Co-authored-by: Tobias Wochinger <t.wochinger@rasa.com>
Co-authored-by: Duc-Minh Phan <alephvn@gmail.com>
Co-authored-by: Federico Tedin <federicotdn@users.noreply.github.com>
Co-authored-by: Tomasz Czekajlo <t.czekajlo@rasa.com>
Co-authored-by: Tom Herold <tom.herold@scalableminds.com>
Co-authored-by: Tom Bocklisch <tom@rasa.com>
Co-authored-by: Henrique Martins <henrikem100@gmail.com>
Co-authored-by: mbslet <lmbs.geo@gmail.com>
Co-authored-by: pheel <philippe@mrbot.ai>
@wladneto
Copy link

wladneto commented Feb 1, 2022

To use redis in cluster just follow this:

lock_store:
  type: redis
  db: 0
  url: your_URM
  port: your port
  key_prefix: your bot name or anything

I hope this usefull

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:rasa-oss 🎡 Anything related to the open source Rasa framework type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants