Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code=1028(StreamBusy)(Stream already exists or busy) #4298

Open
terry8204 opened this issue Mar 11, 2025 · 1 comment
Open

code=1028(StreamBusy)(Stream already exists or busy) #4298

terry8204 opened this issue Mar 11, 2025 · 1 comment
Labels
TransByAI Translated by AI/GPT.

Comments

@terry8204
Copy link

terry8204 commented Mar 11, 2025

!!! Before submitting a new bug report, please ensure you have searched for any existing bugs. Duplicate issues or
questions that are overly simple or already addressed in the documentation will be removed without any
response.

Describe the bug
Occasionally, one of the video streams fails to play while the other two streams work fine, requiring a restart of SRS to resume playback. However, the issue quickly reoccurs. This problem does not happen when switching to the SRS version 6.0-d4.
Version
version srs6.0-a1 6.0.155

To Reproduce
Steps to reproduce the behavior:

  1. All video channels on the playback device, totaling three streams.
  2. Occasionally, one of the streams experiences both video and audio playback failure.
  3. Playback can only be resumed by restarting SRS.
  4. The logs indicate issues with both audio and video.
    /live/13920003917_1_0_1078_video is busy
    /live/13920003917_2_0_1078_audio is busy
    Expected behavior
    The video and audio can be played back normally.
    Screenshots

Additional context
[2025-02-28 09:47:57.841][ERROR][5969][406y4882][11] serve error code=1028(StreamBusy)(Stream already exists or busy) : service cycle : rtmp: stream service : rtmp: stream /live/13920003917_1_0_1078_video is busy
thread [5969][406y4882]: do_cycle() [./src/app/srs_app_rtmp_conn.cpp:263][errno=11]
thread [5969][406y4882]: service_cycle() [./src/app/srs_app_rtmp_conn.cpp:457][errno=11]
thread [5969][406y4882]: acquire_publish() [./src/app/srs_app_rtmp_conn.cpp:1078][errno=11](Resource temporarily unavailable)
[2025-02-28 09:47:58.168][ERROR][5969][0129i879][11] serve error code=1028(StreamBusy)(Stream already exists or busy) : service cycle : rtmp: stream service : rtmp: stream /live/13920003917_3_0_1078_video is busy
thread [5969][0129i879]: do_cycle() [./src/app/srs_app_rtmp_conn.cpp:263][errno=11]
thread [5969][0129i879]: service_cycle() [./src/app/srs_app_rtmp_conn.cpp:457][errno=11]
thread [5969][0129i879]: acquire_publish() [./src/app/srs_app_rtmp_conn.cpp:1078][errno=11](Resource temporarily unavailable)
[2025-02-28 09:47:58.917][WARN][5969][5zo07876][0] client disconnect peer. ret=1007
[2025-02-28 09:47:59.064][WARN][5969][66519849][0] client disconnect peer. ret=1009
[2025-02-28 09:47:59.168][WARN][5969][70374r7n][0] client disconnect peer. ret=1007
[2025-02-28 09:47:59.169][WARN][5969][5in0972a][0] client disconnect peer. ret=1007
[2025-02-28 09:47:59.895][ERROR][5969][u688x6dh][11] serve error code=2001(RtmpChunkStart)(RTMP packet must be fresh chunk) : rtmp connect tcUrl : expect connect app response : recv message : recv interlaced message : read message header : fresh chunk expect fmt=0, actual=2, cid=39
thread [5969][u688x6dh]: do_cycle() [./src/app/srs_app_rtmp_conn.cpp:218][errno=11]
thread [5969][u688x6dh]: connect_app() [./src/protocol/srs_protocol_rtmp_stack.cpp:2245][errno=11]
thread [5969][u688x6dh]: expect_message() [./src/protocol/srs_protocol_rtmp_stack.hpp:308][errno=11]
thread [5969][u688x6dh]: recv_message() [./src/protocol/srs_protocol_rtmp_stack.cpp:339][errno=11]
thread [5969][u688x6dh]: recv_interlaced_message() [./src/protocol/srs_protocol_rtmp_stack.cpp:821][errno=11]
thread [5969][u688x6dh]: read_message_header() [./src/protocol/srs_protocol_rtmp_stack.cpp:977][errno=11](Resource temporarily unavailable)
[2025-02-28 09:48:00.277][WARN][5969][j0506pzn][0] client disconnect peer. ret=1007
[2025-02-28 09:48:00.278][WARN][5969][bb3zm95q][0] client disconnect peer. ret=1007
[2025-02-28 09:48:00.309][ERROR][5969][07g26555][11] serve error code=1028(StreamBusy)(Stream already exists or busy) : service cycle : rtmp: stream service : rtmp: stream /live/13920003917_2_0_1078_audio is busy
thread [5969][07g26555]: do_cycle() [./src/app/srs_app_rtmp_conn.cpp:263][errno=11]
thread [5969][07g26555]: service_cycle() [./src/app/srs_app_rtmp_conn.cpp:457][errno=11]
thread [5969][07g26555]: acquire_publish() [./src/app/srs_app_rtmp_conn.cpp:1078][errno=11](Resource temporarily unavailable)
[2025-02-28 09:48:00.473][WARN][5969][63qu12jz][0] client disconnect peer. ret=1007
[2025-02-28 09:48:01.520][WARN][5969][b0tt5jo7][0] client disconnect peer. ret=1007
[2025-02-28 09:48:01.768][WARN][5969][8e094c8b][11] avc ignore type=1 for no sequence header
[2025-02-28 09:48:01.768][WARN][5969][8e094c8b][11] avc ignore type=1 for no sequence header
[2025-02-28 09:48:01.840][WARN][5969][fs118737][0] client disconnect peer. ret=1009
[2025-02-28 09:48:01.904][ERROR][5969][p99260dv][11] serve error code=2001(RtmpChunkStart)(RTMP packet must be fresh chunk) : rtmp connect tcUrl : expect connect app response : recv message : recv interlaced message : read message header : fresh chunk expect fmt=0, actual=2, cid=52
thread [5969][p99260dv]: do_cycle() [./src/app/srs_app_rtmp_conn.cpp:218][errno=11]

TRANS_BY_GPT4

@winlinvip winlinvip added the TransByAI Translated by AI/GPT. label Mar 11, 2025
@lin557
Copy link

lin557 commented Mar 12, 2025

I also had the same problem.

version srs6.0-a1

Occasionally occurs after frequent streaming and disconnection operations. Unless SRS is restarted, the stream will remain busy.

#4140
#4141

Although there is a PR mentioning this issue, the problem still exists.

Using /api/v1/streams?count=9999 and /api/v1/clients?count=9999 does not provide any information about the busy stream.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TransByAI Translated by AI/GPT.
Projects
None yet
Development

No branches or pull requests

3 participants