-
-
Notifications
You must be signed in to change notification settings - Fork 629
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
Client requests indefinitely on storage write errors #889
Comments
Noticed some reddit posts about it, just wanted to post here for reference. I personally have also noticed this types of peer leeching from me infinitely, and the transferred data far exceeded the size of the torrent. Apparently it appears on many Anime torrents, both Chinese subs and from English sites. I know it might not be a problem with this library but rather some downstream user, but still wanted to report here as I'm not sure what kind of users are using this client. Only a guess: It could be some type of shared IP/seedbox/debrid/cloud storage service, (for example 115 NetDisk or PikPak) using Go in the backend, and somehow misconfigured the client so it leeches forever but does not actually save any data or make any progress. If it helps, the IP leeching from me is from 1.180.0.0/14 Chinese Explaination for OP:看起来有不少人遇到这个问题,我截个图汇报一下,不一定是这个客户端问题,猜测是某个离线下载服务部署出了问题,等更多人来汇报的话看看能不能解决吧 |
Thanks for the report. A few years ago there was a bug that could result in downloading continuously. I think your guesses about broken seedboxes or bad downstream clients are accurate. I'll check into specific details when I get time, cheers. |
I already baned these names called anacrolix bt clients. |
The same here. It consumed hundreds GB of my qbittorrent upload traffic. |
Please do not ban entire clients (at least include a version in case it's related to a bug). It's heavy handed, and easy to spoof. It's easy for users and developers to react by not revealing their true client names and versions and the situation is worse for everyone. Ban IP addresses that have bad actors, and if you do ban a client, be sure to include the full client string. |
Just to clarify, the bug I mentioned I believe was when the user ran out of disk space, it would retry indefinitely in a loop. It reports an error message but if the user has spun up a client and is not paying attention it could cause this. It was fixed a long time ago if it is indeed that issue. The client name that people are reporting is concerning. It doesn't appear to be a downstream client, they seem to be running the provided demo utility. The code that derives this is Line 42 in 7308c68
|
该问题我也有遇到,我已经屏蔽了1.180.X.X这个IP段 |
I will unblock them as soon as this bug gets fixed. |
I didn't have any luck with this link. I did see a lot of peers in China but most of them disappeared quickly. Nobody wanted to download (qBitTorrent or anacrolix/torrent). I wonder if the peers in question are targeting users in specific regions. |
I've also encountered a similar issue. I use qBitTorrent, and it detected a client called anacrolix/torrent that kept downloading continuously, even completing over 400 downloads of the same file in one night. 我也遇到了类似的问题,我使用qBitTorrent,检测到有个名叫anacrolix/torrent的客户端一直在下载,甚至一晚上对同一个文件完整地下载了400多次。 |
same problem. some active resources:
|
I plan to use this regular expression and block the relevant client if it matches. I applied an aggressive version matching because I wasn't quite sure what the next version would be. Regex: "anacrolix/torrent v?([0-1].([0-9]|[0-3][0-9]).[0-9]?[0-9]?|unknown)" |
Bad news for anyone wanting to ban a specific version, I got a case of a client using the devel one. And a previous comment also show this version: #889 (comment) bugged peer ip is 1.180.25.97 |
@tuxayo I think it's fine to ban that exact string on your own torrent client installation ( |
Just ban single IP doesn't work, I recognized several different IP from |
1. Ban the client "github.com/anacrolix/torrent (devel) (anacrolix/torrent unknown)" (anacrolix/torrent#889)
请问在 qBittorrent Enhanced Edition 里面要怎么屏蔽 IP 段,虽然有过滤文件可以选择,但那个过滤文件不知道该如何编写 |
I encountered the same problem yesterday. It's crazy, when I found the problem, this bad client had downloaded more than 300GB data. 我遇到了相同的问题,当我发现问题时,这个客户端已经下载了超过300GB的数据。 |
Here are some IPs I encountered: |
Create a TXT file, write these lines, and rename it to
|
I've added a likely fix (bdcb6c9, on master) for errors during download that might be the cause of this problem for the bad peers people are seeing. It will be included in v1.53.3 and above. Due to golang/go#50603, users running the If anyone is testing anacrolix/torrent for this issue, please try with the fix above. Unfortunately existing clones of anacrolix/torrent out there will need to be updated to include the fix, if you operate one of those, please give it a try. |
请问ipv6的屏蔽规则如何编写 May I ask how to write the blocking rules for IPv6 |
Still doesn't work for devel builds of main however. #889 (comment)
By any chance, does anyone know how to find which seedbox provider (or something like that) operates the clients at 1.180.24.0/24 & co? To tell them to upgrade, who knows what is their update schedule. |
你这么一说,我就觉得应该是某些人因为宽带上传流量太大被运营商怀疑PCDN后清退,怀恨在心蓄意制造有BUG的客户端,想拉其他正常用户下水,让运营商乱封号 |
This comment was marked as resolved.
This comment was marked as resolved.
如果是这样的话,那这个issue就无解了 |
我昨天应该也出现了类似的问题,当时瞄了眼没注意,很奇怪为什么还在下载 |
大概率就是这样了,因为这个行为已经持续超过一个星期了,就算是BUG也早该发现了吧。真特么坏种 |
这些 IP 段到底是偶然还是必然是一个不可知问题. Whether these IP segments are accidental or inevitable is an unknowable question. As far as I'm concerned, I'm not willing to believe that blocking IP segments is a sustainable approach. It can be said that this can only be a temporary approach, because you can't guarantee that there won't be more and more such clients. As this issue arises, some qbittorrent client blockers have recently been updated to address this issue either by name or mechanism. Alternatively, you can also try qBittorrent-Enhanced-Edition, which is a forked version of qbittorrent. |
在工信部官网查询ip地址信息,只能查到是家庭宽带,并不是服务器使用的,没有什么有参考价值的信息 要是有心人可以通过ip预留的电话去滥用报告试试,应该能查出来是谁在乱搞 不过我刚刚测试了,百度网盘这几天确实重新开放了离线下载,实测不是百度网盘,百度网盘的ip地址是 113.24.224.46 端口2002,不要错怪百度了 |
There are chances the issue will be fix: #889 (comment) So not reason to have more and more problematic peers. |
The contact information from Whois usually points to ISP or something like that. So I won't expect contacting them will do any help. While I believe this can just cases where people left some unattended downloader that happens to encounter the bug mentioned here. (Believe me, it is not until I came across this issue that I noticed those leechers are taking ~40MB/s bandwidth from me)
Those ip addresses are supposed to be located in Mainland China, where not many seed box services are available.
Well, if this is just due to the bug just got fixed here, appearence of new such leechers won't be a concern. Those misbehaving client should restore as they are rolling to newer release of this library. While if this is some kind of deliberate attack to the bittorrent network, banning ip range would be the best approach until bittorrent software authors implement a way to address such malicious behavior. Since it is very easy to spoof things like client id, if you have the intension. |
@Moredistant it may be a genuine bug. I do know that anacrolix/torrent is popular in China, but I don't know why a ton of servers there would be running the demo client, that's odd. |
Per #889 (comment), please upgrade to If you are a BitTorrent user affected by this issue, please do one or more of these things, in descending order of preference:
I have created a discussion to track further information so this issue can focus on the fixes to anacrolix/torrent. |
The issue relating to infinite requests on storage write errors is resolved. The ongoing leeching issue by bad peers is in the discussion. If anacrolix/torrent adds defenses against that behaviour (assuming it doesn't already) it will be a separate issue. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Please keep discussion of workarounds for other clients to #891. |
Resolution
See #889 (comment), and continue the discussion at #891
I am a qBittorrent user. To keep alive some torrents, I always keeps my qBittorrent online.
Recently, I found my upload stream reaches much higher than usual. Then I found some peers using github.com/anacrolix/torrent, and they request several torrents continously, brings upload stream hundreds times than torrents' itself.
In my opinion, this should be a bug on github.com/anacrolix/torrent, which leads to infinity request to peers.
Wish you can found it.
For example:
magnet:?xt=urn:btih:e7268b2b2a4c6457ba0c4e40f35b206a08b5cc39&dn=%5BNekomoe%20kissaten%5D%5BAyakashi%20Triangle%5D%5B06%5D%5B1080p%5D%5BCHS%5D.mp4&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80%2Fannounce
In this torrent, some IP always request this.
--- Chinese Version, I am sorry that some words is beyond me. ----
我使用qBittorrent并长期保种。
最近我发现qBittorrent的上传流量明显高于平时,并且我发现有些使用github.com/anacrolix/torrent的用户在持续请求个别种子,产生了几百倍于其大小的上传流量。
我想github.com/anacrolix/torrent一定有BUG,使得用户持续对其它用户发起请求。
希望能尽快解决这个问题。
The text was updated successfully, but these errors were encountered: