Intel® Collaboration Suite for WebRTC
Community support and discussions on the Intel® Collaboration Suite for WebRTC (Intel® CS for WebRTC).

ICE failed, add a STUN server message in v.4.3

Chandramouli_P
Beginner
1,965 Views

Hello,

We installed Intel CS for WebRTC v.4.3 on Ubuntu 18.04 operating system. When we are trying to run the default (sample) application, the calls are disconnecting and getting "ICE failed, add a STUN server" (OR) "subscribe failed Error: "Ice procedure failed." messages. We are getting this message, even though we added STUN server in webrtc_agent/agent.toml file.

Anybody able to run the sample application by deploying Intel CS for WebRTC framework globally?

Please find the complete log:

subscribe failed Error: "Ice procedure failed."
    a https://core1.telebu.io/scripts/owt.js:9
    r https://core1.telebu.io/scripts/owt.js:9
    t https://core1.telebu.io/scripts/owt.js:9
    value https://core1.telebu.io/scripts/owt.js:9
    value https://core1.telebu.io/scripts/owt.js:9
    value https://core1.telebu.io/scripts/owt.js:9
    C https://core1.telebu.io/scripts/owt.js:9
    ConferenceClient https://core1.telebu.io/scripts/owt.js:9
    dispatchEvent https://core1.telebu.io/scripts/owt.js:9
    dispatchEvent https://core1.telebu.io/scripts/owt.js:9
    value https://core1.telebu.io/scripts/owt.js:9
    emit https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.2.0/socket.io.js:6
    onevent https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.2.0/socket.io.js:8
    onpacket https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.2.0/socket.io.js:8
    exports https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.2.0/socket.io.js:8
    emit https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.2.0/socket.io.js:6
    ondecoded https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.2.0/socket.io.js:6
    exports https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.2.0/socket.io.js:8
    emit https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.2.0/socket.io.js:6
    add https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.2.0/socket.io.js:6
    ondata https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.2.0/socket.io.js:6
    exports https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.2.0/socket.io.js:8
    emit https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.2.0/socket.io.js:6
    onPacket https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.2.0/socket.io.js:6
    setTransport https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.2.0/socket.io.js:6
    emit https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.2.0/socket.io.js:6
    onPacket https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.2.0/socket.io.js:7
    onData https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.2.0/socket.io.js:7
    onmessage https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.2.0/socket.io.js:8
index.js:107:29
Error: Ice procedure failed. owt.js:9:47687
Cannot find specific remote stream. owt.js:9:42375
ICE connection state changed to failed owt.js:9:35149
Neither publication nor subscription is available. owt.js:9:38467
ICE failed, add a STUN server and see about:webrtc for more details
ICE connection state changed to failed owt.js:9:35149
Neither publication nor subscription is available. owt.js:9:38467
ICE failed, add a STUN server and see about:webrtc for more details

Hence, request you to help us to resolve the issue.

Thank you in advance.

Best Regards,
Chandramouli.

0 Kudos
9 Replies
Chandramouli_P
Beginner
1,965 Views

Hello Team,

Good evening and any help would be appreciated.

Thank you.

Best Regards,
Chandramouli.

0 Kudos
Chandramouli_P
Beginner
1,965 Views

Hello Team,

Good evening and wish you a very happy new year. Any help would be appreciated.

Thank you.

Best Regards,
Chandramouli.

0 Kudos
Li_C_Intel
Employee
1,965 Views

Hi, 

If you add a STUN server, you need change the default JS sample (usually: extras/basic_example/public/index.js) by adding configuration when creating conference client to make it work.

0 Kudos
Chandramouli_P
Beginner
1,965 Views

Hello Li,

Thank you for your reply. We haven't found "index.js" file in extras/basic_example/public/ folder. But, found "index.js" file in extras/basic_example/public/scripts/ folder. But, I haven't found any parameter or part to add STUN details in extras/basic_example/public/scripts/index.js file. Could you please tell where we have to add STUN details exactly?

Thank you.

Best Regards,
Chandramouli.

0 Kudos
Chandramouli_P
Beginner
1,965 Views

Hello Li,

If I am correct, we added STUN/TURN information in extras/basic_example/public/scripts/index.js file as below:

   ---------------
   ---------------   
    conference = new Owt.Conference.ConferenceClient({ iceServers:  [{
    urls: "stun:abc.def.com:80"
  }, {
    urls: "turn:abc.def.com:443",
    credential: "password",
    username: "username"
  }]
}
);
  ---------------
  ---------------

