question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

rasa.nlu.model.UnsupportedModelError: The model version is to old to be loaded by this Rasa NLU instance. Either retrain the model, or run withan older version. Model version: 1.2.3 Instance version: 1.3.0a1

See original GitHub issue

Rasa version:1.2.5

Rasa X version (if used & relevant):0.20.1

Python version:3.6.8

Operating system (windows, osx, …): Linux

Issue: rasa.nlu.model.UnsupportedModelError: The model version is to old to be loaded by this Rasa NLU instance. Either retrain the model, or run withan older version. Model version: 1.2.3 Instance version: 1.3.0a1

Error (including full traceback):

Starting chabot_hotline_rasa_1 ... done
Attaching to chabot_hotline_rasa_1
rasa_1  | 2019-08-30 14:47:44 INFO     root  - Starting Rasa server on http://localhost:5005
rasa_1  | 2019-08-30 14:47:45 ERROR    rasa.core.agent  - Could not load model due to The model version is to old to be loaded by this Rasa NLU instance. Either retrain the model, or run withan older version. Model version: 1.2.3 Instance version: 1.3.0a1.
rasa_1  | Experienced exception while trying to serve
rasa_1  | Traceback (most recent call last):
rasa_1  |   File "/usr/local/lib/python3.6/site-packages/sanic/app.py", line 1096, in run
rasa_1  |     serve(**server_settings)
rasa_1  |   File "/usr/local/lib/python3.6/site-packages/sanic/server.py", line 742, in serve
rasa_1  |     trigger_events(before_start, loop)
rasa_1  |   File "/usr/local/lib/python3.6/site-packages/sanic/server.py", line 604, in trigger_events
rasa_1  |     loop.run_until_complete(result)
rasa_1  |   File "uvloop/loop.pyx", line 1417, in uvloop.loop.Loop.run_until_complete
rasa_1  |   File "/usr/local/lib/python3.6/site-packages/rasa/core/run.py", line 233, in load_agent_on_start
rasa_1  |     action_endpoint=endpoints.action,
rasa_1  |   File "/usr/local/lib/python3.6/site-packages/rasa/core/agent.py", line 258, in load_agent
rasa_1  |     remote_storage=remote_storage,
rasa_1  |   File "/usr/local/lib/python3.6/site-packages/rasa/core/agent.py", line 921, in load_local_model
rasa_1  |     remote_storage=remote_storage,
rasa_1  |   File "/usr/local/lib/python3.6/site-packages/rasa/core/agent.py", line 368, in load
rasa_1  |     interpreter = NaturalLanguageInterpreter.create(nlu_model)
rasa_1  |   File "/usr/local/lib/python3.6/site-packages/rasa/core/interpreter.py", line 57, in create
rasa_1  |     return RasaNLUInterpreter(model_directory=obj)
rasa_1  |   File "/usr/local/lib/python3.6/site-packages/rasa/core/interpreter.py", line 263, in __init__
rasa_1  |     self._load_interpreter()
rasa_1  |   File "/usr/local/lib/python3.6/site-packages/rasa/core/interpreter.py", line 286, in _load_interpreter
rasa_1  |     self.interpreter = Interpreter.load(self.model_directory)
rasa_1  |   File "/usr/local/lib/python3.6/site-packages/rasa/nlu/model.py", line 300, in load
rasa_1  |     Interpreter.ensure_model_compatibility(model_metadata)
rasa_1  |   File "/usr/local/lib/python3.6/site-packages/rasa/nlu/model.py", line 275, in ensure_model_compatibility
rasa_1  |     "".format(model_version, rasa.__version__)
rasa_1  | rasa.nlu.model.UnsupportedModelError: The model version is to old to be loaded by this Rasa NLU instance. Either retrain the model, or run withan older version. Model version: 1.2.3 Instance version: 1.3.0a1
rasa_1  | Traceback (most recent call last):
rasa_1  |   File "/usr/local/bin/rasa", line 10, in <module>
rasa_1  |     sys.exit(main())
rasa_1  |   File "/usr/local/lib/python3.6/site-packages/rasa/__main__.py", line 76, in main
rasa_1  |     cmdline_arguments.func(cmdline_arguments)
rasa_1  |   File "/usr/local/lib/python3.6/site-packages/rasa/cli/run.py", line 119, in run
rasa_1  |     rasa.run(**vars(args))
rasa_1  |   File "/usr/local/lib/python3.6/site-packages/rasa/run.py", line 55, in run
rasa_1  |     **kwargs
rasa_1  |   File "/usr/local/lib/python3.6/site-packages/rasa/core/run.py", line 194, in serve_application
rasa_1  |     app.run(host="0.0.0.0", port=port, ssl=ssl_context)
rasa_1  |   File "/usr/local/lib/python3.6/site-packages/sanic/app.py", line 1096, in run
rasa_1  |     serve(**server_settings)
rasa_1  |   File "/usr/local/lib/python3.6/site-packages/sanic/server.py", line 742, in serve
rasa_1  |     trigger_events(before_start, loop)
rasa_1  |   File "/usr/local/lib/python3.6/site-packages/sanic/server.py", line 604, in trigger_events
rasa_1  |     loop.run_until_complete(result)
rasa_1  |   File "uvloop/loop.pyx", line 1417, in uvloop.loop.Loop.run_until_complete
rasa_1  |   File "/usr/local/lib/python3.6/site-packages/rasa/core/run.py", line 233, in load_agent_on_start
rasa_1  |     action_endpoint=endpoints.action,
rasa_1  |   File "/usr/local/lib/python3.6/site-packages/rasa/core/agent.py", line 258, in load_agent
rasa_1  |     remote_storage=remote_storage,
rasa_1  |   File "/usr/local/lib/python3.6/site-packages/rasa/core/agent.py", line 921, in load_local_model
rasa_1  |     remote_storage=remote_storage,
rasa_1  |   File "/usr/local/lib/python3.6/site-packages/rasa/core/agent.py", line 368, in load
rasa_1  |     interpreter = NaturalLanguageInterpreter.create(nlu_model)
rasa_1  |   File "/usr/local/lib/python3.6/site-packages/rasa/core/interpreter.py", line 57, in create
rasa_1  |     return RasaNLUInterpreter(model_directory=obj)
rasa_1  |   File "/usr/local/lib/python3.6/site-packages/rasa/core/interpreter.py", line 263, in __init__
rasa_1  |     self._load_interpreter()
rasa_1  |   File "/usr/local/lib/python3.6/site-packages/rasa/core/interpreter.py", line 286, in _load_interpreter
rasa_1  |     self.interpreter = Interpreter.load(self.model_directory)
rasa_1  |   File "/usr/local/lib/python3.6/site-packages/rasa/nlu/model.py", line 300, in load
rasa_1  |     Interpreter.ensure_model_compatibility(model_metadata)
rasa_1  |   File "/usr/local/lib/python3.6/site-packages/rasa/nlu/model.py", line 275, in ensure_model_compatibility
rasa_1  |     "".format(model_version, rasa.__version__)
rasa_1  | rasa.nlu.model.UnsupportedModelError: The model version is to old to be loaded by this Rasa NLU instance. Either retrain the model, or run withan older version. Model version: 1.2.3 Instance version: 1.3.0a1

