Skip to content
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

WebSocket Connection Error - 1002 #11534

Closed
lterlecki opened this issue Mar 2, 2021 · 7 comments
Closed

WebSocket Connection Error - 1002 #11534

lterlecki opened this issue Mar 2, 2021 · 7 comments

Comments

@lterlecki
Copy link

Describe the bug
After upgrade bbb by apt: bbb-html5:amd64 (1:2.2.0-1114 --> 1:2.2.0-1140), bbb-etherpad:amd64 (1:2.2.0-66 --> 1:2.2.0-69), bbb-web:amd64 (1:2.2.0-150 --> 1:2.2.0-151), bbb-fsesl-akka:amd64 (2.2.0-73 --> 2.2.0-74), bbb-apps-akka:amd64 (2.2.0-97 --> 2.2.0-100), bbb-config:amd64 (1:2.2.0-234 --> 1:2.2.0-236), bbb-webrtc-sfu:amd64 (1:2.2.0-110 --> 1:2.2.0-114) I have problem on any device to connect microphone, I have an 1002 error. I have any problem when I've connect to https://test.bigbluebutton.org or https://test.webrtc.org, everything work's fine.

To Reproduce
No idea.

Expected behavior
Everything works fine?

Actual behavior
Now I can create room, start meeting, show presentation, share screen, but without sound stream.

Screenshots
obraz

Desktop (please complete the following information):

  • OS: Linux Mint 20.1
  • Browser: Firefox 86, Opera 69, Chromium 88

Server (please complete the following information):

  • OS: Ubuntu 16.04
  • bbb version: 2.2.33
  • CPU: 8
  • RAM: 16GB

Additional context
bbb-conf --check:
`BigBlueButton Server 2.2.33 (2347)
Kernel version: 4.4.0-203-generic
Distribution: Ubuntu 16.04.7 LTS (64-bit)
Memory: 16431 MB
CPU cores: 8

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

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

/opt/freeswitch/etc/freeswitch/vars.xml (FreeSWITCH)
local_ip_v4: 146.XX.Y.ZZZ
external_rtp_ip: 146.XX.Y.ZZZ
external_sip_ip: 146.XX.Y.ZZZ

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

/usr/local/bigbluebutton/core/scripts/bigbluebutton.yml (record and playback)
playback_host: bbb.mydomain.pl
playback_protocol: https
ffmpeg: 4.2.4-1ubuntu0.1bbb1~16.04.1

/etc/bigbluebutton/nginx/sip.nginx (sip.nginx)
proxy_pass: 146.XX.Y.ZZZ
protocol: http

/usr/local/bigbluebutton/bbb-webrtc-sfu/config/default.yml (Kurento SFU)
kurento.ip: 146.XX.Y.ZZZ
kurento.url: ws://127.0.0.1:8888/kurento
kurento.sip_ip: 146.XX.Y.ZZZ
localIpAddress: 146.XX.Y.ZZZ
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: 1140
kurentoUrl: wss://bbb.mydomain.pl/bbb-webrtc-sfu
enableListenOnly: true
sipjsHackViaWs: true

/usr/share/bbb-web/WEB-INF/classes/spring/turn-stun-servers.xml (STUN Server)
146.XX.Y.ZZZ

Potential problems described below

root@bbb:~#`

I have no idea what's going on, in freeswitch logs I have any error, just notice and debug lines.

@ffdixon
Copy link
Member

ffdixon commented Mar 2, 2021

After upgrade bbb by apt

You need to also run bbb-conf --setip as per the docs. https://docs.bigbluebutton.org/2.2/install.html#upgrading-from-bigbluebutton-22

@lterlecki
Copy link
Author

After upgrade bbb by apt

You need to also run bbb-conf --setip as per the docs. https://docs.bigbluebutton.org/2.2/install.html#upgrading-from-bigbluebutton-22

I did it, before setip I had error 1006.

@lrit18
Copy link

lrit18 commented Mar 4, 2021

i have the same mistake too.

after I tried to repair it, I get the message

Warning: You have this server defined for https, but in
etc/bigbluebutton/nginx/sip.nginx
did not find the use of port 7443 in definition for proxy_pass
proxy_pass https://xxx:5066;

when i enter sudo bbb-conf --check

when i change the port from 5066 to 7443 i have the same issue like in
#11552 on my other server

@lrit18
Copy link

lrit18 commented Mar 4, 2021

@lterlecki maybe this works for you:
#8514
after i do that in #8514 and then running bbb-conf --setip mybbb.domain.org it solves my issue.

@lterlecki
Copy link
Author

@lterlecki maybe this works for you:
#8514
after i do that in #8514 and then running bbb-conf --setip mybbb.domain.org it solves my issue.

I did it on every upgrade, in this case didn't work.

@mk-hs
Copy link

mk-hs commented Mar 5, 2021

Note: As of BigBlueButton 2.2.29 (and later), you can have nginx proxy incoming WSS connections to WS on port 5066 to work around a bug in FreeSWITCH. If you are using 2.2.29 or later, you can run the following BASH script to implement the workaround.

If you use bbb-install.sh to install/upgrade BigBlueButton, it will automatically apply [the above] changes. If you manually upgrade your BigBlueButton server, you can add the above lines to apply-conf.sh to have the above settings applied by bbb-conf when doing the manually upgrade steps.

https://docs.bigbluebutton.org/2.2/install.html#configure-freeswitch-for-using-ssl

@basisbit
Copy link
Collaborator

basisbit commented Mar 5, 2021

For support requests, please use the forum / mailing list. This issue tracker here is only for BBB development related issues. Sorry.

@basisbit basisbit closed this as completed Mar 5, 2021
@bigbluebutton bigbluebutton deleted a comment from Rhywden Mar 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants