Cannot enable Secure Websocket

1,286 views
Skip to first unread message

Vũ Trần

unread,
Apr 20, 2020, 4:25:23 AM4/20/20
to meetecho-janus
Hi all,

Im trying to enable secure websocket on janus but keep getting this error:

[FATAL] [transports/janus_websockets.c:janus_websockets_init:655] Error creating vhost for Secure WebSockets server...

this is my websocket janus config: 
general: {
    json  = "indented"
    ws = false
    wss = true
    ws_port = 8188
    wss_port = 8189
}
admin: {
    admin_ws = "false"
    admin_wss = "false"
    admin_ws_port = "7188"
}
certificates: {
    cert_pem = "/usr/local/ssl/cert.crt"
    cert_key = "/usr/local/ssl/cert.key"
}

Thanks in advance.

sergey radionov

unread,
Apr 20, 2020, 9:18:24 PM4/20/20
to meetecho-janus
Can you please share a little bit more lines from your log?

Vũ Trần

unread,
Apr 20, 2020, 10:23:57 PM4/20/20
to meetecho-janus
This is my log, it seems there is nothing wrong except the warning line: "libnice version is outdated: 0.1.14 installed, at least 0.1.16 is recommended"
---------------------------------------------------
  Starting Meetecho Janus (WebRTC Server) v0.9.3
---------------------------------------------------

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 192.168.1.2 as local IP...
[WARN] Token based authentication disabled
Initializing recorder code
Initializing ICE stuff (Full mode, ICE-TCP candidates disabled, half-trickle, IPv6 support disabled)
TURN REST API backend: (disabled)
[WARN] Janus is deployed on a private address (192.168.1.2) but you didn't specify any STUN server! Expect trouble if this is supposed to work over the internet and not just in a LAN...
Crypto: OpenSSL >= 1.1.0
[WARN] No cert/key specified, autogenerating some...
Fingerprint of our certificate: 9E:47:1B:21:3E:BF:DF:26:3D:66:F3:79:A2:1A:AF:7A:2B:7F:4F:3E:58:20:65:86:85:3A:A3:EC:83:5A:B6:59
[WARN] Data Channels support not compiled
[WARN] Event handlers support disabled
Plugins folder: /home/vuta/jn/lib/janus/plugins
Joining Janus requests handler thread
Loading plugin 'libjanus_textroom.so'...
Sessions watchdog started
[WARN] Data channels support not compiled, disabling TextRoom plugin
[WARN] The 'janus.plugin.textroom' plugin could not be initialized
Loading plugin 'libjanus_echotest.so'...
JANUS EchoTest plugin initialized!
Loading plugin 'libjanus_videocall.so'...
JANUS VideoCall plugin initialized!
Loading plugin 'libjanus_recordplay.so'...
JANUS Record&Play plugin initialized!
Loading plugin 'libjanus_audiobridge.so'...
JANUS AudioBridge plugin initialized!
Loading plugin 'libjanus_nosip.so'...
JANUS NoSIP plugin initialized!
Loading plugin 'libjanus_voicemail.so'...
JANUS VoiceMail plugin initialized!
Loading plugin 'libjanus_videoroom.so'...
JANUS VideoRoom plugin initialized!
Loading plugin 'libjanus_sip.so'...
JANUS SIP plugin initialized!
Loading plugin 'libjanus_streaming.so'...
JANUS Streaming plugin initialized!
Transport plugins folder: /home/vuta/jn/lib/janus/transports
Loading transport plugin 'libjanus_websockets.so'...
[WARN] libwebsockets has been built without IPv6 support, will bind to IPv4 only
libwebsockets logging: 0
WebSockets server started (port 8188)...
[FATAL] [transports/janus_websockets.c:janus_websockets_init:655] Error creating vhost for Secure WebSockets server...
[WARN] Admin WebSockets server disabled
[WARN] Secure Admin WebSockets server disabled
JANUS WebSockets transport plugin initialized!
Loading transport plugin 'libjanus_http.so'...
WebSockets thread started
HTTP webserver started (port 8088, /janus path listener)...
[WARN] HTTPS webserver disabled
[WARN] Admin/monitor HTTP webserver disabled
[WARN] Admin/monitor HTTPS webserver disabled
JANUS REST (HTTP/HTTPS) transport plugin initialized!
Loading transport plugin 'libjanus_pfunix.so'...
[WARN] Unix Sockets server disabled (Janus API)
[WARN] Unix Sockets server disabled (Admin API)
[WARN] No Unix Sockets server started, giving up...
[WARN] The 'janus.transport.pfunix' plugin could not be initialized
[WARN] libnice version outdated: 0.1.14 installed, at least 0.1.16 recommended. Notice the installed version was checked at build time: if you updated libnice in the meanwhile, re-configure and recompile to get rid of this warning
HTTP transport timer started


Vào 08:18:24 UTC+7 Thứ Ba, ngày 21 tháng 4 năm 2020, sergey radionov đã viết:

sergey radionov

unread,
Apr 20, 2020, 11:25:08 PM4/20/20
to meetecho-janus
Then, I would recommend you enable logs for libwebsockts - `ws_logging` in janus.transport.websockets.jcfg

Vũ Trần

unread,
Apr 20, 2020, 11:41:51 PM4/20/20
to meetecho-janus
Thanks sergey, enable logs in websocket config help me to find problem, the certificate path is not correct.

Vào 10:25:08 UTC+7 Thứ Ba, ngày 21 tháng 4 năm 2020, sergey radionov đã viết:
Reply all
Reply to author
Forward
0 new messages