DOMException: Failed to construct 'WebSocket': The URL 'HOST?

1,236 views
Skip to first unread message

Madhav Anadkat

unread,
Jul 23, 2019, 6:11:31 AM7/23/19
to BigBlueButton-dev

Hello Fred Dixon,


any one from team or forum can help me with this ?


hope you are doing good,


Have setup entire demo api and working everything as required in demo api with bigbluebutton setup, but when i forked on dev environment and do all the steps with that I am having .. screen share and webcam both have issue. 


can you help me on that if I miss anything ?


modules.js?hash=e71ee8479a49cac2029294b43af337b7ee7adfa5:82602 Uncaught (in promise) DOMException: Failed to construct 'WebSocket': The URL 'HOST?sessionToken=gls8bo79hf1qn34y' is invalid.

    at https://domain/html5client/packages/modules.js?hash=e71ee8479a49cac2029294b43af337b7ee7adfa5:82602:19

    at https://domain/html5client/packages/meteor.js?hash=857dafb4b9dff17e29ed8498a22ea5b1a3d6b41d:1234:22


when i check status with bigbluebutton everything is working fine.. 


also some time I am having .. 


ERROR: clientLogger: Camera share has not succeeded in 15000 https://domain/html5client/app/app.js?hash=d9e3436acc23c7e51701d8b7471b829f1d0fb19b:16397:14


_______


also when I try to share the screen 


