Testing my first Janus installation

1,415 views
Skip to first unread message

Mark R

unread,
Apr 28, 2021, 6:01:01 PM4/28/21
to meetecho-janus
I just installed my first Janus server following the instructions below at the link below:


There were a few issues that I was able to find the answers for on a web search

I successfully executed: /opt/janus/bin/janus --help
and it gave me the expected help list.

I am unclear on how to test if it is operational. I am following the steps at this link:


When I run the test:  
python3 echo.py ws://localhost:8188/ --play-from media_file --verbose

I get the below result. Is there something wrong with my installation.

rootatmark:~# python3 echo.py ws://localhost:8188/ --play-from media_file --verbose
Traceback (most recent call last):
  File "echo.py", line 306, in <module>
    player = MediaPlayer(args.play_from)
  File "/usr/local/lib/python3.6/dist-packages/aiortc/contrib/media.py", line 238, in __init__
    self.__container = av.open(file=file, format=format, mode="r", options=options)
  File "av/container/core.pyx", line 355, in av.container.core.open
  File "av/container/core.pyx", line 226, in av.container.core.Container.__cinit__
  File "av/container/core.pyx", line 258, in av.container.core.Container.err_check
  File "av/error.pyx", line 336, in av.error.err_check
av.error.FileNotFoundError: [Errno 2] No such file or directory: 'media_file'
rootatmark:~# 


Thanks,
Mark

Mark R

unread,
Apr 28, 2021, 6:42:59 PM4/28/21
to meetecho-janus
I think I was supposed to start Janus from the command line which I have since did with:

 /opt/janus/bin/janus -b --log-file=/root/mar.txt

And it looks like there are some errors:

Logger plugins folder: /opt/janus/lib/janus/loggers
[WARN]  Couldn't access logger plugins folder...
---------------------------------------------------
  Starting Meetecho Janus (WebRTC Server) v0.11.2
---------------------------------------------------

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 155.138.204.143 as local IP...
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)
Crypto: OpenSSL >= 1.1.0
No cert/key specified, autogenerating some...
Fingerprint of our certificate: 38:2B:DC:FD:2B:F8:21:ED:06:ED:E0:D1:14:29:37:83:38:5C:2D:4D:3A:06:E2:5C:90:EF:BF:8E:A4:F3:C5:EF
Event handlers support disabled
Plugins folder: /opt/janus/lib/janus/plugins
Loading plugin 'libjanus_echotest.so'...
JANUS EchoTest plugin initialized!
Loading plugin 'libjanus_streaming.so'...
Joining Janus requests handler thread
Sessions watchdog started
[ERR] [plugins/janus_streaming.c:janus_streaming_create_fd:5575] [rtp-sample] Bind failed for audio (port 5002)... 98 (Address already in use)
[ERR] [plugins/janus_streaming.c:janus_streaming_create_rtp_source:5783] Can't bind to port 5002 for audio...
[ERR] [plugins/janus_streaming.c:janus_streaming_init:1956] Error creating 'rtp' mountpoint 'rtp-sample'...
JANUS Streaming plugin initialized!
Loading plugin 'libjanus_nosip.so'...
JANUS NoSIP plugin initialized!
Loading plugin 'libjanus_audiobridge.so'...
JANUS AudioBridge plugin initialized!
Loading plugin 'libjanus_videoroom.so'...
JANUS VideoRoom plugin initialized!
Loading plugin 'libjanus_textroom.so'...
JANUS TextRoom plugin initialized!
Loading plugin 'libjanus_recordplay.so'...
JANUS Record&Play plugin initialized!
Loading plugin 'libjanus_voicemail.so'...
JANUS VoiceMail plugin initialized!
Loading plugin 'libjanus_sip.so'...
JANUS SIP plugin initialized!
Loading plugin 'libjanus_videocall.so'...
JANUS VideoCall plugin initialized!
Transport plugins folder: /opt/janus/lib/janus/transports
Loading transport plugin 'libjanus_pfunix.so'...
[WARN] No Unix Sockets server started, giving up...
[WARN] The 'janus.transport.pfunix' plugin could not be initialized
Loading transport plugin 'libjanus_nanomsg.so'...
JANUS Nanomsg transport plugin initialized!
Loading transport plugin 'libjanus_websockets.so'...
[WARN] libwebsockets has been built without IPv6 support, will bind to IPv4 only
Nanomsg thread started
libwebsockets logging: 0
[FATAL] [transports/janus_websockets.c:janus_websockets_init:679] Error creating vhost for WebSockets server...
[WARN] No WebSockets server started, giving up...
[WARN] The 'janus.transport.websockets' plugin could not be initialized
Loading transport plugin 'libjanus_mqtt.so'...
MQTT SSL support disabled
[WARN] MQTT support disabled for both Janus and Admin API, giving up
JANUS MQTT transport plugin destroyed!
[WARN] The 'janus.transport.mqtt' plugin could not be initialized
Loading transport plugin 'libjanus_http.so'...
[FATAL] [transports/janus_http.c:janus_http_init:795] Couldn't start webserver on port 8088...
[WARN] No HTTP/HTTPS server started, giving up...
[WARN] The 'janus.transport.http' 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 meanwhilconfigure and recompile to get rid of this warning

Mark R

unread,
Apr 29, 2021, 11:46:11 AM4/29/21
to meetecho-janus
Ok, so I think the failure to start the webserver was because it was running as a daemon and I attempted to start it again.

Here is the log I am getting now. 
I see this line in the log: "HTTP webserver started (port 8088, /janus path listener)"

I cannot get to it via a browser (i am using the IP address): 
e.g. 
"https://<myipaddress>:8088/janus"
also tried
"https://<myipaddress>:8088"

I am getting:

This site can’t be reached

xxx.xxx.xxx.xxx  unexpectedly closed the connection.

Can anyone help?

Mirko Brankovic

unread,
Apr 29, 2021, 4:45:39 PM4/29/21
to meetecho-janus
Seems to me you are starting http listener and pointing js scripts to https, which will fail. 
So either start https janus transport listener and serve proper certificates, or suggested way, proxy pass from nginx/apache that will serve certificate and make upstream connection to janus http

--
You received this message because you are subscribed to the Google Groups "meetecho-janus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to meetecho-janu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/meetecho-janus/0f4730f7-2c43-47ed-a66e-202d19d55ad0n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages