Error starting Janus

4,254 views
Skip to first unread message

Nitesh Bansal

unread,
Mar 10, 2016, 12:30:15 PM3/10/16
to meetecho-janus
Hello,

I'm trying to build Janus from source, I used the steps in README to install all the dependencies
for the configs, only thing I disabled is rabbitmq.
I used the following command to start Janus
------------
/opt/janus/bin/janus &
------------

I'm running Janus on Ubuntu 14.

Here are my janus logs

------------
Error reading/parsing the configuration file, going on with the defaults and the command line arguments
[ERR] [config.c:janus_config_parse:91]   -- Error reading configuration file 'janus.cfg'... error 2 (No such file or directory)
---------------------------------------------------
  Starting Meetecho Janus (WebRTC Gateway) v0.1.0
---------------------------------------------------

Checking command line arguments...
Debug/log level is 4
Debug/log timestamps are disabled
Debug/log colors are enabled
Using 37.139.26.200 as local IP...
[WARN] Token based authentication disabled
Initializing ICE stuff (Full mode, ICE-TCP candidates disabled, IPv6 support disabled)
BUNDLE is NOT going to be forced
rtcp-mux is NOT going to be forced
[FATAL] [janus.c:main:3462] Missing certificate/key path, use the command line or the configuration to provide one
GLib (gthread-posix.c): Unexpected error from C library during 'pthread_setspecific': Invalid argument.  Aborting.

[1]+  Aborted                 (core dumped) /opt/janus/bin/janus

------------

Any help will be really appreciated.

Thanks
Nitesh

Lorenzo Miniero

unread,
Mar 10, 2016, 12:36:01 PM3/10/16
to meetecho-janus
Did you do a 'make configs' after installing Janus? otherwise no configuration file will be available.

L.

Nitesh Bansal

unread,
Mar 10, 2016, 12:41:07 PM3/10/16
to meetecho-janus
Hi,

Yes I did, it showed nice following output too:
---------------
make configs
/bin/mkdir -p /usr/local/etc/janus
cp "/root/janus-gateway/conf/janus.cfg.sample" "/usr/local/etc/janus/janus.cfg"; cp "/root/janus-gateway/conf/janus.transport.http.cfg.sample" "/usr/local/etc/janus/janus.transport.http.cfg"; cp "/root/janus-gateway/conf/janus.transport.websockets.cfg.sample" "/usr/local/etc/janus/janus.transport.websockets.cfg"; cp "/root/janus-gateway/conf/janus.plugin.audiobridge.cfg.sample" "/usr/local/etc/janus/janus.plugin.audiobridge.cfg"; cp "/root/janus-gateway/conf/janus.plugin.echotest.cfg.sample" "/usr/local/etc/janus/janus.plugin.echotest.cfg"; cp "/root/janus-gateway/conf/janus.plugin.recordplay.cfg.sample" "/usr/local/etc/janus/janus.plugin.recordplay.cfg"; cp "/root/janus-gateway/conf/janus.plugin.sip.cfg.sample" "/usr/local/etc/janus/janus.plugin.sip.cfg"; cp "/root/janus-gateway/conf/janus.plugin.streaming.cfg.sample" "/usr/local/etc/janus/janus.plugin.streaming.cfg"; cp "/root/janus-gateway/conf/janus.plugin.videocall.cfg.sample" "/usr/local/etc/janus/janus.plugin.videocall.cfg"; cp "/root/janus-gateway/conf/janus.plugin.videoroom.cfg.sample" "/usr/local/etc/janus/janus.plugin.videoroom.cfg"; cp "/root/janus-gateway/conf/janus.plugin.voicemail.cfg.sample" "/usr/local/etc/janus/janus.plugin.voicemail.cfg";
----------------

Do I need to run 'make install' again after make config?

Lorenzo Miniero

unread,
Mar 10, 2016, 12:45:38 PM3/10/16
to meetecho-janus
Well, it can't find the file:

Error reading configuration file 'janus.cfg'... error 2 (No such file or directory)

so either the file is not where it should be, or it's in the wrong place. I see you're still using a slightly older version of Janus (the error above doesn't contain the whole path but just the file name, something we changed some time ago), so I'd try again after a git pull.

Anyway no, you don't need to install again after a make configs: make configs is only needed once.

L.

Nitesh Bansal

unread,
Mar 11, 2016, 4:11:29 AM3/11/16
to meetecho-janus
This is strange, everything worked fine, after I recompiled after 'git pull'.

I would like to try few more things though




On Thursday, March 10, 2016 at 6:30:15 PM UTC+1, Nitesh Bansal wrote:
Reply all
Reply to author
Forward
0 new messages