How to fix issue with large torrent files failing to upload in flood (Solved)

I noticed an issue in which adding a 1.1MB torrent file through the flood GUI failed consistently. Here’s how I wound up fixing it:

Add the following lines under http { in /etc/nginx/nginx.conf

#set client body size to 5M
client_max_body_size 5M;

Add the following lines to /var/www/flood/rtorrent.rc:

#set XML RPC command size limit to 5M
network.xmlrpc.size_limit.set = 5000000

What’s happening is that first, NGINX is rejecting the HTTP request with a 413 error because the request is too big, so we solve that by increasing the max request size. Then rtorrent will reject the request for the same reason, so we essentially do the same thing in the rtorrent config.

Hope this is of use to someone.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.