Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add torrent not working with no errors #179

Closed
kallard1 opened this issue Jan 29, 2021 · 12 comments
Closed

Add torrent not working with no errors #179

kallard1 opened this issue Jan 29, 2021 · 12 comments

Comments

@kallard1
Copy link

Type: Bug Report

Your Environment

  • Version used:
    • Version (stable release) 4.3.1 (with NPM & Build)
    • Commit ID (development release) git --no-pager log -1: 57ded20
  • Environment name and version:
    • Node.js version node --version : 14.15.4
    • npm version npm --version : 6.14.11
    • Web browser name and version Google Chrome Version 88.0.4324.96 (Official Build) (x86_64)
  • Operating system and version: Mac OS Big Sur
  • Torrent client and version: Rtorrent 0.9.7

Hi, I've installed latest version of flood and, I can't add torrents.
I've no error, /api/client/add-files return HTTP code 200 but and I've success tooltip in bottom right with message "x torrent added" and I don't understand why my torrent not start

Can u help me please ?

Thanks

@jesec
Copy link
Owner

jesec commented Jan 30, 2021

Flood only reliably handles errors within its scope. Notably, errors from the torrent client may not be reliably processed. Some torrent clients have an asynchronous API, meaning that such a torrent client returns success if there is no obvious error with the request. However, things can go wrong later in the process.

Additionally, Flood does not handle fault XMLRPC response of rTorrent at this moment. It is on the roadmap of Flood to improve error handing.

Check troubleshooting section of README. Ensure that the filesystem configurations are correct. Plus, try to upgrade rTorrent to 0.9.8, which Flood targets. You may download a self-contained test build from Github Actions. It may be used with the default configuration available at Releases.

@weblunatic
Copy link

I also have the issue above @kallard1. I tried chmod 755 .local/shared/flood/* path (following same solution reported at #86), but no luck for me yet. I'm able to see the added torrents inside /home/<usr>/.local/share/flood/temp/ so the uploading is working, but the file is not read by rtorrent. Pretty lost so far, keep me updated if you find a solution 🙏 thanks! Will also update this thread if I find what's going on.

@jesec
Copy link
Owner

jesec commented Feb 1, 2021

If you are running Flood and rTorrent with different users, can you su (run as) rTorrent's account and then try to access the torrents in Flood's temporary directory?

@jesec
Copy link
Owner

jesec commented Feb 1, 2021

And FYI: The easiest way to work around the issue is to run Flood and rTorrent with a single account like download. This also avoids other permission issues as Flood itself performs a large range of filesystem operations on torrents and their contents if you are using rTorrent.

@weblunatic
Copy link

weblunatic commented Feb 1, 2021

So, I tried ubuntu 20.10 torrent file from https://ubuntu.com/download/alternative-downloads and it worked fine! I also installed transmission and used their web UI to check, and the failing torrents I was trying on Flood + rtorrent were also failing there:

Error adding <torrent>: invalid or corrupt torrent file

I currently cannot use any torrents from IPT, so looks like it may be some other issue maybe related there.

@lilws
Copy link

lilws commented Feb 7, 2021

This is interesting, I'm on the same boat now. Trying to connect two docker containers, flood and rtorrent. I can't add new torrent from flood for now. Because flood run as download account and rtorrent run as different one. I tried to make flood run the same with rtorrent account but it still can't add new torrent althought it stated in the bottom right corner that it is successful with code 200 in terminal.

@jesec
Copy link
Owner

jesec commented Feb 7, 2021

See troubleshooting section of README. Flood adds torrents to rTorrent by local file paths.

rTorrent needs to be able access Flood’s temporary directory. Additionally, it needs to have the same filesystem context as Flood.

When Flood tells rTorrent to add /path/to/a.torrent, rTorrent must be able to read the torrent at the exactly same path.

@lilws
Copy link

lilws commented Feb 7, 2021

I'm trying to do that but come to no success atm. rTorrent can see .torrent file but it is not adding to download.

Because the image I use for rtorrent contains obsolete flood version, and now I want to make it working with other updated image. So inside rtorrent container, there is already has old flood. Now I mount the new flood to another folder /config/flood1. When using new flood to add torrent. I can see the torrent file in rtorrent folder but it is not adding to it.

p/s: After a while, I need to map the whole folder of flood new to a different --rundir with the old flood, now it is works as expected, I will keep testing. Thank you.

@jesec
Copy link
Owner

jesec commented Mar 21, 2021

@kallard1 any update?

4.5 introduced some new checks, which allows Flood to spot more failures.

@kallard1
Copy link
Author

Hi,

I've update to 4.5 and i've upgrade rtorrent to 0.9.8 but I still can't add a torrent.

@jesec
Copy link
Owner

jesec commented Mar 30, 2021

Is there an error message?

@jesec
Copy link
Owner

jesec commented Jun 1, 2021

Newer versions significantly improved error reporting and changed the method of adding torrents. Please let me know if the issue is still relevant.

@jesec jesec closed this as completed Jun 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants