Here is the log file generated from docker-compose logs rasa-x
logs.txt (1.7 MB)
Here is the log file generated from docker-compose logs rasa-x
logs.txt (1.7 MB)
@bharatji30 it seems like the authentication for postgres is failing. Did you change the password since installing Rasa X? If you have nothing valuable in the database right now, I would suggest clearing the contents of the db
folder and starting Rasa X again
i can’t see a db folder. see snapshot of all the files and folders for the project i created. Did you mean to delete all the *.db files?
I am stuck at a point where, when i try to run “rasa_x_commands.py” to create a username and password, i get below error
"Error response from daemon: Container be0e2034a9a96ec957d8528e61cc43589e0e34eec27a6342f12dbdbc07c10fa3 is restarting, wait until the container is running ERROR:main:Failed to create user. "
As on of the container which i created always remains in “restarting” state.
And if i try to start the Rasa-X directly by typing “rasa x” i get below error:
This is the list of the files and folder, but i do not have a folder db:
@akelad the turbo script skips on creating a db folder because the database is instead mounted to a volume.
Ah right - I’m not sure how to clear a volume on windows, but basically that volume needs to be cleared and the whole thing restarted
Hi , don’t waste time on figuring out why this is happening , just like i said 3 days ago , if you’re on VS code just prune everything your eyes lay on in Docker’s extension, then docker-compose down , docker-compose up -d (repeat until it succeeds)
@pandaxar to be honest that’s not exactly the best way to go around fixing things. We’ve figured out the issue, it seems to be the database, and the way to fix it is by clearing the volume.
Good point , i hope it works at his end.
@ActuallyAcey So should i install postgresql first then try to connect to
and then try to dropdb rasa createdb rasa
or is there another way via script?
.
.
@pandaxar while waiting on a word on postgresql, i did
docker kill
docker system prune
then docker-compose up -d
which re-created all the containers … and for brief seconds during which “rasaxtest_rasa-x_1” remained up i tried python rasa_x_commands.py create --update admin me pass123
But it gave me “ERROR:main:Failed to create user.”
does this mean there is a problem with my input of (username= me) or am i using the rasa_x_command.py incorrectly?
To manage the docker volume that is used, you can use these commands that are summarized here
docker volume ls
docker volume rm ----
docker volume create ---
HURRAY So re-creating the volume solved the issue.
Now i am able to successfully able to invoke Rasa-X.
Thanks @ActuallyAcey @pandaxar @akelad @Arjaan for all your patience and help. .
@bharatji30 that’s good to hear! If you don’t mind, could you share the exact steps you followed to fix this issue? I might add in a “Try Common Fixes” feature to the script later on down the line.
I think the issue happens when you are reinstalling without deleting the docker volume that Postgres is using.
During a second install, the script creates a new random password for Postgres, but the database itself is still expecting the previous password.
I think you should consider adding the definition of the postgres password to the config.json, and not generate it automatically.
And then, do the appropriate things in the script when a database is there or not.
That way, during upgrade to later versions of Rasa X, the database will be kept as well. Unless you remove the volume first off course, then it starts out fresh.
Yeah, that makes sense. I’ll try to get on it this weekend!
@bharatji30 I am facing the exact same issue that you were facing by following this thread i have removed the db-volume from the volume. Just dont know while recreating a new volume where should i mount. A command could probably help. @Arjaan, @ActuallyAcey
There will be many developers like me in the same problem. Please help guysHere are the steps i followed
Hope this helps.
Tried normal installation approach without docker. It worked!!
Rasa X Installation Locally in Windows
Note: Disconnect from all proxy servers or VPN
Install Anaconda3-2019.10-Windows-x86_64.exe
Create a virtual env from anaconda eg: rasax
conda activate rasax
Add Environment variable of git
pip install rasa-x==0.27.7 --extra-index-url https://pypi.rasa.com/simple
pip install rasa_nlu[spacy]
python -m spacy download en_core_web_md
Error: asyncio - Task exception was never retrieved future: <Task finished coro=<configure_app..run_cmdline_io() done, defined at c:\users\ag20459\appdata\local\continuum\anaconda3\envs\rasax\lib\site-packages\rasa\core\run.py:128> exception=RuntimeError(‘This event loop is already running’)>
Solution: pip install google-auth==1.10.1 prompt-toolkit==2.0.10 questionary==1.4.0 SQLAlchemy==1.3.12 urllib3==1.25.7
Environment variable RASA_X_PASSWORD=
Rasa X url: http://localhost:5002/conversations
@shubh802, the RasaX you installed is a sort of “demo” package for the real RasaX, which, from what I know, can only be installed on a machine using the requisite Docker containers. You can test this by seeing how tools like Integrated Version Control are missing within the RasaX interface.
Thanks a lot for sharing this!
Hi Experts,
I am facing some issue with the above approach to install rasa X locally, where it gives me the following error related to nginx.
ERROR: for nginx Cannot start service nginx: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: rootfs_linux.go:76: mounting "/run/desktop/mnt/host/d/chatbot-rasa/rasax-projb/nginx-config-files/nginx.conf" to rootfs at "/etc/nginx/nginx.conf" caused: mount through procfd: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
Any help would be appreciated.
I have already tried the above of deleting volume and also using the latest py file and json file as stated above.
Version- Rasa-X:0.41.1 Rasa:2.7.1 Windows:11 RAM:16GB