Hi, I am running an old version of rasa i.e. 0.10.4 (rasa-core). Running on Ubuntu 16.04 xenial. I am deploying it with the following script:
logger = logging.getLogger(name)
interpreter = RasaNLUInterpreter(“models/nlu/default/current”)
agent = Agent.load(“models/dialogue”, interpreter=interpreter)
input_channel = WebChatInput(static_assets_path=os.path.join(os.path.dirname(os.path.realpath(file)), ‘static’))
agent.handle_channel(SocketInputChannel(5506, “”, input_channel))
Once this python script is executed, I am keeping the process alive using the “screen” in ubuntu. The above script is hosting both my webpage static files and the chatbot gui (by Mr. AI).
However, after 3 or 4 days, the rasa bot’s server is randomly stopping without any logs in “screen”. The server doesn’t receive any requests. The python script still runs as i can see its pid but somehow it doesn’t receive any requests. There are no logs in “/var/log/syslog” too.
I explored how rasa bot is served and it seems that Flask SocketIO is running the server. I also read that SocketIO uses gevent if it is available and the resulting server is production ready. However still, the server keeps on dying randomly. has anyone faced the issue before? I have hints from other posts that upgrading to newer rasa versions troubleshoots the issue but I am keenly interested in knowing why this issue occurs.