jesec / flood

A modern web UI for various torrent clients with a Node.js backend and React frontend.
https://flood.js.org
GNU General Public License v3.0
2.08k stars 127 forks source link

Add Torrent from File not working #759

Closed shssoichiro closed 3 weeks ago

shssoichiro commented 3 weeks ago

Type: Bug Report

Your Environment

rtorrent and flood are set to run as the same user, so that they have access to all necessary directories. flood is running behind a nginx server with the recommended server configuration as follows:

root /usr/lib/node_modules/flood/dist/assets;

location /api {
  proxy_buffering off;
  proxy_cache off;
  client_max_body_size 100M;
  proxy_pass http://127.0.0.1:3000;
}

location / {
  try_files $uri /index.html;
}

Summary

When attempting to add a torrent via file, the client responds that the torrent was added successfully, but the torrent is not added. Adding torrents via magnet works.

I have investigated the xmlrpc logs from rtorrent, it appears that it is receiving the raw_start call containing the base64 encoded torrent, and returning the following:

^@Status: 200 OK^M
Content-Type: text/xml^M
Content-Length: 140^M
^M
<?xml version="1.0" encoding="UTF-8"?>^M
<methodResponse>^M
<params>^M
<param><value><i4>0</i4></value></param>^M
</params>^M
</methodResponse>^M

Expected Behavior

The torrent file should be added in rtorrent.

shssoichiro commented 3 weeks ago

This appears to be not an issue with flood. Presumably, the previously torrent client I'm migrating from did something to mangle all of my torrent files that belong to private trackers, so that rtorrent was failing to import them.