Hi,
I have installed licode on a fresh Ubuntu 12.04 32 bit server.
I am trying to run it through PM2 but it keeps on restarting.
Error logs:
0|licode | 32539
0|licode | 2016-09-27 04:16:27.576 - INFO: ErizoAgent - Launching a new
ErizoJS process
0|licode | 2016-09-27 04:16:27.579 - INFO: ErizoAgent - Launched new
ErizoJS f2e426dc-9605-48d2-427e-57714b5b6d55
0|licode | 2016-09-27 04:16:27.625 - INFO: CloudHandler - New
erizocontroller ( 2 ) in: 192.99.38.184
0|licode | 2016-09-27 04:16:27.627 - INFO: ErizoController - Succesfully
added myself to a CloudHandler pool
0|licode | [erizo-f2e426dc-9605-48d2-427e-57714b5b6d55] 2016-09-27
04:16:27.668 - INFO: ErizoJS - ID:
ErizoJS_f2e426dc-9605-48d2-427e-57714b5b6d55
0|licode | [erizo-f2e426dc-9605-48d2-427e-57714b5b6d55] 2016-09-27
04:16:27.672 - INFO: ErizoJS - ErizoJS bound to amqp queue
0|licode | events.js:72
0|licode | throw er; // Unhandled ‘error’ event
0|licode | ^
0|licode | Error: listen EADDRINUSE
0|licode | at errnoException (net.js:905:11)
0|licode | at Server._listen2 (net.js:1043:14)
0|licode | at listen (net.js:1065:10)
0|licode | at Server.listen (net.js:1139:5)
0|licode | at EventEmitter.listen
(/root/licode/node_modules/express/lib/application.js:617:24)
0|licode | at Object.
(/root/licode/nuve/nuveAPI/nuve.js:82:5)
0|licode | at Module._compile (module.js:456:26)
0|licode | at Object.Module._extensions…js (module.js:474:10)
0|licode | at Module.load (module.js:356:32)
0|licode | at Function.Module._load (module.js:312:12)
PM2 | App [licode] with id [0] and pid [28416], exited with code [0]
via signal [SIGINT]
PM2 | Starting execution sequence in -fork mode- for app name:licode
id:0
PM2 | App name:licode id:0 online
0|licode | 32539
0|licode | 2016-09-27 04:16:32.604 - INFO: ErizoAgent - Launching a new
ErizoJS process
0|licode | 2016-09-27 04:16:32.607 - INFO: ErizoAgent - Launched new
ErizoJS f5a2507f-2edb-3b34-a063-cb06753ee4aa
0|licode | 2016-09-27 04:16:32.654 - INFO: CloudHandler - New
erizocontroller ( 3 ) in: 192.99.38.184
0|licode | 2016-09-27 04:16:32.656 - INFO: ErizoController - Succesfully
added myself to a CloudHandler pool
0|licode | [erizo-f5a2507f-2edb-3b34-a063-cb06753ee4aa] 2016-09-27
04:16:32.700 - INFO: ErizoJS - ID:
ErizoJS_f5a2507f-2edb-3b34-a063-cb06753ee4aa
0|licode | [erizo-f5a2507f-2edb-3b34-a063-cb06753ee4aa] 2016-09-27
04:16:32.703 - INFO: ErizoJS - ErizoJS bound to amqp queue
0|licode | events.js:72
0|licode | throw er; // Unhandled ‘error’ event
0|licode | ^
0|licode | Error: listen EADDRINUSE
0|licode | at errnoException (net.js:905:11)
0|licode | at Server._listen2 (net.js:1043:14)
0|licode | at listen (net.js:1065:10)
0|licode | at Server.listen (net.js:1139:5)
0|licode | at EventEmitter.listen
(/root/licode/node_modules/express/lib/application.js:617:24)
0|licode | at Object.
(/root/licode/nuve/nuveAPI/nuve.js:82:5)
0|licode | at Module._compile (module.js:456:26)
0|licode | at Object.Module._extensions…js (module.js:474:10)
0|licode | at Module.load (module.js:356:32)
0|licode | at Function.Module._load (module.js:312:12)
Upon installation I had these errors on running installErizo.sh
./licode/scripts/installErizo.sh
Installing erizo…
– The C compiler identification is GNU
– The CXX compiler identification is GNU
– Check for working C compiler: /usr/bin/gcc
– Check for working C compiler: /usr/bin/gcc – works
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Check for working CXX compiler: /usr/bin/c++
– Check for working CXX compiler: /usr/bin/c++ – works
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
– checking for module ‘glib-2.0’
– found glib-2.0, version 2.32.4
– Found glib-2.0: /usr/include/glib-2.0, /
usr/lib/i386-linux-gnu/libglib-2.0.so;/usr/lib/i386-linux-gnu/libgobject-2.0.so;/usr/lib/i386-linux-gnu/libgthread-2.0.so
– Boost version: 1.46.1
– Found the following Boost libraries:
– thread
– regex
– system
– Configuring done
– Generating done
– Build files have been written to: /root/licode/erizo/build
Done
Scanning dependencies of target erizo
[ 3%] Building C object erizo/CMakeFiles/erizo.dir/dtls/bf_dwrap.c.o
[ 6%] Building CXX object erizo/CMakeFiles/erizo.dir/dtls/DtlsTimer.cpp.o
[ 9%] Building CXX object erizo/CMakeFiles/erizo.dir/dtls/DtlsClient.cpp.o
[ 12%] Building CXX object erizo/CMakeFiles/erizo.dir/dtls/DtlsSocket.cpp.o
[ 15%] Building CXX object erizo/CMakeFiles/erizo.dir/dtls/OpenSSLInit.cpp.o
[ 18%] Building CXX object erizo/CMakeFiles/erizo.dir/DtlsTransport.cpp.o
[ 21%] Building CXX object erizo/CMakeFiles/erizo.dir/StringUtil.cpp.o
[ 24%] Building CXX object
erizo/CMakeFiles/erizo.dir/OneToManyProcessor.cpp.o
[ 27%] Building CXX object
erizo/CMakeFiles/erizo.dir/rtp/RtcpAggregator.cpp.o
/root/licode/erizo/src/erizo/rtp/RtcpAggregator.cpp: In member function
‘virtual int erizo::RtcpAggregator::analyzeFeedback(char*, int)’:
/root/licode/erizo/src/erizo/rtp/RtcpAggregator.cpp:148:53: warning:
comparison between signed and unsigned integer expressions [-Wsign-compare]
/root/licode/erizo/src/erizo/rtp/RtcpAggregator.cpp:149:57: warning:
comparison between signed and unsigned integer expressions [-Wsign-compare]
/root/licode/erizo/src/erizo/rtp/RtcpAggregator.cpp:203:21: warning: format
‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type
‘uint64_t {aka long long unsigned int}’ [-Wformat]
/root/licode/erizo/src/erizo/rtp/RtcpAggregator.cpp: In member function
‘virtual void erizo::RtcpAggregator::checkRtcpFb()’:
/root/licode/erizo/src/erizo/rtp/RtcpAggregator.cpp:293:31: warning:
comparison between signed and unsigned integer expressions [-Wsign-compare]
/root/licode/erizo/src/erizo/rtp/RtcpAggregator.cpp:299:13: warning: format
‘%lu’ expects argument of type ‘long unsigned int’, but argument 5 has type
‘uint64_t {aka long long unsigned int}’ [-Wformat]
[ 30%] Building CXX object erizo/CMakeFiles/erizo.dir/rtp/RtpSink.cpp.o
[ 33%] Building CXX object erizo/CMakeFiles/erizo.dir/rtp/RtpVP8Parser.cpp.o
[ 36%] Building CXX object
erizo/CMakeFiles/erizo.dir/rtp/RtcpForwarder.cpp.o
/root/licode/erizo/src/erizo/rtp/RtcpForwarder.cpp: In member function
‘virtual int erizo::RtcpForwarder::analyzeFeedback(char*, int)’:
/root/licode/erizo/src/erizo/rtp/RtcpForwarder.cpp:140:21: warning: format
‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type
‘uint64_t {aka long long unsigned int}’ [-Wformat]
/root/licode/erizo/src/erizo/rtp/RtcpForwarder.cpp:140:21: warning: format
‘%lu’ expects argument of type ‘long unsigned int’, but argument 6 has type
‘uint64_t {aka long long unsigned int}’ [-Wformat]
[ 39%] Building CXX object erizo/CMakeFiles/erizo.dir/rtp/RtpSource.cpp.o
[ 42%] Building CXX object
erizo/CMakeFiles/erizo.dir/rtp/RtpVP8Fragmenter.cpp.o
[ 45%] Building CXX object
erizo/CMakeFiles/erizo.dir/rtp/RtpPacketQueue.cpp.o
[ 48%] Building CXX object
erizo/CMakeFiles/erizo.dir/rtp/RtpExtensionProcessor.cpp.o
[ 51%] Building CXX object erizo/CMakeFiles/erizo.dir/Stats.cpp.o
[ 54%] Building CXX object erizo/CMakeFiles/erizo.dir/SrtpChannel.cpp.o
[ 57%] Building CXX object erizo/CMakeFiles/erizo.dir/SdpInfo.cpp.o
/root/licode/erizo/src/erizo/SdpInfo.cpp: In member function ‘std::string
erizo::SdpInfo::getSdp()’:
/root/licode/erizo/src/erizo/SdpInfo.cpp:335:7: warning: format ‘%lu’
expects argument of type ‘long unsigned int’, but argument 4 has type
‘std::vectorerizo::ExtMap::size_type {aka unsigned int}’ [-Wformat]
/root/licode/erizo/src/erizo/SdpInfo.cpp:426:7: warning: format ‘%lu’
expects argument of type ‘long unsigned int’, but argument 4 has type
‘std::vectorerizo::ExtMap::size_type {aka unsigned int}’ [-Wformat]
[ 60%] Building CXX object
erizo/CMakeFiles/erizo.dir/media/codecs/AudioCodec.cpp.o
[ 63%] Building CXX object
erizo/CMakeFiles/erizo.dir/media/codecs/VideoCodec.cpp.o
[ 66%] Building CXX object
erizo/CMakeFiles/erizo.dir/media/MediaProcessor.cpp.o
[ 69%] Building CXX object
erizo/CMakeFiles/erizo.dir/media/ExternalInput.cpp.o
[ 72%] Building CXX object
erizo/CMakeFiles/erizo.dir/media/ExternalOutput.cpp.o
[ 75%] Building CXX object
erizo/CMakeFiles/erizo.dir/media/OneToManyTranscoder.cpp.o
[ 78%] Building CXX object
erizo/CMakeFiles/erizo.dir/media/mixers/VideoMixer.cpp.o
[ 81%] Building CXX object
erizo/CMakeFiles/erizo.dir/media/mixers/VideoUtils.cpp.o
[ 84%] Building CXX object erizo/CMakeFiles/erizo.dir/NiceConnection.cpp.o
/root/licode/erizo/src/erizo/NiceConnection.cpp: In member function ‘bool
erizo::NiceConnection::setRemoteCandidates(std::vectorerizo::CandidateInfo&,
bool)’:
/root/licode/erizo/src/erizo/NiceConnection.cpp:262:5: warning: format
‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type
‘std::vectorerizo::CandidateInfo::size_type {aka unsigned int}’ [-Wformat]
[ 87%] Building CXX object erizo/CMakeFiles/erizo.dir/WebRtcConnection.cpp.o
[ 90%] Building CXX object
erizo/CMakeFiles/erizo.dir/rtp/webrtc/forward_error_correction.cc.o
[ 93%] Building CXX object
erizo/CMakeFiles/erizo.dir/rtp/webrtc/rtp_utility.cc.o
/root/licode/erizo/src/erizo/rtp/webrtc/rtp_utility.cc:86:17: note: #pragma
message: LITTLE ENDIAN DEFINED
[ 96%] Building CXX object
erizo/CMakeFiles/erizo.dir/rtp/webrtc/fec_receiver_impl.cc.o
[100%] Building CXX object
erizo/CMakeFiles/erizo.dir/rtp/webrtc/forward_error_correction_internal.cc.o
Linking CXX shared library liberizo.so
[100%] Built target erizo
Installing erizoAPI…
nan@2.3.2 …/node_modules/nan
building with node-gyp
gyp info it worked if it ends with ok
gyp info using node-gyp@3.4.0
gyp info using node@0.10.37 | linux | ia32
gyp http GET https://nodejs.org/dist/v0.10.37/node-v0.10.37.tar.gz
gyp http 200 https://nodejs.org/dist/v0.10.37/node-v0.10.37.tar.gz
gyp http GET https://nodejs.org/dist/v0.10.37/SHASUMS256.txt
gyp http 200 https://nodejs.org/dist/v0.10.37/SHASUMS256.txt
gyp info spawn /usr/bin/python2
gyp info spawn args [ ‘/usr/lib/node_modules/node-gyp/gyp/gyp_main.py’,
gyp info spawn args ‘binding.gyp’,
gyp info spawn args ‘-f’,
gyp info spawn args ‘make’,
gyp info spawn args ‘-I’,
gyp info spawn args ‘/root/licode/erizoAPI/build/config.gypi’,
gyp info spawn args ‘-I’,
gyp info spawn args ‘/usr/lib/node_modules/node-gyp/addon.gypi’,
gyp info spawn args ‘-I’,
gyp info spawn args ‘/root/.node-gyp/0.10.37/common.gypi’,
gyp info spawn args ‘-Dlibrary=shared_library’,
gyp info spawn args ‘-Dvisibility=default’,
gyp info spawn args ‘-Dnode_root_dir=/root/.node-gyp/0.10.37’,
gyp info spawn args ‘-Dnode_gyp_dir=/usr/lib/node_modules/node-gyp’,
gyp info spawn args ‘-Dnode_lib_file=node.lib’,
gyp info spawn args ‘-Dmodule_root_dir=/root/licode/erizoAPI’,
gyp info spawn args ‘–depth=.’,
gyp info spawn args ‘–no-parallel’,
gyp info spawn args ‘–generator-output’,
gyp info spawn args ‘build’,
gyp info spawn args ‘-Goutput_dir=.’ ]
gyp info spawn make
gyp info spawn args [ ‘BUILDTYPE=Release’, ‘-C’, ‘build’ ]
make: Entering directory /root/licode/erizoAPI/build' CXX(target) Release/obj.target/addon/addon.o CXX(target) Release/obj.target/addon/WebRtcConnection.o CXX(target) Release/obj.target/addon/OneToManyProcessor.o CXX(target) Release/obj.target/addon/ExternalInput.o CXX(target) Release/obj.target/addon/ExternalOutput.o SOLINK_MODULE(target) Release/obj.target/addon.node COPY Release/addon.node make: Leaving directory
/root/licode/erizoAPI/build’
gyp info ok
Installing erizoController…
[erizo_controller] Installing node_modules for erizo_controller
ws@0.4.32 install /
root/licode/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws
(node-gyp rebuild 2> builderror.log) || (exit 0)
make: Entering directory / root/licode/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/build' CXX(target) Release/obj.target/bufferutil/src/bufferutil.o SOLINK_MODULE(target) Release/obj.target/bufferutil.node SOLINK_MODULE(target) Release/obj.target/bufferutil.node: Finished COPY Release/bufferutil.node CXX(target) Release/obj.target/validation/src/validation.o SOLINK_MODULE(target) Release/obj.target/validation.node SOLINK_MODULE(target) Release/obj.target/validation.node: Finished COPY Release/validation.node make: Leaving directory
/
root/licode/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/build’
node-getopt@0.2.3 …/node_modules/node-getopt
amqp@0.2.6 …/node_modules/amqp
└── lodash@4.16.2
log4js@0.6.38 …/node_modules/log4js
├── semver@4.3.6
└── readable-stream@1.0.34 (inherits@2.0.3, string_decoder@0.10.31,
isarray@0.0.1, core-util-is@1.0.2)
socket.io@0.9.16 http://socket.io@0.9.0.16/ …/node_modules/socket.io
├── base64id@0.1.0
├── policyfile@0.0.4
├── redis@0.7.3
└── socket.io-client@0.9.16 http://socket.io-client@0.9.0.16/
(xmlhttprequest@1.4.2, uglify-js@1.2.5, ws@0.4.32,
active-x-obfuscator@0.0.1)
[erizo_controller] Done, node_modules installed
[erizo_controller] Done, erizo.js compiled
Installing erizo_native_client…
[spine] Installing node_modules for Spine
|
ws@0.4.32 install /
root/licode/node_modules/socket.io-client/node_modules/ws
(node-gyp rebuild 2> builderror.log) || (exit 0)
make: Entering directory / root/licode/node_modules/socket.io-client/node_modules/ws/build' CXX(target) Release/obj.target/bufferutil/src/bufferutil.o SOLINK_MODULE(target) Release/obj.target/bufferutil.node SOLINK_MODULE(target) Release/obj.target/bufferutil.node: Finished COPY Release/bufferutil.node CXX(target) Release/obj.target/validation/src/validation.o SOLINK_MODULE(target) Release/obj.target/validation.node SOLINK_MODULE(target) Release/obj.target/validation.node: Finished COPY Release/validation.node make: Leaving directory
/
root/licode/node_modules/socket.io-client/node_modules/ws/build’
xmlhttprequest@1.5.0 …/node_modules/xmlhttprequest
node-getopt@0.2.3 …/node_modules/node-getopt
log4js@0.6.38 …/node_modules/log4js
├── readable-stream@1.0.34 (inherits@2.0.3, isarray@0.0.1,
string_decoder@0.10.31, core-util-is@1.0.2)
└── semver@4.3.6
socket.io-client@0.9.16 http://socket.io-client@0.9.0.16/ …/
node_modules/socket.io-client
├── xmlhttprequest@1.4.2
├── uglify-js@1.2.5
├── active-x-obfuscator@0.0.1 (zeparser@0.0.5)
└── ws@0.4.32 (tinycolor@0.0.1, options@0.0.6, commander@2.1.0, nan@1.0.0)
[spine] Done, node_modules installed
[spine] Done, erizofc.js compiled