webRTC 1002 error

790 views
Skip to first unread message

Mohamed Aldesoky

unread,
Feb 5, 2017, 4:47:18 AM2/5/17
to BigBlueButton-Setup
hi all ,
i have a bigbluebutton server installed behind a firewall and using it with Moodle 2.6 in my university for learning purposes
i know that this error issue may be related to some ports closed by the firewall but i checked the firewall with the person how responsible for it to insure that all needed ports are oppened (TCP 80, 1935, 9123 & UDP 16384 - 32768 ports) but still have this error
Note, i`m working on bigbluebutton with its default http

here is the output of (bbb-conf --check)
root@bbbpc:~# bbb-conf --check

BigBlueButton Server 1.0.0 (1062)
                    Kernel version: 4.4.0-59-generic
                      Distribution: Ubuntu 14.04.5 LTS (64-bit)
                            Memory: 3917 MB

/var/www/bigbluebutton/client/conf/config.xml (bbb-client)
                Port test (tunnel): 195.246.54.76
                              Red5: 195.246.54.76
              useWebrtcIfAvailable: true

/opt/freeswitch/conf/sip_profiles/external.xml (FreeSWITCH)
                    websocket port: 5066
                    WebRTC enabled: true

/etc/nginx/sites-available/bigbluebutton (nginx)
                       server name: 195.246.54.76
                              port: 80
                    bbb-client dir: /var/www/bigbluebutton

/var/lib/tomcat7/webapps/bigbluebutton/WEB-INF/classes/bigbluebutton.properties (bbb-web)
                      bbb-web host: 195.246.54.76

/var/www/bigbluebutton/check/conf/config.xml (client check)
                      client check: 195.246.54.76

/usr/share/red5/webapps/bigbluebutton/WEB-INF/red5-web.xml (red5)
                  voice conference: FreeSWITCH
                     capture video: true
                   capture desktop: true

/usr/local/bigbluebutton/core/scripts/bigbluebutton.yml (record and playback)
                     playback host: 195.246.54.76


** Potential problems described below **
# IP does not match:
#                           IP from ifconfig: 192.168.11.20
#   /etc/nginx/sites-available/bigbluebutton: 195.246.54.76
# Warning: You are running BigBlueButton on a server with less than 4G of memory.  Your
# performance may suffer.

# Warning: The client self check is installed and accessible from:
#
#    http://195.246.54.76/check
#
regards ,Mohamed

Fred Dixon

unread,
Feb 5, 2017, 9:57:46 AM2/5/17
to bigbluebu...@googlegroups.com
Hi Mohamed,

Can you try forwarding port 5066 on the firewall and let us now if that gets the audio working.

Regards,... Fred

--
You received this message because you are subscribed to the Google Groups "BigBlueButton-Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-setup+unsubscribe...@googlegroups.com.
To post to this group, send email to bigbluebutton-setup@googlegroups.com.
Visit this group at https://groups.google.com/group/bigbluebutton-setup.
For more options, visit https://groups.google.com/d/optout.



--
BigBlueButton Developer
@bigbluebutton

Mohamed Aldesoky

unread,
Feb 6, 2017, 7:56:33 AM2/6/17
to BigBlueButton-Setup

hi Fred,
thanks for ur replay,
when i opened port 5066 tcp/udp i success to establish websocket connection for a few seconds then error message appear 1001 websocket disconnected and after another try with error message 1004 failure on call and another time webRTC connection dropped and doing reconnecting and drop the connection again mutually.I can`t determine where is the error in my server or i must configure it to use https to pass all these issues of webRTC .I hope u can help me here is a print scr for client check on my server

i hope it will help you
regards,...mohamed
Auto Generated Inline Image 1

Mohamed Aldesoky

unread,
Feb 6, 2017, 8:00:20 AM2/6/17
to BigBlueButton-Setup

sorry Fred,
here is the captured image of client check on my server

Fred Dixon

unread,
Feb 6, 2017, 8:12:35 AM2/6/17
to bigbluebu...@googlegroups.com
Hi Mohamed,

Hmm ... looking at the docs


For 1001 it reads

   1001: WebSocket disconnected - The WebSocket had connected successfully and has now disconnected. Possible Causes: 
      Loss of internet connection
      Nginx restarting can cause this

The web socket connecting on 5066 must persist throughout the duration of the audio connection.  Can you check the logs on your firewall to see if there is any record of it terminating this connection?  A good clue is if you get connected for audio and then you get the 1001 error always at the same interval, such as 5 minutes after audio starts.  This would suggest there is a timeout on the firewall that is terminating long running connections on that port.


Regards,... Fred


--
You received this message because you are subscribed to the Google Groups "BigBlueButton-Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-setup+unsub...@googlegroups.com.

To post to this group, send email to bigbluebutton-setup@googlegroups.com.
Visit this group at https://groups.google.com/group/bigbluebutton-setup.
For more options, visit https://groups.google.com/d/optout.

Mohamed Aldesoky

unread,
Feb 15, 2017, 3:50:16 AM2/15/17
to BigBlueButton-Setup
Hi Fred ,
sorry for taking too long time to reply.
but let me tell u what i was doing  to my server
1-i tried to open all ports from my firewall with no positive result
2- then i decided to install Let`s Encrypt ssl certificate as the bigbluebutton installation document says , but here is the problem began:

when i tried to share my microphone in both browsers(firefox / chrome) nothing happened no calling process occurred seems like webRTC not exist or not running
if you have some times i`ll be glad if you visit my bigbluebutton and try demo meeting to look so close to my problem
http://el.kfs.edu.eg
thanks again Fred
Regards,.... Mohamed

Fred Dixon

unread,
Feb 15, 2017, 7:56:22 AM2/15/17
to bigbluebu...@googlegroups.com
Hi Mohamed,

Can you post the output of 

  sudo bbb-conf --check

Also, if you are going to start over, we recommend BigBlueButton 1.1-beta (Ubuntu 16.04 64-bit), is easier to setup and the bbb-conf --check has more diagnostics about audio to help you resolve any issues.

See


Regards,... Fred

--
You received this message because you are subscribed to the Google Groups "BigBlueButton-Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-setup+unsub...@googlegroups.com.
To post to this group, send email to bigbluebutton-setup@googlegroups.com.
Visit this group at https://groups.google.com/group/bigbluebutton-setup.
For more options, visit https://groups.google.com/d/optout.

Chad Pilkey

unread,
Feb 15, 2017, 1:08:41 PM2/15/17
to BigBlueButton-Setup
There's an error in the browser console log, "Error connecting to WebSocket ws://el.kfs.edu.eg/ws: SecurityError: The operation is insecure." It looks like you forgot to make one (or more) of the HTTPS changes.

Mohamed Aldesoky

unread,
Feb 16, 2017, 5:10:09 AM2/16/17
to BigBlueButton-Setup


Hi Fred,
Here is The output of
sudo bbb-conf --check

BigBlueButton Server 1.0.0 (1062)
                    Kernel version: 4.4.0-59-generic
                      Distribution: Ubuntu 14.04.5 LTS (64-bit)
                            Memory: 3917 MB

/var/www/bigbluebutton/client/conf/config.xml (bbb-client)
                Port test (tunnel): el.kfs.edu.eg
                              Red5: el.kfs.edu.eg

              useWebrtcIfAvailable: true

/opt/freeswitch/conf/sip_profiles/external.xml (FreeSWITCH)
                    websocket port:
                    WebRTC enabled: true

/etc/nginx/sites-available/bigbluebutton (nginx)
                       server name: el.kfs.edu.eg
                              port: 80
[::]:80
                              port: 443 ssl

                    bbb-client dir: /var/www/bigbluebutton

/var/lib/tomcat7/webapps/bigbluebutton/WEB-INF/classes/bigbluebutton.properties (bbb-web)
                      bbb-web host: el.kfs.edu.eg

/var/lib/tomcat7/webapps/demo/bbb_api_conf.jsp (API demos)
                               url: el.kfs.edu.eg

/var/www/bigbluebutton/check/conf/config.xml (client check)
                      client check: el.kfs.edu.eg


/usr/share/red5/webapps/bigbluebutton/WEB-INF/red5-web.xml (red5)
                  voice conference: FreeSWITCH
                     capture video: true
                   capture desktop: true

/usr/local/bigbluebutton/core/scripts/bigbluebutton.yml (record and playback)
                     playback host: el.kfs.edu.eg



** Potential problems described below **
# IP does not match:
#                           IP from ifconfig: 192.168.11.20
#   /etc/nginx/sites-available/bigbluebutton: el.kfs.edu.eg
# Warning: API URL IPs do not match host:
#

#                                IP from ifconfig: 192.168.11.20
#  /var/lib/tomcat7/webapps/demo/bbb_api_conf.jsp: el.kfs.edu.eg

# Error: The voice application failed to register with the sip server.
#   Try running:
#
#      sudo bbb-conf --clean
#

# Warning: The setting of  for local_ip_v4 in
#
#    /opt/freeswitch/conf/vars.xml
#
# does not match the local IP address (192.168.11.20).
# (This is OK if you've manually changed the values)


# Warning: You are running BigBlueButton on a server with less than 4G of memory.  Your
# performance may suffer.

# Warning: The API demos are installed and accessible from:
#
#    https://el.kfs.edu.eg/demo/demo1.jsp
#
# These API demos allow anyone to access your server without authentication
# to create/manage meetings and recordings. They are for testing purposes only.
# If you are running a production system, remove them by running:
#
#    sudo apt-get purge bbb-demo


# Warning: The client self check is installed and accessible from:
#
#    https://el.kfs.edu.eg/check

I need everything to be OK first (if possible) then i`ll do dist-upgrade to Ubuntu 16.04 and upgrade the BigBlueButton 
So,with these Check information i`ll wait your analysis to give me solution
Regards,.........Mohamed

Mohamed Aldesoky

unread,
Feb 16, 2017, 7:27:46 AM2/16/17
to BigBlueButton-Setup
Hi Chad,
you are right,
i wasn't change ws --->wss in this file
/var/www/bigbluebutton/client/lib/bbb_webrtc_bridge_sip.js
but even i changed it nothing happened
So,I can't determine where is the mistake?
Regards,......Mohamed

Fred Dixon

unread,
Feb 16, 2017, 7:34:13 AM2/16/17
to bigbluebu...@googlegroups.com
Hi Moahmed,

Is it an option for you to setup a new server with Ubuntu 16.04 64-bit and install BigBlueButton 1.1-beta -- you going to want to upgrade shortly anyway and 1.1-beta.

The newer version is easier to setup (fewer commands), has more features (breakout rooms and faster desktop sharing), and has better diagnostics in bbb-conf.

For steps to install (with video), see



Regards,... Fred

--
You received this message because you are subscribed to the Google Groups "BigBlueButton-Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-setup+unsub...@googlegroups.com.
To post to this group, send email to bigbluebutton-setup@googlegroups.com.
Visit this group at https://groups.google.com/group/bigbluebutton-setup.
For more options, visit https://groups.google.com/d/optout.

Chad Pilkey

unread,
Feb 16, 2017, 2:18:25 PM2/16/17
to BigBlueButton-Setup
Your server is sending the local IP as its candidate so the call will never be able to connect. If you have two IP addresses (internal and external) you're going to need to follow the steps in http://docs.bigbluebutton.org/install/install.html#audio-not-working. If your server is behind NAT you're going to need to go the dummy NIC route (https://groups.google.com/forum/#!msg/bigbluebutton-setup/cw4v1DK-xzY/NI2xnR1nGwAJ) so that FreeSWITCH binds to your external IP.

Also, there's no upgrade path from 1.0 to 1.1-beta so you're going to need to setup a new server anyways if you want the newer features and if you're just starting out with BBB it will be much easier to switch now rather than get 1.0 working and then get 1.1 working right afterwards.
Reply all
Reply to author
Forward
0 new messages