This forum has been archived. All content is frozen. Please use KDE Discuss instead.

3.2 Release still has "Stalled" bug

Tags: None
(comma "," separated)
imported4-Erik
Registered Member
Posts
28
Karma
0

3.2 Release still has "Stalled" bug

Sun Feb 15, 2009 11:42 pm
I am still getting the stalled error with 3.2 release that was in RC1. I have seen different error messages from connection to tracker is broken and one error about bad data. A restart of the client is necessary to get the file transferring.

Thank you.

KDE 4.20/Kubuntu 8.10
George
Moderator
Posts
5421
Karma
1
Erik wrote:I am still getting the stalled error with 3.2 release that was in RC1. I have seen different error messages from connection to tracker is broken and one error about bad data. A restart of the client is necessary to get the file transferring.


The stalled bug has been fixed, I'm pretty certain of that.

Do you get connected to peers ? If so are they all leechers who have nothing of the torrent ?
imported4-Erik
Registered Member
Posts
28
Karma
0

Mon Feb 16, 2009 4:26 pm
After downloading a torrent and it opening in ktorrent is when it stalls. It seems to have some problem communicating with the tracker. A restart of the client and everything works fine. It does connect with peers after that.

Thanks.
Kalessin
Registered Member
Posts
78
Karma
0

Wed Feb 18, 2009 9:53 pm
I've been seeing problems like this with 3.1.6 and now 3.2. That is, I frequently end up with torrents declaring invalid data from tracker or connection broken. Restarting ktorrent does appear to fix it (at least it did the last time that I tried it), but the problem always seems to pop up again eventually. It happens primarily with one tracker which I have quite a few torrents from, but my other computer (which is using ktorrent 2.2.8 on a separate connection) never has this problem, so I'm not convinced that it's the tracker itself that's the problem. Unfortunately, I have found no pattern as to how it pops up. I was hoping that the issue would go away with 3.2, but no such luck.

I have no idea if this has any relation to the stalled bug from before. The torrents download and upload just fine as long as they have peers, but once they start start reporting in the announce box that they have invalid data from tracker or that the connection is broken, all the torrents with that tracker - whether they're new once the problem starts or have been running for a while - cease to be able to communicate properly with the tracker. So, I don't really have a problem with torrents stalling so much as being unable to talk with the tracker properly. I don't know if this happens with other trackers or not since most of my torrents are from the same tracker and I haven't paid adequate attention to determine if it's tracker specific. I'll have to take a look at that the next time that the problem crops up.
Kalessin
Registered Member
Posts
78
Karma
0

Wed Feb 18, 2009 11:57 pm
Well, the problem just popped up again. At the moment, most of the time that a torrent announces, it either complains about the connection to the host being broken or there being invalid data from the tracker. Interestingly enough, the torrents from private trackers are almost always having the problem (once in a while one will announce properly but mostly not) but the public trackers aren't having any trouble. Also, restarting ktorrent didn't do anything this time. The problem is still there. However, most of the torrents managed to announce correctly when ktorrent first started up again. It was only upon further announces that it started failing again.
anne_on_a_moose
Registered Member
Posts
28
Karma
0
OS

Thu Feb 19, 2009 1:00 am
I'm getting the same problem with version 3.2 as well.

Currently I have 4 downloads, all from Demonoid. 1 of them is downloading fine, one keeps alternating between "stalled" and downloading 2 B/s, the other 2 are "stalled" and say the connection to the host is broken.

I have the same behavior with torrents I've uploaded and am seeding as well.

I've seen it happen with torrents from isohunt, piratebay, demonoid, etc. and there doesn't seem to be any common factor.
George
Moderator
Posts
5421
Karma
1

Thu Feb 19, 2009 10:27 am
Post a wireshark trace of the tracker communication, so that I can see what is going on.
imported4-Erik
Registered Member
Posts
28
Karma
0

Fri Feb 20, 2009 5:17 am
George wrote:Post a wireshark trace of the tracker communication, so that I can see what is going on.


I don't even know what that means, sorry. I am getting a lot of "connection to host tracker.xxx.com is broken." I never had that error before. It has to be the client, because I have 40 torrents to the same tracker, pretty much all announcing at the same time, and it only shows up on one or two of the torrent. I have been using ktorrent for over two years, never got this error before.
George
Moderator
Posts
5421
Karma
1

