Error 413 when uploading model to Rasa X + 504 when training

Version: Rasa X 0.41.1

Hi, I can’t upload a new model to Rasa X anymore. It is connected to my git repository and has worked until yesterday. I have tried to upload it trough the UI and through the API. What I receive is “error 413 (Request Entity Too Large)”…

> <html>
> <head><title>413 Request Entity Too Large</title></head>
> <body>
> <center><h1>413 Request Entity Too Large</h1></center>
> <hr><center>nginx/1.19.2</center>
> </body>
> </html>

When i try to train the model using the Rasa X UI I get error 504…

504 (Gateway Time-out)

Any help moving forward is highly appreciated! Thanks

You need to configure ingress to increase the file size limit. For example, if you using the nginx ingress controller, you can add the following annotations when creating an ingress resource:

nginx.ingress.kubernetes.io/proxy-body-size: "600m"
nginx.org/client-max-body-size: "600m"