bigbluebutton / bbb-install

BASH script to install BigBlueButton in 30 minutes.
GNU Lesser General Public License v3.0
617 stars 538 forks source link

Could not make a WebSocket connection (error 1002) #398

Open ronworld opened 3 years ago

ronworld commented 3 years ago

Hi, I installed bigbluebutton on my server an all seems to be well after a long struggle but when I start a session either using the moodle plugin or greenlite, the error Could not make a WebSocket connection (error 1002), shows up and I cant join with audio. When I click on listen only, I join the session fine but without the default presentation

bbb-conf --status show the following :~# bbb-conf --status nginx —————————————————► [✔ - active] freeswitch ————————————► [✔ - active] redis-server ——————————► [✔ - active] bbb-apps-akka —————————► [✔ - active] bbb-fsesl-akka ————————► [✔ - active] tomcat8 ———————————————► [✔ - active] mongod ————————————————► [✔ - active] bbb-html5 —————————————► [✔ - active] bbb-webrtc-sfu ————————► [✔ - active] kurento-media-server ——► [✔ - active] bbb-html5-backend@1 ———► [✔ - active] bbb-html5-backend@2 ———► [✔ - active] bbb-html5-frontend@1 ——► [✔ - active] bbb-html5-frontend@2 ——► [✔ - active] etherpad ——————————————► [✔ - active] bbb-web ———————————————► [✔ - active]

:~# bbb-conf --check

BigBlueButton Server 2.3.6 (2378) Kernel version: 4.15.0 Distribution: Ubuntu 18.04.5 LTS (64-bit) Memory: 16777 MB CPU cores: 8

/etc/bigbluebutton/bbb-web.properties (override for bbb-web) /usr/share/bbb-web/WEB-INF/classes/bigbluebutton.properties (bbb-web) bigbluebutton.web.serverURL: https://bbb.xxxxxxxxx.edu defaultGuestPolicy: ALWAYS_ACCEPT svgImagesRequired: true

/etc/nginx/sites-available/bigbluebutton (nginx) server_name: bbb.xxxxxxxxx.edu port: 80, [::]:80 port: 443 ssl

/opt/freeswitch/etc/freeswitch/vars.xml (FreeSWITCH) local_ip_v4: inet external_rtp_ip: 102.xxx.xxx.60 external_sip_ip: 102.xxx.xxx.60

/opt/freeswitch/etc/freeswitch/sip_profiles/external.xml (FreeSWITCH) ext-rtp-ip: $${external_rtp_ip} ext-sip-ip: $${external_sip_ip} ws-binding: 102.xxx.xxx.60:5066 wss-binding: 102.xxx.xxx.60:7443

/usr/local/bigbluebutton/core/scripts/bigbluebutton.yml (record and playback) playback_host: bbb.xxxxxxxxx.edu playback_protocol: https ffmpeg: 4.2.4-1ubuntu0.1bbb2~18.04

/etc/bigbluebutton/nginx/sip.nginx (sip.nginx) proxy_pass: 102.xxx.xxx.60 protocol: http

/usr/local/bigbluebutton/bbb-webrtc-sfu/config/default.yml (Kurento SFU) kurento.ip: 102.xxx.xxx.60 kurento.url: ws://127.0.0.1:8888/kurento kurento.sip_ip: 102.xxx.xxx.60 localIpAddress: inet 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: 1801 kurentoUrl: wss://bbb.xxxxxxxxx.edu/bbb-webrtc-sfu enableListenOnly: true sipjsHackViaWs: true

/usr/share/bbb-web/WEB-INF/classes/spring/turn-stun-servers.xml (STUN Server) stun: stun.l.google.com:19302

/etc/kurento/modules/kurento/WebRtcEndpoint.conf.ini (STUN Server) stun: 172.217.212.127:19302

Potential problems described below

root@svr:~#

Please help. I am not sure what to do anymore. I've been searching the internet but to no avail. Thank you in advance.

michi-80337 commented 3 years ago

This seems to be a duplicate of issue #267. Could You please check against the documentation linked below, if everything is configured correctly?

ronworld commented 3 years ago

Hi, thank you for your quick response. I just finished following the instructions on the above link line by line and the result is still the same. My server is not behind a firewall

Is there anything else I can do to help the situation Thanks again

michi-80337 commented 3 years ago

Which OS do you use on the client side? Is there a firewall on the client side?

ronworld commented 3 years ago

I use windows 10 64bit. Core i7 processor with 8GB RAM No I dont have a firewall. I am able to access bbb 2.x on another server running ubuntu 16.04 without a problem from my computer but this one on 18.04 has given me problems

ronworld commented 3 years ago

Oh sorry, I dont have a firewall.

michi-80337 commented 3 years ago

To be able to connect to older versions of BBB is a good sign in regard of the client.

Did you find any error messges in /var/log/syslog, /opt/freeswitch/log/freeswitch.log or the other BBB logfiles? Have you already asked for help in bigbluebutton-setup@googlegroups.com?

ronworld commented 3 years ago

I found the following errors in the log files /opt/freeswitch/log/freeswitch.log [ERR] sofia.c:3322 Error Creating SIP UA for profile: internal (sip:mod_sofia@inet:5090;transport=udp,tcp) ATTEMPT 1 (RETRY IN 5 SEC) [ERR] sofia.c:3322 Error Creating SIP UA for profile: external (sip:mod_sofia@102.XXX.XXX.65:5060;maddr=inet;transport=udp,tcp) ATTEMPT 1 (R$

laft few logs in /var/log/syslog Jul 20 18:06:04 rmslive1 bbb-fsesl-akka[30335]: 2021-07-20T18:06:04.387Z INFO o.b.f.v.freeswitch.ESLEventListener - Received Heartbeat from Freeswitch. Jul 20 18:06:24 rmslive1 bbb-fsesl-akka[30335]: 2021-07-20T18:06:24.403Z INFO o.b.f.v.freeswitch.ESLEventListener - Received Heartbeat from Freeswitch. Jul 20 18:06:25 rmslive1 bbb-fsesl-akka[30335]: 2021-07-20T18:06:25.069Z DEBUG o.b.f.v.f.a.CheckFreeswitchStatusCommand - Check FreeSWITCH Status. Jul 20 18:06:25 rmslive1 bbb-fsesl-akka[30335]: 2021-07-20T18:06:25.072Z INFO o.b.f.v.f.a.CheckFreeswitchStatusCommand - ["UP 0 years, 2 days, 19 hours, 4 minutes, 0 $ Jul 20 18:06:29 rmslive1 systemd_start_frontend.sh[30585]: #033[32minfo#033[39m: Active connections Jul 20 18:06:29 rmslive1 systemd_start_frontend.sh[30597]: #033[32minfo#033[39m: Active connections

I have not tried the link given I will give it a shot. But am grateful for your trying. Thanks

ronworld commented 3 years ago

sip:mod_sofia@inet:5090;transport=udp,tcp is the inet in the line above not supposed to be an ip address or does linux use inet for internal ip addresses. sorry newbie