Bigbluebutton websocket ошибка 1002

I’m writing this to help those who still not figred out how to resolve this issue.
You need to perform one extra steps when server is behind NAT(network address translation).
You need to configre Kurento to use stun server, which you can get from the link kurento documentation,
you need to edit /etc/kurento/modules/kurento/WebRtcEndpoint.conf.ini and uncomment and assign values for stunServerAddress and stunServerPort.

For example, to use the STUN server at 64.233.177.127 with port 19302, edit the lines with stunServerAddress and stunServerPort as follows:

stunServerAddress=64.233.177.127
stunServerPort=19302

Next, this is very important

edit /opt/freeswitch/conf/sip_profiles/external.xml and ensure the value for wss-binding uses the external IP address

<param name="wss-binding" value="EXTERNAL_IP_ADDRESS:7443"/>
At this point, restart your BigBlueButton server with bbb-conf --restart, then try connecting to the WebRTC media again.

If the issue stile not resolved then edit the following files and substitute EXTERNAL_IP_ADDRESS for the external IP address (not the external hostname).

Edit /opt/freeswitch/conf/vars.xml, and
change <X-PRE-PROCESS cmd="set" data="external_rtp_ip=stun:stun.freeswitch.org"/>
To <X-PRE-PROCESS cmd="set" data="external_rtp_ip=EXTERNAL_IP_ADDRESS"/>

Change <X-PRE-PROCESS cmd="set" data="external_sip_ip=stun:stun.freeswitch.org"/>
To <X-PRE-PROCESS cmd="set" data="external_sip_ip=EXTERNAL_IP_ADDRESS"/>

Next, edit /opt/freeswitch/conf/sip_profiles/external.xml and change
<param name="ext-rtp-ip" value="$${local_ip_v4}"/>
<param name="ext-sip-ip" value="$${local_ip_v4}"/>
to
<param name="ext-rtp-ip" value="$${external_rtp_ip}"/>
<param name="ext-sip-ip" value="$${external_sip_ip}"/>

Next, edit /usr/share/red5/webapps/sip/WEB-INF/bigbluebutton-sip.properties, and make sure the values of bbb.sip.app.ip and freeswitch.ip have the internal IP address.

bbb.sip.app.ip=<internal_ip>
bbb.sip.app.port=5070

freeswitch.ip=<internal_ip>
freeswitch.port=5060

Edit /etc/bigbluebutton/nginx/sip.nginx to connect to the external IP address.

If you have configured SSL, use port 7443:

location /ws {
        proxy_pass https://EXTERNAL_IP_ADDRESS:7443;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "Upgrade";
        proxy_read_timeout 6h;
        proxy_send_timeout 6h;
        client_body_timeout 6h;
        send_timeout 6h;
}

If enableListenOnly is set to true in /usr/share/meteor/bundle/programs/server/assets/app/config/settings.yml, as in

$ grep enableListenOnly /usr/share/meteor/bundle/programs/server/assets/app/config/settings.yml
    enableListenOnly: true

edit /usr/local/bigbluebutton/bbb-webrtc-sfu/config/default.yml change the value to ip to match the external IP address of the server, and the value of sip_ip to match the internal IP address of the server (where FreeSWITCH is listening to port 5066). For example, if the servers external IP address is 203.0.113.1 and the internal IP address is 172.30.1.145 then edit default.yml and change the values for ip and sip_ip as follows:

freeswitch:
    ip: 203.0.113.1
    sip_ip: 172.30.1.145
    port: 5066

After making the above changes, restart BigBlueButton.

$ bbb-conf --restart

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.

Already on GitHub?
Sign in
to your account

Closed

niuglof opened this issue

Dec 11, 2021

· 8 comments

Closed

Error 1002 Chrome

#13900

niuglof opened this issue

Dec 11, 2021

· 8 comments

Comments

@niuglof

When i try start audio with mic i get error 1002

Steps to reproduce the behavior:

  1. start room
  2. i get popup with the message «Connecting» and after appear error 1002

Screenshots

