I’m running Rasa X from Docker Compose and the web interface opens with no problem. But when I try to start training a model, even as simple as adding a sentence, it won’t save. Rasa X web interface is running as if its read only.
The only errors I see on the command line are when I try using Rasa X web interface…
rasa-x_1 | WARNING:rasax.community.services.settings_service:Could not inject deployment environments configuration from file 'environments.yml'. Details:
rasa-x_1 | File 'environments.yml' does not exist.
rasa-x_1 | You may still use Rasa X if you currently have a working configuration. Your current configuration is:
rasa-x_1 | {
rasa-x_1 | "environments": {
rasa-x_1 | "rasa": {}
rasa-x_1 | }
rasa-x_1 | }
rasa-x_1 | Starting Rasa X server... 🚀
rasa-x_1 | /usr/local/lib/python3.6/site-packages/rasax/community/server.py:65: RuntimeWarning: coroutine 'ModelService.mark_latest_as_production' was never awaited
rasa-x_1 | model_service.mark_latest_as_production()
rasa-x_1 | Exception occurred while handling uri: 'http://localhost:5002/api/projects/default/logs?q=hi'
rasa-x_1 | Traceback (most recent call last):
rasa-x_1 | File "/usr/local/lib/python3.6/site-packages/sanic/app.py", line 944, in handle_request
rasa-x_1 | response = await response
rasa-x_1 | File "/usr/local/lib/python3.6/site-packages/rasax/community/api/decorators.py", line 177, in decorated_function
rasa-x_1 | return await await_and_return_response(args, kwargs, request)
rasa-x_1 | File "/usr/local/lib/python3.6/site-packages/rasax/community/api/decorators.py", line 107, in await_and_return_response
rasa-x_1 | response = await response
rasa-x_1 | File "/usr/local/lib/python3.6/site-packages/rasax/community/api/blueprints/nlu.py", line 150, in add_log
rasa-x_1 | request, project_id, query
rasa-x_1 | File "/usr/local/lib/python3.6/site-packages/rasax/community/api/blueprints/nlu.py", line 68, in _create_message_log_from_query
rasa-x_1 | stack_service_has_model = await stack_service.has_active_model()
rasa-x_1 | AttributeError: 'NoneType' object has no attribute 'has_active_model'
Even the simplest way I can think of to run Rasa X in Docker still runs only as read only. Am I writing something wrong or is there a problem with the latest rasa/rasa-x image in Docker Hub.
Thanks for your question! Rasa X is not designed to run as a standalone service. It needs a range of other services, like rasa, rabbitMQ, a database etc. Please follow the Deploy to a Server installation instructions. You’ll automatically get the full docker-compose file and will be able to run Rasa X on docker.
Thank you @ricwo. I had made an assumption that the rasa-x docker container included everything to run. Your explanation makes sense why its not running.
Unfortunately while trying to follow the server installation instructions, I’m on Windows, so I can’t run .sh commands and the command line doesn’t know what most of those command lines are. I’m basically dead-in-the-water.
I always liked that Rasa had a low barrier to entry. Just 2 lines to get it up and running, and I’m talking to a demo chatbot.
docker run -v //c/docker/app:/app rasa/rasa init --no-prompt
docker run -it -v //c/docker/app:/app rasa/rasa shell
Rasa X is a great interface and looked like it would make the barrier to entry even easier. But it seems like it raised the barrier beyond what can be accomplished on a Windows computer. I’m still hopeful that I can get Rasa X running in docker from my pc.
Your explanation helped me expand my docker-compose.yml file. But I’m sure I’m missing some configuration, especially around the non-Rasa containers of RabbitMQ and Postgres.
Is there a zip folder with a properly configured docker-compose.yml and all the local files needed to run a simple demo in Rasa X? Something that can be started with just “docker-compose up” to keep the barrier to entry low?
Thank you,
Jason
Here is the docker-compose.yml that I’m currently using…
Hi @jwhitmer, the auto-install script only runs on Unix-like operating systems. You can however follow our manual instructions. To answer your question, section 3 in fact contains download instructions for the docker-compose.yml: