qbittorrent / qBittorrent

qBittorrent BitTorrent client
https://www.qbittorrent.org
Other
28.21k stars 3.97k forks source link

UDP Tracker says "The requested name is valid, but no data of the requested type was found" #15319

Closed RandomInhabitant closed 3 years ago

RandomInhabitant commented 3 years ago

Bug report

Checklist

Description

qBittorrent info and operating system(s)

If on Linux, libtorrent-rasterbar and Qt versions

What is the problem

The torrent won't download. uTorrent 3.5.5 is able to download the torrent from this magnet link.

magnet:?xt=urn:btih:cece8d8aa4ed47ae868309607e38c6016e1e6149&dn=Roswell.New.Mexico.S03E03.1080p.HEVC.x265-MeGusta%5beztv.re%5d.mkv%5beztv%5d&tr=udp%3a%2f%2ftracker.coppersurfer.tk%3a80&tr=udp%3a%2f%2fglotorrents.pw%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.opentrackr.org%3a1337%2fannounce&tr=udp%3a%2f%2fexodus.desync.com%3a6969

Detailed steps to reproduce the problem

  1. magnet:?xt=urn:btih:cece8d8aa4ed47ae868309607e38c6016e1e6149&dn=Roswell.New.Mexico.S03E03.1080p.HEVC.x265-MeGusta%5beztv.re%5d.mkv%5beztv%5d&tr=udp%3a%2f%2ftracker.coppersurfer.tk%3a80&tr=udp%3a%2f%2fglotorrents.pw%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.opentrackr.org%3a1337%2fannounce&tr=udp%3a%2f%2fexodus.desync.com%3a6969
  2. Check Trackers, all 4 "Not working", 3 "timed out" 1: udp://tracker.opentrackr.org:1337/announce Message: "The requested name is valid, but no data of the requested type was found"
  3. Try the same Magnet Link with uTorrent 3.5.5 and it works using udp://tracker.opentrackr.org:1337/announce The other 3 trackers also timeout in uTorrent (same behavior as qBittorrent v4.3.7)

What is the expected behavior

Provide the tracker with a "data type" which will work, so content will download.

Extra info (if any)

Using PIA (Private Internet Access) with Wireguard

Attachments

thalieht commented 3 years ago
  1. Try the same Magnet Link with uTorrent 3.5.5 and it works using udp://tracker.opentrackr.org:1337/announce The other 3 trackers also timeout in uTorrent (same behavior as qBittorrent v4.3.7)

I get almost the same result with 4.4.0beta2 i.e. last two trackers working. EDIT: Just tested 4.3.7 with the same result.

Evernow commented 3 years ago

image

Seems to be working here.

RandomInhabitant commented 3 years ago

I'm now running qBittorrent v4.3.8 and seeing the same issue with trackers not quite working

Here is the problem magnet link: magnet:?xt=urn:btih:c1d7c3deb799767cd6f089fd86474f7193593118&dn=Roswell.New.Mexico.S03E07.1080p.HEVC.x265-MeGusta%5beztv.re%5d.mkv%5beztv%5d&tr=udp%3a%2f%2ftracker.coppersurfer.tk%3a80&tr=udp%3a%2f%2fglotorrents.pw%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.opentrackr.org%3a1337%2fannounce&tr=udp%3a%2f%2fexodus.desync.com%3a6969

qBittorrent v4.3.8, Trackers don't work (this is a case which doesn't work, while others do work): image

And when I try uTorrent 3.5.5 Beta (build 45604) on the same magnet link, Trackers "work": image

thalieht commented 3 years ago

qBittorrent v4.3.8, Trackers don't work (this is a case which doesn't work, while others do work):

4.4.0beta3 and 4.3.8, both work the same for me as your utorrent pic.

RandomInhabitant commented 3 years ago

qBittorrent v4.3.8, Trackers don't work (this is a case which doesn't work, while others do work):

4.4.0beta3 and 4.3.8, both work the same for me as your utorrent pic.

There are several pieces to this puzzle. I am using PIA VPN with Wireguard. When I have time I'll switch from Wireguard to Socks5 to see if this makes a difference. I prefer Wireguard because it is much quicker and smaller than Socks. Running without VPN isn't an option.

RandomInhabitant commented 3 years ago

When I add a PIA SOCK5 Proxy to my PIA Wireguard setup then downloads proceed. My best guess at this moment is some critical tracker port or other activity is blocked by a Wireguard only setup. When I can get around to it, I'll file a bug report with this information at PIA, see what their thoughts are on this issue.

RandomInhabitant commented 3 years ago

Haven't talked to PIA yet, however, thought I'd point out uTorrent is set up to use the same PIA Socks5 proxy. The difference is uTorrent is working and BitTorrent isn't while using the same Socks5 proxy. Here is the latest Torrent which isn't working.

Another interesting point is once uTorrent has finished downloading, I can ask BitTorrent to "Force Recheck" on the file, and even without Trackers, BitTorrent is able to check and change state to "seeding".

image

magnet:?xt=urn:btih:87825fd5fc9e86021944da8933a3fa0b760d2c67&dn=Foundation.S01E01.1080p.HEVC.x265-MeGusta%5beztv.re%5d.mkv&tr=udp%3a%2f%2ftracker.coppersurfer.tk%3a6969&tr=udp%3a%2f%2ftracker.opentrackr.org%3a1337%2fannounce&tr=udp%3a%2f%2ftorrent.gresille.org%3a80%2fannounce&tr=udp%3a%2f%2f9.rarbg.me%3a2710%2fannounce&tr=udp%3a%2f%2fp4p.arenabg.com%3a1337&tr=udp%3a%2f%2ftracker.internetwarriors.net%3a1337

When I turn off PIA Wireguard for a few seconds and ask for a "Force Tracker Reannounce", I actually get one of the trackers: image

This is starting to look like a Wireguard/PIA issue.

RandomInhabitant commented 3 years ago

BTW, Trackers finally did appear in Bittorrent with WireGuard VPN thought PIA: image

FranciscoPombal commented 3 years ago

@RandomInhabitant

I haven't tried reproducing with your exact setup, but I can't reproduce with just a regular connection.

Regardless, the first 2 trackers are down/don't exist anymore (see here, one of them isn't even listed here). I was able to connect just fine to the other 2.

You should also still be able to finish the torrent without connecting to any trackers, thanks to the DHT, unless you've disabled it or if there is another problem with connecting to it.

BTW, Trackers finally did appear in Bittorrent with WireGuard VPN thought PIA:

So this is fixed right?

RandomInhabitant commented 3 years ago

I can't call this "fixed", but have enough smoking guns to agree with your "non-repro".

Here is what happened tonight and I spent 3 hours looking at this issue: Trackers weren't working again. I decided to use a wired connection and disable PIA... No improvement or operation. I tried Wifi, again no luck. Requested qBittorrent v4.3.8 use a different Random port. Without PIA, nothing worked on all WiFi or ethernet connections Reenabled PIA, pointed qBittorrent to the PIA adapter wgpia0 with WireGuard, the specific PIA Wireguard IP available address, and the new random port, then suddenly everything resumed working pretty much as you reported, trackers found immediately, downloads/uploads resumed at the maximum rate my connection allows, exactly the way I want qBittorrent to operate.

I still haven't learned enough to explain why it's working now, but it is. The new random port assignment is the only thing that really changed.

So, yes, other than to reproduce my PIA/WireGuard setup to resume testing, there is nothing I can point to in qBittorrent to modify/work on. Thank you for your time and attention.

FranciscoPombal commented 3 years ago

OK, I will close this but will not lock it. In case you're able to trace this back to a problem in qBittorrent/libtorrent that can be fixed, please post about it and feel free to re-open. Thanks.

RandomInhabitant commented 3 years ago

Not finding trackers was again an issue this evening. I tried many "new" random ports to solve the problem to no avail.

I finally shut down PIA and qBittorrent. Then restarted PIA, then qBittorrent. I had to go back into qBittorrent and set the only IP address available from PIA/Wireguard, then restart qBittorrent so all torrents would query trackers and start as needed through PIA/Wireguard. Then everything worked again.

I'm posting this because it's another smoking gun that suggests this problem is in PIA. After running for some time, PIA seems to block tracker information requested from qBittorrent. Restarting PIA seemed to clear the issue. Not a qBittorrent issue, so no need to reopen this issue.