TVheadend SYN Flood - GUI unresponsive

Hi Folks,

Just done a new fresh install because i got a freeview tv tuner August DVB-T210 which is recognised right away - So no fiddling - Thanks OSMC team.

I installed the tvheadend from the app store and get these errors:

TCP: request_sock_TCP: Possible SYN flooding on port 9982. Sending cookies. Check SNMP counters.
TCP: request_sock_TCP: Possible SYN flooding on port 9981. Sending cookies. Check SNMP counters.

I uninstalled & reinstalled it and the same thing happened - on a fresh install. So i said okay ill compile it myself but that too failed in the end something about hdhomerun tuners.

So im left with this situation and im stuck so anyone any ideas please?

Here is just a tiny bit of output from an extremely large netstat print

tcp 0 0 osmc:39596 osmc:9982 TIME_WAIT timewait (11.66/0/0)
tcp 0 0 osmc:46542 osmc:9982 TIME_WAIT timewait (24.18/0/0)
tcp 0 0 osmc:37438 osmc:9982 TIME_WAIT timewait (1.84/0/0)
tcp 0 0 osmc:45946 osmc:9982 TIME_WAIT timewait (23.62/0/0)
tcp 0 0 osmc:40450 osmc:9982 TIME_WAIT timewait (13.22/0/0)
tcp 0 0 osmc:58100 osmc:9982 TIME_WAIT timewait (49.83/0/0)
tcp 0 0 osmc:57086 osmc:9982 TIME_WAIT timewait (41.89/0/0)
tcp 0 0 osmc:45100 osmc:9982 TIME_WAIT timewait (22.33/0/0)
tcp 0 0 osmc:33122 osmc:9982 TIME_WAIT timewait (55.46/0/0)
tcp 0 0 osmc:39106 osmc:9982 TIME_WAIT timewait (10.77/0/0)
tcp 0 0 osmc:58384 osmc:9982 TIME_WAIT timewait (50.33/0/0)
tcp 0 0 osmc:57858 osmc:9982 TIME_WAIT timewait (49.40/0/0)
tcp 0 0 osmc:40572 osmc:9982 TIME_WAIT timewait (13.44/0/0)
tcp 0 0 osmc:57736 osmc:9982 TIME_WAIT timewait (49.18/0/0)
tcp 0 0 osmc:57654 osmc:9982 TIME_WAIT timewait (49.04/0/0)
tcp 0 0 osmc:58396 osmc:9982 TIME_WAIT timewait (50.35/0/0)
tcp 0 0 osmc:56718 osmc:9982 TIME_WAIT timewait (41.27/0/0)
tcp 0 0 osmc:55014 osmc:9982 TIME_WAIT timewait (38.28/0/0)
tcp 0 0 osmc:37524 osmc:9982 TIME_WAIT timewait (1.99/0/0)
tcp 0 0 osmc:55788 osmc:9982 TIME_WAIT timewait (39.76/0/0)
tcp 0 0 osmc:44866 osmc:9982 TIME_WAIT timewait (21.91/0/0)
tcp 0 0 osmc:40586 osmc:9982 TIME_WAIT timewait (13.47/0/0)
tcp 0 0 osmc:40080 osmc:9982 TIME_WAIT timewait (12.55/0/0)
tcp 0 0 osmc:58254 osmc:9982 TIME_WAIT timewait (50.10/0/0)
tcp 0 0 osmc:46446 osmc:9982 TIME_WAIT timewait (24.09/0/0)
tcp 0 0 osmc:38872 osmc:9982 TIME_WAIT timewait (10.34/0/0)
tcp 0 0 osmc:57962 osmc:9982 TIME_WAIT timewait (49.58/0/0)
tcp 0 0 osmc:44950 osmc:9982 TIME_WAIT timewait (22.05/0/0)
tcp 0 0 osmc:39376 osmc:9982 TIME_WAIT timewait (11.25/0/0)
tcp 0 0 osmc:46028 osmc:9982 TIME_WAIT timewait (23.69/0/0)
tcp 0 0 osmc:46028 osmc:9982 TIME_WAIT timewait (23.69/0/0)

And the gui - web page becomes completely unresponsive naturally and i have to kill it.

osmc@osmc:~$ tvheadend -v
tvheadend: version 4.0.7
osmc@osmc:~$ systemctl status tvheadend

  • tvheadend.service - TVHeadend Server
    Loaded: loaded (/lib/systemd/system/tvheadend.service; enabled)
    Active: active (running) since Tue 2016-04-19 22:26:42 IST; 41min ago
    Process: 1093 ExecStart=/usr/bin/tvheadend -f -p /run/tvheadend.pid -C -u osmc -g video (code=exited, status=0/SUCCESS)
    Process: 1083 ExecStartPre=/bin/sleep 10 (code=exited, status=0/SUCCESS)
    Main PID: 1097 (tvheadend)
    CGroup: /system.slice/tvheadend.service
    `-1097 /usr/bin/tvheadend -f -p /run/tvheadend.pid -C -u osmc -g video
    osmc@osmc:~$ uname -a
    Linux osmc 4.4.6-3-osmc #1 SMP PREEMPT Fri Apr 1 20:55:03 UTC 2016 armv7l GNU/Linux

Thanks!
Dead_Pixel

Okay - this is resolved.

I checked the cat /home/osmc/.kodi/temp/kodi.log and noticed there was an ip in there that shouldnt be and when i checked the tvheadend add on configuration on osmc my pi’s dchp ip had been automatically entered there instead of localhost and this created a broadcast storm.

no idea how it happened.

actually spoke too soon it wasnt that at all but that couldnt have helped anyway.

Oh jeez. now resolved : )

So simple was staring me in the face - the same log was telling me :
Tvheadend HTSP Client: pvr.hts - Command authenticate failed: Access denied

Id always compiled tvheadend in the past and left out the user/pass bits for simplicity’s sake.

Just forgot to add osmc & osmc to the use /pass area in the add on config for the app store version… Doh.

it was trying to authenticate many times per second.

Thanks,

xD are you sure ? :stuck_out_tongue:

1 Like

@toast Yep ! Lol.

1 Like