Iβm trying to synchronize my git repo to my rasa x server but an error appear in rasa_rasa-x_1 container :
WARNING:rasax.community.telemetry:An error occured when trying to send the telemetry event: HTTPSConnectionPool(host='api.segment.io', port=443): Max retries exceeded with url: /v1/track (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fc1ca91fcd0>: Failed to establish a new connection: [Errno -2] Name or service not known'))
[2021-01-22 13:46:05 +0000] - (sanic.access)[INFO][172.20.0.11:38410]: POST http://my.domain/api/projects/default/git_repositories?api_token=f53a989dec987af5cef7348b3cffb752158dccf3 201 207
INFO:rasax.community.services.integrated_version_control.git_service:Cloning git repository from URL 'git@git.server.git/my_project.git'.
Job "run_background_synchronization (trigger: cron[minute='*'], next run at: 2021-01-22 13:47:00 UTC)" raised an exception
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/apscheduler/executors/base.py", line 125, in run_job
retval = job.func(*job.args, **job.kwargs)
File "/usr/local/lib/python3.8/dist-packages/rasax/community/services/integrated_version_control/git_service.py", line 131, in run_background_synchronization
loop.run_until_complete(git_service.synchronize_project(force_data_injection))
File "uvloop/loop.pyx", line 1456, in uvloop.loop.Loop.run_until_complete
File "/usr/local/lib/python3.8/dist-packages/rasax/community/services/integrated_version_control/git_service.py", line 1102, in synchronize_project
await self._inject_data()
File "/usr/local/lib/python3.8/dist-packages/rasax/community/services/integrated_version_control/git_service.py", line 1146, in _inject_data
await rasax.community.initialise.inject_files_from_disk(
File "/usr/local/lib/python3.8/dist-packages/rasax/community/initialise.py", line 350, in inject_files_from_disk
inject_domain(
File "/usr/local/lib/python3.8/dist-packages/rasax/community/initialise.py", line 185, in inject_domain
if not rasa.shared.core.domain.Domain.is_domain_file(
File "/usr/local/lib/python3.8/dist-packages/rasa/shared/core/domain.py", line 1582, in is_domain_file
content = rasa.shared.utils.io.read_yaml_file(filename)
File "/usr/local/lib/python3.8/dist-packages/rasa/shared/utils/io.py", line 368, in read_yaml_file
return read_yaml(read_file(filename, DEFAULT_ENCODING))
File "/usr/local/lib/python3.8/dist-packages/rasa/shared/utils/io.py", line 349, in read_yaml
return yaml_parser.load(content) or {}
File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/main.py", line 343, in load
return constructor.get_single_data()
File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 113, in get_single_data
return self.construct_document(node)
File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 123, in construct_document
for _dummy in generator:
File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 723, in construct_yaml_map
value = self.construct_mapping(node)
File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 440, in construct_mapping
return BaseConstructor.construct_mapping(self, node, deep=deep)
File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 255, in construct_mapping
value = self.construct_object(value_node, deep=deep)
File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 146, in construct_object
data = self.construct_non_recursive_object(node)
File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 181, in construct_non_recursive_object
data = constructor(self, node)
File "/usr/local/lib/python3.8/dist-packages/rasa/shared/utils/io.py", line 311, in env_var_constructor
raise ValueError(
ValueError: Error when trying to expand the environment variables in 'echo "${USER} $(date)" > {{ RASA_HOME }}/terms/agree.txt'. Please make sure to also set these environment variables: '['"${USER}', '$(date)"']'.
And there is no problem during training model with docker :
docker run -u 0 -it -v /my_project:/app rasa/rasa:2.2.5 train
The generated model can be used with rasa shell :
docker run -u 0 -it -p 5005:5005 -v /my_project:/app rasa/rasa:2.2.5 shell
I tried rasa data validate but no error or any conflict stories :
docker run -u 0 -it -p 5005:5005 -v /my_project:/app rasa/rasa:2.2.5 data validate
And no problem is find. This is the result :
2021-02-02 11:01:12.571577: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library 'libcudart.so.10.1'; dlerror: libcudart.so.10.1: cannot open shared object file: No such file or directory
2021-02-02 11:01:12.571620: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk
x Rasa Open Source reports anonymous usage telemetry to help improve the product x
x for all its users. x
x x
x If you'd like to opt-out, you can use `rasa telemetry disable`. x
x To learn more, check out https://rasa.com/docs/rasa/telemetry/telemetry. x
mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
2021-02-02 11:01:13.999572: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library 'libcuda.so.1'; dlerror: libcuda.so.1: cannot open shared object file: No such file or directory
2021-02-02 11:01:13.999614: W tensorflow/stream_executor/cuda/cuda_driver.cc:312] failed call to cuInit: UNKNOWN ERROR (303)
2021-02-02 11:01:13.999646: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:156] kernel driver does not appear to be running on this host (0248a65be535): /proc/driver/nvidia/version does not exist
The configuration for pipeline was chosen automatically. It was written into the config file at 'config.yml'.
2021-02-02 11:01:14 INFO rasa.shared.utils.validation - The 'version' key is missing in the training data file /app/domain.yml. Rasa Open Source will read the file as a version '2.0' file. See https://rasa.com/docs/rasa/training-data-format.
2021-02-02 11:01:14 INFO rasa.shared.utils.validation - The 'version' key is missing in the training data file /app/data/rules.yml. Rasa Open Source will read the file as a version '2.0' file. See https://rasa.com/docs/rasa/training-data-format.
2021-02-02 11:01:15 INFO rasa.shared.utils.validation - The 'version' key is missing in the training data file /app/data/nlu.yml. Rasa Open Source will read the file as a version '2.0' file. See https://rasa.com/docs/rasa/training-data-format.
2021-02-02 11:01:15 INFO rasa.validator - Validating intents...
2021-02-02 11:01:15 INFO rasa.validator - Validating uniqueness of intents and stories...
2021-02-02 11:01:15 INFO rasa.validator - Validating utterances...
2021-02-02 11:01:15 INFO rasa.validator - Story structure validation...
Processed story blocks: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 154/154 [00:00<00:00, 1983.18it/s, # trackers=1]
2021-02-02 11:01:15 INFO rasa.core.training.story_conflict - Considering all preceding turns for conflict analysis.
2021-02-02 11:01:15 INFO rasa.validator - No story structure conflicts found.
So I really donβt understand why I canβt synchronise my rasa X server to my git repo because everything is ok except the ValueError: Error when trying to expand the environment variables in 'echo "${USER} $(date)" > {{ RASA_HOME }}/terms/agree.txt'
If someone have an idea !
Rasa Open source version : 2.2.5 Rasa X version : 0.35.0 Rasa SDK : 2.2.0