Project

General

Profile

Demande #3958

Demande #3799: Migrer le parc des machines et VM vers Debian Buster

Migrer vers Debian Buster la vm photos

Added by Christian P. Momon about 2 years ago. Updated almost 2 years ago.

Status:
Fermé
Priority:
Normale
Assignee:
Christian P. Momon
Category:
-
Target version:
Start date:
10/21/2019
Due date:
% Done:

100%

Estimated time:
Difficulté:
2 Facile

Description

Ticket de suivi de la migration du SI April vers Debian Buster (#3799).

History

#1

Updated by Christian P. Momon about 2 years ago

  • Status changed from Nouveau to Confirmé
  • Assignee set to Christian P. Momon
#2

Updated by Christian P. Momon about 2 years ago

  • Status changed from Confirmé to En cours de traitement
#3

Updated by Christian P. Momon about 2 years ago

  • Status changed from En cours de traitement to Résolu
  • % Done changed from 0 to 100

Migration de la vm photos :

  • # Préliminaires.
  • pose d'un point d'arrêt via VirtManager
  • apt-get update ; apt-get upgrade ; apt-get dist-upgrade
  • apt-get autoremove
  • # Basculement des dépôts.
  • sed -i 's/stretch/buster/g' /etc/apt/sources.list
  • sed -i 's/stretch/buster/g' /etc/apt/sources.list.d/april.list
  • sed -i 's/stretch/buster/g' /etc/apt/sources.list.d/easter-eggs.list
  • apt-get update
  • # Mise à jour étape 1.
  • apt-get upgrade
  • # Mise à jour étape 2.
  • apt-get dist-upgrade :
    • j'ai refusé la modification de fichiers…
  • reboot : tout semble ok

À l'autoremove, mariadb est désinstallé. Suffit de faire un apt-get install mariadb, rebooter et hop tout semble bon.

#4

Updated by François Poulain about 2 years ago

Pb nagios :

MySQL    UNKNOWN     2019-11-02 01:22:43     0d 0h 12m 25s     4/4     NRPE: Unable to read output

Diagnostique:

(April) root@photos:/etc[master]# git grep check_mysql
nagios-plugins/config/mysql.cfg:# 'check_mysql' command definition
...

(April) root@photos:/etc[master]# /usr/lib/nagios/plugins/check_mysql
/usr/lib/nagios/plugins/check_mysql: error while loading shared libraries: libmariadb.so.3: cannot open shared object file: No such file or directory

Solution :

(April) root@photos:/etc[master]# apt install libmariadb3
...
(April) root@photos:/etc[master]# /usr/lib/nagios/plugins/check_mysql
Uptime: 948  Threads: 8  Questions: 2115  Slow queries: 0  Opens: 73  Flush tables: 1  Open tables: 67  Queries per second avg: 2.231|Connections=169c;;; Open_files=129;;; Open_tables=67;;; Qcache_free_memory=15958768;;; Qcache_hits=765c;;; Qcache_inserts=490c;;; Qcache_lowmem_prunes=0c;;; Qcache_not_cached=257c;;; Qcache_queries_in_cache=239;;; Queries=2115c;;; Questions=2115c;;; Table_locks_waited=1c;;; Threads_connected=1;;; Threads_running=6;;; Uptime=948c;;;

#5

Updated by Christian P. Momon about 2 years ago

Passage à php7.3 :

apt-get install libapache2-mod-php7.3 php7.3-mysql
a2dismod php7.0 
a2enmod php7.3
apt-get remove libapache2-mod-php7.0 php7.0-*
apt-get autoremove
systemctl restart apache2

Faire un tail -f sur les logs Apache du site et se promener sur le site, vérifier l'absence d'erreur.

#6

Updated by Christian P. Momon about 2 years ago

En cherchant à ajouter des images, message d'erreur « la bibliothèque GD est manquante ».

Solution : apt-get install imagemagick php7.3-gd

#7

Updated by Quentin Gibeaux almost 2 years ago

  • Status changed from Résolu to Fermé

Also available in: Atom PDF