Failed by ICE timeout

vorodot

New Member
Hi,
I've installed WCS 5 in a AWS instance.
Purchased the $75 monthly subscription.
Added the licence to the instance.

When I log on to the https://ip_address:8888 everything is fine - the two way streaming works fine.

I now have created a broadcaster in another AWS instance. But when I try to publish to wss://ip_address:8443 I get a "Failed by ICE timeout"

I have all the ports opened on AWS in inbound rules and when I tail the flashphoner server logs I see that I'm hitting the server.

However this is what I see in the server logs:

Code:
22:30:35,136 INFO        RtcMediaClient - IceTimeoutThread - 3872d9d0-ea47-11ea-9028-21847397fcd4 Stop media session 3872d9d0-ea47-11ea-9028-21847397fcd4
22:30:35,137 INFO                 Agent - IceTimeoutThread - 3872d9d0-ea47-11ea-9028-21847397fcd4 ICE state changed from Running to Terminated. Local ufrag 3872d9d0/ea47/11ea/9028/21847397fcd4dna221egu5fi6b
22:30:35,138 INFO  ergingDatagramSocket - IceTimeoutThread - 3872d9d0-ea47-11ea-9028-21847397fcd4 Closing.
22:30:35,138 INFO         StunTcpSocket - IceTimeoutThread - 3872d9d0-ea47-11ea-9028-21847397fcd4 Close socket
22:30:35,144 INFO          MediaSession - IceTimeoutThread - 3872d9d0-ea47-11ea-9028-21847397fcd4 Stop MediaSession id: 3872d9d0-ea47-11ea-9028-21847397fcd4
22:30:35,144 INFO          MediaSession - IceTimeoutThread - 3872d9d0-ea47-11ea-9028-21847397fcd4 '3872d9d0-ea47-11ea-9028-21847397fcd4' has been terminated
22:30:35,168 INFO            RestClient - API-ASYNC-pool-12-thread-2 SEND REST OBJECT ==>
URL:http://localhost:8081/apps/EchoApp/StreamStatusEvent
OBJECT:
{
  "nodeId" : "LjhizDHLXtr7yMemuDDGyuNXd4o9UiHO@100.25.221.3",
  "appKey" : "defaultApp",
  "sessionId" : "/76.26.24.202:43680/172.31.63.82:8443-f7c7ea04-3b2d-47a7-9a9b-1b1d4043c11c",
  "mediaSessionId" : "3872d9d0-ea47-11ea-9028-21847397fcd4",
  "name" : "demo123",
  "published" : true,
  "hasVideo" : true,
  "hasAudio" : true,
  "status" : "FAILED",
  "audioCodec" : "opus",
  "info" : "Failed by ICE timeout",
  "record" : false,
  "width" : 0,
  "height" : 0,
  "bitrate" : 0,
  "minBitrate" : 0,
  "maxBitrate" : 0,
  "quality" : 0,
  "history" : false,
  "gop" : 0,
  "fps" : 0,
  "audioBitrate" : 0,
  "codecImpl" : "",
  "transport" : "TCP",
  "cvoExtension" : false,
  "createDate" : 1598740220111,
  "mediaType" : "publish",
  "mediaProvider" : "WebRTC",
  "custom" : {
    "streamType" : "webrtc",
    "streamName" : "demo123"
  },
  "origin" : "https://rc.fanpress.com",
  "constraints" : {
    "audio" : true,
    "video" : {
      "frameRate" : 20,
      "width" : 640,
      "height" : 480,
      "deviceId" : {
        "exact" : "ccbee15d89c40bae0fe32371f3c0585883ae11cde699a6544eaa321581734a73"
      }
    },
    "frameRate" : 20,
    "maxBitrate" : 6000,
    "minBitrate" : 300
  }
}
22:30:35,170 INFO         RestApiRouter - HTTP-pool-2-thread-4 Use controller class com.flashphoner.rest.server.apps.echo_apps.EchoApp with path /apps/EchoApp/StreamStatusEvent
22:30:35,171 INFO               EchoApp - HTTP-pool-2-thread-4 handleRequest method: StreamStatusEvent params:{nodeId=LjhizDHLXtr7yMemuDDGyuNXd4o9UiHO@100.25.221.3, appKey=defaultApp, sessionId=/76.26.24.202:43680/172.31.63.82:8443-f7c7ea04-3b2d-47a7-9a9b-1b1d4043c11c, mediaSessionId=3872d9d0-ea47-11ea-9028-21847397fcd4, name=demo123, published=true, hasVideo=true, hasAudio=true, status=FAILED, audioCodec=opus, info=Failed by ICE timeout, record=false, width=0, height=0, bitrate=0, minBitrate=0, maxBitrate=0, quality=0, history=false, gop=0, fps=0, audioBitrate=0, codecImpl=, transport=TCP, cvoExtension=false, createDate=1598740220111, mediaType=publish, mediaProvider=WebRTC, custom={streamType=webrtc, streamName=demo123}, origin=https://rc.fanpress.com, constraints={audio=true, video={frameRate=20, width=640, height=480, deviceId={exact=ccbee15d89c40bae0fe32371f3c0585883ae11cde699a6544eaa321581734a73}}, frameRate=20, maxBitrate=6000, minBitrate=300}}
22:30:35,174 INFO            RestClient - API-ASYNC-pool-12-thread-2 content -> {"nodeId":"LjhizDHLXtr7yMemuDDGyuNXd4o9UiHO@100.25.221.3","appKey":"defaultApp","sessionId":"/76.26.24.202:43680/172.31.63.82:8443-f7c7ea04-3b2d-47a7-9a9b-1b1d4043c11c","mediaSessionId":"3872d9d0-ea47-11ea-9028-21847397fcd4","name":"demo123","published":true,"hasVideo":true,"hasAudio":true,"status":"FAILED","audioCodec":"opus","info":"Failed by ICE timeout","record":false,"width":0,"height":0,"bitrate":0,"minBitrate":0,"maxBitrate":0,"quality":0,"history":false,"gop":0,"fps":0,"audioBitrate":0,"codecImpl":"","transport":"TCP","cvoExtension":false,"createDate":1598740220111,"mediaType":"publish","mediaProvider":"WebRTC","custom":{"streamType":"webrtc","streamName":"demo123"},"origin":"https://rc.fanpress.com","constraints":{"audio":true,"video":{"frameRate":20,"width":640,"height":480,"deviceId":{"exact":"ccbee15d89c40bae0fe32371f3c0585883ae11cde699a6544eaa321581734a73"}},"frameRate":20,"maxBitrate":6000,"minBitrate":300}}
22:30:35,177 INFO            RestClient - API-ASYNC-pool-12-thread-2 RECEIVED REST OBJECT <==
URL:http://localhost:8081/apps/EchoApp/StreamStatusEvent
OBJECT:
{
  "nodeId" : "LjhizDHLXtr7yMemuDDGyuNXd4o9UiHO@100.25.221.3",
  "appKey" : "defaultApp",
  "sessionId" : "/76.26.24.202:43680/172.31.63.82:8443-f7c7ea04-3b2d-47a7-9a9b-1b1d4043c11c",
  "mediaSessionId" : "3872d9d0-ea47-11ea-9028-21847397fcd4",
  "name" : "demo123",
  "published" : true,
  "hasVideo" : true,
  "hasAudio" : true,
  "status" : "FAILED",
  "audioCodec" : "opus",
  "info" : "Failed by ICE timeout",
  "record" : false,
  "width" : 0,
  "height" : 0,
  "bitrate" : 0,
  "minBitrate" : 0,
  "maxBitrate" : 0,
  "quality" : 0,
  "history" : false,
  "gop" : 0,
  "fps" : 0,
  "audioBitrate" : 0,
  "codecImpl" : "",
  "transport" : "TCP",
  "cvoExtension" : false,
  "createDate" : 1598740220111,
  "mediaType" : "publish",
  "mediaProvider" : "WebRTC",
  "custom" : {
    "streamType" : "webrtc",
    "streamName" : "demo123"
  },
  "origin" : "https://rc.fanpress.com",
  "constraints" : {
    "audio" : true,
    "video" : {
      "frameRate" : 20,
      "width" : 640,
      "height" : 480,
      "deviceId" : {
        "exact" : "ccbee15d89c40bae0fe32371f3c0585883ae11cde699a6544eaa321581734a73"
      }
    },
    "frameRate" : 20,
    "maxBitrate" : 6000,
    "minBitrate" : 300
  }
}
Any help will be appreciated.

Thank you,
-Plamen
 

Max

Administrator
Staff member
Good day.
Please clarify: do you publish a stream from one WCS instance to another via WebRTC using REST API?
If yes, and if you're using secure Websocket URI to publish wss://ip_address:8443, please enable WSS in both servers configuration:
Code:
wcs_agent_ssl=true
If, however, you're using other broadcasting software, please describe your case in more details.
Also, please collect a full report on WCS as described here including client debug logs and send using this link, we'll check,
If you have any trouble to collect the report, please provide SSH access to both instances using this link and describe the test case in maximum details, we'll try to reproduce it.
 
Top