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

Try a different resolution:" message is coming (MCU server)

Chandramouli_P
Beginner
920 Views

Hello,

We just started working with Intel CS for WebRTC version 4.1 on CentOS 7.x OS. Currently, we are working on setting up the development environment. As part of this, I have the below query:

I followed your documentation to install MCU server. Once everything is done, after executing "sudo bin/start-all.sh" command, every service is started and I didn't see any error messages also. But, when I am trying to open https://XXXXX:3004 from a web browser, I am getting blank video player windows with "Try a different resolution:" message. For your information, I disabled the firewall completely, server is in LAN, and SSH certificates are generated using openssl. I tested this Firefox, Chrome, and Opera browsers on Windows 10 OS. I am getting this issue with all web browsers. Please find the attached screen shot for your reference.

How to resolve this issue? How would I know that our MCU server is working fine?

Thank you, once again.

Best Regards,
Chandramouli.

0 Kudos
1 Solution
Qiujiao_W_Intel
Employee
920 Views

Chandramouli, according to your message, it seems that port 3001 is occupied by another process, so following error happened:

Error: listen EADDRINUSE :::3001
    at Server.setupListenHandle [as _listen2] (net.js:1360:14)
    at listenInCluster (net.js:1401:12)
    at Server.listen (net.js:1485:7)
    at Object.<anonymous> (/home/chandramouli/Release-v4.1/extras/basic_example/samplertcservice.js:462:9)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)
    at Function.Module.runMain (module.js:694:10)

And did you successfully run MCU without replacing the default certificate?

View solution in original post

0 Kudos
10 Replies
Qiujiao_W_Intel
Employee
920 Views

Hi, Chandramouli, did you replace default certificates in MCU with your own certificates? Please press F12 in Chrome to check whether there is error print in console, and also please check logs folder in MCU package for error message.

0 Kudos
Chandramouli_P
Beginner
920 Views

Hello Qiujiao,

Thank you for your reply. I generated self signed SSL certificates (with 2048-bit and 1024-bit private keys) using openssl. After that, replaced the existing certificates in "cert" folder with our new certificate as explained in the documentation. Also, executed ./initcert.js file in nuve, portal, webrtc_agent, management_console, extras/basic_example folders. Also, we changed icsREST.API.init value in extras/basic_example/samplertcservice.js from default value to generated values as below:

icsREST.API.init('5c18d02c2ac2c51650e4330a', '9WYQcqvDavAgc6z2oltKtb8pEUdOXAcy+OpR9elRELCvti9tMH3s3pbzL6322UtEeAXMRfeAOJiarFIQG54JFQ5spA8/SbKKU4Fb1Wj80FledRNASZqyiBRvtz1ABGfGIXtDqk6kfrreug3WDTHhaExxdRR571K0MXYwxQ70GS0=', 'http://localhost:3000/', true);

When, we run "sudo bin/init-all.sh [--deps]" and "sudo bin/start-all.sh" commands, there is no errors and found and got success messages in all log files. But, when we run https://192.168.75.27:3004/ or http://192.168.75.27:3001/ in the browser, below error is generating in "nuve" log file:

events.js:183
      throw er; // Unhandled 'error' event
      ^
Error: listen EADDRINUSE :::3001
    at Server.setupListenHandle [as _listen2] (net.js:1360:14)
    at listenInCluster (net.js:1401:12)
    at Server.listen (net.js:1485:7)
    at Object.<anonymous> (/home/chandramouli/Release-v4.1/extras/basic_example/samplertcservice.js:462:9)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)
    at Function.Module.runMain (module.js:694:10)

Please find the below console log (F12) in Chrome web browser:

POST http://192.168.75.27:3001/tokens/ 500 (Internal Server Error)
send        @rest-sample.js:15
createToken    @rest-sample.js:316
window.onload    @index.js:74
load (async)        
runSocketIOSample @index.js:64
(anonymous)    @(index):29

