Projet

Général

Profil

MàJ Luna vers Maia

Ajouté par Antoine TIXIER il y a 3 mois

Bonjour,

Juste pour faire un petit retour sur cette upgrade, j'ai rencontré les erreurs suivantes lors de mes tests :

Setting up xivo-confd (2024.05.02+20240522.153522.7d94b9bc) ...
Job for xivo-confd.service failed because the control process exited with error code.

See "systemctl status xivo-confd.service" and "journalctl -xeu xivo-confd.service" for details.

invoke-rc.d: initscript xivo-confd, action "restart" failed.
× xivo-confd.service - xivo-confd server
     Loaded: loaded (]8;;file://xivo/lib/systemd/system/xivo-confd.service/lib/systemd/system/xivo-confd.service]8;;; enabled; preset: enabled)
     Active: failed (Result: exit-code) since Sun 2024-07-28 15:40:27 CEST; 8ms ago
   Duration: 2w 5d 21h 59min 43.382s
    Process: 4033608 ExecStartPre=/usr/bin/install -d -o www-data -g www-data /var/run/xivo-confd (code=exited, status=0/SUCCESS)
    Process: 4033609 ExecStart=/usr/bin/xivo-confd (code=exited, status=1/FAILURE)
        CPU: 757ms

Jul 28 15:40:26 xivo systemd[1]: Starting xivo-confd.service - xivo-confd server...
Jul 28 15:40:27 xivo xivo-confd[4033609]: /usr/lib/python3/dist-packages/xivo/xivo_helpers.py:27: FutureWarning: Possible nested set at position 1
Jul 28 15:40:27 xivo xivo-confd[4033609]:   find_asterisk_pattern_char = re.compile('[[NXZ!.]').search
Jul 28 15:40:27 xivo systemd[1]: xivo-confd.service: Control process exited, code=exited, status=1/FAILURE
Jul 28 15:40:27 xivo systemd[1]: xivo-confd.service: Failed with result 'exit-code'.
Jul 28 15:40:27 xivo systemd[1]: Failed to start xivo-confd.service - xivo-confd server.
dpkg: error processing package xivo-confd (--configure):
 installed xivo-confd package post-installation script subprocess returned error exit status 1
Setting up console-setup (1.221) ...
Setting up unar (1.10.7+ds1+really1.10.1-2+b2) ...
Setting up libwww-perl (6.68-1) ...
Setting up dnsutils (1:9.18.28-1~deb12u2) ...
Setting up linux-image-amd64 (6.1.99-1) ...
Setting up librrds-perl:amd64 (1.7.2-4+b8) ...
Setting up gcc (4:12.2.0-3) ...
Setting up linux-compiler-gcc-12-x86 (6.1.99-1) ...
dpkg: dependency problems prevent configuration of xivo-base:
 xivo-base depends on xivo-confd; however:
  Package xivo-confd is not configured yet.

dpkg: error processing package xivo-base (--configure):
 dependency problems - leaving unconfigured
Setting up g++ (4:12.2.0-3) ...
Setting up linux-headers-6.1.0-23-amd64 (6.1.99-1) ...
/etc/kernel/header_postinst.d/dkms:
dkms: running auto installation service for kernel 6.1.0-23-amd64.
dkms: autoinstall for kernel: 6.1.0-23-amd64.
Setting up rrdtool (1.7.2-4+b8) ...
Setting up xivo-fetchfw (2024.05.02+20240522.162845.770a1c1) ...
Setting up xivo-libprovd (1:2024.05.02+20240522.164806.168f8ed) ...
Setting up linux-headers-amd64 (6.1.99-1) ...
dpkg: dependency problems prevent configuration of xivo:
 xivo depends on xivo-base (= 14:2024.05.04+20240613.083254.5a411b7); however:
  Package xivo-base is not configured yet.

dpkg: error processing package xivo (--configure):
 dependency problems - leaving unconfigured
Setting up munin (2.0.73-1) ...
Installing new version of config file /etc/munin/static/logo-h.png ...
Installing new version of config file /etc/munin/static/logo.png ...
Installing new version of config file /etc/munin/static/style-new.css ...
Installing new version of config file /etc/munin/templates/partial/footer.tmpl ...
Setting up xivo-provd (1:2024.05.02+20240522.164806.168f8ed) ...
Setting up xivo-monitoring (2024.05.02+20240522.164132.dd83419) ...
Installing new version of config file /etc/munin/templates_pf/logo.png ...
Generating configuration
Setting up tasksel (3.73) ...
Setting up tasksel-data (3.73) ...
Setting up task-english (3.73) ...
Processing triggers for ca-certificates (20230311) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
Processing triggers for debianutils (5.7-0.5~deb12u1) ...
Processing triggers for libc-bin (2.36-9+deb12u7) ...
Processing triggers for sgml-base (1.31) ...
Setting up polkitd (122-3) ...
Creating group 'polkitd' with GID 996.

Creating user 'polkitd' (polkit) with UID 996 and GID 996.

Setting up packagekit (1.2.6-5) ...
dbus.service is not active, cannot reload.

invoke-rc.d: initscript dbus, action "force-reload" failed.
Failed to open connection to "system" message bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
Created symlink /etc/systemd/user/sockets.target.wants/pk-debconf-helper.socket → /usr/lib/systemd/user/pk-debconf-helper.socket.

Setting up software-properties-common (0.99.30-4.1~deb12u1) ...
Processing triggers for dictionaries-common (1.29.5) ...
ispell-autobuildhash: Processing 'american' dict.
ispell-autobuildhash: Processing 'british' dict.
Processing triggers for initramfs-tools (0.142) ...
update-initramfs: Generating /boot/initrd.img-6.1.0-23-amd64
W: No zstd in /usr/bin:/sbin:/bin, using gzip
Processing triggers for dbus (1.14.10-1~deb12u1) ...
Errors were encountered while processing:
 xivo-confd
 xivo-base
 xivo
E: Sub-process /usr/bin/dpkg returned an error code (1)

xivo-confd était bien up avant l'upgrade, mais n'a pas pu restart, les uns dependent des autres, et pourtant à la fin de l'installation, xivo-confd est bien démarré et fonctionnel (avec Warning malgré tout):

Serait il plus sage de faire un dpkg-reconfigure post installation ?

root@xivo :~# systemctl status xivo-confd
● xivo-confd.service - xivo-confd server
     Loaded: loaded (/lib/systemd/system/xivo-confd.service; enabled; preset: enabled)
     Active: active (running) since Sun 2024-07-28 17:07:32 CEST; 18h ago
    Process: 679 ExecStartPre=/usr/bin/install -d -o www-data -g www-data /var/run/xivo-confd (code=exited, status=0/SUCCESS)
    Process: 695 ExecStart=/usr/bin/xivo-confd (code=exited, status=0/SUCCESS)
   Main PID: 1429 (xivo-confd)
      Tasks: 23 (limit: 9476)
     Memory: 118.0M
        CPU: 55.759s
     CGroup: /system.slice/xivo-confd.service
             └─1429 /usr/bin/python3 /usr/bin/xivo-confd

Jul 28 17:07:31 xivo systemd[1]: Starting xivo-confd.service - xivo-confd server...
Jul 28 17:07:32 xivo xivo-confd[695]: /usr/lib/python3/dist-packages/xivo/xivo_helpers.py:27: FutureWarning: Possible nested set at position 1
Jul 28 17:07:32 xivo xivo-confd[695]:   find_asterisk_pattern_char = re.compile('[[NXZ!.]').search
Jul 28 17:07:32 xivo systemd[1]: Started xivo-confd.service - xivo-confd server.

Egalement, le script de collation de la base m'indique une erreur pour template0

root@xivo:~# ./maiaDB-collation.sh
Rereshing collation for db: spagobi
NOTICE:  la version n'a pas changé
Rereshing collation for db: call_quality_stats
NOTICE:  la version n'a pas changé
Rereshing collation for db: mattermost
NOTICE:  la version n'a pas changé
Rereshing collation for db: template0
ERREUR:  invalid collation version change
Rereshing collation for db: template1
NOTICE:  la version n'a pas changé
Rereshing collation for db: postgres
NOTICE:  la version n'a pas changé
Rereshing collation for db: asterisk
NOTICE:  la version n'a pas changé
Rereshing collation for db: usm
NOTICE:  la version n'a pas changé
Rereshing collation for db: recording
NOTICE:  la version n'a pas changé

Tout est up et fonctionnel dans les bonnes versions :

