bbb-install
bbb-install copied to clipboard
Tomcat7 missing after bbb-demo removal
I have strange dependency issue while trying to install xenial-220-beta (currently 220-beta-20) on ubuntu 16.04 using bbb-install.sh :
$ wget -qO- https://ubuntu.bigbluebutton.org/bbb-install.sh | bash -s -- -v xenial-220-beta -s bbb.example.com -e [email protected]
=> BBB works fine
$ apt purge bbb-demo Reading package lists... Done Building dependency tree
Reading state information... Done The following packages were automatically installed and are no longer required: authbind libcommons-collections3-java libcommons-dbcp-java libcommons-pool-java libecj-java libservlet3.0-java libtomcat7-java tomcat7 tomcat7-common Use 'apt autoremove' to remove them. The following packages will be REMOVED: bbb-demo* 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. After this operation, 1,986 kB disk space will be freed. Do you want to continue? [Y/n] Y (Reading database ... 160178 files and directories currently installed.) Removing bbb-demo (1:2.2.0-9) ... Purging configuration files for bbb-demo (1:2.2.0-9) ... root@bbb:~# bbb-conf --restart
=> BBB works fine
But if an apt autoremove is launched tomcat7 is removed and BBB do not running correctly
$ apt autoremove Reading package lists... Done Building dependency tree
Reading state information... Done The following packages will be REMOVED: authbind libcommons-collections3-java libcommons-dbcp-java libcommons-pool-java libecj-java libservlet3.0-java libtomcat7-java tomcat7 tomcat7-common 0 upgraded, 0 newly installed, 9 to remove and 0 not upgraded. After this operation, 8,291 kB disk space will be freed. Do you want to continue? [Y/n] Y (Reading database ... 160174 files and directories currently installed.) Removing authbind (2.1.1+nmu1) ... Removing tomcat7 (7.0.68-1ubuntu0.4) ... Removing tomcat7-common (7.0.68-1ubuntu0.4) ... Removing libtomcat7-java (7.0.68-1ubuntu0.4) ... Removing libcommons-dbcp-java (1.4-5ubuntu2) ... Removing libcommons-collections3-java (3.2.2-1) ... Removing libcommons-pool-java (1.6-2) ... Removing libecj-java (3.10.1-2ubuntu1) ... Removing libservlet3.0-java (7.0.68-1ubuntu0.4) ... Processing triggers for man-db (2.7.5-1) ... root@bbb-000:~# bbb-conf --restart Restarting BigBlueButton 2.2.0-beta-20 ... Stopping BigBlueButton Starting BigBlueButton Job for tomcat7.service failed because the control process exited with error code. See "systemctl status tomcat7.service" and "journalctl -xe" for details.
Workaround : do not install bbb-demo at all I have tried using PR #64 it works perfectly :)
Thanks for pointing this out. It looks like with tomcat7 removed, there is a check in
https://github.com/bigbluebutton/bigbluebutton/blob/master/bigbluebutton-config/bin/bbb-conf#L336
that looks to see if tomcat7 is still installed by checking if it's installation directory exists
if [ -d $TOMCAT_DIR ]; then
TOMCAT_SERVICE=$TOMCAT_USER
fi
This logic is in correct because the directory /var/lib/tomcat7
probably still exists. If you have uninstalled tomcat7 and remove $TOMCAT_SERVICE
from
https://github.com/bigbluebutton/bigbluebutton/blob/master/bigbluebutton-config/bin/bbb-conf#L392
You should have sudo bbb-conf --restart
exiting without error. We'll fix this properly in the next update to BigBlueButton 2.2-beta.
This problem still exists on BigBlueButton 2.2.20. Purging bbb-demo
marks tomcat7
as not required anymore, the next apt autoremove
removes it and bbb throws errors about missing tomcat7.
In such a case you can mark the package as manually installed before you purge bbb-demo
. First look after the correct version of tomcat to keep. Finally mark the package (in your case tomcat7) as manually installed:
apt show bbb-demo | grep -e "^Depends:"
apt-mark manual tomcat7
Current versions of BigBlueButton use a different directory path and need Tomcat for API demo only, hence its de-installation with the API demo should be no problem anymore.
@ffdixon I'm seeing this issue on 2.5.0-rc3 Steps to reproduce:
- Install BBB 2.5 with API Demos (-a in bbb-install script)
wget -qO- https://ubuntu.bigbluebutton.org/bbb-install-2.5.sh | bash -s -- -v focal-250 -s meet.****.net -e info@****.net -c turn.****.net:**** -a -w -g
- Remove API Demos (apt-get purge bbb-demo)
- Run bbb-install script again without -a
wget -qO- https://ubuntu.bigbluebutton.org/bbb-install-2.5.sh | bash -s -- -v focal-250 -s meet.****.net -e info@****.net -c turn.****.net:**** -w -g
# Error: Detected some processes have not started correctly
#
# tomcat9 ———————————————► [✘ - inactive]
#