rasa: rasa-production_1 | Could not fetch runtime config from server at 'http://rasa-x:5002/api/config?token=token_string'. Exiting.

Rasa version: 1.9.5

Rasa SDK version (if used & relevant):

Rasa X version (if used & relevant): 0.27.4

Python version: 3.7

Operating system (windows, osx, โ€ฆ): osx

Issue:

  1. Follow steps on https://rasa.com/docs/rasa-x/installation-and-setup/docker-compose-manual/
  2. Launch Rasa X web page
  3. Click on โ€˜Modelsโ€™
  4. Observe following errors in docker-compse logs:
rasa-worker_1      | Starting Rasa X in production mode... ๐Ÿš€
rasa-worker_1      | Could not fetch runtime config from server at 'http://rasa-x:5002/api/config?token=token_string'. Exiting.
rasa-production_1  | Starting Rasa X in production mode... ๐Ÿš€
rasa-production_1  | Could not fetch runtime config from server at 'http://rasa-x:5002/api/config?token=token_string'. Exiting.

Error (including full traceback):

rasa-worker_1      | Starting Rasa X in production mode... ๐Ÿš€
rasa-worker_1      | Could not fetch runtime config from server at 'http://rasa-x:5002/api/config?token=token_string'. Exiting.
rasa-production_1  | Starting Rasa X in production mode... ๐Ÿš€
rasa-production_1  | Could not fetch runtime config from server at 'http://rasa-x:5002/api/config?token=token_string'. Exiting.
rasa-worker_1      | 2020-04-06 01:50:13 DEBUG    rasa.cli.x  - Failed to get a proper response from remote server. Status Code: 401. Response: '{"reasons":["Authorization header not present."],"exception":"Unauthorized"}'
rasa-production_1  | 2020-04-06 01:50:13 DEBUG    rasa.cli.x  - Failed to get a proper response from remote server. Status Code: 401. Response: '{"reasons":["Authorization header not present."],"exception":"Unauthorized"}'

Command or request that led to error:

Browsing to http://localhost/models (models endpoint on Rasa X)

Content of configuration file (config.yml) (if relevant):


Content of domain file (domain.yml) (if relevant):


**Content of .env file

RASA_X_VERSION=0.27.4
RASA_VERSION=1.9.5
RASA_X_DEMO_VERSION=0.27.4
RASA_TOKEN="token_string"
RASA_X_TOKEN="token_string"
PASSWORD_SALT="token_string"
JWT_SECRET="token_string"
RABBITMQ_PASSWORD="rabbitmq-password"
DB_PASSWORD="postgres-password"
REDIS_PASSWORD="redis-password"

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 1
  • Comments: 25 (7 by maintainers)

Most upvoted comments

This issue has been automatically closed because there has been no response to our request for more information from the original author. Without this, we donโ€™t have enough information to help you. Please comment below with the requested information if you still need help.

I think i know what the problem isโ€ฆ I am using spacy and this needs to be run on the docker images on build:

$ pip install rasa[spacy]
$ python -m spacy download en_core_web_md
$ python -m spacy link en_core_web_md en

To do this I replaced the following in the docker-compose.yml file: FROM:

x-rasa-services: &default-rasa-service
  restart: always
  image: "rasa/rasa:${RASA_VERSION}-full"
  expose:
    - "5005"

TO:

x-rasa-services: &default-rasa-service
  restart: always
  build:
      context: .
      dockerfile: ./DockerFile
      args:
        RASA_VERSION: ${RASA_VERSION}

Then make a dockerfile containing this:

ARG RASA_VERSION
FROM rasa/rasa:${RASA_VERSION}-full

USER 0

RUN pip install --upgrade pip
RUN python -m spacy download nl_core_news_sm
RUN python -m spacy link nl_core_news_sm nl

USER 1001

Here I used the dutch spacy model.