Hi all,
I installed Rasa X in Kubernetes via helm chart and it is running fine. However, when I upload and activate a pretrained rasa model then talk to the bot, the bot wouldn’t respond at all. I can only see 3 dots keep loading. I looked at the logs of the rasa-production pod and below is the output of the logs. It appears that it is not able to find the spacy model en_core_web_lg.
Any pointers?
2021-05-26 21:30:33 DEBUG rasa.core.agent - Requesting model from server http://rasa-x-1622061681-rasa-x.lisaxx.svc:5002/api/projects/default/models/tags/production… 2021-05-26 21:30:34 DEBUG rasa.core.agent - Unzipped model to ‘/tmp/tmpjhrtoe60’ 2021-05-26 21:30:34 DEBUG rasa.core.agent - Found new model with fingerprint d8e456b47fb0e6afe34fbdc1747d8040. Loading… 2021-05-26 21:30:34 ERROR rasa.core.agent - Failed to update model. The previous model will stay loaded instead. Traceback (most recent call last): File “/opt/venv/lib/python3.8/site-packages/rasa/nlu/utils/spacy_utils.py”, line 49, in load_model return spacy.load(spacy_model_name, disable=[“parser”]) File “/opt/venv/lib/python3.8/site-packages/spacy/init.py”, line 30, in load return util.load_model(name, **overrides) File “/opt/venv/lib/python3.8/site-packages/spacy/util.py”, line 169, in load_model raise IOError(Errors.E050.format(name=name)) OSError: [E050] Can’t find model ‘en_core_web_lg’. It doesn’t seem to be a shortcut link, a Python package or a valid path to a data directory.
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File “/opt/venv/lib/python3.8/site-packages/rasa/core/agent.py”, line 160, in _update_model_from_server _load_and_set_updated_model(agent, model_directory, new_fingerprint) File “/opt/venv/lib/python3.8/site-packages/rasa/core/agent.py”, line 133, in _load_and_set_updated_model interpreter = _load_interpreter(agent, nlu_path) File “/opt/venv/lib/python3.8/site-packages/rasa/core/agent.py”, line 92, in _load_interpreter return rasa.core.interpreter.create_interpreter(nlu_path) File “/opt/venv/lib/python3.8/site-packages/rasa/core/interpreter.py”, line 33, in create_interpreter return RasaNLUInterpreter(model_directory=obj) File “/opt/venv/lib/python3.8/site-packages/rasa/core/interpreter.py”, line 127, in init self._load_interpreter() File “/opt/venv/lib/python3.8/site-packages/rasa/core/interpreter.py”, line 165, in _load_interpreter self.interpreter = Interpreter.load(self.model_directory) File “/opt/venv/lib/python3.8/site-packages/rasa/nlu/model.py”, line 330, in load return Interpreter.create( File “/opt/venv/lib/python3.8/site-packages/rasa/nlu/model.py”, line 401, in create component = component_builder.load_component( File “/opt/venv/lib/python3.8/site-packages/rasa/nlu/components.py”, line 823, in load_component component = registry.load_component_by_meta( File “/opt/venv/lib/python3.8/site-packages/rasa/nlu/registry.py”, line 177, in load_component_by_meta return component_class.load( File “/opt/venv/lib/python3.8/site-packages/rasa/nlu/utils/spacy_utils.py”, line 260, in load nlp = cls.load_model(model_name) File “/opt/venv/lib/python3.8/site-packages/rasa/nlu/utils/spacy_utils.py”, line 51, in load_model raise InvalidModelError( rasa.nlu.model.InvalidModelError: Model ‘en_core_web_lg’ is not a linked spaCy model. Please download and/or link a spaCy model, e.g. by running: python -m spacy download en_core_web_md python -m spacy link en_core_web_md en