server connection failed: SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at ics.js:9
    at new Promise (<anonymous>)
    at n.ConferenceClient.join (ics.js:9)
    at index.js:76
    at XMLHttpRequest.req.onreadystatechange (rest-sample.js:8)
(anonymous)        @index.js:139
Promise.then (async)        
(anonymous)        @index.js:76
req.onreadystatechange    @rest-sample.js:8
XMLHttpRequest.send (async)        
send            @rest-sample.js:15
createToken        @rest-sample.js:316
window.onload        @index.js:74
load (async)        
runSocketIOSample    @index.js:64
(anonymous)        @(index):29

We tried to execute the commands as per extras/basic_example/README.md file. After executing "node samplertcservice.js" command, getting the same error as above:

events.js:183
      throw er; // Unhandled 'error' event
      ^

Error: listen EADDRINUSE :::3001
    at Server.setupListenHandle [as _listen2] (net.js:1360:14)
    at listenInCluster (net.js:1401:12)
    at Server.listen (net.js:1485:7)
    at Object.<anonymous> (/home/chandramouli/Release-v4.1/extras/basic_example/samplertcservice.js:462:9)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)
    at Function.Module.runMain (module.js:694:10)

Also, when I executed ./initcert.js command, one warning is coming. I believe that there is no relation between this warning and the above error. Please find the below warning message:
Enter passphrase of certificate: something
(node:7775) Warning: Use Cipheriv for counter mode of aes-256-ctr
done!

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

Thank you.

Best Regards,
Chandramouli.

0 Kudos
Qiujiao_W_Intel
Employee
921 Views

Chandramouli, according to your message, it seems that port 3001 is occupied by another process, so following error happened:

Error: listen EADDRINUSE :::3001
    at Server.setupListenHandle [as _listen2] (net.js:1360:14)
    at listenInCluster (net.js:1401:12)
    at Server.listen (net.js:1485:7)
    at Object.<anonymous> (/home/chandramouli/Release-v4.1/extras/basic_example/samplertcservice.js:462:9)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)
    at Function.Module.runMain (module.js:694:10)

And did you successfully run MCU without replacing the default certificate?

0 Kudos
Chandramouli_P
Beginner
920 Views

Hello Qiujiao,

Thank you very much for your reply and hints. As you suggested, I run the sample application with default certificates. I also changed the https default port number in the sample application source code. Now, we are able to run MCU application successfully. Also, feel very happy to see our video :).

I will do the same with the generated SSL certificate and update you.

Thank you, once again.

Best Regards,
Chandramouli.

0 Kudos
Chandramouli_P
Beginner
920 Views

Hello Qiujiao,

We are able to run MCU application successfully after replacing our self-signed SSL certificates with the default certificates. As of now, everything works fine. But, we noticed one thing. When we run https://192.168.75.27:3004 in the browser, below error is generating in "portal" log file:

ERROR: V10Client - unsubscribe failed: Subscription does NOT exist

Why this error is coming and request you to help us to resolve this error.

Thank you.

Best Regards,
Chandramouli.

0 Kudos
Chandramouli_P
Beginner
920 Views

Hello,

Any update would be appreciated. Thank you.

Best Regards,
Chandramouli.

0 Kudos
Chandramouli_P
Beginner
920 Views

Hello,

Any help would be appreciated.

Thank you.

Best Regards,
Chandramouli.

0 Kudos
Lei_Z_Intel1
Employee
920 Views

Did the web sample behave well when this "unsubscribe failed" error occurs? 

0 Kudos
Chandramouli_P
Beginner
920 Views

Hello Lei Zhai,

We wish you a very happy new year. Yes. As per our observation, the web sample behaved well when "unsubscribe failed" error occured.

Any help would be appreciated.

Thank you.

Best Regards,
Chandramouli.

0 Kudos
Qiujiao_W_Intel
Employee
920 Views

This may happen when we try to stop a subscription which has been already stopped, and this will not impact functionality.

0 Kudos
Reply