How to totally stop rasa server

hi, could anyone help me? i open the rasa server with rasa interactive, but it stuck maybe because i change the framework scripts’ paths in visulization.html. i have tried using ctrl-c, and kill the process, but it didn’t be killed and turned to defunct process. i also tried reinstall rasa and run it again. however, maybe it already stuck, the new one was also stuck. i am trying to get familiar with the rasa and i put it on a remote workstation thus i don’t have root permission. in this situation, what can i do to shut down or killing it?

on windows you can use Control + Pause / Break

i am on linux, it becomes defunct and unkillable as without root permission :frowning:

defunct processes can also be killed. but an easier method would be to reboot the machine / vm.

If you want to know the steps to remove a defunct process do let me know

Hey Anand, Yes, I’d like to know to remove a defunct Rasa process in Linux - specifically rasa run --cors in this case, I had multiple instances of rasa run --cors and restarting the box is inconvenient. Thanks.

Anand, I found the answer - thanks anyway!

I think you can kill processes like kill -l without sudo permission

I think you need to create some bash file with kill commands and ask for someone with sudo permission to run this bash or set chmod a+x at this bash file

For now, i believe your best try is change rasa services ports. Action services use -p to chance port

rasa run actions -p 5056 

Rasa services use -p to chance port

-p 5006

Rasa X use --rasa-x-port to chance port

rasa x --rasa-x-port 5003 

Final command

rasa run actions -p 5056 & 
rasa x --rasa-x-port 5003 --no-prompt -m models --enable-api -p 5006 --log-file rasa.log  --cors "*"

@Edit

Sorry, i didn’t see your last comment

What did you do? :smiley:

Hi Jhonny, It’s been a while since I mucked around in linux, so I remembered that “ps aux | less” will get me all running processes and their pids. I just did that and then kill -9 pid. Thanks for answering my question so thoroughly, though. I really appreciate it. Gil

1 Like