Uncaught (in promise) DOMException: Failed to construct 'WebSocket': The URL 'HOST?sessionToken=gls8bo79hf1qn34y' is invalid.

    at Kurento.init (https://domain/html5client/compatibility/kurento-extension.js?v=VERSION:232:15)

    at Kurento.create (https://domain/html5client/compatibility/kurento-extension.js?v=VERSION:208:8)

    at Kurento.setScreensharing (https://domain/html5client/compatibility/kurento-extension.js?v=VERSION:203:8)

    at KurentoManager.shareScreen (https://domain/html5client/compatibility/kurento-extension.js?v=VERSION:177:27)

    at window.kurentoShareScreen (https://domain/html5client/compatibility/kurento-extension.js?v=VERSION:747:37)

    at KurentoScreenshareBridge.kurentoShareScreen (https://doman/html5client/app/app.js?hash=d9e3436acc23c7e51701d8b7471b829f1d0fb19b:53815:14)



bbb-conf --check


BigBlueButton Server 2.2.0-beta-17 (1256)

                    Kernel version: 4.4.0-154-generic

                      Distribution: Ubuntu 16.04.6 LTS (64-bit)

                            Memory: 8080 MB

                         CPU cores: 4


/usr/share/bbb-web/WEB-INF/classes/bigbluebutton.properties (bbb-web)

       bigbluebutton.web.serverURL: https://domain

                defaultGuestPolicy: ALWAYS_ACCEPT

                 svgImagesRequired: true


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

                       server name: domain

                              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://domain

                              red5: domain

              useWebrtcIfAvailable: true


/opt/freeswitch/etc/freeswitch/vars.xml (FreeSWITCH)

                       local_ip_v4: my ip

                   external_rtp_ip: stun:stun.freeswitch.org

                   external_sip_ip: stun:stun.freeswitch.org


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

                        ext-rtp-ip: $${local_ip_v4}

                        ext-sip-ip: $${local_ip_v4}

                        ws-binding: :5066

                       wss-binding: :7443


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

                     playback_host: domain

                 playback_protocol: https

                            ffmpeg: 4.1.3-0york1~16.04


/etc/bigbluebutton/nginx/sip.nginx (sip.nginx)

                        proxy_pass: my ip


/usr/local/bigbluebutton/bbb-webrtc-sfu/config/default.yml (Kurento SFU)

                        kurento.ip: my ip

                       kurento.url: wss://domain:8888/kurento

                    localIpAddress: my ip

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

                        kurentoUrl: wss://domain/bbb-webrtc-sfu

                  enableListenOnly: true



** Potential problems described below **

# Warning: API URL IPs do not match host:

#

#                                IP from ifconfig: my ip

#  /var/lib/tomcat7/demo/bbb_api_conf.jsp: domain


.

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

#

#    https://domain

#

# and

#

#    https://domain/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:

#

#    apt-get purge bbb-demo


# Error: Detected some processes have not started correctly

#

#   bbb-html5 ————————————— [ - inactive] < -- this is because I am working on dev environment.  (npm start -- > audio call works fine but video and screenshare both have issues like above mentioned.)

#




bbb-conf --status



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

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

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

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

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

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

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

tomcat7 ———————————————► [✔ - active]

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

bbb-html5 —————————————► [✘ - inactive]

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

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

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

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



any help appreciated .. 


thanks 

fred

Madhav Anadkat

unread,
Jul 23, 2019, 7:15:19 AM7/23/19
to BigBlueButton-dev
any one having any solution for this ? 

Fred Dixon

unread,
Jul 23, 2019, 8:12:07 AM7/23/19
to BigBlueButton-dev
Hi Madhav,

You have posted asking a respond for your question less than one hour after the original post.  This second post suggests you believe there is an implied service level agreement in these forums in that all questions are answered within X hours or Y days.

There is not.

The members in these forums volunteer their time to help others.  There are over 2,500 members on this list, and posting twice just floods everyone's inbox with no purpose.

You need to be patient and wait for a member of this community to volunteer their time to help.   If you are unable, and you require immediate assistance, then we recommend you reach out to any of the companies that provide commercial support, see

  http://bigbluebutton.org/support

Regards,... Fred

--
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/b5887ab1-640d-4400-9a18-1309c68a31da%40googlegroups.com.


--
BigBlueButton Developer
@bigbluebutton

Madhav Anadkat

unread,
Jul 23, 2019, 9:08:42 AM7/23/19
to BigBlueButton-dev
Sorry Fred, 

Very new to this ..  I will take care next time, 

Actually I am doing this from long time and at the end of this to be functional and working .. .but at the end was just stuck on video and screen share .. so posted a message. again asking any one having same things so can help me.

but no issues I am waiting .. thanks for your reply. 

really appreciate your reply.
To unsubscribe from this group and stop receiving emails from it, send an email to bigblueb...@googlegroups.com.

Chad Pilkey

unread,
Jul 23, 2019, 2:36:48 PM7/23/19
to BigBlueButton-dev
In settings.yml there's a property called "wsUrl" that needs to be set before video will work. After changing it you'll need to stop meteor and restart.

The dev location is bigbluebutton/bigbluebutton-html/private/config/settings.yml
The production location is /usr/share/meteor/bundle/programs/server/assets/app/config/settings.yml

Madhav Anadkat

unread,
Jul 24, 2019, 5:43:37 AM7/24/19
to BigBlueButton-dev
Hello Chad, 

Thanks for the reply, as I have checked based on your comment 

there is no file like this available ... 
The dev location is bigbluebutton/bigbluebutton-html/private/config/settings.yml

in this file I have checked as I am using HTTPS with hostname, I have already setup WSS 
The production location is /usr/share/meteor/bundle/programs/server/assets/app/config/settings.yml

wsUrl: wss://domain/bbb-webrtc-sfu

I have already setup Kurento with HTTPS API url over there.

So, I guess something else is missing ..

If you have any other suggestions let me know or any other thing I am missing let me know too. 

Thanks 
Madhav

Chad Pilkey

unread,
Jul 24, 2019, 1:10:08 PM7/24/19
to BigBlueButton-dev
I should have been more clear about the development location. That path is wherever you've cloned the BigBlueButton repository. If our instructions were followed then it should be cloned in ~/dev/bigbluebutton, but it could be cloned in another location.

A useful tool is the "locate" command. If you don't have it installed, install it and run "updatedb" to fetch the file locations. The locate command is very helpful for finding files.

Madhav Anadkat

unread,
Jul 25, 2019, 12:37:51 AM7/25/19
to BigBlueButton-dev
Hello Chad, 

Thanks for the information, 

As I have installed dev setup with, all the information mentioned on below link, there is nothing mentioned like this file edit mentioned on that. 


Also this both path you have given me earlier in this document I am following there is no edits suggest also dev location is save as document mentioned. 

The dev location is bigbluebutton/bigbluebutton-html/private/config/settings.yml
The production location is /usr/share/meteor/bundle/programs/server/assets/app/config/settings.yml

Let me know I am missing something ... thanks for the update.

regards,
Madhav

Chad Pilkey

unread,
Jul 25, 2019, 1:35:26 PM7/25/19
to BigBlueButton-dev
Those instructions are pretty bad and mostly irrelevant. I've been meaning to go through them and update them, but haven't had the time. The 2.0 dev instructions are better structured, but are missing the HTML5 specific commands.

If all you want to develop is the HTML5 client then you just need:

mkdir ~/dev
cd ~/dev
git clone https://github.com/<YOUR_GITHUB_USERNAME>/bigbluebutton.git cd bigbluebutton

This is when you might want to add a remote upstream so you can pull in changes that we make.

git remote add upstream https://github.com/bigbluebutton/bigbluebutton.git
git fetch upstream

Now you need to start a branch to work in.
git checkout -b my-changes-branch upstream/master

If you've done all that then you're finally set to make a change. The first change should be to edit ~/dev/bigbluebutton/bigbluebutton-html5/private/config/settings.yml and update the "wsUrl" to match what's in the packaged version.

Now you need to run the client.
sudo systemctl stop bbb-html5
cd ~/dev/bigbluebutton/bigbluebutton-html5
meteor npm install
npm start

After all of that is done, you should have a running dev environment.

Madhav Anadkat

unread,
Jul 26, 2019, 6:23:49 AM7/26/19
to BigBlueButton-dev
Hey Chad,

Thanks for the reply ,

mean while I am checking as per your steps, and I am confused over "update the "wsUrl" to match what's in the packaged version." can you tell me where to find that.

Regards,
Madhav

Chad Pilkey

unread,
Jul 26, 2019, 1:06:49 PM7/26/19
to BigBlueButton-dev
> The dev location is ~/dev/bigbluebutton/bigbluebutton-html/private/config/settings.yml
> The packaged location is /usr/share/meteor/bundle/programs/server/assets/app/config/settings.yml

The packaged settings.yml is updated by scripts and the dev settings.yml is not so you need to change values manually. The property that needs to change in this case is "wsUrl".

Can you also please post the output of "bbb-conf --check" and "bbb-conf --status".

Another thing that should be done is to double check that the packaged client is able to share webcams. To test it, stop your running dev client, and then restart the bbb-html5 service. "systemctl start bbb-html5"

Madhav Anadkat

unread,
Jul 26, 2019, 3:05:50 PM7/26/19
to BigBlueButton-dev
Hey Chad, 

Thanks for the reply, 

Yeah as you can see on this thread only the 1st post of mine demo api works fine and also check and status both output i have posted over there too, also only dev environment having this issue. 

Demo api was working fine. 

and I have tried the same way you were saying .. settings.yml on dev environment, I have changed the URL earlier and now also, its same error 

I have update the wsurl there earlier there is mentioned HOST, also i have changed the wsurl as kurento wsurl but now i am facing SFU  returned error for camera code :2001, reason: MEDIA_SERVER_OFFLINE

Let me know if I am missing anything .. 

Regards,
Madhav

Chad Pilkey

unread,
Jul 26, 2019, 4:46:08 PM7/26/19
to BigBlueButton-dev
There are only a few possibilities,

1. The code you're building is out of date
2. The wsUrl is wrong
3. There's an issue on the server-side between the SFU and Kurento.
4. The client has been changed and something was broken

The first can happen if you forked a while ago and are building from origin/master. The second if settings.yml is wrong or there's a typo. The third would show issues when trying to share you client when connected to the packaged client. The fourth would be checked by rolling back any changes and building upstream/master to see if it works.

I keep cycling through the same questions because one of them is true.

Fred Dixon

unread,
Jul 29, 2019, 1:36:49 PM7/29/19
to BigBlueButton-dev
Hi Madhav,

Thanks for giving us a brief look at your server.  The problem was that for some reason, a web socket handshake that happens when the BigBlueButton components start up was taking longer than expected on your server.  We tested increasing the timeout and that looks like it resolved the issue.

This fix will be in the next update to BigBlueButton 2.2-beta


Regards,.. Fred

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/f805cf6e-cd59-42bc-aff4-57465890b8e0%40googlegroups.com.

Madhav Anadkat

unread,
Jul 29, 2019, 2:10:52 PM7/29/19
to BigBlueButton-dev
Thanks Fred, It has been great help from you and chad. 

finally resolved the issue and fixed the prob.

happy to work with you.
Reply all
Reply to author
Forward
0 new messages