Hi, Could anybody help me?
I´m trying make work rasa on a docker-compose but I get the error:
`/usr/local/lib/python3.6/runpy.py:125: RuntimeWarning: 'rasa_core.run' found in sys.modules after import of package 'rasa_core', but prior to execution of 'rasa_core.run'; this may result in unpredictable behaviour`
`warn(RuntimeWarning(msg))`
`2020-11-09 21:55:42 INFO root - Rasa process starting`
`Traceback (most recent call last):`
`File "/usr/local/lib/python3.6/runpy.py", line 193, in _run_module_as_main`
`"__main__", mod_spec)`
`File "/usr/local/lib/python3.6/runpy.py", line 85, in _run_code`
`exec(code, run_globals)`
`File "/app/rasa_core/run.py", line 194, in <module>`
`_endpoints = AvailableEndpoints.read_endpoints(cmdline_args.endpoints)`
`File "/app/rasa_core/utils.py", line 615, in read_endpoints`
`endpoint_file, endpoint_type="nlg")`
`File "/app/rasa_core/utils.py", line 537, in read_endpoint_config`
`content = read_yaml_file(filename)`
`File "/app/rasa_core/utils.py", line 316, in read_yaml_file`
`return read_yaml_string(read_file(filename))`
`File "/app/rasa_core/utils.py", line 327, in read_yaml_string`
`return yaml_parser.load(string) or {}`
`File "/usr/local/lib/python3.6/site-packages/ruamel/yaml/main.py", line 331, in load`
`return constructor.get_single_data()`
`File "/usr/local/lib/python3.6/site-packages/ruamel/yaml/constructor.py", line 111, in get_single_data`
`return self.construct_document(node)`
`File "/usr/local/lib/python3.6/site-packages/ruamel/yaml/constructor.py", line 121, in construct_document`
`for _dummy in generator:`
`File "/usr/local/lib/python3.6/site-packages/ruamel/yaml/constructor.py", line 699, in construct_yaml_map`
`value = self.construct_mapping(node)`
`File "/usr/local/lib/python3.6/site-packages/ruamel/yaml/constructor.py", line 426, in construct_mapping`
`return BaseConstructor.construct_mapping(self, node, deep=deep)`
`File "/usr/local/lib/python3.6/site-packages/ruamel/yaml/constructor.py", line 245, in construct_mapping`
`value = self.construct_object(value_node, deep=deep)`
`File "/usr/local/lib/python3.6/site-packages/ruamel/yaml/constructor.py", line 167, in construct_object`
`data = constructor(self, node)`
`File "/app/rasa_core/utils.py", line 308, in env_var_constructor`
`" variables: '{}'.".format(value, not_expanded))`
`ValueError: Error when trying to expand the environment variables in '${RASA_MODEL_SERVER}'. Please make sure to also set these environment variables: '['${RASA_MODEL_SERVER}']'.`
This is the content of my Docker File:
FROM python:3.7.9-slim
SHELL ["/bin/bash", "-c"]
RUN apt-get update -qq && \
apt-get install -y --no-install-recommends \
build-essential \
wget \
openssh-client \
graphviz-dev \
pkg-config \
git-core \
openssl \
libssl-dev \
libffi6 \
libffi-dev \
libpng-dev \
curl && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
mkdir /app
WORKDIR /app
# Copy as early as possible so we can cache ...
COPY requirements.txt .
RUN pip install -r requirements.txt --no-cache-dir
COPY . .
RUN pip install -e . --no-cache-dir
VOLUME ["/app/model", "/app/config", "/app/project", "/app/dialogue"]
# Make sure the default group has the same permissions as the owner
RUN chgrp -R 0 . && chmod -R g=u .
# Don't run as root
USER 1001
EXPOSE 5005
ENTRYPOINT ["./entrypoint.sh"]
CMD ["start", "-d", "./dialogue"]
My Docker-Compose.yml:
rasa_core:
image: rasa/rasa_core:${RASA_CORE_VERSION}
networks: ['rasa-network']
ports:
- 5005:5005
volumes:
- ./models/rasa_core:/app/models
- ./config:/app/config
- ./dialogue:/app/dialogue
- ./dialogue/domain.yml:/app/dialogue/domain.yml
command:
- start
- --debug
- --core
- models
- -c
- rest
- --endpoints
- config/endpoints.yml
- -u
- current/
Thank you,