Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update/Upgrade procedure takes very long #20184

Open
GeorgelT opened this issue May 7, 2024 · 2 comments
Open

Update/Upgrade procedure takes very long #20184

GeorgelT opened this issue May 7, 2024 · 2 comments

Comments

@GeorgelT
Copy link

GeorgelT commented May 7, 2024

Describe the bug
When running the .deb package updates on an ubuntu/debian system the post install scripts run chown bigbluebutton:bigbluebutton -R on the main top level directory of the bbb installation. This chown then gets run 2 more times on the recording/ and published/ subdirectories.

This chown post install script is present in at least 2 of the deb packages making it run the 3 chowns twice. It only needs 1 chown on the main bbb install directory on initial install, why would it need to also do the internal subdirectories also?

The post install scripts are these file:
/var/lib/dpkg/info/bbb-config.postinst
/var/lib/dpkg/info/bbb-record-core.postinst
/var/lib/dpkg/info/bbb-playback-presentation.postinst
/var/lib/dpkg/info/bbb-webrtc-sfu.postinst

Installation type
The installation is done with the install script like so:
wget -qO- https://ubuntu.bigbluebutton.org/bbb-install-2.5.sh | bash -s -- -v focal-250 -s some.domain.com -e some@email.com -g -d

Firewall and IP address type
Server is stand alone, has its own IP and domain.

Console output
We updated yesterday to the following pakage versions that have this post-install script:

apt list --installed | grep bbb

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

bbb-apps-akka/unknown,now 2.5-51 all [installed,automatic]
bbb-config/unknown,now 1:2.5-74 amd64 [installed,automatic]
bbb-etherpad/unknown,now 1:2.5-11 amd64 [installed,automatic]
bbb-freeswitch-core/unknown,now 2:2.5-18 amd64 [installed,automatic]
bbb-freeswitch-sounds/unknown,now 1:2.5-8 amd64 [installed,automatic]
bbb-fsesl-akka/unknown,now 2.5-40 all [installed,automatic]
bbb-html5/unknown,now 1:2.5-2913 amd64 [installed,automatic]
bbb-learning-dashboard/unknown,now 1:2.5-23 amd64 [installed,automatic]
bbb-libreoffice-docker/unknown,now 1:2.5-9 amd64 [installed,automatic]
bbb-mkclean/unknown,now 1:2.5-5 amd64 [installed,automatic]
bbb-pads/unknown,now 1:2.5-14 amd64 [installed,automatic]
bbb-playback-presentation/unknown,now 1:2.5-11 amd64 [installed,automatic]
bbb-playback/unknown,now 1:2.5-9 amd64 [installed,automatic]
bbb-record-core/unknown,now 1:2.5-38 amd64 [installed,automatic]
bbb-web/unknown,now 1:2.5-78 amd64 [installed,automatic]
bbb-webrtc-sfu/unknown,now 1:2.5-33 amd64 [installed,automatic]
libopusenc0/focal,now 0.2.1-1bbb2 amd64 [installed,automatic]
yq/focal,now 3.4.1bbb1 amd64 [installed]

Additional context
The problem with these cascading chowns shows up when you have several 100 GB of recordings and any apt upgrade then takes, in our case, 2h+ due to these chowns. If you already do a chown on the root directory of BBB why do you then need separately another set of chowns on the internal directories?

The second point, if bbb was already installed why does it need to do these chowns at all?

We have the following repo active:

cat /etc/apt/sources.list.d/bigbluebutton.list
deb https://ubuntu.bigbluebutton.org/focal-250 bigbluebutton-focal main
@GeorgelT
Copy link
Author

GeorgelT commented May 7, 2024

Did a quick grep search the affected packages that do this as postinst are as follows:

  • bbb-config:
/var/lib/dpkg/info/bbb-config.postinst:  chown -R $BIGBLUEBUTTON_USER:$BIGBLUEBUTTON_USER /var/bigbluebutton
/var/lib/dpkg/info/bbb-config.postinst:  chown -R $BIGBLUEBUTTON_USER:$BIGBLUEBUTTON_USER /var/bigbluebutton/recording
/var/lib/dpkg/info/bbb-config.postinst:  chown -R $BIGBLUEBUTTON_USER:$BIGBLUEBUTTON_USER /var/bigbluebutton/published
/var/lib/dpkg/info/bbb-config.postinst:  chown -R $BIGBLUEBUTTON_USER:$BIGBLUEBUTTON_USER /var/bigbluebutton/deleted
/var/lib/dpkg/info/bbb-config.postinst:  chown -R $BIGBLUEBUTTON_USER:$BIGBLUEBUTTON_USER /var/bigbluebutton/unpublished
  • bbb-playback-presentation
/var/lib/dpkg/info/bbb-playback-presentation.postinst:    chown -R $BIGBLUEBUTTON_USER:$BIGBLUEBUTTON_USER /var/bigbluebutton/published/presentation
/var/lib/dpkg/info/bbb-playback-presentation.postinst:    chown -R $BIGBLUEBUTTON_USER:$BIGBLUEBUTTON_USER /var/log/bigbluebutton/presentation
/var/lib/dpkg/info/bbb-playback-presentation.postinst:    chown -R $BIGBLUEBUTTON_USER:$BIGBLUEBUTTON_USER /var/bigbluebutton/recording/publish/presentation
  • bbb-record-core
...
/var/lib/dpkg/info/bbb-record-core.postinst:      chown -R $BBB_USER:$BBB_USER /var/bigbluebutton/recording
/var/lib/dpkg/info/bbb-record-core.postinst:      chown -R $BBB_USER:$BBB_USER /var/bigbluebutton/captions
...
/var/lib/dpkg/info/bbb-record-core.postinst:      chown -R $BBB_USER:$BBB_USER /var/log/bigbluebutton
...
  • bbb-webrtc-sfu

/var/lib/dpkg/info/bbb-webrtc-sfu.postinst: chown -R bigbluebutton:bigbluebutton /usr/local/bigbluebutton/bbb-webrtc-sfu /var/log/bbb-webrtc-sfu/

@antobinary
Copy link
Member

Thank you for reporting!

@antobinary antobinary self-assigned this May 7, 2024
@antobinary antobinary added this to the Release 3.0 milestone May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants