Closed tangochris closed 4 years ago
Additional information: In our case, this occurs with users that have a very long conversation history. This issue will likely be helped by limiting the length of tracker #3011
Noticed that this is the same error as #3294, which is closed, but apparently not resolved.
Hi @tangochris ,
--debug
and attach the logs? @wochinge
can you please run rasa with --debug
We are always running it with --debug.
and attach the logs?
The logs are on AWS CloudWatch and we're not yet piping them anywhere, so I don't have a quick way to download them. Here are the first 1000 log entries for a single second. Note this is for one user accessing the bot.
rasa-production-20191204-160644.log
do you have a rough number of events included in your tracker?
The user with the issue has 6500 events in their tracker.
When you're saying "In our case, this occurs with users that have a very long conversation history.", does this mean that you don't have this problem with smaller trackers?
Correct. If a user has no conversation history, the bot works fine for them. (Exception: if another user with history has accessed bot within last hour, the server is locked up and won't respond to anyone.)
@wochinge Updated original title, issue and comments: the issue I described was not causing the slowness. Because there were 1000s of warnings and errors per second about non-existent slots and templates, it obscured the most important log entry. Once we got rid of the errors by re-adding the unused slots and templates to domain.yml, we noticed this:
2019-12-05 20:33:35 DEBUG rasa.core.policies.memoization - Launch DeLorean...
Every time the DeLorean launched, there were no more log entries for 2 minutes (while Rasa was frozen). So this problem is the same as #3011. We have a user (our client) with 6500 events in their history. Every time they access the bot, it freezes while Tracker rebuilds their history.
Hi @tangochris ,
thanks a lot for your detailed issue description and the information. 6500 events is a lot 🙂 Your issues should be resolved as soon as we have implemented https://github.com/RasaHQ/rasa/issues/4887 (will be part of one of the next minors). With the session concept Rasa will only handle the events of the latest user session and not all events. l Is it okay for you if I mark this issue as a duplicate of https://github.com/RasaHQ/rasa/issues/4887 and close it for now?
@wochinge I'll close this. But this issue is #4887... did you mean #3011 or another ticket?
Hi @tangochris , I'm running into the exact same issue that you were describing here:
Issue: If there is a slot or template in your conversation history that no longer exists, Rasa throws 1000s of warnings and errors per second.
Error (including full traceback):
The problem isn't so much the error, but that the error occurs thousands of times after one user action
I'm trying to understand whether I'm doing something wrong or whether this has not been fixed. Did you figure out how to deal with users that have slots in their conversation history that are not part of the model/domain anymore?
My logs are clogged with these errors :(
wochinge suggested here (https://github.com/RasaHQ/rasa/issues/3011) to set max_history
, which I have set to 5.
Example cases for my problem:
rasa_1 | 2020-12-22 12:20:39 ERROR rasa.shared.core.trackers - Tried to set non existent slot 'reflect_remedy'. Make sure you added all your slots to your domain file.
rasa_1 | 2020-12-22 12:20:39 ERROR rasa.shared.core.trackers - Tried to set non existent slot 'reflect_situation'. Make sure you added all your slots to your domain file.
rasa_1 | 2020-12-22 12:20:39 ERROR rasa.shared.core.trackers - Tried to set non existent slot 'reflect_remedy'. Make sure you added all your slots to your domain file.
rasa_1 | 2020-12-22 12:20:39 ERROR rasa.shared.core.trackers - Tried to set non existent slot 'requested_slot'. Make sure you added all your slots to your domain file.
rasa_1 | 2020-12-22 12:20:39 ERROR rasa.shared.core.trackers - Tried to set non existent slot 'reflect_situation'. Make sure you added all your slots to your domain file.
rasa_1 | 2020-12-22 12:20:39 ERROR rasa.shared.core.trackers - Tried to set non existent slot 'requested_slot'. Make sure you added all your slots to your domain file.
rasa_1 | 2020-12-22 12:20:39 ERROR rasa.shared.core.trackers - Tried to set non existent slot 'reflect_remedy'. Make sure you added all your slots to your domain file.
rasa_1 | 2020-12-22 12:20:39 ERROR rasa.shared.core.trackers - Tried to set non existent slot 'reflect_situation'. Make sure you added all your slots to your domain file.
rasa_1 | 2020-12-22 12:20:39 ERROR rasa.shared.core.trackers - Tried to set non existent slot 'reflect_remedy'. Make sure you added all your slots to your domain file.
rasa_1 | 2020-12-22 12:20:39 ERROR rasa.shared.core.trackers - Tried to set non existent slot 'requested_slot'. Make sure you added all your slots to your domain file.
rasa_1 | 2020-12-22 12:20:39 ERROR rasa.shared.core.trackers - Tried to set non existent slot 'reflect_situation'. Make sure you added all your slots to your domain file.
rasa_1 | 2020-12-22 12:20:39 ERROR rasa.shared.core.trackers - Tried to set non existent slot 'requested_slot'. Make sure you added all your slots to your domain file.
rasa_1 | 2020-12-22 12:20:39 ERROR rasa.shared.core.trackers - Tried to set non existent slot 'reflect_remedy'. Make sure you added all your slots to your domain file.
rasa_1 | 2020-12-22 12:20:39 ERROR rasa.shared.core.trackers - Tried to set non existent slot 'reflect_situation'. Make sure you added all your slots to your domain file.
rasa_1 | 2020-12-22 12:20:39 ERROR rasa.shared.core.trackers - Tried to set non existent slot 'reflect_remedy'. Make sure you added all your slots to your domain file.
rasa_1 | 2020-12-22 12:20:39 ERROR rasa.shared.core.trackers - Tried to set non existent slot 'requested_slot'. Make sure you added all your slots to your domain file.
Rasa version: 1.4.6
Rasa X version (if used & relevant): 0.22.2
Issue: If there is a slot or template in your conversation history that no longer exists, Rasa throws 1000s of warnings and errors per second.
Error (including full traceback):
The problem isn't so much the error, but that the error occurs thousands of times after one user action. Example error:
Command or request that led to error: We removed 3 slots from our language model and renamed about 160 templates. When any user with those slots or the renamed templates in their history tries to access the bot, it plugs the logs with 1000s of entries per second.