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

Ktorrent hangs without doing anything, apparently

Tags: None
(comma "," separated)
bogdanbiv
Registered Member
Posts
4
Karma
0
OS
Please help me get my Ktorrent app, back! I like very much!
Currently Ktorrent hangs just after starting -- with 100% usage of 1 CPU core, RAM usage is stable at ~ 99MB.


When this happened first time I had a large amount of torrents uploading (10 at a time - most of the time only 2 were actually uploading with more than 100KB/s). Also I have selected > 6 torrents of these to use "superseeding". This setting appeared to have no effect at the time, however after I have rebooted the machine and started Ktorrent again it started to hang.

So far I have tried to move torrent files from _~/.local/share/ktorrent_ to _~/.local/share/ktorrent.bak_ so that Ktorrent should start without any load -- has no effect though.

Actual command ktorrent starts with (from ps aux):
`/usr/sbin/ktorrent -session 109599736b000152226468400000010210011_1522264685_263046`

Log file from /home/bogdanbiv/.local/share/ktorrent/log:

Code: Select all
mie. mar. 28 22:21:37 2018: Bound to ::
mie. mar. 28 22:21:37 2018: UTP: bound to ::
mie. mar. 28 22:21:37 2018: Bound to 0.0.0.0
mie. mar. 28 22:21:37 2018: UTP: bound to 0.0.0.0
mie. mar. 28 22:21:37 2018: Bound to UDP port 6881
mie. mar. 28 22:21:37 2018: Bound to ::
mie. mar. 28 22:21:37 2018: Cannot bind to port 0.0.0.0:6881 : Address already in use
mie. mar. 28 22:21:37 2018: Bound to TCP port 6881
mie. mar. 28 22:21:37 2018: Setting custom ip to _PUBLICIP_
mie. mar. 28 22:21:37 2018: Bound to ::
mie. mar. 28 22:21:37 2018: Bound to 0.0.0.0
mie. mar. 28 22:21:37 2018: Doing tracker request to url : udp://
mie. mar. 28 22:21:37 2018: Doing tracker request to url : udp://
mie. mar. 28 22:21:37 2018: Doing tracker request to url : udp://
mie. mar. 28 22:21:37 2018: Doing tracker request to url : udp:/
mie. mar. 28 22:21:37 2018: Doing tracker request to url : udp://
mie. mar. 28 22:21:37 2018: Doing tracker request to url : udp://
mie. mar. 28 22:21:37 2018: Doing tracker request to url : udp://
mie. mar. 28 22:21:37 2018: Doing tracker request to url : udp://
mie. mar. 28 22:21:37 2018: Doing tracker request to url (via KIO): http://
mie. mar. 28 22:21:37 2018: Doing tracker request to url : udp://
mie. mar. 28 22:21:38 2018: Downloading GeoIP database: http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
mie. mar. 28 22:21:39 2018: Qt Warning: libpng warning: iCCP: known incorrect sRGB profile
mie. mar. 28 22:21:39 2018: Qt Warning: libpng warning: iCCP: known incorrect sRGB profile
mie. mar. 28 22:21:39 2018: Loading home page from /usr/share/ktorrent/search/home/home.html
mie. mar. 28 22:21:39 2018: Starting minimized
mie. mar. 28 22:21:39 2018: Started update timer
mie. mar. 28 22:21:39 2018: Suppressing sleep


Could be relevant:

Code: Select all
$ pacman -Si ktorrent
Repository      : extra
Name            : ktorrent
Version         : 5.1.0-2
Description     : A powerful BitTorrent client for KDE

KDE Frameworks 5.44.0
Qt 5.10.1 (built against 5.10.1)
The xcb windowing system


UPDATE

I uninstalled and reinstalled the ktorrent package
The result is unchanged, Ktorrent keeps trying to bind to 6881 (twice I guess and trips over itself) and the trackers are loaded as before, still hangs:

mie. mar. 28 22:21:37 2018: Cannot bind to port 0.0.0.0:6881 : Address already in use
mie. mar. 28 22:21:37 2018: Doing tracker request to url (via KIO): http://
mie. mar. 28 22:21:37 2018: Doing tracker request to url : udp://

I have ran lsof -p `pgrep ktorrent`, here is the output: https://pastebin.com/embed_js/Xiua8U2t
So I guess the port binding and the trackers are loaded from a runtime generated config file which is read and then quickly closed before I could capture it via lsof.
Or, perhaps this configuration is read by another process?
/UPDATE

UPDATE2
Ktorrent appears to be functional now, apparently I forgot to delete ~/.config/ktorrentrc
Also deleted, again, ~/.local/share/ktorrent
/UPDATE2

Please help get my torrent app back!
mastizada
Registered Member
Posts
1
Karma
0
Deleting the
Code: Select all
~/.config/ktorrentrc
file solved it for me.
Glen
Registered Member
Posts
2
Karma
0
Thanks, this fixed my problem as well! I guess there really is something to be said for RTFM! :P
Thanks again!


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]