Sat Feb 21, 2009 12:04 pm
Erik wrote:
George wrote:Post a wireshark trace of the tracker communication, so that I can see what is going on.



Wireshark is a program to capture packets on network interfaces.

I don't even know what that means, sorry. I am getting a lot of "connection to host tracker.xxx.com is broken." I never had that error before. It has to be the client, because I have 40 torrents to the same tracker, pretty much all announcing at the same time, and it only shows up on one or two of the torrent. I have been using ktorrent for over two years, never got this error before.


Connection to host is broken, just means that the connection got closed before the announce could be completed, it is unlikely that this is a KT problem, it is probably the tracker closing the connection. Which is why I need a wireshark trace, so I can see what exactly is happening.
George
Moderator
Posts
5421
Karma
1

Wed Feb 25, 2009 5:39 pm
OK, I had a look at your wireshark trace. Here is an example trace :

This is the request which KT sends :
GET /1e76453bfc9e489accb509e98dd4b3fc/announce.php?peer_id=-KT3200-n6aracdA0enA&port=62001&uploaded=0&downloaded=0&left=0&compact=1&numwant=100&key=1538629027&info_hash=z%fa%db%5d%1e%ffKS%a7%8c%e6%0f%02%97%be%0f%d5%98%86%eb HTTP/1.1
Host: tracker.boxtorrents.com:2710
Connection: Keep-Alive
User-Agent: KTorrent/3.2.0
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Accept-Encoding: x-gzip, x-deflate, gzip, deflate



This is the reply :
HTTP/1.0 200 OK

d8:completei39e10:incompletei4e8:intervali1800e12:min intervali1800e5:peers24:Ev... F.S...L..Lo.D?.x/.e


The problem here is that this is invalid HTTP, if the response contains content, then the Content-Length field must be present in the header (see http://www.faqs.org/rfcs/rfc1945.html section 7.2). This is not the case here, only the HTTP status line in the header is returned.

So this tracker is returning invalid HTTP, and the KIO library (which handles the HTTP request), does not accept this.
George
Moderator
Posts
5421
Karma
1

Wed Feb 25, 2009 5:52 pm
I downloaded a torrent from boxtorrents.com, and when I try them they work.

Looking at wireshark I get the same behavior as in your wireshark trace, but this time the invalid reply is accepted by KIO.
Kalessin
Registered Member
Posts
78
Karma
0

Thu Feb 26, 2009 1:29 am
George wrote:I downloaded a torrent from boxtorrents.com, and when I try them they work.

Looking at wireshark I get the same behavior as in your wireshark trace, but this time the invalid reply is accepted by KIO.


Well, that makes it sound like Boxtorrents isn't doing quite what it's supposed to and that KIO can't consistently decide what to do about it. The reason that I'm not seeing this issue on my box with Ktorrent 2.2.8 may be because KIO in KDE 3.5 doesn't act the same way as KIO in KDE 4.
BigJim
Registered Member
Posts
46
Karma
0

Mon Mar 02, 2009 9:41 pm
I got "Invalid response from tracker" when trying to access open.tracker.thepiratebay.org, then noticed KTorrent was reaching it via IPv6 and changed it to prefer IPv4, which instantly worked.
imported4-Tomasu
Registered Member
Posts
302
Karma
0

Mon Mar 09, 2009 9:06 am
I've been getting the "connection to tracker broken" on boxtorrents as well, mostly though only after making several announces. I _think_ they might ban people for a time if they announce more than 4 times an hour (they have a rule, max two torrents at any one time, and each torrent is set to auto announce 30min later).

But I can't be certain they are actually doing that...
Non_E
Registered Member
Posts
7
Karma
0

Mon Mar 09, 2009 6:12 pm
BigJim wrote:I got "Invalid response from tracker" when trying to access open.tracker.thepiratebay.org, then noticed KTorrent was reaching it via IPv6 and changed it to prefer IPv4, which instantly worked.


Yes! That is definitely the problem I have. Still, could someone help me how do I set ktorrent to prefer ipv4 without disabling ipv6 entirely?


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot]