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

WebRTC v2.0 start problem

Artem_M_
New Contributor I
849 Views

We installed v2 server as it was descrobed in manual.

We try to start it,But we faced with errors in woogeen-agent.stdout:

2015-01-17 19:13:53.670  - INFO: ErizoAgent - Terminate ErizoJS e0fa3ba0-0700-052f-4f50-db14eadfb3fc callback

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: spawn EMFILE
    at errnoException (child_process.js:1001:11)
    at Process.ChildProcess._handle.onexit (child_process.js:792:34)

 

And created a lot of files like erizo-feda4fe6-cfd6-cfc6-0075-800ba63a91ff.log

with content:

axconfig: port 1 not active
axconfig: port 2 not active

Previously we used version 1 and 1.5 - all was ok.

What should we do?

 

 

 

0 Kudos
7 Replies
Chunbo_H_Intel1
Employee
849 Views

Hi Artem,

Thanks for your continuous support on our products!

Regarding the issue you mentioned, do you run v2.0 on the same machine that has been used for our v1.0 and v1.5?

If yes, then you need to restart MongoDB and RabbitMQ before launching v2.0.

0 Kudos
Artem_M_
New Contributor I
849 Views

we tested on both examples:
on server where previously was 1 and 1.5 and on clean server.
To retest - we rebooted full server(where 1.5 worked) and tryed to start.

Start log:

oracle@vm2:~/Release-v2.0/bin$ sudo ./start-all.sh
starting nuve, stdout -> /home/oracle/Release-v2.0/logs/woogeen-nuve.stdout
791
2015-01-18 16:12:26.841  - INFO: RPC - Conected to rabbitMQ server
2015-01-18 16:12:26.846  - INFO: RPC - Exchange rpcExchange is open
2015-01-18 16:12:26.852  - INFO: RPC - Queue nuveQueue is open
2015-01-18 16:12:26.856  - INFO: RPC - ClientQueue amq.gen-gUhXUsYJKJKsY7gu0-IEXq is open
starting controller, stdout -> /home/oracle/Release-v2.0/logs/woogeen-controller.stdout
2015-01-18 16:12:28.600  - INFO: RPC - Exchange rpcExchange is open
2015-01-18 16:12:28.608  - INFO: RPC - ClientQueue amq.gen-Q16IfxwIR4rnvf98MoPOZW is open
starting agent, stdout -> /home/oracle/Release-v2.0/logs/woogeen-agent.stdout
Running process
Running process
Running process
2015-01-18 16:12:29.735  - INFO: RPC - Exchange rpcExchange is open
Running process
Running process
2015-01-18 16:12:29.753  - INFO: RPC - ClientQueue amq.gen-g_d_Lo7zcOnV0vwolHTcOH is open
Running process
Running process
2015-01-18 16:12:29.771  - INFO: RPC - Queue ErizoAgent is open
starting app, stdout -> /home/oracle/Release-v2.0/logs/woogeen-app.stdout


And error in woogeen-agent.stdout

Running process
2015-01-18 16:12:33.231  - INFO: ErizoAgent - Terminate ErizoJS 8181fd0c-2e98-4005-d149-8449d1a5af6c callback

child_process.js:948
    throw errnoException(process._errno, 'spawn');
          ^
Error: spawn EMFILE
    at errnoException (child_process.js:1001:11)
    at ChildProcess.spawn (child_process.js:948:11)
    at exports.spawn (child_process.js:736:9)
    at launchErizoJS (/home/oracle/Release-v2.0/mcu/erizoAgent/erizoAgent.js:1:1891)
    at ChildProcess.<anonymous> (/home/oracle/Release-v2.0/mcu/erizoAgent/erizoAgent.js:1:2083)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:756:16)
    at Process.ChildProcess._handle.onexit (child_process.js:823:5)

 

0 Kudos
Chunbo_H_Intel1
Employee
849 Views

One question regarding "sudo" in start operation, I think it will bring different behaviors from non-sudo mode. We recommend to start server without sudo privilege.

If issue still exists, please pack all the log files and upload to us for further analysis and verification. Thanks!

0 Kudos
Artem_M_
New Contributor I
849 Views

In not sudo mode - test example starts, but video doesn't translating.

Log is in attachment.447103

woogeen-agent.stdout has error at the end: 

2015-01-19 14:59:35.394  - INFO: ErizoAgent - Terminate ErizoJS 3813bac0-4b03-5f13-b50c-2ed5bcce5ccf callback

child_process.js:948
    throw errnoException(process._errno, 'spawn');
          ^
Error: spawn EMFILE
    at errnoException (child_process.js:1001:11)
    at ChildProcess.spawn (child_process.js:948:11)
    at exports.spawn (child_process.js:736:9)
    at launchErizoJS (/home/oracle/Release-v2.0/mcu/erizoAgent/erizoAgent.js:1:1891)
    at ChildProcess.<anonymous> (/home/oracle/Release-v2.0/mcu/erizoAgent/erizoAgent.js:1:2083)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:756:16)
    at Process.ChildProcess._handle.onexit (child_process.js:823:5)

 

 

in javascript error is in 

(woogen.sdk.js)

function e(a) {
                    b.call(this, a), this.isMixed = function() {
                        return !!a.video && "mix" === a.video.category
                    }, this.from = a.from
                }

a.video.category - is undefined

Started server is in http://46.182.24.175:3001/

0 Kudos
Chunbo_H_Intel1
Employee
849 Views

It seems the axconfig error message comes from Node.JS. Could you share the node version you are using currently? Where do you download the Node.JS package?

In most case, axconfig error happens if you install node from sudo. In this case, uninstall node by sudo apt-get remove node... and reinstall the right version node without sudo.

0 Kudos
Artem_M_
New Contributor I
849 Views

Thanks.You are right.
My WRANG way on installing nodejs was:

sudo apt-get install software-properties-common python-software-properties
sudo add-apt-repository ppa:chris-lea/node.js 
sudo apt-get update
sudo apt-get install nodejs -y

The RIGHT way of installing node is:

#installing tools for NVM
sudo apt-get install build-essential libssl-dev

#downloading nvm
curl https://raw.githubusercontent.com/creationix/nvm/v0.16.1/install.sh | sh

#relogin the bash

#looking available versions
nvm ls-remote

#installing need version
nvm install v0.10.26


#start script
Release-v2.0/bin/start-all.sh

 

0 Kudos
Chunbo_H_Intel1
Employee
849 Views

Great to see the problem solved.

0 Kudos
Reply