Command or request that led to error:

docker-compose up

Hello, I installed rasa ver 1.2.5 and it works perfectly on my local sever. But when I tried to run docker, I have some errors that I committed issue. As the recommendation in rasa tutorial, I tried to run docker-compose and it raises this error. I have read a lot of posts in rasa community about this problem. Some solutions are uninstall rasa and reinstall rasa==0.15.0a6 (I tried, it didn’t work) or downgrade rasa to 1.0 and train rasa_nlu. As I understand, rasa is combined between rasa_nlu and rasa_core, I don’t want to train them separately. Is there anyone have same problem with me when run docker-compose?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ngochuyenluucommented, Sep 4, 2019

Hello, it worked. Thank you a lot 😃

1reaction
erohmensingcommented, Sep 4, 2019

Sorry, I misspoke, there isn’t a stable tag for rasa it seems. Just set it to the most recent released version, in this case 1.2.7 – so rasa/rasa:1.2.7-full

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting Rasa_nlu.model.UnsupportedModelError
Either retrain the model, or run withan older version. ... The model version is to old to be loaded by this Rasa NLU...
Read more >
The model version is to old to be loaded by this Rasa NLU ...
It seems that your RASA version was older than 0.15. You can resolve this by retraining the models by using command
Read more >
rasa - PyPI
Open source machine learning framework to automate text- and voice-based conversations: NLU, dialogue management, connect to Slack, Facebook, ...
Read more >
THE RASA MASTERCLASS HANDBOOK - HubSpot
You can now retrain the model using the rasa train NLU command. Testing the Model. Test the newly trained model by running the...
Read more >
Create Chatbot using Rasa Part-1 - Towards Data Science
Setup and Run your first Rasa Bot. Understand Rasa Framework. Rasa is an open source machine learning framework for building AI assistants and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found