Systemd: janus-gateway.service failed

Jun 19 10:45:35 infra20 systemd: janus-gateway.service: main process exited, code=exited, status=1/FAILURE
Jun 19 10:45:35 infra20 systemd: Unit janus-gateway.service entered failed state.
Jun 19 10:45:35 infra20 systemd: janus-gateway.service failed.
Jun 19 10:45:39 infra20 systemd: janus-gateway.service holdoff time over, scheduling restart.
Jun 19 10:45:39 infra20 systemd: Started Janus WebRTC gateway.
Jun 19 10:45:39 infra20 systemd: Starting Janus WebRTC gateway...
Jun 19 10:45:44 infra20 systemd: janus-gateway.service: main process exited, code=exited, status=1/FAILURE
Jun 19 10:45:44 infra20 systemd: Unit janus-gateway.service entered failed state.
Jun 19 10:45:44 infra20 systemd: janus-gateway.service failed.
Jun 19 10:45:48 infra20 systemd: janus-gateway.service holdoff time over, scheduling restart.
Jun 19 10:45:48 infra20 systemd: Started Janus WebRTC gateway.
Jun 19 10:45:48 infra20 systemd: Starting Janus WebRTC gateway...
Jun 19 10:45:53 infra20 systemd: janus-gateway.service: main process exited, code=exited, status=1/FAILURE
Jun 19 10:45:53 infra20 systemd: Unit janus-gateway.service entered failed state.
Jun 19 10:45:53 infra20 systemd: janus-gateway.service failed.
Jun 19 10:45:58 infra20 systemd: janus-gateway.service holdoff time over, scheduling restart.
Jun 19 10:45:58 infra20 systemd: Started Janus WebRTC gateway.
Jun 19 10:45:58 infra20 systemd: Starting Janus WebRTC gateway...
Jun 19 10:46:01 infra20 systemd: Started Session 51 of user asterisk.
Jun 19 10:46:01 infra20 systemd: Starting Session 51 of user asterisk.
Jun 19 10:46:01 infra20 systemd: Created slice User Slice of sogo.
Jun 19 10:46:01 infra20 systemd: Starting User Slice of sogo.
Jun 19 10:46:01 infra20 systemd: Started Session 52 of user sogo.
Jun 19 10:46:01 infra20 systemd: Starting Session 52 of user sogo.
Jun 19 10:46:02 infra20 systemd: Removed slice User Slice of sogo.
Jun 19 10:46:02 infra20 systemd: Stopping User Slice of sogo.
Jun 19 10:46:03 infra20 systemd: janus-gateway.service: main process exited, code=exited, status=1/FAILURE
Jun 19 10:46:03 infra20 systemd: Unit janus-gateway.service entered failed state.
Jun 19 10:46:03 infra20 systemd: janus-gateway.service failed.
Jun 19 10:46:07 infra20 systemd: janus-gateway.service holdoff time over, scheduling restart.
Jun 19 10:46:07 infra20 systemd: Started Janus WebRTC gateway.
Jun 19 10:46:07 infra20 systemd: Starting Janus WebRTC gateway...
Jun 19 10:46:12 infra20 systemd: janus-gateway.service: main process exited, code=exited, status=1/FAILURE
Jun 19 10:46:12 infra20 systemd: Unit janus-gateway.service entered failed state.
Jun 19 10:46:12 infra20 systemd: janus-gateway.service failed.
Jun 19 10:46:16 infra20 systemd: janus-gateway.service holdoff time over, scheduling restart.
Jun 19 10:46:16 infra20 systemd: Started Janus WebRTC gateway.
Jun 19 10:46:16 infra20 systemd: Starting Janus WebRTC gateway...

Installed Software:

Any suggestions how to repair Janus… ?

What’s in /var/log/janus?
Also incrementing loglevel could be useful: edit /opt/janus/etc/janus/janus.cfg and increment debug_level

1 Like
Checking command line arguments...
Debug/log level is 4
Debug/log timestamps are enabled
Debug/log colors are disabled
[Tue Jun 19 12:26:22 2018] Adding 'vmnet' to the ICE ignore list...
[Tue Jun 19 12:26:22 2018] Using 192.168.xxx.xxx as local IP...
[Tue Jun 19 12:26:22 2018] [WARN] Token based authentication disabled
[Tue Jun 19 12:26:22 2018] Initializing recorder code
[Tue Jun 19 12:26:22 2018] RTP port range: 10000 -- 20000
[Tue Jun 19 12:26:22 2018] Initializing ICE stuff (Full mode, ICE-TCP candidates disabled, IPv6 support disabled)
[Tue Jun 19 12:26:22 2018] ICE port range: 10000-20000
[Tue Jun 19 12:26:22 2018] ICE handles watchdog started
[Tue Jun 19 12:26:22 2018] STUN server to use: stun1.l.google.com:19302
[Tue Jun 19 12:26:22 2018] Testing STUN server: message is of 20 bytes
[Tue Jun 19 12:26:27 2018] [FATAL] [ice.c:janus_ice_set_stun_server:812] No response to our STUN BINDING test
[Tue Jun 19 12:26:27 2018] [FATAL] [janus.c:main:3786] Invalid STUN address stun1.l.google.com:19302
---------------------------------------------------
  Starting Meetecho Janus (WebRTC Gateway) v0.2.5
---------------------------------------------------
[general]

[certificates]
cert_pem = /opt/janus/share/janus/certs/cert.pem
cert_key = /opt/janus/share/janus/certs/cert.key

[media]
rtp_port_range = 10000-20000

[nat]
stun_server = stun1.l.google.com
stun_port = 19302

nice_debug = false

ice_ignore_list = vmnet

[plugins]
disable = libjanus_voicemail.so,libjanus_recordplay.so,libjanus_videocall.so,libjanus_echotest.so,libjanus_videoroom.so,libjanus_audiobridge.so,libjanus_textroom.so,libjanus_streaming.so

[transports]

Can you reach the server? ping stun1.l.google.com

the configuration is correct, but you can change STUN server or NAT mode. Take a look at nethserver-janus README for instruction about changing it GitHub - NethServer/nethserver-janus: Janus Gateway NethServer configuration templates

2 Likes