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

Tracker connection issues

Tags: None
(comma "," separated)
quasarcannon
Registered Member
Posts
14
Karma
0
OS

Tracker connection issues

Fri Mar 30, 2012 1:07 am
Ktorrent: 4.1.1

My problem started when I was stress-testing a new router right after setting up a torrent proxy in ktorrent then disabling the proxy(too slow).
I loaded about 200 torrents with 200 connections on a 35/35 fios link to stress-test a new ddwrt router for about a day before I could not connect to most trackers anymore. I thought that I might be banned due to over-scrapping, but qBittorrent doesn't have any tracker issues.

At first it was "Cannot connect to tracker localhost" for a few days.
Then it changed to "Timeout on tracker" for another few days.
Then I checked "Do not use KIO for tracker announces", which was unchecked before. Now I get "invalid response from tracker".

This happens to most trackers but not all. The tracker openbittorrent.org consistantly scraps just fine.
Again, qBittorrent scraps all trackers just fine on the same torrents. My router is filled with 0.0.0.0<->0.0.0.0 ESTABLISHED in its NAT table when I leave Ktorrent running for a while.

I moved my ~/.kde/share/config/ktorrent and ~/.kde/share/apps/ktorrent folders to a backup location to allow ktorrent to create new configs to see if my configurations were messing it up. But even with a clean config, the tracker errors didn't change.

All of my ports are forwarded properly. Also, PeerExchange and DHT work fine.

Based on the above information, is there any ideas as to what would cause the trackers not to scrap?
George
Moderator
Posts
5421
Karma
1

Re: Tracker connection issues

Tue Apr 03, 2012 4:15 pm
"Cannot connect to tracker localhost"

That sounds like you have a tracker in your torrent with localhost or 127.0.0.1 as address, which is pointless, because you aren't running a tracker.

Anyway 200 connections on 200 torrents, means you are probably running out of file descriptors, which means you can't open new network connections. Linux is limited to 1024 open file descriptors per process by default. You can increase this, but I would not do that, it can lead to crashes due to a bug in Qt.
quasarcannon
Registered Member
Posts
14
Karma
0
OS

Re: Tracker connection issues

Wed Apr 04, 2012 9:22 am
Hi George, thanks for the reply.

The trackers listed in the UI are as they should be. IE: udp://tracker.openbittorrent.com/80/announce
I thought it might be the IP Filter plugin, but the same behavior happens when it is disabled and I remove the ip_filter and level1.dat files from the ~/.kde/share/apps/ktorrent/ directory.

My max file descriptors is MUCH higher than 1024:
Code: Select all
$ cat /proc/sys/fs/file-max
377910


I think that is stock for 64-bit with ext4 on Kubuntu. But that would be a non-issue in my case because I am only running 3 torrents right now with 20 max global connections. Also, qBittorrent runs parallel just fine on the same torrents. The 200/200 was only for about 24 hours.

What things could I look for that would help us understand the problem?
quasarcannon
Registered Member
Posts
14
Karma
0
OS

Re: Tracker connection issues

Thu Apr 05, 2012 10:38 pm
I have some new information.
Ifconfig shows that I am dropping MANY connections. I would venture to say that those dropped packets are my tracker connections:
Code: Select all
$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:1c:25:18:a2:11 
          inet addr:192.168.1.10  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:397085655 errors:0 dropped:84472 overruns:0 frame:0
          TX packets:706443816 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:64021321463 (64.0 GB)  TX bytes:801507973955 (801.5 GB)
          Interrupt:20 Memory:fe000000-fe020000


Also my dmesg is filled up with the following:
Code: Select all
$ dmesg
[657459.706572] net_ratelimit: 4 callbacks suppressed
[657459.706576] TCP: Possible SYN flooding on port 11710. Sending cookies.
[657459.774171] TCP: Possible SYN flooding on port 11710. Sending cookies.
[657459.852171] TCP: Possible SYN flooding on port 11710. Sending cookies.
[657459.868864] TCP: Possible SYN flooding on port 11710. Sending cookies.
[657461.086529] TCP: Possible SYN flooding on port 11710. Sending cookies.
[657461.106424] TCP: Possible SYN flooding on port 11710. Sending cookies.
[657461.599171] TCP: Possible SYN flooding on port 11710. Sending cookies.


Again, only Ktorrent is having the issue. QBittorrent runs as it should.
George
Moderator
Posts
5421
Karma
1

Re: Tracker connection issues

Mon Apr 09, 2012 7:13 pm
quasarcannon wrote:Hi George, thanks for the reply.

The trackers listed in the UI are as they should be. IE: udp://tracker.openbittorrent.com/80/announce
I thought it might be the IP Filter plugin, but the same behavior happens when it is disabled and I remove the ip_filter and level1.dat files from the ~/.kde/share/apps/ktorrent/ directory.

My max file descriptors is MUCH higher than 1024:
Code: Select all
$ cat /proc/sys/fs/file-max
377910


I think that is stock for 64-bit with ext4 on Kubuntu. But that would be a non-issue in my case because I am only running 3 torrents right now with 20 max global connections. Also, qBittorrent runs parallel just fine on the same torrents. The 200/200 was only for about 24 hours.

What things could I look for that would help us understand the problem?


/proc/sys/fs/file-max is not the per process limit, you can find that with:

ulimit -n
George
Moderator
Posts
5421
Karma
1

Re: Tracker connection issues

Mon Apr 09, 2012 7:16 pm
quasarcannon wrote:I have some new information.
Ifconfig shows that I am dropping MANY connections. I would venture to say that those dropped packets are my tracker connections:
Code: Select all
$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:1c:25:18:a2:11 
          inet addr:192.168.1.10  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:397085655 errors:0 dropped:84472 overruns:0 frame:0
          TX packets:706443816 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:64021321463 (64.0 GB)  TX bytes:801507973955 (801.5 GB)
          Interrupt:20 Memory:fe000000-fe020000


Also my dmesg is filled up with the following:
Code: Select all
$ dmesg
[657459.706572] net_ratelimit: 4 callbacks suppressed
[657459.706576] TCP: Possible SYN flooding on port 11710. Sending cookies.
[657459.774171] TCP: Possible SYN flooding on port 11710. Sending cookies.
[657459.852171] TCP: Possible SYN flooding on port 11710. Sending cookies.
[657459.868864] TCP: Possible SYN flooding on port 11710. Sending cookies.
[657461.086529] TCP: Possible SYN flooding on port 11710. Sending cookies.
[657461.106424] TCP: Possible SYN flooding on port 11710. Sending cookies.
[657461.599171] TCP: Possible SYN flooding on port 11710. Sending cookies.



What is on port 11710 ?
quasarcannon
Registered Member
Posts
14
Karma
0
OS

Re: Tracker connection issues

Mon Apr 09, 2012 10:00 pm
Sorry about that. You are right, my ulimit does show 1024. The port 11710 was my main ktorrent port. My tacker port at the time was 9473, which never showed up in dmesg.

I have since changed my ports to make more sense. Main: 10200, Tracker: 10201, DHT: 10202. qBittorrent- Main:10210.

I also changed my max open files to 4096. (Probably unnecessary)


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]