FAILED - Failed by ICE keep alive

RapidID

New Member
Hi Flashphoner,

I am receiving errors trying to stream record (WCS now set up on AWS EC2 t2_small Ubuntu).
After I have imported the certificate, I get the error attached saying "Failed by ICE keep alive".

Could you please advise? Thank you.
 

Attachments

  • Screen Shot 2018-03-19 at 10.57.09 am.png
    Screen Shot 2018-03-19 at 10.57.09 am.png
    25 KB · Views: 454
Hello
It looks like firewall issue.
Try to open all UDP and TCP ports for this AWS instance.
At least default UDP port range must be opened [31000-32000]
 
I am getting the same error and I have verified on my AWS instance that the ports are open.

PortsProtocolSourceUbuntu-security
80tcp0.0.0.0/0✔
8888tcp0.0.0.0/0✔
8080tcp0.0.0.0/0✔
30000-33000udp0.0.0.0/0✔
1935tcp0.0.0.0/0✔
554tcp0.0.0.0/0✔
22tcp0.0.0.0/0✔
8443tcp0.0.0.0/0✔
8082tcp0.0.0.0/0✔
1935udp0.0.0.0/0✔
30000-33000tcp0.0.0.0/0✔

I do not have a valid SSL cert setup on my server. Is it required to get streaming to work?
 
I do not have a valid SSL cert setup on my server. Is it required to get streaming to work?
Yes, you should setup a valid SSL certificate as described here. Here is step by step instruction to setup Let's Encrypt certificate.
 
I have the cert setup and I am still experience the Failed by ICE keep alive error.

OBJECT:
{
"nodeId" : "XgIh9BUTQtq9lKdI7nGbNjD8AREuTEew@*******",
"appKey" : "defaultApp",
"sessionId" : "*********",
"mediaSessionId" : "dadcc6d0-cd80-11e8-bd5d-69b8a2853f1b",
"name" : "rtsp://************/Streaming/Channels/101?transportmode=unicast&profile=Profile_1",
"published" : false,
"hasVideo" : true,
"hasAudio" : true,
"status" : "FAILED",
"audioCodec" : "opus",
"info" : "Failed by ICE keep alive",
"record" : false,
"width" : 0,
"height" : 0,
"bitrate" : 0,
"minBitrate" : 0,
"maxBitrate" : 0,
"quality" : 0,
"createDate" : 1539281388851,
"mediaProvider" : "WebRTC",
"history" : false,
"origin" : "https://media.observables.com:8888",
"history" : false
}
 
Version 5.1.3546
External IP was wrong. I updated and restarted the service and the ICE error went away but the embedded player example shows the white spinner constantly spinning without any video playing. This is from the logs.

OBJECT:
{
"nodeId" : "XgIh9BUTQtq9lKdI7nGbNjD8AREuTEew@************",
"appKey" : "defaultApp",
"sessionId" : "/******************:8443",
"mediaSessionId" : "cae87810-cd84-11e8-9dc7-85563ef0e0ef",
"name" : "rtsp://******************/Streaming/Channels/101?transportmode=unicast&profile=Profile_1",
"published" : false,
"hasVideo" : true,
"hasAudio" : true,
"status" : "PLAYING",
"audioCodec" : "opus",
"videoCodec" : "H264",
"record" : false,
"width" : 0,
"height" : 0,
"bitrate" : 0,
"minBitrate" : 0,
"maxBitrate" : 0,
"quality" : 0,
"createDate" : 1539283080215,
"mediaProvider" : "WebRTC",
"history" : false,
"origin" : "https://media.observables.com:8888",
"history" : false
}
18:38:31,222 INFO WSServerHandler - WS-pool-14-thread-1 Orgign: null
18:38:31,224 WARN WSServerHandler - WS-pool-14-thread-1 Close channel [id: 0x79f7ec83, /***********:42766 => /**********:8080] because: org.jboss.netty.handler.codec.http.websocketx.WebSocketHandshakeException 'not a WebSocket handshake request: missing upgrade'
18:39:00,750 INFO PullAgent - RTSP-AGENT-rtsp://******************/Streaming/Channels/101?transportmode=unicast&profile=Profile_1-47bd679d-bd54-4d37-a7dc-486dead8cfe9 Agent has subscribers
18:39:53,031 ERROR StunDatagramSocket - Stun receiver udp/31006 Receive STUN error package: Message=BINDING-ERROR-RESPONSE
18:40:00,759 INFO PullAgent - RTSP-AGENT-rtsp://******************/Streaming/Channels/101?transportmode=unicast&profile=Profile_1-47bd679d-bd54-4d37-a7dc-486dead8cfe9 Agent has subscribers
 
Try to add
Code:
rtp_force_synchronization=true
in flashphoner.properties and restart WCS server
If you have any further issues / questions, please create a new forum thread.
 
Top