No Janus Transport is available (Issue when running Janus)

4,092 views
Skip to first unread message

Visar Shehu

unread,
Jan 5, 2016, 8:00:47 AM1/5/16
to meetecho-janus

I am installing Janus WebRTC Gateway in a Ubuntu Machine (14.04 64 bit). I followed the instructions as in the following link:

However, I get the following error when trying to execute janus:

https://github.com/meetecho/janus-gateway (readme.md file)

[FATAL] [janus.c:main:3670] No Janus API transport is available... enable at least one and restart Janus

Anyone has any idea what the issue might be? I will only use the REST API without WebStockets or RabbitMQ.


Lorenzo Miniero

unread,
Jan 5, 2016, 8:46:36 AM1/5/16
to meetecho-janus
Check the errors/warnings when launching Janus, they will tell you what's wrong.

L.

Visar Shehu

unread,
Jan 5, 2016, 12:04:34 PM1/5/16
to meetecho-janus
Following is the exact log displayed after launching Janus. There are two warnings in the log: the first one that Token authorization is disabled and the second that data channel support is not compiled. 

---------------------------------------------------
  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
Adding 'vmnet' to the ICE ignore list...
Using 185.101.156.39 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
Fingerprint of our certificate: D2:B9:31:8F:DF:24:D8:0E:ED:D2:EF:25:9E:AF:6F:B8:34:AE:53:9C:E6:F3:8F:F2:64:15:FA:E8:7F:53:2D:38
ICE handles watchdog started
[WARN] Data Channels support not compiled
Plugins folder: /opt/janus/etc/janus/plugins
Transport plugins folder: /opt/janus/etc/janus/transports
[FATAL] [janus.c:main:3670] No Janus API transport is available... enable at least one and restart Janus


Andres Gonzalez

unread,
Jan 5, 2016, 1:37:17 PM1/5/16
to meetecho-janus
I have only been using Janus a short time so take what I mention here cautiously because it could very well be wrong :-)

First you must determine which transport you want to use because there is more than one transport available. Assuming you want to use the default HTTP, you must ensure that you built Janus with that supported. When you built Janus, did you include the build option for libmicrohttpd or did you disable it using the configure command line option: --disable-rest  ??

The configure script allows you to disable the available transports, so you must build Janus with the transport you intend to use.

Next look in the  /opt/janus/etc/janus/janus.cfg file at the very bottom. The [transports] directive allows you to disable any of the transports that were originally built. So, ensure that you have not disabled all of the transports or the transport you intend to use.

Finally, then check the specific transport config file. For example if you are using  HTTP then look in the /opt/janus/etc/janus/janus.transport.http.cfg and make sure the specific protocol (http vs. https) is set to "yes"

Hope this helps...

-Andres

Lorenzo Miniero

unread,
Jan 5, 2016, 1:59:26 PM1/5/16
to meetecho-janus
Everything correct, Andres.
As a side note, after the configure you guys should check what is going to be built. You'll see stuff with "yes" and "no". Things marked with no will NOT be built and installed.
Make sure you also did a make install after compiling.

L.

Pierce Lopez

unread,
Jan 8, 2016, 3:20:54 PM1/8/16
to meetecho-janus


On Tuesday, January 5, 2016 at 12:04:34 PM UTC-5, Visar Shehu wrote:
Plugins folder: /opt/janus/etc/janus/plugins
Transport plugins folder: /opt/janus/etc/janus/transports
[FATAL] [janus.c:main:3670] No Janus API transport is available... enable at least one and restart Janus

it looks like, in your janus.cfg, you have

transports_folder = /opt/janus/etc/janus/transports

that should probably be

transports_folder = /opt/janus/lib/janus/transports

note etc/ vs lib/
Reply all
Reply to author
Forward
0 new messages