Getting 524 Timeout issue from the Cloudflare while using the Train API

Hi,

I have created one Rasa app as per my requirement and then I tested the Train API using postman locally. I am able to train the model using the API.

http://localhost:5005/model/train

I have deployed this app in a VM and configured a domain in Cloudflare. When I am trying to use the Train API with the domain like below:

https://rasa-dev-qna.innovate.io/model/train

I am getting a 524 Timeout issue. In the local, it is taking only 40 Seconds to Train but in the server, it is taking more than 100 seconds. In Cloudflare, timeout is set for only 100 seconds. So after 100 seconds we immediately get the Timeout issue.

So, I am unable to identify the issue in the server, Could anyone please help me to resolve this issue?

Local Specs of my laptop: 11th Gen Intel(R) Core™ i5-1135G7 @ 2.40GHz 2.42 GHz, 16GB RAM, 512GB SSD

Server Specs: 2 CPU, 8GB RAM, Ubuntu 16 server

Waiting on the train API call as an approach is not going to work. Training a Rasa bot can take up to an hour or more depending on the bot. You’ll either have poll the Rasa OSS instance (this is the approach that Rasa X takes) or you could monitor the progress of the training via a logging service.