Issues with Rasa MongoTrackerStore

Hello guys i’m new to Rasa and i’m trying to store the conversation history of my chatbot to a MongoDB database, but i’m getting those errors after running :

rasa run -m models --endpoints endpoints.yml Traceback (most recent call last): File "/home/ahmedmzoughi/Downloads/Rasa Chatbot PFE/venv/bin/rasa", line 10, in <module> sys.exit(main()) File "/home/ahmedmzoughi/Downloads/Rasa Chatbot PFE/venv/lib/python3.6/site-packages/rasa/__main__.py", line 92, in main cmdline_arguments.func(cmdline_arguments) File "/home/ahmedmzoughi/Downloads/Rasa Chatbot PFE/venv/lib/python3.6/site-packages/rasa/cli/run.py", line 99, in run endpoints = AvailableEndpoints.read_endpoints(args.endpoints) File "/home/ahmedmzoughi/Downloads/Rasa Chatbot PFE/venv/lib/python3.6/site-packages/rasa/core/utils.py", line 401, in read_endpoints nlg = read_endpoint_config(endpoint_file, endpoint_type="nlg") File "/home/ahmedmzoughi/Downloads/Rasa Chatbot PFE/venv/lib/python3.6/site-packages/rasa/utils/endpoints.py", line 25, in read_endpoint_config content = rasa.utils.io.read_config_file(filename) File "/home/ahmedmzoughi/Downloads/Rasa Chatbot PFE/venv/lib/python3.6/site-packages/rasa/utils/io.py", line 188, in read_config_file content = read_yaml(read_file(filename)) File "/home/ahmedmzoughi/Downloads/Rasa Chatbot PFE/venv/lib/python3.6/site-packages/rasa/utils/io.py", line 124, in read_yaml return yaml_parser.load(content) or {} File "/home/ahmedmzoughi/Downloads/Rasa Chatbot PFE/venv/lib/python3.6/site-packages/ruamel/yaml/main.py", line 343, in load return constructor.get_single_data() File "/home/ahmedmzoughi/Downloads/Rasa Chatbot PFE/venv/lib/python3.6/site-packages/ruamel/yaml/constructor.py", line 111, in get_single_data node = self.composer.get_single_node() File "_ruamel_yaml.pyx", line 706, in _ruamel_yaml.CParser.get_single_node File "_ruamel_yaml.pyx", line 724, in _ruamel_yaml.CParser._compose_document File "_ruamel_yaml.pyx", line 775, in _ruamel_yaml.CParser._compose_node File "_ruamel_yaml.pyx", line 889, in _ruamel_yaml.CParser._compose_mapping_node File "_ruamel_yaml.pyx", line 775, in _ruamel_yaml.CParser._compose_node File "_ruamel_yaml.pyx", line 891, in _ruamel_yaml.CParser._compose_mapping_node File "_ruamel_yaml.pyx", line 904, in _ruamel_yaml.CParser._parse_next_event ruamel.yaml.scanner.ScannerError: mapping values are not allowed in this context in "<unicode string>", line 30, column 8

here my endpoints.yml : tracker_store: type: mongod url: "mongodb://localhost:27017" db: "admin" username: "ahmed" password: "password"

hi @a7med - are you sure your yaml is correctly formatted? you can check with a tool like Best YAML Formatter Online: Advance YAML Formatter

@amn41 thanks for your reply, actually the issue was on the DB side, i needed to grant the user a “root” access.