ossrs / srs

SRS is a simple, high-efficiency, real-time video server supporting RTMP, WebRTC, HLS, HTTP-FLV, SRT, MPEG-DASH, and GB28181.
https://ossrs.io
MIT License
24.75k stars 5.28k forks source link

Streamkey exit automatically #3866

Closed kumaraguru1735 closed 8 months ago

kumaraguru1735 commented 8 months ago

Describe the bug A Particular Stream hooks exit the publish_stream automatically

Only Streamkey working after srs restart

Version version 6

Expected behavior

[2023-11-07 12:24:49.201][INFO][408508][629i4c30] TCP: disposing #0 resource(HttpConn)(0x6070000b81d0), conns=290, disposing=1, zombies=0
[2023-11-07 12:24:49.218][INFO][408508][5157jiv4] connect app, tcUrl=rtmp://ipcloud.live:1935/yogaatv, pageUrl=, swfUrl=, schema=rtmp, vhost=ipcloud.live, port=1935, app=yogaatv, args=null
[2023-11-07 12:24:49.218][INFO][408508][5157jiv4] protocol in.buffer=0, in.ack=0, out.ack=0, in.chunk=128, out.chunk=128
[2023-11-07 12:24:49.231][INFO][408508][f209728n] TCP: before dispose resource(RtmpConn)(0x6120001b43c0), conns=289, zombies=0, ign=0, inz=0, ind=0
[2023-11-07 12:24:49.231][ERROR][408508][f209728n][62] serve error code=1011(SocketTimeout)(Socket io timeout) : rtmp connect tcUrl : expect connect app response : recv message : recv interlaced message : read basic header : basic header requires 1 bytes : read bytes : timeout 30000 ms
thread [408508][f209728n]: do_cycle() [./src/app/srs_app_rtmp_conn.cpp:218][errno=62]
thread [408508][f209728n]: connect_app() [./src/protocol/srs_protocol_rtmp_stack.cpp:2248][errno=62]
thread [408508][f209728n]: expect_message() [./src/protocol/srs_protocol_rtmp_stack.hpp:308][errno=62]
thread [408508][f209728n]: recv_message() [./src/protocol/srs_protocol_rtmp_stack.cpp:341][errno=62]
thread [408508][f209728n]: recv_interlaced_message() [./src/protocol/srs_protocol_rtmp_stack.cpp:798][errno=62]
thread [408508][f209728n]: read_basic_header() [./src/protocol/srs_protocol_rtmp_stack.cpp:892][errno=62]
thread [408508][f209728n]: grow() [./src/protocol/srs_protocol_stream.cpp:162][errno=62]
thread [408508][f209728n]: read() [./src/protocol/srs_protocol_st.cpp:559][errno=62](Timer expired)
[2023-11-07 12:24:49.231][INFO][408508][o1877z09] TCP: clear zombies=1 resources, conns=289, removing=0, unsubs=0
[2023-11-07 12:24:49.231][INFO][408508][f209728n] TCP: disposing #0 resource(RtmpConn)(0x6120001b43c0), conns=289, disposing=1, zombies=0
[2023-11-07 12:24:49.411][INFO][408508][5157jiv4] ignore AMF0/AMF3 command message.
[2023-11-07 12:24:49.520][INFO][408508][5157jiv4] ignore AMF0/AMF3 command message.
[2023-11-07 12:24:49.520][INFO][408508][5157jiv4] client identified, type=rtmp-play, vhost=ipcloud.live, app=yogaatv, stream=yogaatv, param=, duration=-1ms
[2023-11-07 12:24:49.520][INFO][408508][5157jiv4] connected stream, tcUrl=rtmp://ipcloud.live:1935/yogaatv, pageUrl=, swfUrl=, schema=rtmp, vhost=__defaultVhost__, port=1935, app=yogaatv, stream=yogaatv, param=, args=null
[2023-11-07 12:24:49.520][INFO][408508][5157jiv4] source url=/yogaatv/yogaatv, ip=59.92.88.143, cache=1/2500, is_edge=0, source_id=/4r0j34d4
[2023-11-07 12:24:49.520][INFO][408508][5157jiv4] create consumer, active=0, queue_size=0.00, jitter=30000000
[2023-11-07 12:24:49.520][INFO][408508][5157jiv4] set fd=184, SO_SNDBUF=130560=>175000, buffer=350ms
[2023-11-07 12:24:49.520][INFO][408508][5157jiv4] start play smi=0ms, mw_sleep=350, mw_msgs=8, realtime=0, tcp_nodelay=0

Screenshots If applicable, add screenshots to help explain your problem.

Additional context

[2023-11-07 12:36:09.805][INFO][408508][027ih2bx] http: on_unpublish ok, client_id=027ih2bx, url=https://mywebsite.com/api/v1/hooks/on_unpublish, request={"server_id":"sid-ipcloud","service_id":"452s3613","action":"on_unpublish","client_id":"027ih2bx","ip":"103.98.209.47","vhost":"__defaultVhost__","app":"yogaatv","tcUrl":"rtmp://ipcloud.live:1935/yogaatv","stream":"yogaatv","param":"","stream_url":"/yogaatv/yogaatv","stream_id":"vid-6205b03"}, response={"code":0,"msg":"OK"}
[2023-11-07 12:36:09.806][INFO][408508][027ih2bx] TCP: before dispose resource(RtmpConn)(0x612000189c40), conns=291, zombies=0, ign=0, inz=0, ind=0
[2023-11-07 12:36:09.806][ERROR][408508][027ih2bx][0] serve error code=3001(HlsDecode)(HLS decode av stream failed) : service cycle : rtmp: stream service : rtmp: receive thread : handle publish message : rtmp: consume message : rtmp: consume video : format consume video : demux NALU : avc demux annexb : not annexb
thread [408508][027ih2bx]: do_cycle() [./src/app/srs_app_rtmp_conn.cpp:263][errno=0]
thread [408508][027ih2bx]: service_cycle() [./src/app/srs_app_rtmp_conn.cpp:457][errno=0]
thread [408508][027ih2bx]: do_publishing() [./src/app/srs_app_rtmp_conn.cpp:1030][errno=0]
thread [408508][027ih2bx]: consume() [./src/app/srs_app_recv_thread.cpp:380][errno=0]
thread [408508][027ih2bx]: handle_publish_message() [./src/app/srs_app_rtmp_conn.cpp:1185][errno=0]
thread [408508][027ih2bx]: process_publish_message() [./src/app/srs_app_rtmp_conn.cpp:1213][errno=0]
thread [408508][027ih2bx]: on_video_imp() [./src/app/srs_app_source.cpp:2412][errno=0]
thread [408508][027ih2bx]: video_avc_demux() [./src/kernel/srs_kernel_codec.cpp:1028][errno=0]
thread [408508][027ih2bx]: video_nalu_demux() [./src/kernel/srs_kernel_codec.cpp:2501][errno=0]
thread [408508][027ih2bx]: do_avc_demux_annexb_format() [./src/kernel/srs_kernel_codec.cpp:2540][errno=0]
[2023-11-07 12:36:09.806][INFO][408508][o1877z09] TCP: clear zombies=1 resources, conns=291, removing=0, unsubs=0
[2023-11-07 12:36:09.806][INFO][408508][027ih2bx] TCP: disposing #0 resource(RtmpConn)(0x612000189c40), conns=291, disposing=1, zombies=0
[2023-11-07 12:36:09.837][INFO][408508][1o95r188] ignore AMF0/AMF3 command message.
winlinvip commented 8 months ago

There is no clear problem description, no steps to reproduce, and it's impossible to understand what the issue is.

TRANS_BY_GPT4