WebRTC 1010 error and Documentation discrepancy

319 views
Skip to first unread message

Matt S

unread,
Feb 9, 2018, 3:11:21 PM2/9/18
to BigBlueButton-Setup
I know BigBlueButton docs are painstakingly updated with love... but I have an issue that I want to bring up with WebRTC and the documentation:

From configure FreeSWITCH for SSL:

 <param name="wss-binding" value=":7443"/>

From the DUMMY NIC
<param name="wss-binding"  value="EXTERNAL_IP_ADDRESS:7443"/>
Same external.xml, two different recommendations.  Here's where it gets weird...

With the EXTERNAL_IP_ADDRESS set, running a bbb-conf --check returns this (attached screenshot


removing it and leaving just :7443 shows the right port, but I'm unable to connect to WebRTC either locally or remotely.  Putting it back yields a WebRTC 1010 error, which is closer to the goal of operational WebRTC protocol.


There is no inbound filtering on the required ports, and no outbound filtering at all...


I hate to open another topic for WebRTC... but I'm at a loss...



Chad Pilkey

unread,
Feb 9, 2018, 5:46:31 PM2/9/18
to BigBlueButton-Setup
I wouldn't worry about the output from bbb-conf looking funny. I think the script just doesn't account for the alternate value for "wss-binding". https://github.com/bigbluebutton/bigbluebutton/blob/v2.0.x-release/bigbluebutton-config/bin/bbb-conf#L1523-L1534.

I'm not sure which value your "wss-binding" is set to right now, but I think the WebRTC is working fine. I can connect without issue to your server from two locations.

The problem might be some sort of local networking issue.

matt schenkman

unread,
Feb 9, 2018, 5:49:13 PM2/9/18
to bigbluebu...@googlegroups.com
Chad,

How do you mean? Would you be so kind as to send me a screenshot with WebRTC connected?

--
You received this message because you are subscribed to a topic in the Google Groups "BigBlueButton-Setup" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/bigbluebutton-setup/_LvEVHFg4Fk/unsubscribe.
To unsubscribe from this group and all its topics, 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.

Matt S

unread,
Feb 9, 2018, 5:53:38 PM2/9/18
to BigBlueButton-Setup
I always get a 1010 error outside the office now... running thru that in comparison to a working box.  This is definitely a configuration discrepancy somewhere, just trying to narrow down what...
2018-02-09 17_50_27-BigBlueButton - random-1565736.png

Matt S

unread,
Feb 9, 2018, 6:01:25 PM2/9/18
to BigBlueButton-Setup
I just did a bbb-conf --debug | grep my public IP and I got this:

2018/02/09 17:48:38 [error] 10695#10695: *112872 connect() failed (111: Connection refused) while connecting to upstream, client: 24.151.52.171, server: bigblue.thetnsgroup.com, request: "GET /b HTTP/1.1", upstream: "http://127.0.0.1:5000/b", host: "bigblue.thetnsgroup.com"
2018/02/09 17:48:38 [error] 10695#10695: *112872 open() "/var/www/nginx-default/50x.html" failed (2: No such file or directory), client: 24.151.52.171, server: bigblue.thetnsgroup.com, request: "GET /b HTTP/1.1", upstream: "http://127.0.0.1:5000/b", host: "bigblue.thetnsgroup.com"
2018/02/09 17:48:42 [error] 10695#10695: *112872 connect() failed (111: Connection refused) while connecting to upstream, client: 24.151.52.171, server: bigblue.thetnsgroup.com, request: "GET /b HTTP/1.1", upstream: "http://127.0.0.1:5000/b", host: "bigblue.thetnsgroup.com"
2018/02/09 17:48:42 [error] 10695#10695: *112872 open() "/var/www/nginx-default/50x.html" failed (2: No such file or directory), client: 24.151.52.171, server: bigblue.thetnsgroup.com, request: "GET /b HTTP/1.1", upstream: "http://127.0.0.1:5000/b", host: "bigblue.thetnsgroup.com"
2018/02/09 17:49:59 [error] 10695#10695: *112880 open() "/var/www/bigbluebutton-default/html5client/check" failed (2: No such file or directory), client: 24.151.52.171, server: bigblue.thetnsgroup.com, request: "GET /html5client/check HTTP/1.1", host: "bigblue.thetnsgroup.com", referrer: "https://bigblue.thetnsgroup.com/client/BigBlueButton.html?sessionToken=tzfjam9nx7i5xehy"


The firewall isn't an issue so it's somewhere in the server I think.

On Friday, February 9, 2018 at 5:46:31 PM UTC-5, Chad Pilkey wrote:

Chad Pilkey

unread,
Feb 9, 2018, 6:16:44 PM2/9/18
to BigBlueButton-Setup
Those nginx errors are just people trying to connect to endpoints on your server that don't exist. One thing that's strange about that though is that the original post has the server as "bbbtest.thetnsgroup.com" and the server you just linked is set to "bigblue.thetnsgroup.com". Do you have two servers that you're working with? I can connect to "bbbtest" fine, but "bigblue" fails to connect.

matt schenkman

unread,
Feb 9, 2018, 6:19:13 PM2/9/18
to bigbluebu...@googlegroups.com
yes, I'm trying to connect to bigblue... bbbtest is another deployment we're testing.  How are you connecting to the servers to test?  are there default usernames and passwords and whatnot?

~ Matt
347.416.NERD
get Gmail @ http://mail.google.com

matt schenkman

unread,
Feb 9, 2018, 6:20:13 PM2/9/18
to bigbluebu...@googlegroups.com
and FWIW, that IP I grep'd for because it's my IP at my house... It's definitely a related error timing wise

~ Matt
347.416.NERD
get Gmail @ http://mail.google.com

To unsubscribe from this group and all its topics, send an email to bigbluebutton-setup+unsubscribe...@googlegroups.com.

Fred Dixon

unread,
Feb 19, 2018, 1:28:08 PM2/19/18
to bigbluebu...@googlegroups.com
Hi Matt,

Thanks for the comments on the documentation.  The reason there is a difference between

 <param name="wss-binding" value=":7443"/>

and

<param name="wss-binding"  value="EXTERNAL_IP_ADDRESS:7443"/>

depends on whether the server has a single public IP address (so the former works0, or if the server has a private/public IP address, you must specify the external IP address in /opt/freeswitch/conf/sip_profiles/external.xml.

Why?  This is the external IP address that will be presented by FreeSWITCH user's browser when negotiating a IP address/Port to connect.  If it were the internal IP address (which would be likely behind a firewall), the BigBlueButton client would never reach that internal IP address.

On an Amazon EC2 setup, you can see the addresses that FreeSWITCH binds too with the command  'netstat -antp | grep free'

# netstat -antp | grep free
tcp        0      0 172.30.1.87:8081        0.0.0.0:*               LISTEN      30257/freeswitch
tcp        0      0 172.30.1.87:8082        0.0.0.0:*               LISTEN      30257/freeswitch
tcp        0      0 54.197.33.170:7443      0.0.0.0:*               LISTEN      30257/freeswitch
tcp        0      0 172.30.1.87:5090        0.0.0.0:*               LISTEN      30257/freeswitch
tcp        0      0 172.30.1.87:5060        0.0.0.0:*               LISTEN      30257/freeswitch
tcp6       0      0 ::1:8081                :::*                    LISTEN      30257/freeswitch
tcp6       0      0 ::1:8082                :::*                    LISTEN      30257/freeswitch
tcp6       0      0 :::8021                 :::*                    LISTEN      30257/freeswitch
tcp6       0      0 ::1:5090                :::*                    LISTEN      30257/freeswitch
tcp6       0      0 ::1:5060                :::*                    LISTEN      30257/freeswitch
tcp6       0      0 127.0.0.1:8021          127.0.0.1:39184         ESTABLISHED 30257/freeswitch


Notice FreeSWITCH is binding to  54.197.33.170:7443.  Here's the corresponding entry in /opt/freeswitch/conf/sip_profiles/external.xml

     <param name="wss-binding"  value="54.197.33.170:7443"/>

and in /etc/bigbluebutton/nginx/sip.nginx

location /ws {
        proxy_pass https://54.197.33.170: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;
}

From the above, when the client makes a web socket connection to BigBlueButton at '/ws', it will get redirected to port 7443 on the server, which is where FreeSWITCH is listening. 


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.



--
BigBlueButton Developer
@bigbluebutton

matt schenkman

unread,
Feb 19, 2018, 2:59:13 PM2/19/18
to bigbluebu...@googlegroups.com
Got it, thanks Fred!

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

--
You received this message because you are subscribed to a topic in the Google Groups "BigBlueButton-Setup" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/bigbluebutton-setup/_LvEVHFg4Fk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to bigbluebutton-setup+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages