| View previous topic :: View next topic |
| Author |
Message |
iunderwood

Joined: 23 Aug 2008 Posts: 114 Location: Leicester, MA
|
Posted: Wed Dec 15, 2010 6:49 pm Post subject: KH28 Stuck Clients |
|
|
I've seen this twice now on KH28, so I don't think it's just me.
I have seen a condition where the first listener in a list gets stuck and lists a lag of 78-84mb, and all listeners on that mountpoint are unable to stream. Once I kick the first listener, all the rest process their disconnections.
Here's an oddity in the log, during the problem:
[2010-12-15 13:47:33] DBUG slave/relay_read counts are 1 and 21 (/pf-128k.mp3)
[2010-12-15 13:47:33] DBUG slave/relay_read counts are 1 and 21 (/pf-128k.mp3)
And here's a snippet from the log right at the start:
[2010-12-15 08:05:49] INFO auth/queue_auth_client auth on /pf-128k.mp3 has 1 pending
[2010-12-15 08:05:49] DBUG auth/auth_run_thread Authentication thread 4 started for /pf-128k.mp3
[2010-12-15 08:05:49] DBUG auth/auth_run_thread 1 client(s) pending on /pf-128k.mp3
[2010-12-15 08:05:50] INFO source/source_add_listener max on /pf-128k.mp3 is -1 (cur 0)
[2010-12-15 08:05:50] DBUG auth/auth_release ...refcount on auth_t /pf-128k.mp3 is now 1
[2010-12-15 08:05:50] INFO source/source_shutdown Source "/pf-128k.mp3" exiting
[2010-12-15 08:05:50] DBUG stats/modify_node_event update "/pf-128k.mp3" outgoing_kbitrate (11)
[2010-12-15 08:05:50] DBUG stats/modify_node_event update "/pf-128k.mp3" incoming_bitrate (127568)
[2010-12-15 08:05:50] DBUG stats/modify_node_event update "/pf-128k.mp3" total_bytes_read (65241465)
[2010-12-15 08:05:50] DBUG stats/modify_node_event update "/pf-128k.mp3" total_bytes_sent (69686272)
[2010-12-15 08:05:50] DBUG stats/modify_node_event update "/pf-128k.mp3" total_mbytes_sent (66)
[2010-12-15 08:05:50] DBUG stats/modify_node_event update "/pf-128k.mp3" connected (4157)
[2010-12-15 08:05:50] INFO auth/auth_stream_end request source end for "/pf-128k.mp3"
[2010-12-15 08:05:50] INFO auth/queue_auth_client auth on /pf-128k.mp3 has 1 pending
[2010-12-15 08:05:50] DBUG slave/relay_read counts are 1 and 1 (/pf-128k.mp3)
[2010-12-15 08:05:50] DBUG auth/auth_run_thread Authentication thread 4 started for /pf-128k.mp3
[2010-12-15 08:05:50] DBUG auth/auth_run_thread 1 client(s) pending on /pf-128k.mp3
[2010-12-15 08:05:50] DBUG auth/auth_release ...refcount on auth_t /pf-128k.mp3 is now 1
[2010-12-15 08:05:50] DBUG slave/relay_read counts are 1 and 1 (/pf-128k.mp3)
[2010-12-15 08:05:50] DBUG slave/relay_read counts are 1 and 1 (/pf-128k.mp3)
[2010-12-15 08:05:50] DBUG slave/relay_read counts are 1 and 1 (/pf-128k.mp3)
[2010-12-15 08:05:50] DBUG slave/relay_read counts are 1 and 1 (/pf-128k.mp3)
[2010-12-15 08:05:50] DBUG slave/relay_read counts are 1 and 1 (/pf-128k.mp3)
[2010-12-15 08:05:50] DBUG slave/relay_read counts are 1 and 1 (/pf-128k.mp3)
[2010-12-15 08:05:51] DBUG slave/relay_read counts are 1 and 1 (/pf-128k.mp3)
Unfortunately, there seems to be no easy way to duplicate this, so I'm not sure what else I can offer. _________________ ++I; |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Wed Dec 15, 2010 7:04 pm Post subject: |
|
|
Can you try 28.4. I think this is down to listeners going into an incorrect state.
karl. |
|
| Back to top |
|
 |
iunderwood

Joined: 23 Aug 2008 Posts: 114 Location: Leicester, MA
|
Posted: Thu Dec 16, 2010 2:27 am Post subject: |
|
|
If you've got a link, I'd love to give it a go! _________________ ++I; |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
|
| Back to top |
|
 |
iunderwood

Joined: 23 Aug 2008 Posts: 114 Location: Leicester, MA
|
Posted: Thu Dec 16, 2010 5:38 am Post subject: |
|
|
I'll install it on my relay after I get up in the morning.  _________________ ++I; |
|
| Back to top |
|
 |
iunderwood

Joined: 23 Aug 2008 Posts: 114 Location: Leicester, MA
|
Posted: Thu Dec 16, 2010 9:52 pm Post subject: |
|
|
So far, so good. I've been running on this for 14 hours w/o any incident. _________________ ++I; |
|
| Back to top |
|
 |
iunderwood

Joined: 23 Aug 2008 Posts: 114 Location: Leicester, MA
|
Posted: Tue Dec 28, 2010 1:39 am Post subject: |
|
|
Saw this on 28.5 today, but have upgraded to 28.9. _________________ ++I; |
|
| Back to top |
|
 |
iunderwood

Joined: 23 Aug 2008 Posts: 114 Location: Leicester, MA
|
Posted: Tue Dec 28, 2010 8:13 pm Post subject: |
|
|
Had a hiccup in 28.9 too, but it seems to have been math driven:
Mount Point /pf-64k.ogg
Login
List ClientsMove ListenersUpdate MetadataKill SourceManage Authentication
4294919294 Listener(s)
Definitely not the right number of listeners.
From the error log:
| Code: |
[2010-12-28 15:02:25] DBUG stats/modify_node_event update "global" banned_IPs (0)
[2010-12-28 15:02:25] DBUG stats/modify_node_event update "global" outgoing_kbitrate (222)
[2010-12-28 15:02:25] DBUG stats/modify_node_event update "global" clients (9)
[2010-12-28 15:02:25] DBUG client/worker_add_pending_clients Added 1 pending clients to 0x2872b100
[2010-12-28 15:02:25] DBUG connection/_handle_get_request start with /pf-32k.aacp
[2010-12-28 15:02:25] DBUG stats/modify_node_event update "global" client_connections (8264)
[2010-12-28 15:02:25] DBUG auth/auth_add_listener adding client for authentication
[2010-12-28 15:02:25] DBUG auth/queue_auth_client starting auth thread 0
[2010-12-28 15:02:25] DBUG auth/queue_auth_client auth on /pf-32k.aacp has 1 pending
[2010-12-28 15:02:25] DBUG client/worker 0x2872b100 now has 10 clients
[2010-12-28 15:02:25] DBUG stats/modify_node_event update "global" connections (8264)
[2010-12-28 15:02:25] DBUG auth/auth_run_thread Authentication thread 3 started for /pf-32k.aacp
[2010-12-28 15:02:25] DBUG auth/auth_run_thread 1 client(s) pending on /pf-32k.aacp
[2010-12-28 15:02:25] DBUG auth_url/url_add_listener handler 3 sending request
[2010-12-28 15:02:26] DBUG stats/modify_node_event update "global" banned_IPs (0)
[2010-12-28 15:02:26] DBUG stats/modify_node_event update "global" outgoing_kbitrate (129)
[2010-12-28 15:02:26] DBUG stats/modify_node_event update "global" clients (10)
[2010-12-28 15:02:26] DBUG client/worker_add_pending_clients Added 1 pending clients to 0x2872b100
[2010-12-28 15:02:26] DBUG stats/modify_node_event update "global" clients (9)
[2010-12-28 15:02:26] DBUG stats/modify_node_event update "global" connections (8265)
[2010-12-28 15:02:27] DBUG stats/modify_node_event update "global" clients (10)
[2010-12-28 15:02:27] DBUG client/worker_add_pending_clients Added 1 pending clients to 0x2872b100
[2010-12-28 15:02:27] DBUG stats/modify_node_event update "global" clients (9)
[2010-12-28 15:02:27] DBUG stats/modify_node_event update "global" connections (8266)
[2010-12-28 15:02:27] DBUG stats/modify_node_event update "global" banned_IPs (0)
[2010-12-28 15:02:27] DBUG stats/modify_node_event update "global" outgoing_kbitrate (121)
[2010-12-28 15:02:27] DBUG auth_url/url_add_listener handler 0 request finished
[2010-12-28 15:02:27] DBUG source/source_add_listener server outgoing bitrate is 124352
[2010-12-28 15:02:27] INFO source/source_add_listener max on /pf-64k.ogg is -1 (cur 1)
[2010-12-28 15:02:27] DBUG stats/modify_node_event update "global" listeners (3)
[2010-12-28 15:02:27] DBUG stats/modify_node_event update "global" listener_connections (474)
[2010-12-28 15:02:27] DBUG auth/auth_release ...refcount on auth_t /pf-64k.ogg is now 1
[2010-12-28 15:02:27] DBUG auth/auth_run_thread Authenication thread 0 shutting down
[2010-12-28 15:02:27] DBUG stats/modify_node_event update "/pf-64k.ogg" listener_connections (7)
[2010-12-28 15:02:27] DBUG client/client_send_bytes Client connection died
[2010-12-28 15:02:27] DBUG stats/modify_node_event update "global" clients (10)
[2010-12-28 15:02:27] DBUG client/worker_add_pending_clients Added 1 pending clients to 0x2872b100
[2010-12-28 15:02:27] DBUG connection/_handle_get_request start with /pf-64k.ogg
[2010-12-28 15:02:27] DBUG stats/modify_node_event update "global" client_connections (8265)
[2010-12-28 15:02:27] DBUG auth/auth_add_listener adding client for authentication
[2010-12-28 15:02:27] DBUG auth/queue_auth_client starting auth thread 0
[2010-12-28 15:02:27] DBUG auth/queue_auth_client auth on /pf-64k.ogg has 1 pending
[2010-12-28 15:02:27] DBUG client/worker 0x2872b100 now has 11 clients
[2010-12-28 15:02:27] DBUG stats/modify_node_event update "global" connections (8267)
[2010-12-28 15:02:27] DBUG auth/auth_run_thread Authentication thread 0 started for /pf-64k.ogg
[2010-12-28 15:02:27] DBUG auth/auth_run_thread 1 client(s) pending on /pf-64k.ogg
[2010-12-28 15:02:27] DBUG auth_url/url_add_listener handler 0 sending request
[2010-12-28 15:02:27] INFO source/source_read listener count on /pf-64k.ogg now 2
[2010-12-28 15:02:27] DBUG stats/modify_node_event update "/pf-64k.ogg" listeners (2)
[2010-12-28 15:02:27] DBUG stats/modify_node_event update "global" listeners (2)
[2010-12-28 15:02:27] DBUG stats/modify_node_event update "/pf-64k.ogg" listeners (1)
[2010-12-28 15:02:27] DBUG stats/modify_node_event update "global" listeners (1)
[2010-12-28 15:02:27] DBUG stats/modify_node_event update "/pf-64k.ogg" listeners (0)
[2010-12-28 15:02:27] DBUG stats/modify_node_event update "global" listeners (0)
[2010-12-28 15:02:27] DBUG stats/modify_node_event update "/pf-64k.ogg" listeners (4294967295)
[2010-12-28 15:02:27] DBUG stats/modify_node_event update "global" listeners (-1)
[2010-12-28 15:02:27] DBUG stats/modify_node_event update "/pf-64k.ogg" listeners (4294967294)
[2010-12-28 15:02:27] DBUG stats/modify_node_event update "global" listeners (-2)
[2010-12-28 15:02:27] DBUG stats/modify_node_event update "/pf-64k.ogg" listeners (4294967293)
[2010-12-28 15:02:27] DBUG stats/modify_node_event update "global" listeners (-3)
[2010-12-28 15:02:27] DBUG stats/modify_node_event update "/pf-64k.ogg" listeners (4294967292)
[2010-12-28 15:02:27] DBUG stats/modify_node_event update "global" listeners (-4)
[2010-12-28 15:02:27] DBUG stats/modify_node_event update "/pf-64k.ogg" listeners (4294967291)
[2010-12-28 15:02:27] DBUG stats/modify_node_event update "global" listeners (-5)
[2010-12-28 15:02:27] DBUG stats/modify_node_event update "/pf-64k.ogg" listeners (4294967290)
[2010-12-28 15:02:27] DBUG stats/modify_node_event update "global" listeners (-6)
[2010-12-28 15:02:27] DBUG stats/modify_node_event update "/pf-64k.ogg" listeners (4294967289)
[2010-12-28 15:02:27] DBUG stats/modify_node_event update "global" listeners (-7)
|
[/code] _________________ ++I; |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Wed Dec 29, 2010 4:51 am Post subject: |
|
|
ok, I think I see a possibility there, looks like an inadequate test on a listener termination leading to multiple attempts to remove from the source.
icecast-2.3.2-kh28.10.tar.gz is up
karl. |
|
| Back to top |
|
 |
iunderwood

Joined: 23 Aug 2008 Posts: 114 Location: Leicester, MA
|
Posted: Wed Dec 29, 2010 7:12 pm Post subject: |
|
|
Installed and logging.  _________________ ++I; |
|
| Back to top |
|
 |
iunderwood

Joined: 23 Aug 2008 Posts: 114 Location: Leicester, MA
|
Posted: Sat Jan 01, 2011 3:16 pm Post subject: |
|
|
Better, but this still happens:
[2011-01-01 09:34:15] DBUG stats/modify_node_event update "global" banned_IPs (0)
[2011-01-01 09:34:15] DBUG stats/modify_node_event update "global" outgoing_kbitrate (13)
[2011-01-01 09:34:16] DBUG stats/modify_node_event update "global" banned_IPs (0)
[2011-01-01 09:34:16] DBUG stats/modify_node_event update "global" outgoing_kbitrate (12)
[2011-01-01 09:34:17] DBUG stats/modify_node_event update "global" banned_IPs (0)
[2011-01-01 09:34:17] DBUG stats/modify_node_event update "global" outgoing_kbitrate (12)
[2011-01-01 09:34:18] DBUG stats/modify_node_event update "global" banned_IPs (0)
[2011-01-01 09:34:18] DBUG stats/modify_node_event update "global" outgoing_kbitrate (0)
[2011-01-01 09:34:19] DBUG stats/modify_node_event update "global" clients (6)
[2011-01-01 09:34:19] DBUG stats/modify_node_event update "global" banned_IPs (0)
[2011-01-01 09:34:19] DBUG stats/modify_node_event update "global" outgoing_kbitrate (0)
[2011-01-01 09:34:19] DBUG client/worker_add_pending_clients Added 1 pending clients to 0x2872b100
[2011-01-01 09:34:19] DBUG connection/_handle_get_request start with /pf-64k.aacp
[2011-01-01 09:34:19] DBUG stats/modify_node_event update "global" client_connections (31957)
[2011-01-01 09:34:19] DBUG auth/auth_add_listener adding client for authentication
[2011-01-01 09:34:19] DBUG auth/queue_auth_client starting auth thread 0
[2011-01-01 09:34:19] DBUG auth/queue_auth_client auth on /pf-64k.aacp has 1 pending
[2011-01-01 09:34:19] DBUG client/worker 0x2872b100 now has 7 clients
[2011-01-01 09:34:19] DBUG stats/modify_node_event update "global" connections (31958)
[2011-01-01 09:34:19] DBUG auth/auth_run_thread Authentication thread 2 started for /pf-64k.aacp
[2011-01-01 09:34:19] DBUG auth/auth_run_thread 1 client(s) pending on /pf-64k.aacp
[2011-01-01 09:34:19] DBUG auth_url/url_add_listener handler 2 sending request
[2011-01-01 09:34:19] DBUG stats/modify_node_event update "/pf-64k.aacp" outgoing_kbitrate (0)
[2011-01-01 09:34:19] DBUG stats/modify_node_event update "/pf-64k.aacp" incoming_bitrate (63565)
[2011-01-01 09:34:19] DBUG stats/modify_node_event update "/pf-64k.aacp" total_bytes_read (1999922)
[2011-01-01 09:34:19] DBUG stats/modify_node_event update "/pf-64k.aacp" total_bytes_sent (199680)
[2011-01-01 09:34:19] DBUG stats/modify_node_event update "/pf-64k.aacp" total_mbytes_sent (0)
[2011-01-01 09:34:19] DBUG stats/modify_node_event update "/pf-64k.aacp" connected (243)
[2011-01-01 09:34:19] DBUG stats/modify_node_event update "global" stream_kbytes_read (1559184)
[2011-01-01 09:34:19] DBUG auth_url/url_add_listener handler 2 request finished
[2011-01-01 09:34:19] DBUG source/source_add_listener server outgoing bitrate is 0
[2011-01-01 09:34:19] INFO source/source_add_listener max on /pf-64k.aacp is -1 (cur 0)
[2011-01-01 09:34:19] DBUG stats/modify_node_event update "global" listeners (1)
[2011-01-01 09:34:19] DBUG stats/modify_node_event update "global" listener_connections (1551)
[2011-01-01 09:34:19] DBUG source/source_setup_listener woke up relay
[2011-01-01 09:34:19] DBUG auth/auth_release ...refcount on auth_t /pf-64k.aacp is now 1
[2011-01-01 09:34:19] DBUG auth/auth_run_thread Authenication thread 2 shutting down
[2011-01-01 09:34:19] DBUG stats/modify_node_event update "global" sources (0)
[2011-01-01 09:34:19] INFO source/source_shutdown Source "/pf-64k.aacp" exiting
[2011-01-01 09:34:19] DBUG stats/modify_node_event update "/pf-64k.aacp" outgoing_kbitrate (0)
[2011-01-01 09:34:19] DBUG stats/modify_node_event update "/pf-64k.aacp" incoming_bitrate (63636)
[2011-01-01 09:34:19] DBUG stats/modify_node_event update "/pf-64k.aacp" total_bytes_read (2006137)
[2011-01-01 09:34:19] DBUG stats/modify_node_event update "/pf-64k.aacp" total_bytes_sent (199680)
[2011-01-01 09:34:19] DBUG stats/modify_node_event update "/pf-64k.aacp" total_mbytes_sent (0)
[2011-01-01 09:34:19] DBUG stats/modify_node_event update "/pf-64k.aacp" connected (243)
[2011-01-01 09:34:19] DBUG stats/modify_node_event update "global" stream_kbytes_read (1559191)
[2011-01-01 09:34:19] INFO auth/auth_stream_end request source end for "/pf-64k.aacp"
[2011-01-01 09:34:19] DBUG auth/queue_auth_client starting auth thread 0
[2011-01-01 09:34:19] DBUG auth/queue_auth_client auth on /pf-64k.aacp has 1 pending
[2011-01-01 09:34:19] DBUG slave/relay_read counts are 1 and 1 (/pf-64k.aacp)
[2011-01-01 09:34:19] DBUG auth/auth_run_thread Authentication thread 2 started for /pf-64k.aacp
[2011-01-01 09:34:19] DBUG auth/auth_run_thread 1 client(s) pending on /pf-64k.aacp
[2011-01-01 09:34:19] DBUG auth_url/url_stream_end handler 2 sending request
[2011-01-01 09:34:19] DBUG auth_url/url_stream_end handler 2 request finished
[2011-01-01 09:34:19] DBUG auth/auth_release ...refcount on auth_t /pf-64k.aacp is now 1
[2011-01-01 09:34:19] DBUG auth/auth_run_thread Authenication thread 2 shutting down
[2011-01-01 09:34:19] DBUG slave/relay_read counts are 1 and 1 (/pf-64k.aacp)
[2011-01-01 09:34:19] DBUG slave/relay_read counts are 1 and 1 (/pf-64k.aacp)
[2011-01-01 09:34:19] DBUG slave/relay_read counts are 1 and 1 (/pf-64k.aacp)
Needed to kill -9 and restart after attempting to kick the first listener. _________________ ++I; |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sat Jan 01, 2011 4:56 pm Post subject: |
|
|
I flushed out an older bug with relay restarts a few days ago, and so far I haven't heard of any similar issues, namely these "counts are N and M" messages yet. I've also tried limiting the listener thread loop, preventing lots of new listeners coming in, when things are saturated or just starting up, that may need more tuning but should be ok as-is.
icecast-2.3.2-kh28.13.tar.gz is up
karl |
|
| Back to top |
|
 |
iunderwood

Joined: 23 Aug 2008 Posts: 114 Location: Leicester, MA
|
Posted: Sat Jan 01, 2011 5:57 pm Post subject: |
|
|
Installed and logging. _________________ ++I; |
|
| Back to top |
|
 |
|