bigbluebutton / bbb-install

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

ICE 1007 error with working TURN #175

Open bedoke opened 4 years ago

bedoke commented 4 years ago

Hello, i installed BBB using the install.sh script (including TURN configuration) on a clean Ubuntu 16.04 server and all users where BBB otherwise works get the error message "ICE error 1007". I'm sure that the TURN server is working correctly because it is used for another working BBB installation.

I used this command to install BBB:

wget -qO- https://ubuntu.bigbluebutton.org/bbb-install.sh | bash -s -- -v xenial-220 -s bbb.weqon.net -e <myemail> -g -c <myturndomain>:<myturnscret>

The command bbb-conf --check returns this:

BigBlueButton Server 2.2.5 (1848)
                    Kernel version: 4.4.0-177-generic
                      Distribution: Ubuntu 16.04.6 LTS (64-bit)
                            Memory: 7980 MB
                         CPU cores: 4

/usr/share/bbb-web/WEB-INF/classes/bigbluebutton.properties (bbb-web)
       bigbluebutton.web.serverURL: https://bbb.weqon.net
                defaultGuestPolicy: ALWAYS_ACCEPT
                 svgImagesRequired: true

/etc/nginx/sites-available/bigbluebutton (nginx)
                       server name: bbb.weqon.net
                              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.weqon.net
                              red5: bbb.weqon.net
              useWebrtcIfAvailable: true

/opt/freeswitch/etc/freeswitch/vars.xml (FreeSWITCH)
                       local_ip_v4: 116.203.246.252
                   external_rtp_ip: 116.202.189.25
                   external_sip_ip: 116.202.189.25

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

/usr/local/bigbluebutton/core/scripts/bigbluebutton.yml (record and playback)
                     playback_host: bbb.weqon.net
                 playback_protocol: https
                            ffmpeg: 4.2.2-1bbb1~ubuntu16.04

/etc/bigbluebutton/nginx/sip.nginx (sip.nginx)
                        proxy_pass: 116.202.189.25

/usr/local/bigbluebutton/bbb-webrtc-sfu/config/default.yml (Kurento SFU)
                        kurento.ip: 116.202.189.25
                       kurento.url: ws://127.0.0.1:8888/kurento
                    localIpAddress: 116.203.246.252
               recordScreenSharing: true
                     recordWebcams: true
                  codec_video_main: VP8
               codec_video_content: VP8

/usr/share/meteor/bundle/programs/server/assets/app/config/settings.yml (HTML5 c                                                                                                                                                             lient)
                             build: 874
                        kurentoUrl: wss://bbb.weqon.net/bbb-webrtc-sfu
                  enableListenOnly: true

\# Potential problems described below
\# IP does not match:
\#                           IP from ifconfig: 116.203.246.252
\#   /etc/nginx/sites-available/bigbluebutton: bbb.weqon.net

\# Warning: The setting of 116.202.189.25 for proxy_pass in
\#
\#    /etc/bigbluebutton/nginx/sip.nginx
\#
\# does not match the local IP address (116.203.246.252).
\# (This is OK if you've manually changed the values)

And the command bbb-conf --status returns this:

nginx —————————————————► [ - active]

freeswitch ————————————► [ - active]

redis-server ——————————► [ - active]

bbb-apps-akka —————————► [ - active]

bbb-transcode-akka ————► [ - active]

bbb-fsesl-akka ————————► [ - active]

red5 ——————————————————► [ - active]

mongod ————————————————► [ - active]

bbb-html5 —————————————► [ - active]

bbb-webrtc-sfu ————————► [ - active]

kurento-media-server ——► [ - active]

etherpad ——————————————► [ - active]

bbb-web ———————————————► [ - active]

What other information is interesting so that you might be able to help me?

Thank you very much for your support! Best greetings from Germany

marshel commented 4 years ago

I had a working BBB 2.2.2 installation, after updating to a minor revision using apt I get ICE 1007 error even with a coturn server installed a know working.

May be that the newer updates are changing or forgetting some configuration.

Is there a log I may send you?

marshel commented 4 years ago

I'd confirmed that after "apt update" BBB lost turn servers configuration. [BUG - it should maintain the configs after updates].

I had to run bbb-install script again with coturn servers info. Then the ICE1007 error went away.

joo4mart commented 4 years ago

After many many tests I have found the easiest solution:

systemctl restart docker

If you have changed manually some files you should restart some bbb services and at the end docker, too:

systemctl restart bbb-web systemctl restart bbb-webrtc-sfu systemctl restart freeswitch systemctl restart docker

Then all should run fine!