FreeSWITCH fails to bind to port 8021

747 views
Skip to first unread message

Chee-Kian Tan

unread,
Nov 28, 2017, 12:23:39 AM11/28/17
to BigBlueButton-Setup

Hi Fred and all,


I receive this error "Thread ended for mod_event_socket" everytime when I run bbb-conf --restart / --check. My server is hosted on Ali cloud and it doesn't support IPv6. I followed the recommended method and everything seems to be working when I test it. 




















Is the error indicating the error still exists ? I tried bbb-conf --clean to clean the logs but it doesn't seem to help.

Also, I am having Error 1002 even thought I followed this solution to configure my server behind the firewall.

systemctl status freeswitch output:


























Are these two issues related ? Any suggestions to fix them ?

Thanks,
CK
Message has been deleted

Chee-Kian Tan

unread,
Nov 28, 2017, 12:36:05 AM11/28/17
to BigBlueButton-Setup
Here is the result of client self-check:


Fred Dixon

unread,
Nov 28, 2017, 11:31:57 AM11/28/17
to bigbluebu...@googlegroups.com
Hi Chee-Kian,

Can you try testing your access from another computer


Also, check the section on setting up access to FreeSWITCH behind a firewall


especially the text related to 1002 error.


Regards,... Fred

On Tue, Nov 28, 2017 at 12:36 AM, Chee-Kian Tan <chee-k...@iaapathway.com> wrote:
Here is the result of client self-check:


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

Chee-Kian Tan

unread,
Nov 28, 2017, 7:58:42 PM11/28/17
to BigBlueButton-Setup
Hi Fred,

I did test the port from another computer with netcat. The ports are opened.

I also followed the instructions to fix the Error 1002, but, still no luck for now. 

My ECS server was given a private IP (172.19.129.19) and public IP (47.100.xx.xx). 

/opt/freeswitch/conf/vars.xml

<X-PRE-PROCESS cmd="set" data="external_rtp_ip=47.100.xx.xx"/>
<X-PRE-PROCESS cmd="set" data="external_sip_ip=47.100.xx.xx"/>
/opt/freeswitch/conf/sip_profiles/external.xml
    <param name="ext-rtp-ip" value="$${external_rtp_ip}"/>
    <param name="ext-sip-ip" value="$${external_sip_ip}"/>
/usr/share/red5/webapps/sip/WEB-INF/bigbluebutton-sip.properties
bbb.sip.app.ip=<172.19.129.19>
bbb.sip.app.port=5070

freeswitch.ip=<172.19.129.19>
freeswitch.port=5060
Am I doing this right ?

Thanks,
CK
On Wednesday, November 29, 2017 at 12:31:57 AM UTC+8, Fred Dixon wrote:
Hi Chee-Kian,

Can you try testing your access from another computer


Also, check the section on setting up access to FreeSWITCH behind a firewall


especially the text related to 1002 error.


Regards,... Fred
On Tue, Nov 28, 2017 at 12:36 AM, Chee-Kian Tan <chee-k...@iaapathway.com> wrote:
Here is the result of client self-check:


--
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 bigbluebu...@googlegroups.com.
Message has been deleted

Chee-Kian Tan

unread,
Nov 29, 2017, 2:58:58 AM11/29/17
to BigBlueButton-Setup
Hi Fred,

The WebRTC issue has been resolved. I accidentally enter the wrong port , :7433 instead of :7443. But the sip and screenshare still failed. 

The screenshare features allow me to download the java app but not start the screenshare.



Thanks,
Chee-Kian

On Wednesday, November 29, 2017 at 12:31:57 AM UTC+8, Fred Dixon wrote:
Hi Chee-Kian,

Can you try testing your access from another computer


Also, check the section on setting up access to FreeSWITCH behind a firewall


especially the text related to 1002 error.


Regards,... Fred
On Tue, Nov 28, 2017 at 12:36 AM, Chee-Kian Tan <chee-k...@iaapathway.com> wrote:
Here is the result of client self-check:


--
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 bigbluebu...@googlegroups.com.

Chad Pilkey

unread,
Nov 29, 2017, 12:02:00 PM11/29/17
to BigBlueButton-Setup
Did you try the netcat test with port 1935? That's the RTMP port and is required for bbb-apps connections and for the screensharing app.

Chee-Kian Tan

unread,
Nov 29, 2017, 6:01:10 PM11/29/17
to BigBlueButton-Setup
Hi Fred,

I did. The netcat test returned a success test to all required TCP and UDP ports.

Thanks,
CK

Chad Pilkey

unread,
Nov 29, 2017, 6:11:09 PM11/29/17
to BigBlueButton-Setup
What's the output from "bbb-conf --check". I just noticed what the actual error was for the RTMP sip connection and it seems to suggest the sip red5 app is not running or doesn't exist.

What do you see when you try to join a meeting? Can you load the client? Do you see "[Tunnelling]" in the lower right corner?

Chee-Kian Tan

unread,
Nov 30, 2017, 6:21:26 AM11/30/17
to BigBlueButton-Setup
Hi Chad,

Below is the output of bbb-conf --check :

BigBlueButton Server 1.1.0 (575)
                    Kernel version: 4.4.0-62-generic
                      Distribution: Ubuntu 16.04.3 LTS (64-bit)
                            Memory: 8175 MB

/var/www/bigbluebutton/client/conf/config.xml (bbb-client)
                Port test (tunnel): classroom.iaaprograms.com
                              red5: classroom.iaaprograms.com
              useWebrtcIfAvailable: true

/opt/freeswitch/etc/freeswitch/sip_profiles/external.xml (FreeSWITCH)
                    websocket port: 7443
                    WebRTC enabled: true

/etc/nginx/sites-available/bigbluebutton (nginx)
                       server name: classroom.iaaprograms.com
                              port: 80, [::]:80
                              port: 443 ssl
                    bbb-client dir: /var/www/bigbluebutton

/var/lib/tomcat7/webapps/bigbluebutton/WEB-INF/classes/bigbluebutton.properties (bbb-web)
                      bbb-web host: classroom.iaaprograms.com

/var/lib/tomcat7/webapps/demo/bbb_api_conf.jsp (API demos)
                               url: classroom.iaaprograms.com

/var/www/bigbluebutton/check/conf/config.xml (client check)
                      client check: classroom.iaaprograms.com

/usr/share/red5/webapps/bigbluebutton/WEB-INF/red5-web.xml (red5)
                  voice conference: FreeSWITCH

/usr/local/bigbluebutton/core/scripts/bigbluebutton.yml (record and playback)
                     playback host: classroom.iaaprograms.com


** Potential problems described below **
# IP does not match:
#                           IP from ifconfig: 172.19.129.19
#   /etc/nginx/sites-available/bigbluebutton: classroom.iaaprograms.com
# Warning: API URL IPs do not match host:
#
#                                IP from ifconfig: 172.19.129.19
#  /var/lib/tomcat7/webapps/demo/bbb_api_conf.jsp: classroom.iaaprograms.com


# Error: Found text in freeswitch.log:
#
#    Thread ended for mod_event_socket
#
# FreeSWITCH may not be responding to requests on port 8021 (event socket layer)
# and users may have errors joining audio.
#

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

# Warning: The API demos are installed and accessible from:
#
#    https://classroom.iaaprograms.com/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:
#
#    sudo apt-get purge bbb-demo

# Warning: The client self check is installed and accessible from:
#
#    https://classroom.iaaprograms.com/check
#

Chad Pilkey

unread,
Nov 30, 2017, 1:08:21 PM11/30/17
to BigBlueButton-Setup
I'm not sure what it is. All I can tell is that even loading a the page on that server takes more than 20 seconds so if all the requests to connect are also taking that long to respond I wouldn't be surprised to see the connections timeout. I'm not really sure why your server would be so slow to respond though.

You also might want to try BBB 2.0 instead of BBB 1.1. I think I have a memory of maybe some bugs getting fixed related to not having IPv6, but I can't be certain.
Reply all
Reply to author
Forward
0 new messages