Rasa X Model not training getting error

Installed Rasa X as per shown in the Rasa MasterClass. I followed everything step by step, connected git with the server as well. The problem arises when I click on Train and message pops up saying Training started and nothing happens, after checking the console found 505 error.

rasa-production_1  | Starting Rasa X in production mode... 🚀
rasa-production_1  | Traceback (most recent call last):
rasa-production_1  |   File "/opt/venv/bin/rasa", line 8, in <module>
rasa-production_1  |     sys.exit(main())
rasa-production_1  |   File "/opt/venv/lib/python3.6/site-packages/rasa/__main__.py", line 91, in main
rasa-production_1  |     cmdline_arguments.func(cmdline_arguments)
rasa-production_1  |   File "/opt/venv/lib/python3.6/site-packages/rasa/cli/x.py", line 324, in rasa_x
rasa-production_1  |     run_in_production(args)
rasa-production_1  |   File "/opt/venv/lib/python3.6/site-packages/rasa/cli/x.py", line 382, in run_in_production
rasa-production_1  |     _rasa_service(args, endpoints, None, credentials_path)
rasa-production_1  |   File "/opt/venv/lib/python3.6/site-packages/rasa/cli/x.py", line 86, in _rasa_service
rasa-production_1  |     ssl_password=args.ssl_password,
rasa-production_1  |   File "/opt/venv/lib/python3.6/site-packages/rasa/core/run.py", line 212, in serve_application
rasa-production_1  |     endpoints.lock_store if endpoints else None
rasa-production_1  |   File "/opt/venv/lib/python3.6/site-packages/sanic/app.py", line 1167, in run
rasa-production_1  |     serve(**server_settings)
rasa-production_1  |   File "/opt/venv/lib/python3.6/site-packages/sanic/server.py", line 892, in serve
rasa-production_1  |     trigger_events(before_start, loop)
rasa-production_1  |   File "/opt/venv/lib/python3.6/site-packages/sanic/server.py", line 668, in trigger_events
rasa-production_1  |     loop.run_until_complete(result)
rasa-production_1  |   File "uvloop/loop.pyx", line 1456, in uvloop.loop.Loop.run_until_complete
rasa-production_1  |   File "/opt/venv/lib/python3.6/site-packages/rasa/core/run.py", line 253, in load_agent_on_start
rasa-production_1  |     action_endpoint=endpoints.action,
rasa-production_1  |   File "/opt/venv/lib/python3.6/site-packages/rasa/core/agent.py", line 247, in load_agent
rasa-production_1  |     model_server,
rasa-production_1  |   File "/opt/venv/lib/python3.6/site-packages/rasa/core/agent.py", line 63, in load_from_server
rasa-production_1  |     await _update_model_from_server(model_server, agent)
rasa-production_1  |   File "/opt/venv/lib/python3.6/site-packages/rasa/core/agent.py", line 125, in _update_model_from_server
rasa-production_1  |     _load_and_set_updated_model(agent, model_directory, new_model_fingerprint)
rasa-production_1  |   File "/opt/venv/lib/python3.6/site-packages/rasa/core/agent.py", line 86, in _load_and_set_updated_model
rasa-production_1  |     interpreter = RasaNLUInterpreter(model_directory=nlu_path)
rasa-production_1  |   File "/opt/venv/lib/python3.6/site-packages/rasa/core/interpreter.py", line 274, in __init__
rasa-production_1  |     self._load_interpreter()
rasa-production_1  |   File "/opt/venv/lib/python3.6/site-packages/rasa/core/interpreter.py", line 297, in _load_interpreter
rasa-production_1  |     self.interpreter = Interpreter.load(self.model_directory)
rasa-production_1  |   File "/opt/venv/lib/python3.6/site-packages/rasa/nlu/model.py", line 301, in load
rasa-production_1  |     return Interpreter.create(model_metadata, component_builder, skip_validation)
rasa-production_1  |   File "/opt/venv/lib/python3.6/site-packages/rasa/nlu/model.py", line 328, in create
rasa-production_1  |     component_meta, model_metadata.model_dir, model_metadata, **context
rasa-production_1  |   File "/opt/venv/lib/python3.6/site-packages/rasa/nlu/components.py", line 643, in load_component
rasa-production_1  |     component_meta, model_dir, model_metadata, cached_component, **context
rasa-production_1  |   File "/opt/venv/lib/python3.6/site-packages/rasa/nlu/registry.py", line 231, in load_component_by_meta
rasa-production_1  |     component_meta, model_dir, metadata, cached_component, **kwargs
rasa-production_1  |   File "/opt/venv/lib/python3.6/site-packages/rasa/nlu/utils/spacy_utils.py", line 246, in load
rasa-production_1  |     nlp = cls.load_model(model_name)
rasa-production_1  |   File "/opt/venv/lib/python3.6/site-packages/rasa/nlu/utils/spacy_utils.py", line 48, in load_model
rasa-production_1  |     return spacy.load(spacy_model_name, disable=["parser"])
rasa-production_1  |   File "/opt/venv/lib/python3.6/site-packages/spacy/__init__.py", line 27, in load
rasa-production_1  |     return util.load_model(name, **overrides)
rasa-production_1  |   File "/opt/venv/lib/python3.6/site-packages/spacy/util.py", line 132, in load_model
rasa-production_1  |     return load_model_from_link(name, **overrides)
rasa-production_1  |   File "/opt/venv/lib/python3.6/site-packages/spacy/util.py", line 149, in load_model_from_link
rasa-production_1  |     return cls.load(**overrides)
rasa-production_1  |   File "/opt/venv/lib/python3.6/site-packages/spacy/data/en/__init__.py", line 12, in load
rasa-production_1  |     return load_model_from_init_py(__file__, **overrides)
rasa-production_1  |   File "/opt/venv/lib/python3.6/site-packages/spacy/util.py", line 196, in load_model_from_init_py
rasa-production_1  |     return load_model_from_path(data_path, meta, **overrides)
rasa-production_1  |   File "/opt/venv/lib/python3.6/site-packages/spacy/util.py", line 179, in load_model_from_path
rasa-production_1  |     return nlp.from_disk(model_path)
rasa-production_1  |   File "/opt/venv/lib/python3.6/site-packages/spacy/language.py", line 836, in from_disk
rasa-production_1  |     util.from_disk(path, deserializers, exclude)
rasa-production_1  |   File "/opt/venv/lib/python3.6/site-packages/spacy/util.py", line 636, in from_disk
rasa-production_1  |     reader(path / key)
rasa-production_1  |   File "/opt/venv/lib/python3.6/site-packages/spacy/language.py", line 820, in <lambda>
rasa-production_1  |     p
rasa-production_1  |   File "vocab.pyx", line 447, in spacy.vocab.Vocab.from_disk
rasa-production_1  |   File "strings.pyx", line 232, in spacy.strings.StringStore.from_disk
rasa-production_1  |   File "/opt/venv/lib/python3.6/site-packages/srsly/_json_api.py", line 52, in read_json
rasa-production_1  |     return ujson.load(f)
rasa-production_1  | ValueError: Could not reserve memory block

error

Hi Shubham,

Probably not enough memory on your system. How much memory do you have?

Greg

Hi @stephens,

I have 2GB Ram and 30Gb storage.

Shubham

@svshubham01 please empty your tmp folder . i have face the same so solution . when you train the model the file store in the tmp folder and full . so please empty the tmp . Then train the model.

Hi @rahulkoundal I requested to recreate the instance at least 4GB RAM, I am gonna setup the server over there if I face any issue I reach you out. btw whats your server specs?

Shubham

hello @svshubham01 i have 16 GB ram but still i face this error . please can you go to your tmp folder then check the usage of the tmp

please run this command df -h in linux

Hi @rahulkoundal I just created a new instance and setting up the server all over again I didnt train the initial model yet, I need few more minutes for setting the things up, btw the tmp folder is quite almost empty as of now, I will update you shortly.

Thanks Shubham.

It works, need minimum 4GB of ram, I trained the model training completed, and bot is also responding.

Thanks Shubham