jesec/flood

Add Torrent from File not working

shssoichiro opened this issue · 1 comments

Type: Bug Report

  • Try to follow the update procedure described in the README and try again before opening this issue.

Your Environment

  • Version used: 4.8.2 (stable)
  • Environment name and version:
    • Node.js version node --version: v22.2.0
    • npm version npm --version: 10.8.1
    • Web browser name and version: Firefox 126.0.1 and Chrome 125.0.6422.142
  • Operating system and version: Arch Linux
  • Torrent client and version: rtorrent 0.9.8

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.

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.