Although, we are getting the same issue. More over, we found the below error in most of the log files after executing the "sudo bin/start-all.sh" command:

2020-01-08 16:03:33.720  - INFO: WorkingNode - pid: 12230
2020-01-08 16:03:33.722  - INFO: WorkingNode - Connecting to rabbitMQ server...
2020-01-08 16:03:33.731  - INFO: AmqpClient - Connecting to rabbitMQ server OK, options: { host: 'localhost', port: 5672 }
2020-01-08 16:03:33.739  - INFO: AmqpClient - Connection to rabbitMQ server error Error: libavformat.so.58: cannot open shared object file: No such file or directory
    at Object.Module._extensions..node (module.js:682:18)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)
    at Module.require (module.js:597:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/home/chandramouli/Release-v4.3/streaming_agent/streaming/index.js:1:202)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
2020-01-08 16:03:33.742  - INFO: AmqpClient - Connection to rabbitMQ server error { Error: read ECONNRESET
    at TCP.onread (net.js:622:25) errno: 'ECONNRESET', code: 'ECONNRESET', syscall: 'read' }
2020-01-08 16:03:34.743  - INFO: AmqpClient - Connecting to rabbitMQ server OK, options: { host: 'localhost', port: 5672 }

Please note that we are getting all these issues in v.4.3 only. Hence, request you to help us to resolve the issue.

Thank you.

Best Regards,
Chandramouli.

0 Kudos
Chandramouli_P
Beginner
1,965 Views

Hello Li,

Good morning and any help would be appreciated.

Thank you.

Best Regards,
Chandramouli.

0 Kudos
Chandramouli_P
Beginner
1,965 Views

Hello Li,

Good evening and thank you for your reply. We are following same installation process only to 4.3 version, like 4.2 and 4.2.1 versions. The same environment is successfully working in 4.2.1 version. Also, same environment with STUN/TURN server, 4.2.x works fine while 4.3 is not working. As I noticed, there are no error messages in logs. Anyway, please find the below information as you asked:

Environment:

Server (MCU) Operating System: Ubuntu 18.04 Server (Minimal version - command line only) and CentOS 7.x (Minimal version - command line only)
Linux Kernel Version: 4.15.0-69-generic (Default) and 5.3.6 (Low latency - Updated)
Browser: Google Chrome Version 77.0.3865.90 (Official Build) (64-bit) and Firefox on Windows 10 Pro
Intel CS for WebRTC Version: 4.3
Firewall: No firewall and all ports are opened
Cloud Environment: AWS

Installation Steps:
1) Installed updates and essential common development libraries
2) Removed firewalld and iptables
3) Installed RabbitMQ, and MongoDB in the same server only
4) Installed NodeJS 8.x
5) Download and unzip CS_WebRTC_Conference_Server_MCU.v4.3.Ubuntu.tgz
6) Installed dependencies in video_agent folder (./install_deps.sh)
7) Installed openh264 library in video_agent folder (./install_openh264.sh)
8) ./compile_ffmpeg_with_libfdkaac.sh in audio_agent folder
9) cp ffmpeg_libfdkaac_lib/* lib/
10) Installed dependencies (./install_deps.sh) in conference_agent, streaming_agent, recording_agent, and sip_agent folders individually to avoid "Connection to rabbitMQ server error Error: libavformat.so.58: cannot open shared object file" error.
11) Changed private IP address and public IP address in the respective .toml files (as same as v.4.2.1)
12) sudo bin/init-all.sh [--deps]
13) sudo bin/start-all.sh
14) Run the sample application from the browser

Please find the logs that you asked in the below link:

https://pastebin.com/be7MSVKU

These are the steps that I followed. Please correct me, If there is anything wrong. If you need any other information, please let me know. I look forward to hearing from you.

Thank you

Best Regards,
Chandramouli.

0 Kudos
Li_C_Intel
Employee
1,965 Views

Hi,

I see your log  contains "libavformat.so.58: cannot open shared object file: No such file or directory".

That means ffmpeg libs are not installed. You can run "bin/init-all.sh --deps" to install all dependencies.

0 Kudos
Chandramouli_P
Beginner
1,965 Views

Hello Li,

Good evening and thank you for your reply. We solved the "libavformat.so.58" issue by installing the dependencies. Although, there is no relation between this issue and "ICE failed" error. Hence, we can close this thread and redirecting to the below similar thread"

https://software.intel.com/en-us/forums/intel-collaboration-suite-for-webrtc/topic/842374#comment-1953102

We look forward to your help.

Thank you.

Best Regards,
Chandramouli.

0 Kudos
Reply