Project

General

Profile

Actions

Demande #6239

closed

Migrer la VM spip à bookworm

Added by Pierre-Louis Bonicoli 10 months ago. Updated 9 months ago.

Status:
Fermé
Priority:
Normale
Category:
-
Target version:
Start date:
09/11/2023
Due date:
% Done:

90%

Estimated time:
Difficulté:
2 Facile

Description

Je suis ok pour que vous fassiez la migration dès que possible.
Avec la création d'un snapshot qui permettra de restaurer en cas de souci.

Mettre à jour la VM spip (hyperviseur: calamus) à Debian 12:
- [ ] snapshot de la VM spip (hyperviseur: calamus)
- [ ] mise à jour Debian

Actions #1

Updated by Pierre-Louis Bonicoli 10 months ago

  • Status changed from Nouveau to En cours de traitement
(April) root@calamus:~# virsh snapshot-list --domain spip
 Name   Creation Time   State
-------------------------------

(April) root@calamus:~# virsh domblklist spip
 Target   Source
----------------------------------------------------
 vda      /var/lib/libvirt/calamus/spip.qcow2
 vdb      /var/lib/libvirt/calamus/spip-data.qcow2
 sda      -

(April) root@calamus:~# ls -lh /var/lib/libvirt/calamus/spip.qcow2 /var/lib/libvirt/calamus/spip-data.qcow2
-rw------- 1 libvirt-qemu libvirt-qemu 21G Sep 11 21:35 /var/lib/libvirt/calamus/spip-data.qcow2
-rw------- 1 libvirt-qemu libvirt-qemu 22G Sep 11 21:35 /var/lib/libvirt/calamus/spip.qcow2
(April) root@calamus:~# df -h /var/lib/libvirt/calamus
Filesystem      Size  Used Avail Use% Mounted on
/dev/drbd1      985G  603G  337G  65% /var/lib/libvirt/calamus
(April) root@calamus:~# virsh suspend spip # suspend avant de créer la snapshot
Domain 'spip' suspended
(April) root@calamus:~# virsh snapshot-create spip --live
error: Operation not supported: live snapshot creation is supported only during full system snapshots
(April) root@calamus:~# virsh snapshot-create spip 
Domain snapshot 1694470129 created
(April) root@calamus:~# virsh snapshot-list --domain spip
 Name         Creation Time               State
--------------------------------------------------
 1694470129   2023-09-11 22:08:49 +0000   paused
(April) root@calamus:~# virsh resume spip 
Domain 'spip' resumed
Actions #2

Updated by Pierre-Louis Bonicoli 10 months ago

Le plugin urls_pages utilisé par le site libreavous n'est pas compatible avec spip 4.2 (n'a pas de release compatible avec cette version) :

[php:error] [pid 724]PHP Fatal error:  Uncaught Error: Call to undefined function urls_propres_dist() in /var/lib/spip/sites/www.libreavous.org/plugins/auto/urls_pages/v1.0.12/urls/propres.php:72
Stack trace:
#0 /usr/share/spip/plugins-dist/urls_etendues/urls/libres.php(59): urls_propres()
#1 /usr/share/spip/ecrire/inc/urls.php(114): urls_libres_decoder_url_dist()
#2 /usr/share/spip/ecrire/public/assembler.php(116): urls_decoder_url()
#3 /usr/share/spip/ecrire/public.php(117): assembler()
#4 /usr/share/spip/spip.php(20): include('...')
#5 /usr/share/spip/index.php(3): include('...')
#6 {main}
  thrown in /var/lib/spip/sites/www.libreavous.org/plugins/auto/urls_pages/v1.0.12/urls/propres.php on line 72

Utiliser la dernière version disponible du plugin (compatible spip 4.0) ne semble pas corriger l'erreur, j'ai restauré le snapshot de la VM fait avant migration.

Actions #3

Updated by Pierre-Louis Bonicoli 10 months ago

  • % Done changed from 0 to 90

Après désactivation du plugin incompatible, la mise à jour a été faite sans rencontrer d'autre problème.

Actions #4

Updated by Quentin Gibeaux 10 months ago

  • Target version changed from Septembre 2023 to Octobre 2023
Actions #5

Updated by Pierre-Louis Bonicoli 10 months ago

Le snapshot de la VM a été supprimé:

virsh snapshot-delete --domain spip 1694728180

Actions #6

Updated by Pierre-Louis Bonicoli 9 months ago

  • Status changed from En cours de traitement to Résolu
Actions #7

Updated by Quentin Gibeaux 9 months ago

  • Status changed from Résolu to Fermé
Actions

Also available in: Atom PDF