ant-media / Ant-Media-Server

Ant Media Server is a live streaming engine software that provides adaptive, ultra low latency streaming by using WebRTC technology with ~0.5 seconds latency. Ant Media Server is auto-scalable and it can run on-premise or on-cloud.
https://antmedia.io
Other
4.29k stars 632 forks source link

LiveApp, WebRTCApp both getting disconnected after 2,3 minutes #5847

Closed mannakod closed 11 months ago

mannakod commented 11 months ago

I have deployed community edition of Ant media, which is running on Linode/Akamai instance From 23rd of Nov 2023 its frequently getting disconnected in every 2-3 minutes of interval instance os: Ubuntu 20.04.6 LTS

2023-11-24 16:02:42,032 [https-jsse-nio2-0.0.0.0-5443-exec-3] INFO io.antmedia.rest.RestServiceBase - Version Name 2.4.2 Version Type Community Edition 2023-11-24 16:03:17,026 [https-jsse-nio2-0.0.0.0-5443-exec-3] INFO io.antmedia.rest.RestServiceBase - Version Name 2.4.2 Version Type Community Edition 2023-11-24 16:03:42,124 [https-jsse-nio2-0.0.0.0-5443-exec-4] INFO i.a.e.s.WebSocketLocalHandler - Web Socket opened session:31 user-agent:[Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.3 Mobile/15E148 Safari/604.1] 2023-11-24 16:03:45,436 [https-jsse-nio2-0.0.0.0-5443-exec-8] INFO io.antmedia.rest.RestServiceBase - Version Name 2.4.2 Version Type Community Edition 2023-11-24 16:05:01,940 [RTMPConnectionExecutor-3] INFO o.r.s.stream.ClientBroadcastStream - Checking mux adaptor to stop testing1 2023-11-24 16:05:01,940 [RTMPConnectionExecutor-3] INFO io.antmedia.muxer.MuxAdaptor - Calling stop for testing1 input queue size:0 2023-11-24 16:05:01,940 [RTMPConnectionExecutor-3] INFO o.r.s.stream.ClientBroadcastStream - Mux Adaptor stop called testing1 2023-11-24 16:05:01,940 [RTMPConnectionExecutor-3] INFO i.a.AntMediaApplicationAdapter - W3C x-category:stream x-event:unpublish c-ip:3.111.103.95 cs-bytes:5033997 sc-bytes:3638 x-sname:098b5129-6d5e-4e77-8d6c-ff73db5d78de x-file-length:392 x-name:testing1 2023-11-24 16:05:01,941 [NioProcessor-7] INFO i.a.AntMediaApplicationAdapter - W3C x-category:session x-event:disconnect c-ip:3.111.103.95 c-client-id:5 2023-11-24 16:05:01,948 [vert.x-worker-thread-53] WARN io.antmedia.muxer.MuxAdaptor - closing adaptor for testing1 2023-11-24 16:05:01,948 [vert.x-worker-thread-53] INFO io.antmedia.muxer.MuxAdaptor - close resources for streamId -> testing1 2023-11-24 16:05:01,948 [vert.x-worker-thread-53] INFO io.antmedia.muxer.MuxAdaptor - Cancelling packet poller task(id:58) for streamId: testing1 2023-11-24 16:05:01,948 [vert.x-worker-thread-53] INFO io.antmedia.muxer.RecordMuxer - Record Muxer writing trailer for stream: testing1 2023-11-24 16:05:01,959 [vert.x-worker-thread-55] INFO io.antmedia.muxer.RecordMuxer - testing1.mp4 is ready 2023-11-24 16:05:01,963 [vert.x-worker-thread-55] WARN io.antmedia.datastore.db.MapDBStore - VoD is saved to DB testing1.mp4 with voID 735810221947387397459494 2023-11-24 16:05:01,964 [vert.x-worker-thread-55] INFO io.antmedia.muxer.RecordMuxer - File: /usr/local/antmedia/webapps/LiveApp/streams/testing1.mp4.tmp_extension exist: false 2023-11-24 16:05:01,964 [vert.x-worker-thread-53] INFO io.antmedia.muxer.HLSMuxer - Delete File onexit:true upload to S3:true stream:testing1 hls time:2 hlslist size:5 2023-11-24 16:05:01,964 [vert.x-worker-thread-53] WARN io.antmedia.muxer.MuxAdaptor - closed adaptor for testing1 2023-11-24 16:05:01,964 [vert.x-worker-thread-56] INFO i.a.AntMediaApplicationAdapter - Closing broadcast stream id: testing1 2023-11-24 16:05:22,470 [https-jsse-nio2-0.0.0.0-5443-exec-8] INFO io.antmedia.rest.RestServiceBase - Version Name 2.4.2 Version Type Community Edition 2023-11-24 16:06:28,779 [vert.x-eventloop-thread-0] INFO i.antmedia.statistic.StatsCollector - System cpu load:0 process cpu load:1 available memory: 1191460 KB used memory(RSS): 516816 KB 2023-11-24 16:06:28,780 [vert.x-eventloop-thread-0] INFO i.antmedia.statistic.StatsCollector - Vertx worker queue size:0 WebRTCVertx worker queue size:0 2023-11-24 16:07:13,017 [RTMPConnectionScheduler-19] WARN o.r.server.net.rtmp.RTMPConnection - Closing NGH3CDTQHNL5S, due to long handshake. State: connect 2023-11-24 16:07:13,017 [NioProcessor-8] INFO o.r.s.net.rtmp.RTMPMinaConnection - Connection is closed: NGH3CDTQHNL5S 2023-11-24 16:07:13,017 [NioProcessor-8] WARN o.r.s.net.rtmp.RTMPMinaIoHandler - Connection was not found for NGH3CDTQHNL5S

mekya commented 11 months ago

Hi @mannakod, Thank you for reaching out and creating the issue. There is a ongoing discussion here -> https://github.com/orgs/ant-media/discussions/5846

Because there is high number of issues and hard to track everything, I'm closing this issue.

Please feel free to re-open if it's not resolved in the discussion.

Regards Oguz