Novik / ruTorrent

Yet another web front-end for rTorrent
Other
2.03k stars 413 forks source link

Unable to download/load torrents from URL #1464

Closed passthestyles closed 4 years ago

passthestyles commented 7 years ago

I have installed rtorrent 0.9.6/0.13.6 with ruTorrent 3.7 on Ubuntu 16.04.2 LTS

The issue is similar to this: https://github.com/rakshasa/rtorrent/issues/553

Logs are empty, and it gives me the error as such:

[2017-05-27 22:03:41] https://privatetracker.com/torrents.php?action=download&id=12345&authkey=MY_AUTH_KEY&torrent_pass=MY_TORRENT_PWD - Failed to add torrent. Can't retrieve URL.

This is after a brand new install of Ubuntu and rtorrent/rutorrent/etc. (it was working before, and I just had to reinstall Ubuntu server and start over from scratch).

Notes:

Any help would be appreciated

passthestyles commented 7 years ago

Ok, I figured it out.

With the help of some people, I was able to narrow it down to the Snoopy class.

When Snoopy ran the exec command in PHP to execute the curl command, it would give me a curl error 56.

But if I ran the same curl command in the command line manually, it would run fine (and 2 files would be created as expected)

But I happened to run into another error with RSS, saying it could not load RSS feeds.

In searching for a fix for that, I ran into this:

https://github.com/Novik/ruTorrent/issues/1247#issuecomment-282255372

It also pointed to an issue with Snoopy. So I reverted back to an older version of Snoopy.

And voila, it fixed both the RSS issue, and this issue.

So there is definitely an issue with the Snoopy class.

Novik commented 7 years ago

I revert recent changes in Snoopy class, try to check result now, please.

Bl0ub commented 7 years ago

No, this version is not working as well. It throw an Error loading feed when trying to load an rss feed. The only one which works for now is this one : http://s000.tinyupload.com/download.php?file_id=55052263713770627460&t=5505226371377062746065676

passthestyles commented 7 years ago

@Novik Thanks. This looks to fix the issue too. I was using the commit @ https://github.com/Novik/ruTorrent/commit/36cdfc4cd92b5903c2f8bc8981ef05d3380d5b02 for my changes. But looks like the http1.0 flag was the culprit.

Something to note: If I run the command manually in command line, with the "-0" flag, it works. But php seems to error out with the error 56.

Wouldn't using PHP's builtin curl commands (https://secure.php.net/manual/en/book.curl.php) be better to use here? It would seem that the problem is between PHP executing the command, rather than the curl command itself (since it runs in command line fine, just not when PHP executes it)

@Bl0ub Are you sure? This still loads the SSL RSS Feeds. Also, make sure you aren't running into it caching either (sometimes, I would make changes to Snoopy, but it would still cache the old version)

laitosko commented 7 years ago

Tried both, changes by @Novik and the one linked by @Bl0ub. Can't get RSS feeds to load URL's anymore. With curl I am able to obtain feed content.

Any ideas? Just did all from scratch, with 0.9.6/0.13.6 w/ v3.8

tuxity commented 7 years ago

I had exactly the same problem, and the issue wasn't related to rutorrent. My /tmp partition was full 😕

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.