I try to run the command rasa run from my server and I get this error:
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}']'.
What can be the reason for that?
Thank you,
Tiziano
This variable should be set automatically as part of the docker-compose setup. Can you please share your docker-compose file (+ potential .override.yml)?
@tiziano and you’ve started up Rasa X with docker-compose up -d? I noticed you said in your original post you’re trying to do rasa run, so my question is where you’re doing that from? You shouldn’t need to do that once your docker compose setup is up and running
What I don’t have clear is how I can use Rasa from the command line on the server if all my conversational data are stored in GitHub? If I just do rasa run from a random directory it obviously tells me that can’t find the requested files.
Why do you want to use rasa on the command line on your server? That’s something that you would do locally. You can talk to your bot through the UI on Rasa X if you want to test what’s deployed on your server
Because not everything is available to use on Rasa X. For example I may want to have a debug log of the conversation with information on which policy is triggered, what confidence is given to each intent, what are the errors in the custom actions if any, etc.
Makes sense. One option for this is to enable verbose logging on the rasa-production container, by adding the --debug flag to the start command. And errors in custom actions can be found in the app logs.
If you’re developing your bot heavily however, I think using rasa locally on your machine makes more sense. You should be able to sync everything between local mode and your server using Integrated Version Control. Rasa X becomes most useful once you’ve got an initial version of your bot running and want to have users test your bot or when you have your bot in production, and then want to improve your bot based on those conversations. Read more here: Rasa Open Source + Rasa X: Better Together
I would have put what you told me before a bit more clear in the docs. That is, the fact that you should first make all the major changes locally and just when you have all functioning good switch to Rasa X on a server. And also that once that you cannot use Rasa from command line if you’re using Rasa X on a server.
Alright, very clear, thank you so much!
P.S. when checked for my app logs I found an error and opened this topic.
P.P.S and when checked for my rasa-production logs I found other errors and opened another topic.
environment variables doesn’t get recognised by endpoints.yml . @akelad@nik202 could you guys please help me?
I am using EC2 for rasa x installed in it and running through docker containers.
Thanking you.