Mon serveur YunoHost
**Matériel: RaspberryPi 400 à la maison
**Version de YunoHost: 11.0.9.7
J’ai accès à mon serveur : En SSH | Par la webadmin | En direct avec un clavier/écran | …
Êtes-vous dans un contexte particulier ou avez-vous effectué des modificiations particulières sur votre instance ? : non
Description du problème
Bonjour,
Je viens de faire une installation toute fraiche pour un nouveau serveur.
Tout se passe bien, et une fois l’utilisateur réglé, la mise en place des SSL Let’s encrypt, je vais mettre à jour toutes les paquets du système et j’obtiens cette erreur
https://paste.yunohost.org/raw/ewobuyayir
Cela bloque tout.
Comme demandé par l’aide, j’ai fait en SSH
sudo dpkg --configure -a
sudo apt install --fix-broken
Mais cela n’a rien réglé.
Aleks
August 19, 2022, 10:58am
2
2022-08-19 05:36:10,144: INFO - + Setting up tzdata (2021a-1+deb11u5) ...
2022-08-19 05:36:10,326: WARNING - debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
2022-08-19 05:36:10,331: WARNING - dpkg: error processing package tzdata (--configure):
2022-08-19 05:36:10,332: WARNING - installed tzdata package post-installation script subprocess returned error exit status 1
2022-08-19 05:36:10,445: WARNING - Errors were encountered while processing:
2022-08-19 05:36:10,446: WARNING - tzdata
Hmokay ? Et tu peux partager le retour de dpkg --configure -a
aussi ?
Et de dpkg --audit
?
Et de lsof -i /var/cache/debconf/config.dat
?
Bonjour,et merci de ton aide,
Voilà les retours
dpkg --configure -a
Setting up tzdata (2021a-1+deb11u5) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing package tzdata (--configure):
installed tzdata package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent processing triggers for ntp:
ntp depends on tzdata; however:
Package tzdata is not configured yet.
dpkg: error processing package ntp (--configure):
dependency problems - leaving triggers unprocessed
Errors were encountered while processing:
tzdata
ntp
dpkg --audit
The following packages are only half configured, probably due to problems
configuring them the first time. The configuration should be retried using
dpkg --configure <package> or the configure menu option in dselect:
tzdata time zone and daylight-saving time data
The following packages have been triggered, but the trigger processing
has not yet been done. Trigger processing can be requested using
dselect or dpkg --configure --pending (or dpkg --triggers-only):
ntp Network Time Protocol daemon and utility programs
lsof -i /var/cache/debconf/config.dat
lsof: unknown protocol name (/var/cache/debconf/config.dat) in: -i /var/cache/debconf/config.dat
lsof 4.93.2
latest revision: https://github.com/lsof-org/lsof
latest FAQ: https://github.com/lsof-org/lsof/blob/master/00FAQ
latest (non-formatted) man page: https://github.com/lsof-org/lsof/blob/master/Lsof.8
usage: [-?abhKlnNoOPRtUvVX] [+|-c c] [+|-d s] [+D D] [+|-E] [+|-e s] [+|-f[gG]]
[-F [f]] [-g [s]] [-i [i]] [+|-L [l]] [+m [m]] [+|-M] [-o [o]] [-p s]
[+|-r [t]] [-s [p:s]] [-S [t]] [-T [t]] [-u s] [+|-w] [-x [fl]] [--] [names]
Use the ``-h'' option to get more help information.
Aleks
August 19, 2022, 11:21am
4
My bad, la dernière commande n’était pas bonne. Il faut plutot faire:
sudo lsof -- /var/cache/debconf/config.dat
sudo lsof -- /var/cache/debconf/config.dat
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
dpkg-reco 697 root 4uW REG 179,2 44227 53902 /var/cache/debconf/config.dat
Je vais ajouter le résultat de
sudo apt install --fix-broken
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 20 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
Setting up tzdata (2021a-1+deb11u5) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another p
rocess: Resource temporarily unavailable
dpkg: error processing package tzdata (--configure):
installed tzdata package post-installation script subprocess returned error exi
t status 1
Errors were encountered while processing:
tzdata
E: Sub-process /usr/bin/dpkg returned an error code (1)
Aleks
August 19, 2022, 12:19pm
7
Mokay alors visiblement il y a un dpkg-reconfigure
coincé sur le système kekpart ?
Que raconte ps -ef --forest | grep dpkg -C5
?
ps -ef --forest | grep dpkg -C5
UID PID PPID C STIME TTY TIME CMD
admin 15065 15064 0 13:04 pts/0 00:00:00 -bash
admin 15205 15065 0 13:20 pts/0 00:00:00 \_ ps -ef --forest
admin 15206 15065 0 13:20 pts/0 00:00:00 \_ grep --color=auto dpkg -C5
Aleks
August 19, 2022, 12:24pm
9
le fronçage de sourcil s’intensifie
…
et ps -ef --forest | grep 697 -C5
?
Aleks
August 19, 2022, 12:25pm
10
Ah my bad, il faut faire sudo
devant ces commandes … donc :
sudo ps -ef --forest | grep dpkg -C5
sudo ps -ef --forest | grep dpkg -C5
redis 570 1 0 05:25 ? 00:01:12 /usr/bin/redis-server 127.0.0.1:6379
root 582 1 0 05:25 ? 00:00:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal
root 590 1 0 05:25 ? 00:00:10 /usr/bin/python3 /usr/bin/yunohost-api
root 591 1 0 05:25 ? 00:01:27 /usr/bin/python3 /usr/bin/fail2ban-server -xf start
root 600 1 0 05:25 tty8 00:00:00 /bin/sh -e /usr/lib/userconf-pi/userconf-service
root 697 600 0 05:25 tty8 00:00:00 \_ /usr/bin/perl -w /usr/sbin/dpkg-reconfigure -p critical keyboard-configuration
root 1095 697 0 05:25 tty8 00:00:00 \_ /bin/sh /var/lib/dpkg/info/keyboard-configuration.config reconfigure 1.205
root 1293 697 0 05:25 tty8 00:00:00 \_ whiptail --backtitle Package configuration --title Configuring keyboard-configuration --output-fd 11 --default-item English (US) --menu Please select the layout matching the keyboard for this machine. Keyboard layout: 21 72 11 -- English (US) English (US) - Cherokee English (US) - English (classic Dvorak) English (US) - English (Colemak) English (US) - English (Dvorak) English (US) - English (Dvorak, alt. intl.) English (US) - English (Dvorak, intl., with dead keys) English (US) - English (Dvorak, left-handed) English (US) - English (Dvorak, right-handed) English (US) - English (intl., with AltGr dead keys) English (US) - English (Macintosh) English (US) - English (Norman) English (US) - English (programmer Dvorak) English (US) - English (the divide/multiply keys toggle ... English (US) - English (US, alt. intl.) English (US) - English (US, euro on 5) English (US) - English (US, intl., with dead keys) English (US) - English (Workman) English (US) - English (Workman, intl., with dead keys) English (US) - Russian (US, phonetic) English (US) - Serbo-Croatian (US) Other
root 615 1 0 05:25 ? 00:00:00 wpa_supplicant -B -c/etc/wpa_supplicant/wpa_supplicant.conf -iwlan0
root 815 1 0 05:25 ? 00:00:00 /usr/bin/hciattach /dev/serial1 bcm43xx 3000000 flow -
root 826 1 0 05:25 ? 00:00:00 /usr/libexec/bluetooth/bluetoothd
root 906 1 0 05:25 ? 00:00:00 /usr/sbin/dhcpcd -w -q
--
root 15050 3366 0 13:04 ? 00:00:00 \_ sshd: admin [priv]
admin 15064 15050 0 13:04 ? 00:00:00 \_ sshd: admin@pts/0
admin 15065 15064 0 13:04 pts/0 00:00:00 \_ -bash
root 15242 15065 0 13:26 pts/0 00:00:00 \_ sudo ps -ef --forest
root 15248 15242 0 13:26 pts/0 00:00:00 | \_ ps -ef --forest
admin 15243 15065 0 13:26 pts/0 00:00:00 \_ grep --color=auto dpkg -C5
openldap 4635 1 0 05:28 ? 00:00:00 /usr/sbin/slapd -h ldap://127.0.0.1:389/ ldaps:/// ldapi:/// -g openldap -u openldap -F /etc/ldap/slapd.d
nslcd 4673 1 0 05:28 ? 00:00:00 /usr/sbin/nslcd
postsrsd 5119 1 0 05:28 ? 00:00:02 /usr/sbin/postsrsd -f 10001 -r 10002 -d hemmanuel.ynh.fr -s /etc/postsrsd.secret -a = -n 4 -N 4 -u postsrsd -l 127.0.0.1 -c /var/lib/postsrsd -Xdummy hemmanuel.ynh.fr dummy
mdns 5650 1 0 05:28 ? 00:00:15 /usr/bin/python3 /usr/bin/yunomdns
unscd 5770 1 0 05:28 ? 00:00:01 /usr/sbin/nscd -d
--
_rspamd 7571 7538 0 05:34 ? 00:00:00 \_ rspamd: rspamd_proxy process (localhost:11332)
_rspamd 7572 7538 0 05:34 ? 00:00:08 \_ rspamd: controller process (localhost:11334)
_rspamd 10890 7538 0 07:06 ? 00:00:03 \_ rspamd: normal process (localhost:11333)
_rspamd 10895 7538 0 07:06 ? 00:00:02 \_ rspamd: normal process (localhost:11333)
mysql 8449 1 0 05:35 ? 00:00:10 /usr/sbin/mariadbd
dnsmasq 8700 1 0 05:35 ? 00:00:00 /usr/sbin/dnsmasq -x /run/dnsmasq/dnsmasq.pid -u dnsmasq -7 /etc/dnsmasq.d,.dpkg-dist,.dpkg-old,.dpkg-new --local-service --trust-anchor=.,20326,8,2,e06d44b80b8f1d39a95c0b0d7c65d08458e880409bbc683457104237c7f8ec8d
ntp 13648 1 0 11:25 ? 00:00:01 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 121:127
Désolé, je découvre Yunohost, jen’ai pas encore tous les bons réflexes.
Aleks
August 19, 2022, 12:28pm
13
emmanuel.h:
root 600 1 0 05:25 tty8 00:00:00 /bin/sh -e /usr/lib/userconf-pi/userconf-service
root 697 600 0 05:25 tty8 00:00:00 \_ /usr/bin/perl -w /usr/sbin/dpkg-reconfigure -p critical keyboard-configuration
root 1095 697 0 05:25 tty8 00:00:00 \_ /bin/sh /var/lib/dpkg/info/keyboard-configuration.config reconfigure 1.205
root 1293 697 0 05:25 tty8 00:00:00 \_ whiptail --backtitle Package configuration --title Configuring keyboard-configuration --output-fd 11 --default-item English (US) --menu Please select the layout matching the keyboard for this machine. Keyboard layout: 21 72 11 -- English (US) English (US) - Cherokee English (US) - English (classic Dvorak) English (US) - English (Colemak) English (US) - English (Dvorak) English (US) - English (Dvorak, alt. intl.) English (US) - English (Dvorak, intl., with dead keys) English (US) - English (Dvorak, left-handed) English (US) - English (Dvorak, right-handed) English (US) - English (intl., with AltGr dead keys) English (US) - English (Macintosh) English (US) - English (Norman) English (US) - English (programmer Dvorak) English (US) - English (the divide/multiply keys toggle ... English (US) - English (US, alt. intl.) English (US) - English (US, euro on 5) English (US) - English (US, intl., with dead keys) English (US) - English (Workman) English (US) - English (Workman, intl., with dead keys) English (US) - Russian (US, phonetic) English (US) - Serbo-Croatian (US) O
Bon du coup c’est ce truc là qui bloque … un truc quelque part genre une interface pour configurer Raspberry Pi qui demande quelle langue utiliser pour le clavier … Est-ce que ça te parle ?
Mais alors pas du tout.
Je ne vois pas d’où ça peut venir.
Il y a moyen de l’arrêter?
Aleks
August 19, 2022, 12:30pm
15
Hmokay ben c’est ptete bien un bug dans le code des gens de RPi ou autre dans ce cas … On peut tuer le process, c’est sans doute pas très critique:
sudo kill -9 697
Ensuite, sudo dpkg --configure -a
VOilà ce que donne
sudo dpkg --configure -a
Setting up tzdata (2021a-1+deb11u5) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing package tzdata (--configure):
installed tzdata package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent processing triggers for ntp:
ntp depends on tzdata; however:
Package tzdata is not configured yet.
dpkg: error processing package ntp (--configure):
dependency problems - leaving triggers unprocessed
Errors were encountered while processing:
tzdata
ntp
Aleks
August 19, 2022, 12:33pm
17
@_@
Et tu as bien fait le sudo kill -9 697
avant ?
Si oui alors regardons de-nouveau ce que raconte sudo ps -ef --forest | grep dpkg -C5
Oui j’avais fait la commande, qui n’a rienrenvoyé
sudo ps -ef --forest | grep dpkg -C5
root 15050 3366 0 13:04 ? 00:00:00 \_ sshd: admin [priv]
admin 15064 15050 0 13:04 ? 00:00:00 \_ sshd: admin@pts/0
admin 15065 15064 0 13:04 pts/0 00:00:00 \_ -bash
root 16148 15065 0 13:34 pts/0 00:00:00 \_ sudo ps -ef --forest
root 16150 16148 0 13:34 pts/0 00:00:00 | \_ ps -ef --forest
admin 16149 15065 0 13:34 pts/0 00:00:00 \_ grep --color=auto dpkg -C5
openldap 4635 1 0 05:28 ? 00:00:00 /usr/sbin/slapd -h ldap://127.0.0.1:389/ ldaps:/// ldapi:/// -g openldap -u openldap -F /etc/ldap/slapd.d
nslcd 4673 1 0 05:28 ? 00:00:00 /usr/sbin/nslcd
postsrsd 5119 1 0 05:28 ? 00:00:02 /usr/sbin/postsrsd -f 10001 -r 10002 -d hemmanuel.ynh.fr -s /etc/postsrsd.secret -a = -n 4 -N 4 -u postsrsd -l 127.0.0.1 -c /var/lib/postsrsd -Xdummy hemmanuel.ynh.fr dummy
mdns 5650 1 0 05:28 ? 00:00:15 /usr/bin/python3 /usr/bin/yunomdns
unscd 5770 1 0 05:28 ? 00:00:01 /usr/sbin/nscd -d
--
_rspamd 7571 7538 0 05:34 ? 00:00:00 \_ rspamd: rspamd_proxy process (localhost:11332)
_rspamd 7572 7538 0 05:34 ? 00:00:08 \_ rspamd: controller process (localhost:11334)
_rspamd 10890 7538 0 07:06 ? 00:00:03 \_ rspamd: normal process (localhost:11333)
_rspamd 10895 7538 0 07:06 ? 00:00:03 \_ rspamd: normal process (localhost:11333)
mysql 8449 1 0 05:35 ? 00:00:10 /usr/sbin/mariadbd
dnsmasq 8700 1 0 05:35 ? 00:00:00 /usr/sbin/dnsmasq -x /run/dnsmasq/dnsmasq.pid -u dnsmasq -7 /etc/dnsmasq.d,.dpkg-dist,.dpkg-old,.dpkg-new --local-service --trust-anchor=.,20326,8,2,e06d44b80b8f1d39a95c0b0d7c65d08458e880409bbc683457104237c7f8ec8d
ntp 13648 1 0 11:25 ? 00:00:01 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 121:127
root 15317 1 0 13:31 tty8 00:00:00 /bin/sh -e /usr/lib/userconf-pi/userconf-service
root 15335 15317 0 13:31 tty8 00:00:00 \_ /usr/bin/perl -w /usr/sbin/dpkg-reconfigure -p critical keyboard-configuration
root 15346 15335 0 13:31 tty8 00:00:00 \_ /bin/sh /var/lib/dpkg/info/keyboard-configuration.config reconfigure 1.205
root 15513 15335 0 13:31 tty8 00:00:00 \_ whiptail --backtitle Package configuration --title Configuring keyboard-configuration --output-fd 11 --default-item English (US) --menu Please select the layout matching the keyboard for this machine. Keyboard layout: 21 72 11 -- English (US) English (US) - Cherokee English (US) - English (classic Dvorak) English (US) - English (Colemak) English (US) - English (Dvorak) English (US) - English (Dvorak, alt. intl.) English (US) - English (Dvorak, intl., with dead keys) English (US) - English (Dvorak, left-handed) English (US) - English (Dvorak, right-handed) English (US) - English (intl., with AltGr dead keys) English (US) - English (Macintosh) English (US) - English (Norman) English (US) - English (programmer Dvorak) English (US) - English (the divide/multiply keys toggle ... English (US) - English (US, alt. intl.) English (US) - English (US, euro on 5) English (US) - English (US, intl., with dead keys) English (US) - English (Workman) English (US) - English (Workman, intl., with dead keys) English (US) - Russian (US, phonetic) English (US) - Serbo-Croatian (US) Other
Aleks
August 19, 2022, 12:36pm
19
Hmf ben le truc a ressucité aussi rapidement qu’on l’a tué …
Dans ce cas cherchons si y’a un service associé avec sudo systemctl | grep userconf
Je m’attends à ce qu’on trouve un truc nommé “userconf” ou “userconf-pi”
A priori il y en a un
systemctl | grep userconf
userconfig.service loaded activating start start User configuration dialog