After this, I can reach the Rasa-X login screen on localhost:5002 however I can’t find a way to create a user and got a ‘Please fill all the fields’ error message. What am I missing ? Is there any default user ? I can’t find any related information about this on Rasa X
in the meantime i face the same issue. i also have a custom dockerfile and rasa x with no-prompt and production including a tracker_store postgres db.
The docker-compose runs, it starts rasa x but there is no mention of a username, also if i use the workaround, it works in the container and the user is not persisted in the database, i provide the login_DB in the endpoints.yml
How do i get the username/password created first time and persist it on my database(tracker_store)
normally the password for admin area should persist with no problem. Check that your database has a persistent volume at docker. You always need to use the python script to create the user. Maybe you could automate it with the docker-compose to create your desired password passing a env variable.
note that if you are using rasa x community edition, you just need to set the password, but no user.
I use community. The problem is when i use the rasa x without --production, it creates sqllite database. so i added --production for it to use postgres but in that case i have weird errors
FROM python:3.7
SHELL ["/bin/bash", "-c"]
RUN apt-get update -qq && \
apt-get install -y --no-install-recommends \
build-essential && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
mkdir /app
WORKDIR /app
COPY requirements.txt .
RUN pip install -r ./requirements.txt --no-cache-dir
RUN pip install rasa-x --extra-index-url https://pypi.rasa.com/simple
COPY . .
RUN make install-language-en
CMD rasa x --enable-api -endpoints config/rasa-x-endpoints.yml
When i use the rasa/rasa-x dockerfile, i always have permission error to install my extra dependencies like psycopg, google cloud etc needed for running other stuff because the dockerfile created is using non-root user.
Every option i take brings me to some other problem
I’d also like to run Rasa X locally on my system using docker and docker-compose but I find like @souvikg10 that every option I try leads me to another problem.
Is it possible to run the sqlite Rasa X under a docker-compose configuration on my local system?
for me on my system, rasa X works fine using python venv. i have been trying to with docker-compose
if i run rasa x in local mode, docker-compose doesn’t work since prompts are not supported. in Production, i have no error but nothing starts, unless i use do the deploy steps from the docs which is too heavy for my use-case, starting up rasa workers etc, rabbit MQ and SQL tracker store.
If I use the official docker, i am not able to use spaCy which i prefer to tensorflow. @amn41
If I use docker run to init the project and then start Rasa X, it’s working locally for me.
docker run -p 5002:5002 -it -v $(pwd):/app rasa/rasa-x:stable rasa init --no-prompt
docker run -p 5002:5002 -it -v $(pwd):/app rasa/rasa-x:stable rasa x --no-prompt
okay, i was trying to install it in rasa/rasa-x container but if i do so in the rasa/rasa container , which image is used to train the model? i know the training process is done using rasa worker container