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.23k stars 619 forks source link

Broadcast stuck in the "broadcasting" status due to failure to restream to expired Instagram RTMP link #2724

Open choxnox opened 3 years ago

choxnox commented 3 years ago

As the title explains. Solution was to log into MongoDB and switch broadcast's status from "broadcasting" to "finished".

Excerpt from the log:

[rtmps @ 0x7fca89cf8700] Server error: Error publishing stream: code=30, msg=ERR, TERMINAL_ENT_STATE, URL=Domain: live-upload.instagram.com, url: /rtmp/XXXYYYZZZ?s_sw=0&s_vt=ig, sendPublishError=true
[rtmps @ 0x7fca89cf8d00] Server error: Error publishing stream: code=30, msg=ERR, TERMINAL_ENT_STATE, URL=Domain: live-upload.instagram.com, url: /rtmp/XXXYYYZZZ?s_sw=0&s_vt=ig, sendPublishError=true
[dash @ 0x7fca880a9800] No streams to mux were specified
[rtmps @ 0x7fcab0252100] Server error: Error publishing stream: code=30, msg=ERR, TERMINAL_ENT_STATE, URL=Domain: live-upload.instagram.com, url: /rtmp/XXXYYYZZZ?s_sw=0&s_vt=ig, sendPublishError=true
[rtmps @ 0x7fcab14d7f00] Server error: Error publishing stream: code=30, msg=ERR, TERMINAL_ENT_STATE, URL=Domain: live-upload.instagram.com, url: /rtmp/XXXYYYZZZ?s_sw=0&s_vt=ig, sendPublishError=true
[dash @ 0x7fcab0026dc0] No streams to mux were specified
[rtmps @ 0x7fcab8154a00] Server error: Error publishing stream: code=30, msg=ERR, TERMINAL_ENT_STATE, URL=Domain: live-upload.instagram.com, url: /rtmp/XXXYYYZZZ?s_sw=0&s_vt=ig, sendPublishError=true
[rtmps @ 0x7fcaba634e00] Server error: Error publishing stream: code=30, msg=ERR, TERMINAL_ENT_STATE, URL=Domain: live-upload.instagram.com, url: /rtmp/XXXYYYZZZ?s_sw=0&s_vt=ig, sendPublishError=true
[dash @ 0x7fcaba656580] No streams to mux were specified
[rtmps @ 0x7fca4d56a280] Server error: Error publishing stream: code=30, msg=ERR, TERMINAL_ENT_STATE, URL=Domain: live-upload.instagram.com, url: /rtmp/XXXYYYZZZ?s_sw=0&s_vt=ig, sendPublishError=true
[rtmps @ 0x7fca4d92c4c0] Server error: Error publishing stream: code=30, msg=ERR, TERMINAL_ENT_STATE, URL=Domain: live-upload.instagram.com, url: /rtmp/XXXYYYZZZ?s_sw=0&s_vt=ig, sendPublishError=true
[dash @ 0x7fca4c52ce80] No streams to mux were specified
(webrtc_sdp.cc:409): Failed to parse: "". Reason: Expect line: candidate:<candidate-str>
(peer_connection.cc:3817): AddIceCandidate: Candidate is null.
(webrtc_sdp.cc:409): Failed to parse: "". Reason: Expect line: candidate:<candidate-str>
(peer_connection.cc:3817): AddIceCandidate: Candidate is null.
(webrtc_sdp.cc:409): Failed to parse: "". Reason: Expect line: candidate:<candidate-str>
(peer_connection.cc:3817): AddIceCandidate: Candidate is null.
Nov 27, 2020 9:49:44 AM io.vertx.core.impl.BlockedThreadChecker
WARNING: Thread Thread[vert.x-worker-thread-15,5,main]=Thread[vert.x-worker-thread-15,5,main] has been blocked for 2143 ms, time limit is 2000 ms
Nov 27, 2020 9:49:45 AM io.vertx.core.impl.BlockedThreadChecker
WARNING: Thread Thread[vert.x-worker-thread-15,5,main]=Thread[vert.x-worker-thread-15,5,main] has been blocked for 3142 ms, time limit is 2000 ms
Nov 27, 2020 9:49:46 AM io.vertx.core.impl.BlockedThreadChecker
WARNING: Thread Thread[vert.x-worker-thread-15,5,main]=Thread[vert.x-worker-thread-15,5,main] has been blocked for 4142 ms, time limit is 2000 ms
[rtmps @ 0x7fcab8153c80] Server error: Error publishing stream: code=30, msg=ERR, TERMINAL_ENT_STATE, URL=Domain: live-upload.instagram.com, url: /rtmp/XXXYYYZZZ?s_sw=0&s_vt=ig, sendPublishError=true
[rtmps @ 0x7fcab801ca80] Server error: Error publishing stream: code=30, msg=ERR, TERMINAL_ENT_STATE, URL=Domain: live-upload.instagram.com, url: /rtmp/XXXYYYZZZ?s_sw=0&s_vt=ig, sendPublishError=true
[dash @ 0x7fcab801f980] No streams to mux were specified
(stun_port.cc:96): Binding request timed out from 10.15.0.x:60198 (eth0)
(stun_port.cc:96): Binding request timed out from 10.104.0.x:55693 (eth1)
[mp4 @ 0x7fca942eee00] Application provided duration: -512 / timestamp: 585728 is out of range for mov/mp4 format
[mp4 @ 0x7fca94fbc880] Application provided duration: -512 / timestamp: 585728 is out of range for mov/mp4 format
[mp4 @ 0x7fca96711400] Application provided duration: -512 / timestamp: 585728 is out of range for mov/mp4 format
[mp4 @ 0x7fca94fbc880] Application provided duration: -512 / timestamp: 845312 is out of range for mov/mp4 format
mekya commented 3 years ago

Thank you for the issue.

I think there should be some kind of crash log if the broadcasting status is stuck wit "broadcasting"

Could you please check if there is a file with ".log" extension in /usr/local/antmedia directory? It should be something "hs_err_pidxxxx.log"