root@xivo:~# docker ps -a
CONTAINER ID   IMAGE                                            COMMAND                   CREATED        STATUS                  PORTS                                                                                                                 NAMES
7f0ad83303cc   xivoxc/xuc:2024.05.latest                        "bin/xuc_docker"          19 hours ago   Up 19 hours             0.0.0.0:8090->9000/tcp, :::8090->9000/tcp                                                                             xivocc-xuc-1
261a5ed15387   xivoxc/mattermost:2024.05.latest                 "/entrypoint.sh matt…"    20 hours ago   Up 19 hours (healthy)   8000/tcp                                                                                                              xivocc-mattermost-1
b402710447d3   xivoxc/xucmgt:2024.05.latest                     "bin/xucmgt_docker"       20 hours ago   Up 19 hours             0.0.0.0:8070->9000/tcp, :::8070->9000/tcp                                                                             xivocc-xucmgt-1
113017dbcb0a   xivoxc/xivo-full-stats:2024.05.latest            "/opt/docker/bin/xiv…"    20 hours ago   Up 19 hours                                                                                                                                   xivocc-xivo_stats-1
8ae807383308   xivoxc/recording-server:2024.05.latest           "bin/recording-serve…"    20 hours ago   Up 19 hours             0.0.0.0:9400->9000/tcp, :::9400->9000/tcp                                                                             xivocc-recording_server-1
b6eca771ad2c   xivoxc/pack-reporting:2024.05.latest             "/bin/sh -c 'echo \"W…"   20 hours ago   Up 19 hours                                                                                                                                   xivocc-pack_reporting-1
500a37f36cef   xivoxc/xivo-usage-collector:2024.05.latest       "/entrypoint.sh tele…"    20 hours ago   Up 19 hours             8092/udp, 8125/udp, 8094/tcp                                                                                          xivo-usage_collector-1
63d45c22eedf   xivoxc/xivo-usage-writer:2024.05.latest          "/entrypoint.sh tele…"    20 hours ago   Up 19 hours             8092/udp, 8125/udp, 8094/tcp                                                                                          xivo-usage_writer-1
fa52003f4a7f   xivoxc/xivo-switchboard-reports:2024.05.latest   "bin/xivo-switchboar…"    20 hours ago   Up 19 hours             127.0.0.1:9510->9510/tcp                                                                                              xivo-switchboard_reports-1
85594abf34fc   xivoxc/xivo-outcall:2024.05.latest               "bin/xivo-outcall-do…"    20 hours ago   Up 19 hours                                                                                                                                   xivo-outcall-1
3bf618367a8c   xivoxc/xivo-ctid:2024.05.latest                  "/usr/local/bin/dock…"    20 hours ago   Up 19 hours                                                                                                                                   xivo-ctid-1
7e697bb5e0ad   xivoxc/xivo-agid:2024.05.latest                  "/docker-entrypoint.…"    20 hours ago   Up 19 hours (healthy)   127.0.0.1:4573->4573/tcp                                                                                              xivo-agid-1
7c40d7dd1f2c   xivoxc/config-mgt:2024.05.latest                 "bin/config-mgt-dock…"    20 hours ago   Up 19 hours             0.0.0.0:9100->9000/tcp, :::9100->9000/tcp                                                                             xivo-config_mgt-1
01797c7e50c6   xivoxc/xivo-proxy:2024.05.latest                 "/docker-entrypoint.…"    20 hours ago   Up 19 hours                                                                                                                                   xivo-proxy-1
cc304234202a   xivoxc/xivo-webi:2024.05.latest                  "docker-php-entrypoi…"    20 hours ago   Up 19 hours             9000/tcp, 0.0.0.0:9090->9090/tcp, :::9090->9090/tcp                                                                   xivo-webi-1
b98c6548dadc   xivoxc/xivo-nginx:2024.05.latest                 "/usr/local/bin/dock…"    20 hours ago   Up 19 hours             0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp, 0.0.0.0:8443->8443/tcp, :::8443->8443/tcp   xivo-nginx-1
a988237718fb   xivoxc/xivo-confgend:2024.05.latest              "/docker-entrypoint.…"    20 hours ago   Up 19 hours (healthy)   127.0.0.1:8669->8669/tcp                                                                                              xivo-confgend-1
e8404ce74afb   xivoxc/xivo-db:2024.05.latest                    "docker-entrypoint.s…"    20 hours ago   Up 19 hours             0.0.0.0:5432->5432/tcp, :::5432->5432/tcp                                                                             xivo-db-1
1a9f9a5f8556   xivoxc/rabbitmq:2024.05.latest                   "docker-entrypoint.s…"    20 hours ago   Up 19 hours                                                                                                                                   xivo-rabbitmq-1


Réponses (2)

RE: MàJ Luna vers Maia - Ajouté par Antoine TIXIER il y a 3 mois

L'erreur liée à template0 est un problème à étudier dans mon cas, qui ne concerne que la mise à jour Postgre.

Pas d'incidence directe sur la MàJ Xivo.

https://www.postgresql.org/docs/current/manage-ag-templatedbs.html

RE: MàJ Luna vers Maia - Ajouté par Laurent MEILLER il y a 3 mois

Merci Antoine pour ce retour, on va regarder l'impact de cette erreur et si celà nécessite un fix.

    (1-2/2)