Probably a network error, is the server down?: [object Object]

264 views
Skip to first unread message

ms t

unread,
Apr 1, 2020, 3:01:42 AM4/1/20
to meetecho-janus

I try to use janus's demo page.and I get this error:

Probably a network error, is the server down?: [object Object]
I noticed the page get a url like this:
https://www.iocollege.com:8089/janus
In fact,this no programe listen to the port 8089. and I try to do like this:


cp /root/janus-gateway/conf/janus.transport.http.jcfg.sample /opt/janus/etc/janus/janus.transport.http.jcfg

nano /opt/janus/etc/janus/janus.transport.http.jcfg

general:
https = true
secure_port = 8089

admin:
admin_https = true

certificates:
cert_pem = "/opt/cert.pem"
cert_key = "/opt/pkey.pem"
`

so,maybe some error stop to configs to general /janus.transport.http.jcfg .my config and run like this:

./configure --prefix=/opt/janus --enable-websockets

/opt/janus/bin/janus

and get this:

Janus commit: 0028c714080fc3e4aad0a85171b1dfc73d2489cc
Compiled on: 2020? 03? 31? ??? 15:30:04 CST

Logger plugins folder: /opt/janus/lib/janus/loggers
[WARN] Couldn't access logger plugins folder...
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 172.16.103.108 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)
STUN server to use: www.iocollege.com:3478

47.98.133.242:3478 (IPv4)
Testing STUN server: message is of 20 bytes
Our public address is 47.98.133.242
TURN server to use: www.iocollege.com:3478 (udp)
TURN REST API backend: (disabled)
Crypto: OpenSSL pre-1.1.0
[WARN] The libsrtp installation does not support AES-GCM profiles
Fingerprint of our certificate: 7C:04:84:B5:9F:20:26:7B:1D:E4:17:BD:C0:3C:BE:98:51:E5:1C:DB:BD:A5:78:B1:3E:C8:C7:84:FD:2C:5D:FE
[WARN] Event handlers support disabled
Plugins folder: /opt/janus/lib/janus/plugins
Loading plugin 'libjanus_textroom.so'...
JANUS TextRoom plugin initialized!
Loading plugin 'libjanus_recordplay.so'...
JANUS Record&Play plugin initialized!
Loading plugin 'libjanus_videoroom.so'...
JANUS VideoRoom plugin initialized!
Loading plugin 'libjanus_echotest.so'...
JANUS EchoTest plugin initialized!
Loading plugin 'libjanus_streaming.so'...
JANUS Streaming plugin initialized!
Loading plugin 'libjanus_videocall.so'...
JANUS VideoCall plugin initialized!
Loading plugin 'libjanus_voicemail.so'...
JANUS VoiceMail plugin initialized!
Loading plugin 'libjanus_audiobridge.so'...
JANUS AudioBridge plugin initialized!
Loading plugin 'libjanus_nosip.so'...
JANUS NoSIP plugin initialized!
Transport plugins folder: /opt/janus/lib/janus/transports
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
Loading transport plugin 'libjanus_websockets.so'...
Sessions watchdog started
Joining Janus requests handler thread
[WARN] libwebsockets has been built without IPv6 support, will bind to IPv4 only
libwebsockets logging: 0
WebSockets server started (port 8188)...
Secure WebSockets server started (port 8989)...
[WARN] Admin WebSockets server disabled
Secure Admin WebSockets server started (port 7989)...
JANUS WebSockets transport plugin initialized!
Loading transport plugin 'libjanus_rabbitmq.so'...
RabbitMQ SSL support disabled
[WARN] RabbitMQ support disabled (Janus API)
[WARN] RabbitMQ support disabled (Admin API)
[WARN] RabbitMQ support disabled for both Janus and Admin API, giving up
[WARN] The 'janus.transport.rabbitmq' plugin could not be initialized
WebSockets thread started

so,is sth error ?why not listen 8089(is websocket plugin's reason )?

Burak Senyuva

unread,
Apr 1, 2020, 12:37:03 PM4/1/20
to meetecho-janus
I recommend you to disable https on janus then put janus behind of an nginx reverse proxy using configurations below. Let nginx handle SSL.

location /janus {
  proxy_pass http
://127.0.0.1:8088/janus;
}

location
/admin {
  proxy_pass http
://127.0.0.1:7088/admin;
}

For websockets:

location /wsJanus {
  proxy_http_version
1.1;
  proxy_set_header
Upgrade $http_upgrade;
  proxy_set_header
Connection "upgrade";
  proxy_set_header
Host $host;
  proxy_cache_bypass $http_upgrade
;
  proxy_pass http
://127.0.0.1:8188;
}
 
location
/wsAdmin {
  proxy_http_version
1.1;
  proxy_set_header
Upgrade $http_upgrade;
  proxy_set_header
Connection "upgrade";
  proxy_set_header
Host $host;
  proxy_cache_bypass $http_upgrade
;
  proxy_pass http
://127.0.0.1:7188;
}

Reply all
Reply to author
Forward
0 new messages