5e949d2a-de6f-4e64-976a-25eb55826aca

BBB version:

BigBlueButton Server 2.2.2 (1781)
Kernel version: 4.4.0-1110-aws
Distribution: Ubuntu 16.04.6 LTS (64-bit)
Memory: 15842 MB
CPU cores: 8

**Desktop
MacOS Big Sur 11.6

  • Chrome 96.0.4664.93 (Build oficial) (x86_64)

@hostbbb

Server 2.2.2 (1781) <— you need to update BBB to 2.2.36 or 2.3 2.4 to use Chrome 96.

@niuglof

@Corradones

Happened to me too. All my server all together show 1006 with chrome. Someone can help me to fix this?

@hostbbb

that looks like you are using a mac? do you get the some thing with firefox or safari? that screenshare shows you getting the same on the test24 server. Maybe some others with macs can try chrome 96

@jmerino-iib

BigBlueButton Server 2.2.30 (2283)

Since last week, for every Chrome client updated to version 96, I have the same issue: Error 1006 (at least with Ubuntu and Windows versions) when enabling microphone.
EDIT: Upgraded to 2.2.36, Chrome version 96 is working without issues. Thank you.

@Corradones

Confirm. the issue is the version 2.2.30 with new chrome. Updated to 2.3 everything gone all right. Thank you all

@akyolalpay

hi guys,
we have installed version 2.4 on a static Public IP server not a behind firewall.
there is always 1002 websocket error on screen.
there is an issue regarding sip and wss i guess.

your help is appreciated.

@prlanzarin

hi guys, we have installed version 2.4 on a static Public IP server not a behind firewall. there is always 1002 websocket error on screen. there is an issue regarding sip and wss i guess.

your help is appreciated.

Guarantee sipjsHackViaWs in settings.yml is true and the reverse proxy port in /etc/bigbluebutton/sip.nginx is :5066.

Appropriate place for this is the bigbluebutton-setup mailing list. Folks will probably help you out there.

BigBlueButton is an opensource video conference software that is becoming increasingly popular during the COVID-19 period. Every day, millions of people take classes online. Users may encounter error codes such as 1001,1006,1007,1020… What does this mean? What should be checked and how should it be fixed?

The advantage of web-based software is that there is no need to download and install anything; simply use a browser, which is very convenient and compatible with all devices. However, the user must configure the browser correctly, and the developer must configure the server correctly as well. Otherwise, error messages will be displayed.

We’ve listed the majority of the most common error messages along with the code to make it easier for you to look up and understand what’s going on when those error messages appear.

1001: WebSocket disconnected — The WebSocket had connected successfully and has now disconnected. 

What need to check: 

  • internet connection 

1002: Could not make a WebSocket connection — The initial WebSocket connection was unsuccessful. 

What need to check: 

  • The firewall may block was protocol, 
  • The server may go down or improperly configured

1003: Browser version not supported — Browser doesn’t implement the necessary WebRTC API methods. 

What needs to check: 

  • Is it the latest version of Chrome, Firefox, or Safari? 

1004: Failure on call — The call was attempted, but failed. 

What needs to check: 

  • A version of Freeswitch for BBB

1005: Call ended unexpectedly — The call was successful but ended without the user requesting to end the session.

What needs to check: 

  • Server down 

1006: Call timed out — The library took too long to try and connect the call.

What needs to check: 

  • Is it the latest version of Chrome, Firefox, or Safari? 

1007: ICE negotiation failed — The browser and FreeSWITCH try to negotiate ports to use to stream the media and that negotiation failed. 

What needs to check: 

  • TURN Server configuration

1008: Call transfer failed — A timeout while waiting for FreeSWITCH to transfer from the echo test to the real conference. 

What needs to check: 

  • FreeSWITCH Configuration 

1009: Could not fetch STUN/TURN server information 

What needs to check: 

  • BigBlueButton Version
  • Network 

1010: ICE negotiation timeout 

What needs to check: 

  • Network 

1020: Media cloud could not reach the server 

 What needs to check:

  • Is server overloaded

Those are common BigBlueButton error codes; I’m sure if you’re a BigBlueButton user, you’ve seen them at some point. Also, thanks to the BigBlueButton Developer Community, some of the data is from the official BigBlueButton development document. We listed it here and added some of our own thoughts and experiences to it. I just wanted to make it easier for you to look up that code and hope it helps you detect and fix the problem. If you want to learn more about BigBlueButton troubleshooting, you can visit the official development document at this link.

https://docs.bigbluebutton.org/2.2/troubleshooting.html#Troubleshooting_

If you require additional assistance in resolving those error messages, please contact us via the support channel.

Mark Lin

unread,

Mar 7, 2016, 3:44:57 PM3/7/16

to BigBlueButton-Setup

Hello,

i installed the default BBB without https

no fire wall

getting in chrome & firefox the same error —

Detected the following WebRTC issue: Error 1002: Could not make a WebSocket connection.

what should i look fore?

Thank you

HostBBB.com

unread,

Mar 7, 2016, 3:54:02 PM3/7/16

to BigBlueButton-Setup

Mark,

Do  ifconfig, does your server show the external ip, or an internal ip?

You didn’t give us much details, is this .91 or 1.0beta?

Also,  a simple  telnet yourserver.com 5066 will verify whether you can connect to websockets server.

It wont work until this port can be accessed, and freeswitch answers.

regards,

Stephen

mlin40613

unread,

Mar 7, 2016, 5:19:53 PM3/7/16

to bigbluebu…@googlegroups.com

Sorry about «much details»

BBB 1.0 BETA

Dedicated server

bbb-conf —check

BigBlueButton Server 1.0.0-beta (1028)

                    Kernel version: 3.19.0-28-generic

                      Distribution: Ubuntu 14.04.4 LTS (64-bit)

                            Memory: 3952 MB

/var/www/bigbluebutton/client/conf/config.xml (bbb-client)

                Port test (tunnel): Mydomain.com

                              Red5: Mydomain.com

              useWebrtcIfAvailable: true

/opt/freeswitch/conf/sip_profiles/external.xml (FreeSWITCH)

                    websocket port: 5066

                    WebRTC enabled: true

/etc/nginx/sites-available/bigbluebutton (nginx)

                       server name: Mydomain.com

                              port: 80

                    bbb-client dir: /var/www/bigbluebutton

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

                      bbb-web host: Mydomain.com

/var/lib/tomcat7/webapps/demo/bbb_api_conf.jsp (API demos)

                               url: Mydomain.com

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

                      client check: Mydomain.com

/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: Mydomain.com

** Potential problems described below **

# IP does not match:

#                           IP from ifconfig: 104.xxx.39.xx

#   /etc/nginx/sites-available/bigbluebutton: Mydomain.com

# Warning: API URL IPs do not match host:

#

#                                IP from ifconfig: 104.xxx.39.xx

#  /var/lib/tomcat7/webapps/demo/bbb_api_conf.jsp: Mydomain.com

# Warning: The API demos are installed and accessible from:

#

#

# 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:

#

mlin40613

unread,

Mar 8, 2016, 7:13:42 PM3/8/16

to bigbluebu…@googlegroups.com

Chad Pilkey

unread,

Mar 8, 2016, 10:11:06 PM3/8/16

to BigBlueButton-Setup

mlin40613

unread,

Mar 9, 2016, 1:04:15 AM3/9/16

to bigbluebu…@googlegroups.com

but getting the same result.

i do not no if it is related but when running: sudo bbb-conf —debug

   — Exceptions found in /var/lib/tomcat7/logs/ —

/var/lib/tomcat7/logs/catalina.out:java.net.ConnectException: Connection refused

/var/lib/tomcat7/logs/catalina.out:java.lang.NullPointerException

Thank you

Chad Pilkey

unread,

Mar 9, 2016, 1:31:12 AM3/9/16

to BigBlueButton-Setup

The websocket connection doesn’t go through tomcat so those logs won’t matter.

What is the output of «cat /etc/bigbluebutton/nginx/sip.nginx»?

What is the output of «ifconfig»?


You received this message because you are subscribed to the Google Groups «BigBlueButton-Setup» group.

mlin40613

unread,

Mar 9, 2016, 1:45:55 PM3/9/16

to bigbluebu…@googlegroups.com

 cat /etc/bigbluebutton/nginx/sip.nginx

location /ws {

        proxy_pass http://104.xxx.xx.50:5066;

        proxy_http_version 1.1;

        proxy_set_header Upgrade $http_upgrade;

        proxy_set_header Connection «Upgrade»;

        proxy_read_timeout 6h;

        proxy_send_timeout 6h;

        client_body_timeout 6h;

        send_timeout 6h;

ifconfig

eth0      Link encap:Ethernet  HWaddr 00:00:68:f5:27:32

          inet addr:104.xxx.xx.50  Bcast:104.xxx.xx.255  Mask:255.255.254.0

          inet6 addr: fe80::200:68ff:fef5:2732/64 Scope:Link

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:7287 errors:0 dropped:0 overruns:0 frame:0

          TX packets:7336 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:1152750 (1.1 MB)  TX bytes:4825900 (4.8 MB)

lo        Link encap:Local Loopback

          inet addr:127.0.0.1  Mask:255.0.0.0

          inet6 addr: ::1/128 Scope:Host

          UP LOOPBACK RUNNING  MTU:65536  Metric:1

          RX packets:41721 errors:0 dropped:0 overruns:0 frame:0

          TX packets:41721 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0

          RX bytes:7026678 (7.0 MB)  TX bytes:7026678 (7.0 MB)

HostBBB.com

unread,

Mar 9, 2016, 3:29:10 PM3/9/16

to BigBlueButton-Setup

Mark,  back to my question from few days ago,

1) Is this your public ipaddress that your domain is mapped to?

regards,

Stephen


You received this message because you are subscribed to the Google Groups «BigBlueButton-Setup» group.


You received this message because you are subscribed to the Google Groups «BigBlueButton-Setup» group.

mlin40613

unread,

Mar 9, 2016, 5:36:12 PM3/9/16

to bigbluebu…@googlegroups.com

1) «Is this your public ipaddress that your domain is mapped to?»

Chad Pilkey

unread,

Mar 9, 2016, 6:42:33 PM3/9/16

to BigBlueButton-Setup

Can you connect to the WebRTC audio on http://demo.bigbluebutton.org? I think we’ve gone through all of the normal server configuration causes. I’m wondering if it’s a client side issue.


You received this message because you are subscribed to the Google Groups «BigBlueButton-Setup» group.


You received this message because you are subscribed to the Google Groups «BigBlueButton-Setup» group.


You received this message because you are subscribed to the Google Groups «BigBlueButton-Setup» group.

mlin40613

unread,

Mar 9, 2016, 7:05:23 PM3/9/16

to bigbluebu…@googlegroups.com

mlin40613

unread,

Mar 10, 2016, 7:44:40 PM3/10/16

to bigbluebu…@googlegroups.com

Tried to go thru the configuration recommended at- 

and

but it is seems that every thing in place.

i want to manchen that i testeb bbb on VPS & Deticated server and i get the same result — 

error1002.

what are my option?

Thank you

mlin40613

unread,

Mar 11, 2016, 1:04:03 PM3/11/16

to bigbluebu…@googlegroups.com

Fred Dixon

unread,

Mar 11, 2016, 2:57:04 PM3/11/16

to bigbluebu…@googlegroups.com

Hi Mark,

You’ve posted twice in the last 24 hours, which suggest you believe there is an implied service level agreement in these forums in which all messages are answered within X hours or Y days.

There is not.

These forums are for members to volunteer their time to help others.  There are over 2000 members in this forum.  Posting twice does *not* increase your chances for a response; rather, it just floods the mailbox of all members.

If you are unable to wait for another member to volunteer their time, you have other support options at

In any event, be patient.

Regards,… Fred

I have a dedicated server that i want to install big blue button (bbb) on it. The server is behind a NAT and its IP in the network is 192.168.10.203 and i have vc.tagsoo.ir subdomain that points to a static IP 46.249.123.202 which is my network. In the microtic i forwarded TCP ports 80, 443, 7443 and UDP 16384-32768 to the internal server. I installed exactly Ubuntu 16.04 and checked the firewall to see if i can access the ports or not. I used bbb-install.sh like below to install bbb:

wget -qO- https://ubuntu.bigbluebutton.org/bbb-install.sh | bash -s -- -v xenial-22 -s vc.tagsoo.ir -e info@tagsoo.ir -w -x -g

It installs successfully and in the network every thing works including webcam and microphone but from outside webcam and microphone doesn’t work. so i followed extra steps when server is behind NAT. I added stun server 173.194.219.127:19302 and now webcam is working from anywhere. I continued all steps and replaced external IP all places that mentioned in the help. Now I can join an audio session but for microphone (in the network or from outside) i got error 1002. I also added a dummy NIC but it didn’t help. freeswitch is running:

● freeswitch.service - freeswitch
   Loaded: loaded (/lib/systemd/system/freeswitch.service; enabled; vendor preset: enabled)
   Active: active (running) since Sat 2020-09-05 18:17:43 +0430; 4min 50s ago
  Process: 33240 ExecStart=/opt/freeswitch/bin/freeswitch -u freeswitch -g daemon -ncwait $DAEMON_OPTS (code=exited, status=0/SUCCESS)
 Main PID: 33262 (freeswitch)
    Tasks: 37
   Memory: 34.7M
      CPU: 3.092s
   CGroup: /system.slice/freeswitch.service
           └─33262 /opt/freeswitch/bin/freeswitch -u freeswitch -g daemon -ncwait -nonat

Sep 05 18:17:41 tagbbb systemd[1]: Starting freeswitch...
Sep 05 18:17:41 tagbbb freeswitch[33240]: 33262 Backgrounding.
Sep 05 18:17:43 tagbbb systemd[1]: Started freeswitch.

I even changed the wss-binding to point to external point but it didn’t work. Here is the bbb-conf —check result:

BigBlueButton Server 2.2.23 (2106)
                    Kernel version: 4.4.0-187-generic
                      Distribution: Ubuntu 16.04.7 LTS (64-bit)
                            Memory: 32903 MB
                         CPU cores: 20

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

/etc/nginx/sites-available/bigbluebutton (nginx)
                       server name: vc.tagsoo.ir
                              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://vc.tagsoo.ir
                              red5: vc.tagsoo.ir
              useWebrtcIfAvailable: true

/opt/freeswitch/etc/freeswitch/vars.xml (FreeSWITCH)
                       local_ip_v4: 192.168.10.203
                   external_rtp_ip: 46.249.123.202
                   external_sip_ip: 46.249.123.202

/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: 192.168.10.203:7443

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

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

/usr/local/bigbluebutton/bbb-webrtc-sfu/config/default.yml (Kurento SFU)
                        kurento.ip: 192.168.10.203
                       kurento.url: ws://127.0.0.1:8888/kurento
                    kurento.sip_ip: 192.168.10.203
                    localIpAddress: 192.168.10.203
               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: 1006
                        kurentoUrl: wss://vc.tagsoo.ir/bbb-webrtc-sfu
                  enableListenOnly: true


# Potential problems described below
# IP does not match:
#                           IP from ifconfig: 192.168.10.203
#   /etc/nginx/sites-available/bigbluebutton: vc.tagsoo.ir

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

I don’t know what to do else. It’s more than one week i’m trying.

Понравилась статья? Поделить с друзьями:

Интересное по теме:

  • Bflauncher exe системная ошибка msvcr120 dll
  • Bias систематическая ошибка
  • Bittorrent ошибка пользовательского интерфейса
  • Bifit signer ошибка записи клиентских свойств
  • Bittorrent ошибка ввода вывода

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии