ansible role for bbb installation

251 views
Skip to first unread message

Juan Luis Baptiste

unread,
May 2, 2018, 2:46:15 AM5/2/18
to bigbluebu...@googlegroups.com
Hi!

For work I needed to install bbb so I wrote an ansible role to integrate the installation into our existing ansible automation framework. You can find it here:


It has NAT support and SSL support using LetsEncrypt certificates. It can also install the demo and check packages, I'm missing greenlight and the html5 client to be an alternative installation method to bbb-install.sh script when you already have a configuration management tool like ansible inplace.

You can find more details on how to use it on this blog post:


Cheers,

--
JLB

Fred Dixon

unread,
May 2, 2018, 7:06:51 AM5/2/18
to BigBlueButton-.
Hi Juan,

THANKS for sharing this!  

Warm 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

Juan Luis Baptiste

unread,
May 2, 2018, 3:02:08 PM5/2/18
to bigbluebu...@googlegroups.com


On Wed, May 2, 2018 at 6:06 AM, Fred Dixon <ffd...@gmail.com> wrote:
Hi Juan,


Hi Fred,

 
THANKS for sharing this!  

Warm regards,... Fred




No worries, please test it and let me know if you find any issues.


Cheers,
 
On Wed, May 2, 2018 at 2:45 AM, Juan Luis Baptiste <juan.b...@gmail.com> wrote:
Hi!

For work I needed to install bbb so I wrote an ansible role to integrate the installation into our existing ansible automation framework. You can find it here:


It has NAT support and SSL support using LetsEncrypt certificates. It can also install the demo and check packages, I'm missing greenlight and the html5 client to be an alternative installation method to bbb-install.sh script when you already have a configuration management tool like ansible inplace.

You can find more details on how to use it on this blog post:


Cheers,

--
JLB

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



--
JLB

Juan Luis Baptiste

unread,
May 2, 2018, 10:29:46 PM5/2/18
to bigbluebu...@googlegroups.com
Hi Fred,

I did some updates, specially with NAT setup, so update your copy if you already cloned it.

I setup a server with a public IP adress and installed bbb with this role first with ssl disabled (no need of NAT here) and everything worked great and no warnings with bbb-check. Then I run the playbook again to configure SSL (bbb_configure_ssl: True), the certificate was created, flash client loads and everything *seems* to work, but every some seconds I get disconnected, and bbb-conf --check shows this warning:

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


I followed the troubleshooting described on the install instructions (about changing :: for 127.0.0.1 to disable IPv6 support) but nothing, the error  and the random disconnections remains.


Any clues of where to start looking ?


Cheers,




--
JLB



--
JLB

Juan Luis Baptiste

unread,
May 2, 2018, 10:33:28 PM5/2/18
to bigbluebu...@googlegroups.com
Forgot to add that the port is open:

$ telnet localhost 8021
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Content-Type: auth/request
--
JLB

Juan Luis Baptiste

unread,
May 2, 2018, 11:57:12 PM5/2/18
to bigbluebu...@googlegroups.com
It seems that bbb-conf --clean doesn't delete  /opt/freeswitch/var/log/freeswitch/freeswitch.log,  so bbb-conf --check was picking up an old entry. I deleted the log file and the warning during check went away, but the reconnection issue every few seconds still remains. 

On /var/log/red5/bigbluebutton.log I can see:

2018-05-02 22:43:43,730-05:00 [NioProcessor-4] DEBUG o.b.red5.BigBlueButtonApplication - disconnect: RTMPMinaConnection from xxxxxx (in: 14186 out: 34746) session: IGXLKE4HQNX[14/1930]
disconnecting < Scope [name=183f0bf3a0982a127bdb8161e0c44eb696b3e75c-1525318916718, path=/default/bigbluebutton, type=ROOM, autoStart=true, creationTime=1525318918048, depth=2, enabled=tru
e, running=true]                                                                                                                                                                             
2018-05-02 22:43:43,732-05:00 [NioProcessor-4] INFO  o.b.red5.BigBlueButtonApplication - User leaving bbb-apps: data={"clientId":"1","connType":"RTMP","connId":"IGXLKE4HQNXLE","description"
:"User leaving BBB Apps.","meetingId":"183f0bf3a0982a127bdb8161e0c44eb696b3e75c-1525318916718","sessionId":"RED5-fw62f0kri3qk_1","event":"user_leaving_bbb_apps","userId":"fw62f0kri3qk_1","r
emoteAddress":"181.56.76.6:58658","username":"aaaa"}                                                                                                                                         
2018-05-02 22:43:43,735-05:00 [NioProcessor-4] DEBUG o.b.red5.BigBlueButtonApplication - roomDisconnect: RTMPMinaConnection from 181.56.76.6 (in: 14186 out: 34746) session: IGXLKE4HQNXLE st
ate: disconnecting                                                                                                                                                                            
2018-05-02 22:43:43,735-05:00 [NioProcessor-4] DEBUG o.b.red5.BigBlueButtonApplication - leave: Client: 1 << Scope [name=183f0bf3a0982a127bdb8161e0c44eb696b3e75c-1525318916718, path=/defaul
t/bigbluebutton, type=ROOM, autoStart=true, creationTime=1525318918048, depth=2, enabled=true, running=true]                                                                                  
2018-05-02 22:43:43,735-05:00 [NioProcessor-4] DEBUG o.b.red5.BigBlueButtonApplication - roomLeave: Client: 1 << Scope [name=183f0bf3a0982a127bdb8161e0c44eb696b3e75c-1525318916718, path=/de
fault/bigbluebutton, type=ROOM, autoStart=true, creationTime=1525318918048, depth=2, enabled=true, running=true]                                                                              
2018-05-02 22:43:43,736-05:00 [NioProcessor-4] DEBUG o.b.red5.BigBlueButtonApplication - disconnect: RTMPMinaConnection from 181.56.76.6 (in: 14186 out: 34746) session: IGXLKE4HQNXLE state:
disconnecting < Scope [name=bigbluebutton, path=/default, type=APPLICATION, autoStart=true, creationTime=1525318590052, depth=1, enabled=true, running=true]                                 
2018-05-02 22:43:43,736-05:00 [NioProcessor-4] INFO  o.b.red5.BigBlueButtonApplication - W3C x-category:session x-event:disconnect c-ip:xxxxxxx c-client-id:1                             
2018-05-02 22:43:43,736-05:00 [NioProcessor-4] DEBUG o.b.red5.BigBlueButtonApplication - appDisconnect: RTMPMinaConnection from xxxxxxx (in: 14186 out: 34746) session: IGXLKE4HQNXLE sta
te: disconnecting

(xxxxx is my laptop address)


On /var/log/bbb-apps-akka/bbb-apps-akka.log:

2018-05-02 22:43:43,740-05:00 [bigbluebutton-apps-system-akka.actor.default-dispatcher-5] INFO  org.bigbluebutton.core.LiveMeeting - User has been disconnected but still in voice conf. Swit
ching to phone user. meetingId=183f0bf3a0982a127bdb8161e0c44eb696b3e75c-1525318916718 callername=aaaa userId=fw62f0kri3qk_1 extUserId=fw62f0kri3qk


And on the browser I can see this when the disconnect occurs:

Received [BroadcastingCameraStoppedEvent] bbb_api_bridge.js:583:7
No listeners for [BroadcastingCameraStoppedEvent] bbb_api_bridge.js:559:13
Interval loss rate: 0
--
JLB

Fred Dixon

unread,
May 3, 2018, 6:11:37 AM5/3/18
to BigBlueButton-.
Hi Juan,

> It seems that bbb-conf --clean doesn't delete  /opt/freeswitch/var/log/freeswitch/freeswitch.log

Thanks for reporting this.  We've opened an issue to fix this in 2.0-beta

>  flash client loads and everything *seems* to work, but every some seconds I get disconnected,

Could you try setting up a BigBlueButton 2.0-beta server and compare the results.  We're very interested to hear if you encounter this issue in 2.0-beta.

Also, we have an bash installation script that you could use as a guideline for updating the ansible script for 2.0 (the install docs are the same and the bash script tries to automate some of the networking setup as well), see



Regards,... Fred


Juan Luis Baptiste

unread,
May 3, 2018, 9:05:11 AM5/3/18
to bigbluebu...@googlegroups.com
Hi Fred,

On Thu, May 3, 2018 at 5:11 AM, Fred Dixon <ffd...@gmail.com> wrote:
Hi Juan,

> It seems that bbb-conf --clean doesn't delete  /opt/freeswitch/var/log/freeswitch/freeswitch.log

Thanks for reporting this.  We've opened an issue to fix this in 2.0-beta

Excellent.
 

>  flash client loads and everything *seems* to work, but every some seconds I get disconnected,

Could you try setting up a BigBlueButton 2.0-beta server and compare the results.  We're very interested to hear if you encounter this issue in 2.0-beta.


I'll will upgrade my server and let you know.

 
Also, we have an bash installation script that you could use as a guideline for updating the ansible script for 2.0 (the install docs are the same and the bash script tries to automate some of the networking setup as well), see




Yes, that's what I have been using as a guide for the ansible role ;)

Cheers,


 
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.



--
JLB
Reply all
Reply to author
Forward
0 new messages