No Janus API transport is available

Hello!

I want to test janus and i’m starting the docker from GitHub - canyanio/janus-gateway-docker: Docker image for the Janus WebRTC Server not sure if it’s still valid?
I also cloned and copied the configs from https://github.com/meetecho/janus-gateway/tree/master/conf and renamed (to remove the sample text)

  • janus.jcfg
  • janus.transport.websockets.jcfg
  • janus.transport.http.jcfg
  • janus.plugin.sip.jcfg

as i want to test the SIP gateway functionality.

but when i start janus i get:

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

I tried enabling things like admin_ws = true and other but i’m still getting the pasted below.
What am I missing?

Thanks!

Attaching to janus-webrtc-gateway-docker-janus-gateway-1
janus-webrtc-gateway-docker-janus-gateway-1  | Janus version: 1103 (1.1.3)
janus-webrtc-gateway-docker-janus-gateway-1  | Janus commit: 5bdf33cd0242ea5c8bc2c79a459698fa17c32a5a
janus-webrtc-gateway-docker-janus-gateway-1  | Compiled on:  Mon Mar 20 02:52:03 UTC 2023
janus-webrtc-gateway-docker-janus-gateway-1  |
janus-webrtc-gateway-docker-janus-gateway-1  |
janus-webrtc-gateway-docker-janus-gateway-1  | Logger plugins folder: /usr/local/etc/janus/
janus-webrtc-gateway-docker-janus-gateway-1  | ---------------------------------------------------
janus-webrtc-gateway-docker-janus-gateway-1  |   Starting Meetecho Janus (WebRTC Server) v1.1.3
janus-webrtc-gateway-docker-janus-gateway-1  | ---------------------------------------------------
janus-webrtc-gateway-docker-janus-gateway-1  |
janus-webrtc-gateway-docker-janus-gateway-1  | Checking command line arguments...
janus-webrtc-gateway-docker-janus-gateway-1  | [janus.jcfg]
janus-webrtc-gateway-docker-janus-gateway-1  |     general: {
janus-webrtc-gateway-docker-janus-gateway-1  |         plugins_folder: /usr/local/etc/janus/
janus-webrtc-gateway-docker-janus-gateway-1  |         transports_folder: /usr/local/etc/janus/
janus-webrtc-gateway-docker-janus-gateway-1  |         events_folder: /usr/local/etc/janus/
janus-webrtc-gateway-docker-janus-gateway-1  |         loggers_folder: /usr/local/etc/janus/
janus-webrtc-gateway-docker-janus-gateway-1  |         log_to_stdout: true
janus-webrtc-gateway-docker-janus-gateway-1  |         debug_level: 7
janus-webrtc-gateway-docker-janus-gateway-1  |         api_secret: janusrocks
janus-webrtc-gateway-docker-janus-gateway-1  |         token_auth: true
janus-webrtc-gateway-docker-janus-gateway-1  |         token_auth_secret: janus
janus-webrtc-gateway-docker-janus-gateway-1  |         admin_secret: janusoverlord
janus-webrtc-gateway-docker-janus-gateway-1  |         interface: 1.2.3.4
janus-webrtc-gateway-docker-janus-gateway-1  |         protected_folders: [
janus-webrtc-gateway-docker-janus-gateway-1  |             /bin
janus-webrtc-gateway-docker-janus-gateway-1  |             /boot
janus-webrtc-gateway-docker-janus-gateway-1  |             /dev
janus-webrtc-gateway-docker-janus-gateway-1  |             /etc
janus-webrtc-gateway-docker-janus-gateway-1  |             /initrd
janus-webrtc-gateway-docker-janus-gateway-1  |             /lib
janus-webrtc-gateway-docker-janus-gateway-1  |             /lib32
janus-webrtc-gateway-docker-janus-gateway-1  |             /lib64
janus-webrtc-gateway-docker-janus-gateway-1  |             /proc
janus-webrtc-gateway-docker-janus-gateway-1  |             /sbin
janus-webrtc-gateway-docker-janus-gateway-1  |             /sys
janus-webrtc-gateway-docker-janus-gateway-1  |             /usr
janus-webrtc-gateway-docker-janus-gateway-1  |             /var
janus-webrtc-gateway-docker-janus-gateway-1  |             /opt/janus/bin
janus-webrtc-gateway-docker-janus-gateway-1  |             /opt/janus/etc
janus-webrtc-gateway-docker-janus-gateway-1  |             /opt/janus/include
janus-webrtc-gateway-docker-janus-gateway-1  |             /opt/janus/lib
janus-webrtc-gateway-docker-janus-gateway-1  |             /opt/janus/lib32
janus-webrtc-gateway-docker-janus-gateway-1  |             /opt/janus/lib64
janus-webrtc-gateway-docker-janus-gateway-1  |             /opt/janus/sbin
janus-webrtc-gateway-docker-janus-gateway-1  |         ]
janus-webrtc-gateway-docker-janus-gateway-1  |         configs_folder: /usr/local/etc/janus
janus-webrtc-gateway-docker-janus-gateway-1  |     }
janus-webrtc-gateway-docker-janus-gateway-1  |     certificates: {
janus-webrtc-gateway-docker-janus-gateway-1  |     }
janus-webrtc-gateway-docker-janus-gateway-1  |     media: {
janus-webrtc-gateway-docker-janus-gateway-1  |     }
janus-webrtc-gateway-docker-janus-gateway-1  |     nat: {
janus-webrtc-gateway-docker-janus-gateway-1  |         stun_server: stun.l.google.com
janus-webrtc-gateway-docker-janus-gateway-1  |         stun_port: 19302
janus-webrtc-gateway-docker-janus-gateway-1  |         nice_debug: true
janus-webrtc-gateway-docker-janus-gateway-1  |         full_trickle: true
janus-webrtc-gateway-docker-janus-gateway-1  |         ice_keepalive_conncheck: true
janus-webrtc-gateway-docker-janus-gateway-1  |         keep_private_host: false
janus-webrtc-gateway-docker-janus-gateway-1  |         ice_enforce_list: ens5
janus-webrtc-gateway-docker-janus-gateway-1  |         ice_ignore_list: vmnet
janus-webrtc-gateway-docker-janus-gateway-1  |     }
janus-webrtc-gateway-docker-janus-gateway-1  |     plugins: {
janus-webrtc-gateway-docker-janus-gateway-1  |     }
janus-webrtc-gateway-docker-janus-gateway-1  |     transports: {
janus-webrtc-gateway-docker-janus-gateway-1  |     }
janus-webrtc-gateway-docker-janus-gateway-1  |     loggers: {
janus-webrtc-gateway-docker-janus-gateway-1  |     }
janus-webrtc-gateway-docker-janus-gateway-1  |     events: {
janus-webrtc-gateway-docker-janus-gateway-1  |     }
janus-webrtc-gateway-docker-janus-gateway-1  | Debug/log level is 7
janus-webrtc-gateway-docker-janus-gateway-1  | Debug/log timestamps are disabled
janus-webrtc-gateway-docker-janus-gateway-1  | Debug/log colors are enabled
janus-webrtc-gateway-docker-janus-gateway-1  | Adding 'ens5' to the ICE enforce list...
janus-webrtc-gateway-docker-janus-gateway-1  | Adding 'vmnet' to the ICE ignore list...
janus-webrtc-gateway-docker-janus-gateway-1  | [WARN] Added vmnet to the ICE ignore list, but the ICE enforce list is not empty: the ICE ignore list will not be used
janus-webrtc-gateway-docker-janus-gateway-1  | Selecting local IP address...
janus-webrtc-gateway-docker-janus-gateway-1  |   -- Will try to use 1.2.3.4
janus-webrtc-gateway-docker-janus-gateway-1  | [WARN] Error setting local IP address to 1.2.3.4, falling back to detecting IP address...
janus-webrtc-gateway-docker-janus-gateway-1  | Using 10.243.0.8 as local IP...
janus-webrtc-gateway-docker-janus-gateway-1  | Signed-Token based authentication enabled
janus-webrtc-gateway-docker-janus-gateway-1  | Initializing recorder code
janus-webrtc-gateway-docker-janus-gateway-1  | Initializing ICE stuff (Full mode, ICE-TCP candidates disabled, full-trickle, IPv6 support disabled)
janus-webrtc-gateway-docker-janus-gateway-1  | STUN server to use: stun.l.google.com:19302
janus-webrtc-gateway-docker-janus-gateway-1  |
janus-webrtc-gateway-docker-janus-gateway-1  |   >> 4.3.2.1:19302 (IPv4)
janus-webrtc-gateway-docker-janus-gateway-1  | Testing STUN server: message is of 20 bytes
janus-webrtc-gateway-docker-janus-gateway-1  |   >> Sent 20 bytes, waiting for reply...
janus-webrtc-gateway-docker-janus-gateway-1  |   >> Got 32 bytes...
janus-webrtc-gateway-docker-janus-gateway-1  |   >> XOR-MAPPED-ADDRESS: 0
janus-webrtc-gateway-docker-janus-gateway-1  |   >> Our public address is 1.2.3.4
janus-webrtc-gateway-docker-janus-gateway-1  | Using connectivity checks as PeerConnection keep-alives
janus-webrtc-gateway-docker-janus-gateway-1  | [WARN] Notice that the current libnice master is breaking connections after 50s when keepalive-conncheck enabled. As such, better to stick to 0.1.18 until the issue is addressed upstream
janus-webrtc-gateway-docker-janus-gateway-1  | TURN REST API backend: (disabled)
janus-webrtc-gateway-docker-janus-gateway-1  | Enabling libnice debugging...
janus-webrtc-gateway-docker-janus-gateway-1  | [WARN] No NICE_DEBUG environment variable set, setting maximum debug
janus-webrtc-gateway-docker-janus-gateway-1  | [WARN] No G_MESSAGES_DEBUG environment variable set, setting maximum debug
janus-webrtc-gateway-docker-janus-gateway-1  | Debugging NICE_DEBUG=all G_MESSAGES_DEBUG=all
janus-webrtc-gateway-docker-janus-gateway-1  | Using certificates:
janus-webrtc-gateway-docker-janus-gateway-1  | 	(null)
janus-webrtc-gateway-docker-janus-gateway-1  | 	(null)
janus-webrtc-gateway-docker-janus-gateway-1  | Crypto: BoringSSL
janus-webrtc-gateway-docker-janus-gateway-1  | No cert/key specified, autogenerating some...
janus-webrtc-gateway-docker-janus-gateway-1  | Generating DTLS key / cert
janus-webrtc-gateway-docker-janus-gateway-1  | Fingerprint of our certificate: F9:B0:7B:10:F3:20:AA:F4:A0:F9:FB:20:33:09:51:FF:C4:D8:68:82:79:DB:6E:49:C2:47:58:C7:1A:11:51:07
janus-webrtc-gateway-docker-janus-gateway-1  | Event handlers support disabled
janus-webrtc-gateway-docker-janus-gateway-1  | Plugins folder: /usr/local/etc/janus/
janus-webrtc-gateway-docker-janus-gateway-1  | Sessions watchdog started
janus-webrtc-gateway-docker-janus-gateway-1  | Transport plugins folder: /usr/local/etc/janus/
janus-webrtc-gateway-docker-janus-gateway-1  | [FATAL] [janus.c:main:5797] No Janus API transport is available... enable at least one and restart Janus
janus-webrtc-gateway-docker-janus-gateway-1 exited with code 1

can you try to re-installing this version, maybe you missed something, if you have already done that well, provide details of your installation as well or how you have done it to get here as much and share the areas of the configs that you have changed as well .don’t share sensitive information though .

The docker was too old, i downloaded and installed on the OS and it’s starting properly now.

1 Like