Issues running on Ubuntu 12.04

177 views
Skip to first unread message

gye...@clearpathrobotics.com

unread,
Nov 26, 2014, 9:54:01 AM11/26/14
to meetech...@googlegroups.com
Hey, I was trying to install on precise and had some issues (worked fine in Trusty)

First, the install was a bit tricky but that's whatever

# sctp dependency
sudo aptitude install libevent-dev

cd ~/Downloads

# libogg (opus dep)
tar -zxvf libogg-1.3.1.tar.gz
cd libogg-1.3.1
./configure --prefix=/usr
make
sudo make install
cd /usr/lib
cp libogg.so.0.8.0 x86_64-linux-gnu/
sudo ldconfig

# Opus
tar -zxvf opus-1.0.3.tar.gz
cd opus-1.0.3
./configure --prefix=/usr
make
sudo make install


Alright, cool now usrsctp, libwebsock, and rabbitmq without any of them erroring. Installing janus also works as described in readme.

sudo apt-get install libmicrohttpd-dev libjansson-dev libnice-dev \
        libssl-dev libsrtp-dev libsofia-sip-ua-dev libglib2.0-dev \
        libopus-dev libogg-dev libini-config-dev libcollection-dev \
        pkg-config gengetopt doxygen graphviz

sh autogen.sh
./configure --prefix=/opt/janus # Everything checks out
sudo make && sudo make install
sudo make configs


Alright, first off when I try to run janus, I have to manually set the config path and plugin path or it will fail to load any plugins

/opt/janus/binjanus --plugins-folder=/opt/janus/lib/janus/plugins --configs-folder=/opt/janus/etc/janus --debug-level=5 

But then,

[WARN] HTTPS webserver disabled
[WARN] WebSockets support not compiled
[WARN] RabbitMQ support not compiled
[WARN] Admin/monitor HTTP webserver disabled
[WARN] Admin/monitor HTTPS webserver disabled


Damn.

If I try to stream anything through janus it will crash with a seg fault (below is trying to stream an opus file)

{"janus":"trickle","candidate":{"sdpMLineIndex":0,"sdpMid":"audio","candidate":"a=candidate:2441410931 1 udp 2122129151 172.17.42.1 44060 typ host generation 0\r\n"},"transaction":"8qirImLKIVZn"}
[2451852055] Trickle candidate (audio): a=candidate:2441410931 1 udp 2122129151 172.17.42.1 44060 typ host generation 0

[2451852055] Adding remote candidate for component 1 to stream 1
[2451852055]   -- Ignoring this candidate, the component is already ready
Request completed, freeing data
Starting the streaming
This is involving a negotiation (answer) as well (but we really don't care):
v=0
o=- 4381909010554082197 2 IN IP4 127.0.0.1
s=-
t=0 0
m=audio 1 RTP/SAVPF 0
c=IN IP4 1.1.1.1
a=recvonly
a=rtpmap:0 PCMU/8000

Pushing event: {
   "streaming": "event",
   "result": {
      "status": "starting"
   }
}
[2451852055] Adding event to queue of messages...
  >> 0 (Success)
[1]    10915 segmentation fault (core dumped)  janus --plugins-folder=/opt/janus/lib/janus/plugins  --debug-level=5



gye...@clearpathrobotics.com

unread,
Nov 26, 2014, 9:57:24 AM11/26/14
to meetech...@googlegroups.com
This is what happens if I try to start up janus without specifying the plugins folder

$ /opt/janus/bin/janus                                                                                                                             09:56
---------------------------------------------------
  Starting Meetecho Janus (WebRTC Gateway) v0.0.6
---------------------------------------------------

Reading configuration from /usr/local/etc/janus/janus.cfg
Checking command line arguments...
Debug/log level is 4
Adding 'vmnet' to the ICE ignore list...
Using 192.168.1.2 as local IP...
Initializing ICE stuff (IPv6 candidates disabled)
Fingerprint of our certificate: C5:5F:DA:7D:84:47:B1:BF:6B:55:16:62:48:31:3E:D3:F1:7B:25:89:92:4A:4B:4D:4D:D9:D5:AF:EA:D8:15:44
[WARN] Data Channels support not compiled
Plugins folder: /usr/local/lib/janus/plugins
[FATAL] [janus.c:main:3875:] Couldn't access plugins folder...

Lorenzo Miniero

unread,
Nov 26, 2014, 9:57:46 AM11/26/14
to meetech...@googlegroups.com
Check if the main configuration file has some wrong setting, e.g., for the plugins folder and stuff. Apparently sometimes the configure doesn't replace the wildcards. Not sure as what's happening for the rest, since Janus is known to work on 12.04: the demos we have online for instance are deployed there.

Lorenzo

Lorenzo Miniero

unread,
Nov 26, 2014, 10:46:04 AM11/26/14
to meetech...@googlegroups.com
For some reason the configuration files are linking to a different prefix instead of /opt/janus. Fix them and it should be ok.

L.

gye...@clearpathrobotics.com

unread,
Nov 26, 2014, 1:14:27 PM11/26/14
to meetech...@googlegroups.com
I still have to boot it like, but thats not so bad I suppose

/opt/janus/bin/janus --configs-folder=/opt/janus/etc/janus --debug-level=5

Still crashing after fixing paths with a seg fault. Going to retry on a fresh VM


On Wednesday, November 26, 2014 9:54:01 AM UTC-5, gye...@clearpathrobotics.com wrote:

Lorenzo Miniero

unread,
Nov 26, 2014, 2:19:59 PM11/26/14
to meetech...@googlegroups.com
For the segfaults you'll have to look at a backtrace with gdb. In case this appens on a fresh VM as well, please open an issue on github.

gye...@clearpathrobotics.com

unread,
Nov 26, 2014, 2:22:58 PM11/26/14
to meetech...@googlegroups.com
All right, was more or less smooth on a fresh VM. Still tinkering


On Wednesday, November 26, 2014 9:54:01 AM UTC-5, gye...@clearpathrobotics.com wrote:
Reply all
Reply to author
Forward
0 new messages