Bug 244475 - KTorrent doesn't seed as other clients do
Summary: KTorrent doesn't seed as other clients do
Status: RESOLVED FIXED
Alias: None
Product: ktorrent
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Joris Guisson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-13 12:22 UTC by Francesco Frassinelli
Modified: 2016-02-02 20:14 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
KTorrent log (33.71 KB, text/plain)
2010-07-14 13:11 UTC, Francesco Frassinelli
Details
KTorrent log 2 (4.25 KB, text/plain)
2010-07-16 12:03 UTC, Francesco Frassinelli
Details
KTorrent log 3 (5.05 KB, application/octet-stream)
2010-07-16 12:04 UTC, Francesco Frassinelli
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Francesco Frassinelli 2010-07-13 12:22:59 UTC
Version:           unspecified (using Devel) 
OS:                Linux

I noticed this when I created a new torrent file. When KTorrent start to seed it, I try to download with another client on another computer (also I've tested it with some friends), but the download doesn't start. Actually I've found two workarounds:

1. Open the .torrent file with another client (I've tested Deluge and aria2, and they work).
2. Every time that a client want to download my file, I should stop the torrent, resume it, and then upgrade the tracker status. This is not very useful.

I don't know if it's related, but I've noticed that also DHT torrent doesn't seed correctly.
Switching upnp extension on and off, or setting my pc on DMZ, or opening 6881-6999 and 4444-4445 ports, don't change this behaviour (also, other programs work correcly, see above).
Also, I don't know if this problem happens only when KTorrent makes a new torrent or also when it simply seeding, but I suppose that it could be not related with the creation of a new torrent, because:

1. When I remove the torrent from KTorrent, I close KTorrent, then I reopen the torrent file with KTorrent, the bug persists.
2. Other bittorrent clients, usually seed more of KTorrent (I've tried to download Mandriva lastest livecd).

Reproducible: Always

Steps to Reproduce:
1. Create a new torrent (I use http://tracker.mytorrenttracker.com:6099/announce)
2. Open the torrent file with another torrent client

Actual Results:  
The download doesn't start.

Expected Results:  
The download should starts.

If you seed the file using the same torrent, but over another client (I've tested Deluge and aria2), it works.
Comment 1 Joris Guisson 2010-07-13 18:05:57 UTC
Version ?
Comment 2 Francesco Frassinelli 2010-07-13 18:10:56 UTC
KTorrent 4.0.2, over KDE 4.4.92 (KDE 4.5 RC2) on a Fedora Rawhide (i686).
Comment 3 Joris Guisson 2010-07-14 12:29:15 UTC
It sounds to me that you are not getting any incoming connections. Can you post your log file of a situation like this ? The log file is ~/.kde/share/apps/ktorrent/log
Comment 4 Francesco Frassinelli 2010-07-14 13:11:29 UTC
Created attachment 49145 [details]
KTorrent log
Comment 5 Francesco Frassinelli 2010-07-14 13:13:17 UTC
What I've done:
1. I deleted ~/.kde/share/apps/ktorrent/, so everything is clean
2. I've started KTorrent
3. I've created a new torrent
4. I've started (on the same host) aria2
5. Nothing happened
6. I've refreshed the tracker (now KTorrent can see the leecher)
7. Nothing happened
8. I've closed aria2
9. I've closed KTorrent

Details:
1. 87.5.154.163 is my ip
2. http://tracker.openbittorrent.com/announce and udp://tracker.openbittorrent.com:80/announce are the tracker I used (I don't know why but KTorrent seems to give me always a timeout error on udp trackers)
Comment 6 Joris Guisson 2010-07-15 10:34:08 UTC
You are getting incoming connections looking at your log.

I see attempts of ktorrent trying to connect to itself the first time (logical at that moment KT is the only peer), those connections are dropped.

There are two incoming connections which are probably not from ktorrent. Authentication fails on both of them. Could be encryption settings. Can you check the encryption settings of aria2 ?
Comment 7 Francesco Frassinelli 2010-07-15 16:57:30 UTC
I didn't specify any encryption setting on aria2. Man says:

--bt-min-crypto-level=plain|arc4

    Set minimum level of encryption method. If several encryption methods are provided by a peer, aria2 chooses the lowest one which satisfies the given level. Default: plain

This is what happened:
1. aria2 tried to connect to KTorrent with the non-default ecryption method (--bt-min-crypto-level=arc4), but nothing happened, so I've quitted it
2. deluge trying to connecting to KTorrent: everything is ok, so I've interrupted the download and I've quitted it, in crypto-only mode
3. Transmission on another pc (it worked), in crypto-only mode
4. I've allowed KTorrent to use non-encrypted streams, and I've used aria2, with no successful
5. Another transmission client on another pc seems ok.

So... Seems that only aria2 gives problem with KTorrent, and sometimes Transmission needs some extra-time in order to start. It could be an aria2 bug.
Comment 8 Francesco Frassinelli 2010-07-16 11:59:34 UTC
On another pc I've KTorrent 4.0.1, over Fedora 13 x86_64 (stable, not rawhide). Same problem with Transmission. Initially, encryption was disabled on KTorrent, and allowed in Transmission, and nothing worked. Then, I've enabled KTorrent encryption, but the situation was the same. Both clients uses upnp. I've tried another time with aria2 (on the same pc), but it didn't work.

I'll attach the log.
Comment 9 Francesco Frassinelli 2010-07-16 12:03:23 UTC
Created attachment 49207 [details]
KTorrent log 2
Comment 10 Francesco Frassinelli 2010-07-16 12:04:15 UTC
Created attachment 49208 [details]
KTorrent log 3
Comment 11 Francesco Frassinelli 2010-07-16 14:47:55 UTC
Now, I've upgraded KTorrent on my laptop to version 4.0.2, and I'm downloading OpenSUSE 11.3 LiveCD KDE 4 i686. KTorrent upload rate is near 0. The log file is litterally full of message like:

ven lug 16 14:42:01 2010: Authentication to [ip] : failure

When I say "full", I mean that I've about 850 messages like this, from hundreds of different ip. Every minutes another ~100 of this messages appear. At this time, I'm over 1050 messages of this kind. Also there are this kind of messages:

ven lug 16 14:45:23 2010: Error thrown: Illegal token: 65
ven lug 16 14:45:23 2010: Error happened during parsing : Illegal token: 65
[...]
ven lug 16 14:45:23 2010: Timeout occurred

The last one is not related with the tracker.
Comment 12 Joris Guisson 2010-08-22 20:09:31 UTC
What is the status of this bug ? I have no problems with downloading the opensuse live cd with encryption enabled.

As for the autentication failure messages, that is pretty normal, seeing that most people run with encryption off.
Comment 13 Francesco Frassinelli 2010-08-23 14:12:35 UTC
I can't provide you other information until the end of semptember, because I'm on holiday. I suggest you to try to create a new torrent and then download it with another client (I've not tested KTorrent - KTorrent download), because it didn't work for me (as you can see at the beginning of this bug report).
I'll do more tests in order to verify if it depends on encryption, but I would like to remember that in my previous tests I've set KTorrent in order to allow non-encrypted communications.
Comment 14 Marcel Partap 2010-09-01 15:40:03 UTC
(still not seeding @r1169101)
Comment 15 Joris Guisson 2011-01-11 18:55:16 UTC
This was fixed in the 4.1 branch some time ago
Comment 16 Martin Herkt 2013-11-28 13:53:25 UTC
This bug has NOT been fixed as of KTorrent 4.3.1. Still seeing the same misbehavior on my machines.
Comment 17 Nicolas 2016-01-28 17:11:03 UTC
I have the same problem with v 4.3.1. I know I don't see all the seeds because I only see 1 peer, who receives the file from someone else.
It happened 3 times recently, with different torrents.
Comment 18 Nicolas 2016-02-02 20:14:46 UTC
I solved the problem : uninstall KTorrent, install Transmission, use Transmission. Finally, I see all the available seeds.