WebRTC 1002 error since 2.6.0 b2

162 views
Skip to first unread message

Hiroshi Suga

unread,
Dec 14, 2022, 10:16:53 PM12/14/22
to BigBlueButton-dev
Hello,

Since upgrading to 2.6.0 b2 , I cannot use audio input (i.e. mic) because of the WebRTC error 1002. 
Neither bbb-conf --setip nor bbb-conf --restart did not help. I am using no proxy. No problem in just listening.
Until 2.6.0 b1 I did not have any problem as far as I remember.
Am I the only one who has this problem?

Here is the output from bbb-conf --check
------
BigBlueButton Server 2.6.0-beta.2 (577)
                    Kernel version: 5.15.0-56-generic
                      Distribution: Ubuntu 20.04.5 LTS (64-bit)
                            Memory: 8032 MB
                         CPU cores: 4

/etc/bigbluebutton/bbb-web.properties (override for bbb-web)
/usr/share/bbb-web/WEB-INF/classes/bigbluebutton.properties (bbb-web)
       bigbluebutton.web.serverURL: https://bbb0.mydomain.ac.jp
                defaultGuestPolicy: ALWAYS_ACCEPT
              defaultMeetingLayout: CUSTOM_LAYOUT

/etc/nginx/sites-available/bigbluebutton (nginx)
                       server_name: bbb0.mydomain.ac.jp
                              port: 80, [::]:80
                              port: 443 ssl

/opt/freeswitch/etc/freeswitch/vars.xml (FreeSWITCH)
                       local_ip_v4: 121.x.x.x
                   external_rtp_ip: 121.x.x.x
                   external_sip_ip: 121.x.x.x

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

UDP port ranges

                        FreeSWITCH: 16384-24576
                           kurento: 24577-32768
                    bbb-webrtc-sfu: 24577-32768

/usr/local/bigbluebutton/core/scripts/bigbluebutton.yml (record and playback)
                     playback_host: bbb0.mydomain.ac.jp
                 playback_protocol: https
                            ffmpeg: 4.2.7-0ubuntu0.1

/usr/share/bigbluebutton/nginx/sip.nginx (sip.nginx)
                        proxy_pass: 121.x.x.x
                          protocol: http

/usr/local/bigbluebutton/bbb-webrtc-sfu/config/default.yml (bbb-webrtc-sfu)
/etc/bigbluebutton/bbb-webrtc-sfu/production.yml (bbb-webrtc-sfu - override)
    mediasoup.webrtc.*.announcedIp: 121.x.x.x
  mediasoup.plainRtp.*.announcedIp: 121.x.x.x
                        kurento.ip: 121.x.x.x
                       kurento.url: ws://127.0.0.1:8888/kurento
                 freeswitch.sip_ip: 121.x.x.x
               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)
/etc/bigbluebutton/bbb-html5.yml (HTML5 client config override)
                             build: 242
                        kurentoUrl: wss://bbb0.mydomain.ac.jp/bbb-webrtc-sfu
            defaultFullAudioBridge: sipjs
           defaultListenOnlyBridge: fullaudio
                    sipjsHackViaWs: true

/usr/share/bbb-web/WEB-INF/classes/spring/turn-stun-servers.xml (STUN Server)
                              stun: turn.mydomain.ac.jp


# Potential problems described below

Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted

Fred Dixon

unread,
Dec 20, 2022, 7:02:31 AM12/20/22
to bigblueb...@googlegroups.com
Hi Hiroshi,

This is strange.  Looking at the code for clean


I don't think it's doing anything special. 

> Since upgrading to 2.6.0 b2 , I cannot use audio input (i.e. mic) because of the WebRTC error 1002.
Neither bbb-conf --setip nor bbb-conf --restart did not help. I am using no proxy. No problem in just listening.

I think a WebRTC setting for audio didn't properly upgrade.  Did you use bbb-install.sh to do the upgrade?

Regards,... Fred

On Tue, Dec 20, 2022 at 6:20 AM Hiroshi Suga <suga...@gmail.com> wrote:
according to the previous post somewhere, I did
bbb-conf --clean
before bbb-conf --setip and the error has gone.
Not sure if removing logs is so important... It's possible (but unlikely..) that I accidentally did something else.

--
You received this message because you are subscribed to the Google Groups "BigBlueButton-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bigbluebutton-dev/46c6c419-fd9b-44f2-970e-281cabe95189n%40googlegroups.com.


--
BigBlueButton Developer

Like BigBlueButton?  Tweet us at @bigbluebutton

Hiroshi Suga

unread,
Dec 20, 2022, 7:06:37 AM12/20/22
to BigBlueButton-dev
Yes, I used bbb-install.sh for the upgrade. I also looked at the code and found that the --clean option only remove the log files before restarting. The server is working without problems for two days now. I will report if I notice something.

H


Hiroshi Suga

unread,
Dec 22, 2022, 12:52:55 AM12/22/22
to BigBlueButton-dev
The error came back again after 3 days. This time bbb-conf --clean did not work. The fact that the audio connection (listen only) got very unstable and disconnected just before this error revived may hint the reason of this problem. I will try look into it. Removing the browser cache didn't help either...

Hiroshi Suga

unread,
Dec 22, 2022, 9:04:07 AM12/22/22
to BigBlueButton-dev
I have found an error during executing bbb-install.sh

....

Reading package lists... Done

Building dependency tree       

Reading state information... Done

Package 'docker-compose' is not installed, so not removed

You might want to run 'apt --fix-broken install' to correct these.

The following packages have unmet dependencies:

 openwebrtc-gst-plugins : Depends: libusrsctp but it is not installable

E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

....


When I did "sudo apt --fix-broken install", then the message was:

Reading package lists... Done

Building dependency tree       

Reading state information... Done

Correcting dependencies... Done

The following additional packages will be installed:

  libusrsctp libusrsctp1

The following NEW packages will be installed:

  libusrsctp libusrsctp1

0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.

5 not fully installed or removed.

Need to get 217 kB/425 kB of archives.

After this operation, 1,665 kB of additional disk space will be used.

Do you want to continue? [Y/n] y

Get:1 http://ftp.jaist.ac.jp/pub/Linux/ubuntu focal/universe amd64 libusrsctp1 amd64 0.9.3.0+20190901-1 [217 kB]

Fetched 217 kB in 0s (946 kB/s)      

Selecting previously unselected package libusrsctp1:amd64.

(Reading database ... 308857 files and directories currently installed.)

Preparing to unpack .../libusrsctp1_0.9.3.0+20190901-1_amd64.deb ...

Unpacking libusrsctp1:amd64 (0.9.3.0+20190901-1) ...

Preparing to unpack .../libusrsctp_0.9.2-1kurento1.20.04_amd64.deb ...

Unpacking libusrsctp (0.9.2-1kurento1.20.04) ...

dpkg: error processing archive /var/cache/apt/archives/libusrsctp_0.9.2-1kurento1.20.04_amd64.deb (--unpack):

 trying to overwrite '/usr/lib/x86_64-linux-gnu/libusrsctp.so.1.0.0', which is also in package libusrsctp1:amd64 0.9.3.0+20190901-1

dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)

Errors were encountered while processing:

 /var/cache/apt/archives/libusrsctp_0.9.2-1kurento1.20.04_amd64.deb

E: Sub-process /usr/bin/dpkg returned an error code (1)


And the result of "sudo apt search libusrsctp" was:

Sorting... Done

Full Text Search... Done

libusrsctp/unknown 0.9.2-1kurento1.20.04 amd64

  sctp-refimpl library

libusrsctp-dev/focal 0.9.3.0+20190901-1 amd64

  portable SCTP userland stack - development headers

libusrsctp-examples/focal 0.9.3.0+20190901-1 amd64

  portable SCTP userland stack - example programs

libusrsctp1/focal,now 0.9.3.0+20190901-1 amd64 [installed,automatic]

  portable SCTP userland stack - shared library



So my impression is there is a conflict between libusrsctp and libusrsctp1. Any idea to solve the problem?

Hiroshi Suga

unread,
Dec 23, 2022, 4:01:32 AM12/23/22
to BigBlueButton-dev

The conflict was solved by forcibly removing libusrsctp1 (from Ubuntu) and gstreamer1.0-plugins-bad and install libusrscip (from Kurento). Upgrading to 2.6b4 done. But WebRTC 1002 error still persists. The connection just stopped by timeout...

Hiroshi Suga

unread,
Dec 23, 2022, 6:36:51 AM12/23/22
to BigBlueButton-dev
I finally decided to roll back to 2.6.0 beta1, which has been a bit tricky. 
Now there is no problems in WebRTC connection and BBB functionality. Obviously in my case there was a critical change between beta1 and beta2 on bbb-webrtc (or freeswitch, I suppose).
My server has been gradually upgraded since 2.2, and therefore some old conflicting setting remains. Nobody knows...

Hiroshi Suga

unread,
Dec 23, 2022, 7:01:49 AM12/23/22
to BigBlueButton-dev
Sorry too many posts. I am now suspecting the parameter change fullAudioEnabled: true performed for mediasoup at the transition to 2.6.0 beta2. I will get back after some tests.

Hiroshi Suga

unread,
Dec 25, 2022, 7:18:40 AM12/25/22
to BigBlueButton-dev
Hi there, the problem fixed. It's all about this issue (https://github.com/bigbluebutton/bigbluebutton/issues/16304), which will be fixed by this PR (https://github.com/bigbluebutton/bigbluebutton/pull/16347). 
Thanks Fred for helping me out (best Christmas gift for me;-)!

Reply all
Reply to author
Forward
0 new messages