freeswith does not start after run bbb-install.sh

483 views
Skip to first unread message

suo jian

unread,
Jul 23, 2018, 7:59:00 PM7/23/18
to BigBlueButton-Setup
root@bbb:~# uname -a
Linux bbb 2.6.32-042stab127.2 #1 SMP Thu Jan 4 16:41:44 MSK 2018 x86_64 x86_64 x86_64 GNU/Linux

root@bbb:~# cat /etc/os-release
NAME="Ubuntu"
VERSION="16.04.5 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.5 LTS"
VERSION_ID="16.04"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial


root@bbb:~# free -l
              total        used        free      shared  buff/cache   available
Mem:        4194304     1711752           0       16548     2482552     2338346
Low:        4194304     4194304           0
High:             0           0           0
Swap:       2097152        5372     2091780

******************

After run wget -qO- https://ubuntu.bigbluebutton.org/bbb-install.sh | bash -s -- -v xenial-200

at the end, get the error:

Starting BigBlueButton
Job for freeswitch.service failed because the control process exited with error code. See "systemctl status freeswitch.service" and "journalctl -xe" for details.

yes

BigBlueButton Server 2.0.0-RC2 (996)
                    Kernel version: 2.6.32-042stab127.2
                      Distribution: Ubuntu 16.04.5 LTS (64-bit)
                            Memory: 4194 MB

/var/www/bigbluebutton/client/conf/config.xml (bbb-client)
  Port test (tunnel): rtmp://<my correct ip>
                              red5: <my correct ip>
              useWebrtcIfAvailable: true

/opt/freeswitch/etc/freeswitch/sip_profiles/external.xml (FreeSWITCH)
                         websocket: <my correct ip>:5066
                    WebRTC enabled: true

/etc/nginx/sites-available/bigbluebutton (nginx)
                       server name: <my correct ip>
                              port: 80, [::]:80
                    bbb-client dir: /var/www/bigbluebutton

/var/lib/tomcat7/webapps/bigbluebutton/WEB-INF/classes/bigbluebutton.properties (bbb-web)
                      bbb-web host: <my correct ip>

/var/lib/tomcat7/webapps/demo/bbb_api_conf.jsp (API demos)
                               url: <my correct ip>

/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: <my correct ip>
                            ffmpeg: 4.0.1-0york0~16.04


** Potential problems described below **
grep: /opt/freeswitch/var/log/freeswitch/freeswitch.log: No such file or directory

#
# Error: Unable to connect to the FreeSWITCH Event Socket Layer on port 8021
#
# Warning: The voice application may not have registered with the sip server.
#   Try running:
#
#      sudo bbb-conf --clean
#

......
# Error: Could not detect FreeSWITCH listening on port 5060

# Warning: The API demos are installed and accessible from:
#
#    http://<my correct ip>/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

# Error: Detected some processes have not started correctly
#
#   freeswitch: inactive


********************

root@bbb:~# systemctl status freeswitch.service
● freeswitch.service - freeswitch
   Loaded: loaded (/lib/systemd/system/freeswitch.service; enabled; vendor preset: enabled)
   Active: inactive (dead) (Result: exit-code) since Mon 2018-07-23 16:21:30 PDT; 36min ago
  Process: 28689 ExecStart=/opt/freeswitch/bin/freeswitch -u freeswitch -g daemon -ncwait $DAEMON_OPTS (code=exited, status=214/SETSCHEDULER)

Jul 23 16:21:30 bbb systemd[1]: Failed to start freeswitch.
Jul 23 16:21:30 bbb systemd[1]: freeswitch.service: Unit entered failed state.
Jul 23 16:21:30 bbb systemd[1]: freeswitch.service: Failed with result 'exit-code'.
Jul 23 16:21:30 bbb systemd[1]: freeswitch.service: Service hold-off time over, scheduling restart.
Jul 23 16:21:30 bbb systemd[1]: Stopped freeswitch.
Jul 23 16:21:30 bbb systemd[1]: freeswitch.service: Start request repeated too quickly.
Jul 23 16:21:30 bbb systemd[1]: Failed to start freeswitch.

******************

oot@bbb:~# journalctl -xe
Jul 23 16:58:21 bbb bbb-fsesl-akka[28443]:         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_171]
Jul 23 16:58:21 bbb bbb-fsesl-akka[28443]:         at java.lang.Thread.run(Thread.java:748) [na:1.8.0_171]
Jul 23 16:58:21 bbb bbb-fsesl-akka[28443]: Failed to connect to ESL
Jul 23 16:58:21 bbb bbb-fsesl-akka[28443]: Jul 23, 2018 4:58:21 PM org.jboss.netty.channel.SimpleChannelUpstreamHandler
Jul 23 16:58:21 bbb bbb-fsesl-akka[28443]: WARNING: EXCEPTION, please implement org.freeswitch.esl.client.inbound.InboundClientHandler.exceptionCaught() for proper handling.
Jul 23 16:58:21 bbb bbb-fsesl-akka[28443]: java.net.ConnectException: Connection refused
Jul 23 16:58:21 bbb bbb-fsesl-akka[28443]:         at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
Jul 23 16:58:21 bbb bbb-fsesl-akka[28443]:         at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
Jul 23 16:58:21 bbb bbb-fsesl-akka[28443]:         at org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.connect(NioClientSocketPipelineSink.java:384)
Jul 23 16:58:21 bbb bbb-fsesl-akka[28443]:         at org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.processSelectedKeys(NioClientSocketPipelineSink.java:354)
Jul 23 16:58:21 bbb bbb-fsesl-akka[28443]:         at org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.run(NioClientSocketPipelineSink.java:276)
Jul 23 16:58:21 bbb bbb-fsesl-akka[28443]:         at org.jboss.netty.util.internal.IoWorkerRunnable.run(IoWorkerRunnable.java:46)
Jul 23 16:58:21 bbb bbb-fsesl-akka[28443]:         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
Jul 23 16:58:21 bbb bbb-fsesl-akka[28443]:         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
Jul 23 16:58:21 bbb bbb-fsesl-akka[28443]:         at java.lang.Thread.run(Thread.java:748)
lines 1130-1144/1144 (END)
Jul 23 16:58:21 bbb bbb-fsesl-akka[28443]:         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_171]
Jul 23 16:58:21 bbb bbb-fsesl-akka[28443]:         at java.lang.Thread.run(Thread.java:748) [na:1.8.0_171]
Jul 23 16:58:21 bbb bbb-fsesl-akka[28443]: Failed to connect to ESL
Jul 23 16:58:21 bbb bbb-fsesl-akka[28443]: Jul 23, 2018 4:58:21 PM org.jboss.netty.channel.SimpleChannelUpstreamHandler
Jul 23 16:58:21 bbb bbb-fsesl-akka[28443]: WARNING: EXCEPTION, please implement org.freeswitch.esl.client.inbound.InboundClientHandler.exceptionCaught() for proper handling.
Jul 23 16:58:21 bbb bbb-fsesl-akka[28443]: java.net.ConnectException: Connection refused
Jul 23 16:58:21 bbb bbb-fsesl-akka[28443]:         at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
Jul 23 16:58:21 bbb bbb-fsesl-akka[28443]:         at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
Jul 23 16:58:21 bbb bbb-fsesl-akka[28443]:         at org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.connect(NioClientSocketPipelineSink.java:384)
Jul 23 16:58:21 bbb bbb-fsesl-akka[28443]:         at org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.processSelectedKeys(NioClientSocketPipelineSink.java:354)
Jul 23 16:58:21 bbb bbb-fsesl-akka[28443]:         at org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.run(NioClientSocketPipelineSink.java:276)
Jul 23 16:58:21 bbb bbb-fsesl-akka[28443]:         at org.jboss.netty.util.internal.IoWorkerRunnable.run(IoWorkerRunnable.java:46)
Jul 23 16:58:21 bbb bbb-fsesl-akka[28443]:         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
Jul 23 16:58:21 bbb bbb-fsesl-akka[28443]:         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
Jul 23 16:58:21 bbb bbb-fsesl-akka[28443]:         at java.lang.Thread.run(Thread.java:748)
~
lines 1130-1144/1144 (END)
Jul 23 16:58:21 bbb bbb-fsesl-akka[28443]:         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_171]
Jul 23 16:58:21 bbb bbb-fsesl-akka[28443]:         at java.lang.Thread.run(Thread.java:748) [na:1.8.0_171]
Jul 23 16:58:21 bbb bbb-fsesl-akka[28443]: Failed to connect to ESL
Jul 23 16:58:21 bbb bbb-fsesl-akka[28443]: Jul 23, 2018 4:58:21 PM org.jboss.netty.channel.SimpleChannelUpstreamHandler
Jul 23 16:58:21 bbb bbb-fsesl-akka[28443]: WARNING: EXCEPTION, please implement org.freeswitch.esl.client.inbound.InboundClientHandler.exceptionCaught() for proper handling.
Jul 23 16:58:21 bbb bbb-fsesl-akka[28443]: java.net.ConnectException: Connection refused
Jul 23 16:58:21 bbb bbb-fsesl-akka[28443]:         at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
Jul 23 16:58:21 bbb bbb-fsesl-akka[28443]:         at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
Jul 23 16:58:21 bbb bbb-fsesl-akka[28443]:         at org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.connect(NioClientSocketPipelineSink.java:384)
Jul 23 16:58:21 bbb bbb-fsesl-akka[28443]:         at org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.processSelectedKeys(NioClientSocketPipelineSink.java:354)
Jul 23 16:58:21 bbb bbb-fsesl-akka[28443]:         at org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.run(NioClientSocketPipelineSink.java:276)
Jul 23 16:58:21 bbb bbb-fsesl-akka[28443]:         at org.jboss.netty.util.internal.IoWorkerRunnable.run(IoWorkerRunnable.java:46)
Jul 23 16:58:21 bbb bbb-fsesl-akka[28443]:         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
Jul 23 16:58:21 bbb bbb-fsesl-akka[28443]:         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
Jul 23 16:58:21 bbb bbb-fsesl-akka[28443]:         at java.lang.Thread.run(Thread.java:748)





suo jian

unread,
Jul 23, 2018, 8:37:35 PM7/23/18
to BigBlueButton-Setup
I resolved it by following "Running within an LXD Container" and "freeswitch fails to bind to port 8021". 

However I do not use LXD by myself and when I check ip addr | grep inet6 , it shows "inet6 ::1/128 scope host"

VPS must setup LXD for me, and there may be a fake ipv6.

Fred Dixon

unread,
Jul 23, 2018, 8:52:44 PM7/23/18
to BigBlueButton-.
Hi Suo,

I want to say thanks twice.  First for giving such a detailed post of the problem -- it was a pleasure to have the full information.  

And thanks (a second time) for sharing the result with others.  

If you encounter any problems with BigBlueButton -- or have feedback on our product -- don't hesitate to post in this group.

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-s...@googlegroups.com.
To post to this group, send email to bigbluebu...@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
Reply all
Reply to author
Forward
0 new messages