Media server : error 2001 Media Server is offline.
Hi, I'm looking for help to find a mistake in my bbb server configuration. I have a fresh VM Ubuntu 16.04 server and bbb were installed using this script. Voice communication works fine, bbb-conf status shows everything works fine, but video not. I have a problem with media server : error 2001 Media Server is offline.
bbb-conf --check
root@bbb:/home/kking# bbb-conf --check
BigBlueButton Server 2.2.4 (1846)
Kernel version: 4.4.0-177-generic
Distribution: Ubuntu 16.04.6 LTS (64-bit)
Memory: 12107 MB
CPU cores: 14
/usr/share/bbb-web/WEB-INF/classes/bigbluebutton.properties (bbb-web)
bigbluebutton.web.serverURL: https://bbb.domain.pl
defaultGuestPolicy: ALWAYS_ACCEPT
svgImagesRequired: true
/etc/nginx/sites-available/bigbluebutton (nginx)
server name: bbb.domain.pl
port: 80, [::]:80
port: 443 ssl
bbb-client dir: /var/www/bigbluebutton
/var/www/bigbluebutton/client/conf/config.xml (bbb-client)
Port test (tunnel): rtmp://bbb.domain.pl
red5: bbb.domain.pl
useWebrtcIfAvailable: true
/opt/freeswitch/etc/freeswitch/vars.xml (FreeSWITCH)
local_ip_v4: MY_PUBLIC_IP
external_rtp_ip: stun:stun.freeswitch.org
external_sip_ip: stun:stun.freeswitch.org
/opt/freeswitch/etc/freeswitch/sip_profiles/external.xml (FreeSWITCH)
ext-rtp-ip: $${local_ip_v4}
ext-sip-ip: $${local_ip_v4}
ws-binding: :5066
wss-binding: MY_PUBLIC_IP:7443
/usr/local/bigbluebutton/core/scripts/bigbluebutton.yml (record and playback)
playback_host: bbb.domain.pl
playback_protocol: https
ffmpeg: 4.2.2-1bbb1~ubuntu16.04
/etc/bigbluebutton/nginx/sip.nginx (sip.nginx)
proxy_pass: MY_PUBLIC_IP
/usr/local/bigbluebutton/bbb-webrtc-sfu/config/default.yml (Kurento SFU)
kurento.ip: MY_PUBLIC_IP
kurento.url: ws://127.0.0.1:8888/kurento
localIpAddress: MY_PUBLIC_IP
recordScreenSharing: true
recordWebcams: true
codec_video_main: VP8
codec_video_content: VP8
/usr/share/meteor/bundle/programs/server/assets/app/config/settings.yml (HTML5 client)
build: 873
kurentoUrl: wss://bbb.domain.pl/bbb-webrtc-sfu
enableListenOnly: true
Potential problems described below
root@bbb:/home/kking# bbb-conf --status
nginx —————————————————► [ - active]
freeswitch ————————————► [ - active]
redis-server ——————————► [ - active]
bbb-apps-akka —————————► [ - active]
bbb-transcode-akka ————► [ - active]
bbb-fsesl-akka ————————► [ - active]
red5 ——————————————————► [ - active]
tomcat7 ———————————————► [ - active]
mongod ————————————————► [ - active]
bbb-html5 —————————————► [ - active]
bbb-webrtc-sfu ————————► [ - active]
kurento-media-server ——► [ - active]
etherpad ——————————————► [ - active]
bbb-web ———————————————► [ - active]
root@bbb:/home/kking#
root@bbb:/home/kking# ps -ef | grep kurento-media-server
kurento 9196 1 0 12:48 ? 00:00:00 /usr/bin/kurento-media-server --gst-debug-level=3 --gst-debug=3,Kurento*:4,kms*:4,KurentoWebSocketTransport:5
root 12626 8366 0 13:10 pts/0 00:00:00 grep --color=auto kurento-media-server
root@bbb:/home/kking# sudo netstat -tupan | grep kurento
tcp6 0 0 :::8888 :::* LISTEN 9196/kurento-media-
tcp6 0 0 127.0.0.1:8888 127.0.0.1:54854 ESTABLISHED 9196/kurento-media-
root@bbb:/home/kking#
root@bbb:/home/kking# cat /var/log/bbb-webrtc-sfu/bbb-webrtc-sfu.log
{"message":"[sfu-mcs-api] SFU socket connection to mcs-core failed due to connect ECONNREFUSED ::1:3010","level":"error","timestamp":"2020-04-11T11:16:17.624Z"}
{"level":"error","message":"[sfu-mcs-api] SFU socket connection to mcs-core closed unexpectedly","timestamp":"2020-04-11T11:16:17.624Z"}
{"level":"info","message":"[sfu-mcs-api] Trying to reconnect to MCS at ws://localhost:3010/mcs","timestamp":"2020-04-11T11:16:17.786Z"}
{"level":"info","message":"[sfu-mcs-api] Trying to reconnect to MCS at ws://localhost:3010/mcs","timestamp":"2020-04-11T11:16:17.786Z"}
{"message":"[sfu-mcs-api] SFU socket connection to mcs-core failed due to connect ECONNREFUSED ::1:3010","level":"error","timestamp":"2020-04-11T11:16:17.787Z"}
{"message":"[sfu-mcs-api] SFU socket connection to mcs-core failed due to connect ECONNREFUSED ::1:3010","level":"error","timestamp":"2020-04-11T11:16:17.787Z"}
{"level":"error","message":"[sfu-mcs-api] SFU socket connection to mcs-core closed unexpectedly","timestamp":"2020-04-11T11:16:17.787Z"}
{"level":"error","message":"[sfu-mcs-api] SFU socket connection to mcs-core closed unexpectedly","timestamp":"2020-04-11T11:16:17.788Z"}
{"level":"info","message":"[sfu-mcs-api] Trying to reconnect to MCS at ws://localhost:3010/mcs","timestamp":"2020-04-11T11:16:19.623Z"}
{"message":"[sfu-mcs-api] SFU socket connection to mcs-core failed due to connect ECONNREFUSED ::1:3010","level":"error","timestamp":"2020-04-11T11:16:19.625Z"}
{"level":"error","message":"[sfu-mcs-api] SFU socket connection to mcs-core closed unexpectedly","timestamp":"2020-04-11T11:16:19.625Z"}
{"level":"info","message":"[sfu-mcs-api] Trying to reconnect to MCS at ws://localhost:3010/mcs","timestamp":"2020-04-11T11:16:19.786Z"}
{"message":"[sfu-mcs-api] SFU socket connection to mcs-core failed due to connect ECONNREFUSED ::1:3010","level":"error","timestamp":"2020-04-11T11:16:19.787Z"}
{"level":"error","message":"[sfu-mcs-api] SFU socket connection to mcs-core closed unexpectedly","timestamp":"2020-04-11T11:16:19.788Z"}
{"level":"info","message":"[sfu-mcs-api] Trying to reconnect to MCS at ws://localhost:3010/mcs","timestamp":"2020-04-11T11:16:19.788Z"}
{"message":"[sfu-mcs-api] SFU socket connection to mcs-core failed due to connect ECONNREFUSED ::1:3010","level":"error","timestamp":"2020
bbb-conf --debug shows:
/var/log/bigbluebutton/bbb-web.log:2020-04-11T13:56:52.946+02:00 WARN i.l.c.protocol.ConnectionWatchdog - Cannot reconnect: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: /127.0.0.1:6379
Can you help me to find a mistake?
Hello! I have the same trouble, everything seem to run well but still have trouble with the media server is offline - error 2001, newly installed server and BBB on Ubuntu 16.04, no other installation on a dedicated server. -- check (is ok) -- status (is ok) -- kurento in the right folder -- https (ok)
+1 the same problem after upgrade from 2.2.3 to 2.2.10 via install.sh.
Are you able to connect to https://test.bigbluebutton.org/ and share media?
[solved] In my case, the problem was related to ipv4 localhost definition in /etc/hosts file. It was missing "127" in front. (0.0.1 localhost) (dunno how it got corrupted). So it used IPV6:
/var/log/bbb-webrtc-sfu/bbb-webrtc-sfu.log:
{"message":"[sfu-mcs-api] SFU socket connection to mcs-core failed due to connect ECONNREFUSED ::1:3010","level":"error","timestamp":"2020-05-17T12:48:00.654Z"} {"level":"error","message":"[sfu-mcs-api] SFU socket connection to mcs-core closed unexpectedly","timestamp":"2020-05-17T12:48:00.655Z"}
Are you able to connect to https://test.bigbluebutton.org/ and share media?
Hi @ffdixon it's possible to share media in https://test.bigbluebutton.org/ but i can't share media in my bbb. and I have a problem with media server : error 2001 Media Server is offline. tanx for your help
I encounter this issue as well.
Can someone explain what MCS even is or what the abbreviation stands for? The sample production.yml has a comment "mcs-core entrypoint configured on nginx", however none of the sample nginx configurations returned anything for "mcs" or "3010".
Turns out, webrtc-sfu houses the mcs-core component and tries to connect to itself. In my case, the issue was related to the sample configuration setting mcs-address: localhost and mcs-host: 127.0.0.1 by default - localhost resolves to IPv6, making the program bind to ::1, but at the same time it tries to connect to itself over IPv4. Setting both values localhost made the internal connection work over IPv6.
Of course, this might be specific to my setup and not related to the issues other people in this thread are facing.
Thanks for sharing this @tacerus! You have definitely helped others.