reboot du serveur bbb

Je me propose de redémarrer le serveur un soir dans la semaine, afin que les mises à jour de sécurité du noyau soient prises en compte.

@mdk est ce qu’il y a un point particulier à connaître avant :slight_smile: ?

+1 Je suis certain que si tu le fait à 3h du matin le lundi personne ne s’en rendra compte :smiley:

1 « J'aime »

J’ignore si BBB peut nous dire facilement si du monde utilise une salle. Mais bon si il n’y a pas de meetup annoncé sur afpy.org, et que c’est le soir, tu peux y aller :slight_smile:

1 « J'aime »
  • L’interface web d’admin liste les salles actives.
  • En ligne de commande (doc pour le calcul du checksum:
    wget -qO- https://bbb.afpy.org/bigbluebutton/api/getMeetings?checksum=$CHEKSUM | xmlstarlet sel -I -t -v "count(//meeting)"
    

Les meetups ne sont plus annoncés ici mais :wink:

Du coup en fin de soirée cette semaine après la soirée de la trad de ce soir c’est ok :slight_smile:

1 « J'aime »

Au menu:

  1. mise à jour des paquets Debian
  2. mise à jour de Big Blue Button en 2.4
  3. redémarrage du serveur
  4. vérifications
root@bbb2:~# # Lister les paquets fournis par Ubuntu
root@bbb2:~# aptitude search '?narrow(?upgradable, (?origin(Ubuntu)))'
i   linux-headers-generic                                                          - Generic Linux kernel headers                                                            
i A linux-headers-virtual                                                          - Virtual Linux kernel headers                                                            
i   linux-image-virtual                                                            - Virtual Linux kernel image                                                              
i A linux-libc-dev                                                                 - Linux Kernel Headers for development                                                    
i   linux-virtual                                                                  - Minimal Generic Linux kernel and headers                                                
i   nodejs                                                                         - Node.js event-based server-side javascript engine                                       
i   openjdk-8-jre                                                                  - OpenJDK Java runtime, using Hotspot JIT                                                 
i A openjdk-8-jre-headless                                                         - OpenJDK Java runtime, using Hotspot JIT (headless)                                      
i   tzdata                                                                         - time zone and daylight-saving time data     
root@bbb2:~# # Les mettre à jour
root@bbb2:~# apt install $(aptitude search -F '%p' '?narrow(?upgradable, (?origin(Ubuntu)))')
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  linux-headers-4.15.0-173 linux-headers-4.15.0-173-generic linux-image-4.15.0-173-generic linux-modules-4.15.0-173-generic
Suggested packages:
  fdutils linux-doc-4.15.0 | linux-source-4.15.0 linux-tools icedtea-8-plugin libnss-mdns fonts-ipafont-gothic fonts-ipafont-mincho fonts-wqy-microhei fonts-wqy-zenhei
  fonts-indic
The following NEW packages will be installed:
  linux-headers-4.15.0-173 linux-headers-4.15.0-173-generic linux-image-4.15.0-173-generic linux-modules-4.15.0-173-generic
The following packages will be upgraded:
  linux-headers-generic linux-headers-virtual linux-image-virtual linux-libc-dev linux-virtual nodejs openjdk-8-jre openjdk-8-jre-headless tzdata
9 upgraded, 4 newly installed, 0 to remove and 21 not upgraded.
Need to get 81.4 MB of archives.
After this operation, 168 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
[...]
done
root@bbb2:~# # Mettre à jour tout ce qui touche à bbb:
root@bbb2:~# bash bbb-install.sh -w -g -v bionic-24 -s bbb.afpy.org
root@bbb2:~# # Reboot
root@bbb2:~# systemctl reboot

Puis après le redémarrage:

root@bbb2:~# # Vérifier la conf bbb
root@bbb2:~# bbb-conf --check
[...]
# Potential problems described below

# Warning: You have this server defined for https, but in
#
#   /etc/bigbluebutton/nginx/sip.nginx
#
#  did not find the use of https in definition for proxy_pass
#
#            proxy_pass http://46.226.104.113:5066;
#

# Warning: You have this server defined for https, but in
#
#   /etc/bigbluebutton/nginx/sip.nginx
#
#  did not find the use of port 7443 in definition for proxy_pass
#
#            proxy_pass http://46.226.104.113:5066;
#

#
# Kurento will try to connect to 10.0.3.66 but FreeSWITCH is listening on 46.226.104.113 for port 5066
#
# To fix, run the commands
#
# sudo yq w -i /usr/local/bigbluebutton/bbb-webrtc-sfu/config/default.yml freeswitch.sip_ip 46.226.104.113
# sudo chown bigbluebutton:bigbluebutton /usr/local/bigbluebutton/bbb-webrtc-sfu/config/default.yml
#

J’ai modifié /etc/bigbluebutton/nginx/sip.nginx pour utiliser proxy_pass https://46.226.104.113:7443 et appliqué la seconde modification relative au fichier de conf /usr/local/bigbluebutton/bbb-webrtc-sfu/config/default.yml.

J’ai testé BBB en lançant une conf et en l’enregistrant. Une fois la réunion terminée, l’enregistrement est bien apparu dans l’interface et j’ai pu le visionner.

systemctl --failed ne retourne qu’une unité en erreur: systemd-growfs@-.service.

Le filtrage réseau est en place: les ports TCP 5060/5066/5090/7443/8888 ne sont bien pas accessibles depuis internet.

Merci @pilou !

(Sympa le apt install uniquement des paquets venant d’Ubuntu !)

1 « J'aime »

Après avoir vérifié qu’il n’y avait pas de meeting en cours:

# wget -qO- "https://bbb.afpy.org/bigbluebutton/api/getMeetings?checksum=$CHECKSUM" | xmlstarlet sel -I -t -v "count(//meeting)"
0

j’ai mis à jour les paquets Ubuntu et redémarré le serveur:

# apt install $(aptitude search -F '%p' '?narrow(?upgradable, (?origin(Ubuntu)))')
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  linux-headers-4.15.0-176 linux-headers-4.15.0-176-generic linux-image-4.15.0-176-generic linux-modules-4.15.0-176-generic
Suggested packages:
  git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn fdutils linux-doc-4.15.0
  | linux-source-4.15.0 linux-tools fcgiwrap nginx-doc ssl-cert python2.7-doc binfmt-support python3.6-doc
The following NEW packages will be installed:
  linux-headers-4.15.0-176 linux-headers-4.15.0-176-generic linux-image-4.15.0-176-generic linux-modules-4.15.0-176-generic
The following packages will be upgraded:
  git git-man gzip klibc-utils libfribidi0 libkeyutils1 libklibc liblzma5 libnginx-mod-http-geoip libnginx-mod-http-image-filter
  libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream libpython2.7 libpython2.7-minimal libpython2.7-stdlib libpython3.6
  libpython3.6-dev libpython3.6-minimal libpython3.6-stdlib linux-headers-generic linux-headers-virtual linux-image-virtual linux-libc-dev
  linux-virtual nginx nginx-common nginx-core nodejs python2.7 python2.7-minimal python3.6 python3.6-dev python3.6-minimal python3.6-venv rsync
  tcpdump ubuntu-advantage-tools xz-utils zlib1g zlib1g-dev
41 upgraded, 4 newly installed, 0 to remove and 8 not upgraded.
[...]
# systemctl reboot

Au reboot les services ne semblaient avoir rencontré de problème particulier:

# systemctl --failed
  UNIT                     LOAD   ACTIVE SUB    DESCRIPTION                                                                                      
● systemd-growfs@-.service loaded failed failed Grow File System on /    

et la requête à l’API bbb ne retourne pas d’erreur.
La sortie de bbb-conf --status semble également ok:

nginx —————————————————► [✔ - active]
freeswitch ————————————► [✔ - active]
redis-server ——————————► [✔ - active]
bbb-apps-akka —————————► [✔ - active]
bbb-fsesl-akka ————————► [✔ - active]
mongod ————————————————► [✔ - active]
bbb-html5 —————————————► [✔ - active]
bbb-webrtc-sfu ————————► [✔ - active]
kurento-media-server ——► [✔ - active]
bbb-html5-backend@1 ———► [✔ - active]
bbb-html5-backend@2 ———► [✔ - active]
bbb-html5-frontend@1 ——► [✔ - active]
bbb-html5-frontend@2 ——► [✔ - active]
etherpad ——————————————► [✔ - active]
bbb-web ———————————————► [✔ - active]
3 « J'aime »

Après avoir vérifié qu’il n’y avait pas de meeting en cours:

# wget -qO- "https://bbb.afpy.org/bigbluebutton/api/getMeetings?checksum=$CHECKSUM" | xmlstarlet sel -I -t -v "count(//meeting)"
0

J’ai mis à jour les paquets ayant pour origine la distribution Ubuntu:

# apt install $(aptitude search -F '%p' '?narrow(?upgradable, (?origin(Ubuntu)))')
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  linux-headers-4.15.0-180 linux-headers-4.15.0-180-generic linux-image-4.15.0-180-generic linux-modules-4.15.0-180-generic
Suggested packages:
  bash-doc anacron checksecurity pinentry-gnome3 tor debsig-verify debian-keyring ghostscript-x git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk
  gitweb git-cvs git-mediawiki git-svn parcimonie xloadimage scdaemon imagemagick-doc autotrace cups-bsd | lpr | lprng enscript gimp gnuplot grads graphviz hp2xx html2ps
  libwmf-bin mplayer povray radiance sane-utils texlive-base-bin transfig ufraw-batch xdg-utils glibc-doc cups-common libcurl4-doc libidn11-dev libkrb5-dev libldap2-dev
  librtmp-dev libssh2-1-dev libssl-dev bzr inkscape libjxr-tools lm-sensors fdutils linux-doc-4.15.0 | linux-source-4.15.0 linux-tools needrestart-session | libnotify-bin
  iucode-tool iw | wireless-tools keychain libpam-ssh monkeysphere ssh-askpass molly-guard rssh rsyslog-mysql | rsyslog-pgsql rsyslog-doc rsyslog-gnutls rsyslog-gssapi
  rsyslog-relp
Recommended packages:
  bash-completion
The following NEW packages will be installed:
  linux-headers-4.15.0-180 linux-headers-4.15.0-180-generic linux-image-4.15.0-180-generic linux-modules-4.15.0-180-generic
The following packages will be upgraded:
  bash cron curl dbus dbus-user-session dirmngr distro-info-data dpkg dpkg-dev ghostscript git git-man gnupg gnupg-agent gnupg-l10n gnupg-utils gpg gpg-agent
  gpg-wks-client gpg-wks-server gpgconf gpgsm gpgv imagemagick imagemagick-6-common imagemagick-6.q16 libc-bin libc-dev-bin libc6 libc6-dev libcups2 libcupsimage2
  libcurl3-gnutls libcurl4 libcurl4-openssl-dev libdbus-1-3 libdpkg-perl libgs9 libgs9-common libldap-2.4-2 libldap-common libmagickcore-6.q16-3
  libmagickcore-6.q16-3-extra libmagickwand-6.q16-3 libmysqlclient20 libnss3 libpcre16-3 libpcre3 libpcre3-dev libpcre32-3 libpcrecpp0v5 libpq5 libsensors4 libsepol1
  libsqlite3-0 libssl1.0.0 libssl1.1 libtiff5 libxml2 libxml2-dev linux-headers-generic linux-headers-virtual linux-image-virtual linux-libc-dev linux-virtual locales
  multiarch-support needrestart networkd-dispatcher openssh-client openssh-server openssh-sftp-server openssl rsyslog ubuntu-advantage-tools
75 upgraded, 4 newly installed, 0 to remove and 18 not upgraded.
Need to get 76.2 MB of archives.
After this operation, 168 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
[...]

puis les paquets mongodb (en fait l’update de bbb doit s’en occuper):

# apt install $(aptitude search -F '%p' '?narrow(?upgradable, (?origin(mongodb)))')

puis big blue button:

# bash 2022-06-03_bbb-install.sh -w -g -v bionic-24 -s bbb.afpy.org

redémarré le serveur et enfin vérifié que les services tournaient correctement:

  • :white_check_mark: la sortie desystemctl --failed ne mentionne que growfs
  • :white_check_mark: la sortie de bbb-conf --status est ok
  • :white_check_mark: authentification au service bbb
  • :white_check_mark:démarrage d’une conférence puis enregistrement
  • :white_check_mark: visionnage de l’enregistrement
1 « J'aime »

Je viens de procéder à une mise à jour puis à un redémarrage du serveur en suivant la procédure mentionnée ci-dessus. Rien de particulier à signaler. J’ai téléchargé et utilisé la dernière version (pour 2.4) de bbb-install.sh (il n’y a pas de changement comparé avec la version précédente).

Je note qu’il est possible de mettre à jour big blue button en 2.5 :slight_smile:

1 « J'aime »