sshd + trap invalid opcode + error:0 in libcrypto.so.1.1 Le sujet est résolu

Demande d'aide : c'est ici.
Répondre
Avatar de l’utilisateur
lol
Site Admin
Site Admin
Messages : 5054
Inscription : 04 avr. 2016, 12:11
Localisation : Madagascar
Status : Hors-ligne

Salut,

SSH semble cassé un de mes serveurs.
Linux xxxx.xxxx.xxx 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64 GNU/Linux


J'arrive à accéder à la ligne de commande via Webmin, mais je ne comprend pas trop ce qui se passe...

Code : Tout sélectionner

sh-5.1# systemctl status ssh
● ssh.service - OpenBSD Secure Shell server
     Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled)
     Active: failed (Result: signal) since Fri 2023-02-10 07:12:27 CET; 32s ago
       Docs: man:sshd(8)
             man:sshd_config(5)
    Process: 2614248 ExecStartPre=/usr/sbin/sshd -t (code=killed, signal=ILL)
        CPU: 8ms

févr. 10 07:12:27 mail.isalo.org systemd[1]: ssh.service: Scheduled restart job, restart counter is at 5.
févr. 10 07:12:27 mail.isalo.org systemd[1]: Stopped OpenBSD Secure Shell server.
févr. 10 07:12:27 mail.isalo.org systemd[1]: ssh.service: Start request repeated too quickly.
févr. 10 07:12:27 mail.isalo.org systemd[1]: ssh.service: Failed with result 'signal'.
févr. 10 07:12:27 mail.isalo.org systemd[1]: Failed to start OpenBSD Secure Shell server.

Code : Tout sélectionner

sh-5.1# systemctl restart ssh
/bin/systemd-tty-ask-password-agent: symbol lookup error: /lib/systemd/libsystemd-shared-247.so: undefined symbol: ioprioparse_priority, version SD_SHARED
Job for ssh.service failed because a fatal signal was delivered to the control process.
See "systemctl status ssh.service" and "journalctl -xe" for details.

Code : Tout sélectionner

sh-5.1# grep sshd /var/log/syslog
...
Feb 10 06:56:29 mail kernel: [1463125.473542] traps: sshd[2604215] trap invalid opcode ip:7f8ddf36e02f sp:7ffc6eda24f8 error:0 in libcrypto.so.1.1[7f8ddf311000+1a8000]

De son côté apt est aussi en panne, bizarre que ça tombe au même moment...

Code : Tout sélectionner

apt update
...
Fetched 17.1 kB in 2s (9356 B/s)
Reading package lists... Error!
E: Problem parsing dependency 21 of plasma-discover-backend-snap:amd64=5.20.5-3
E: Error occurred while processing plasma-discover-backend-snap (NewVersion2)
E: Problem with MergeList /var/lib/apt/lists/deb.debian.org_debian_dists_bullseye_main_binary-amd64_Packages
E: The package lists or status file could not be parsed or opened.
Un nettoyage et c'est reparti, mais bon ? :017:

Code : Tout sélectionner

sh-5.1# apt update && apt upgrade
...
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
Voici les dernière mises à jour (/var/log/apt/history).

Code : Tout sélectionner

Start-Date: 2023-02-05  09:07:28
Commandline: apt upgrade
Upgrade: php8.1-pspell:amd64 (8.1.14-2+0~20230113.32+debian11~1.gbp6a972c, 8.1.15-1+0~20230203.33+debian11~1.gbp878288),>
End-Date: 2023-02-05  09:11:44

Start-Date: 2023-02-07  13:30:41
Commandline: apt upgrade
Upgrade: php8.1-pspell:amd64 (8.1.15-1+0~20230203.33+debian11~1.gbp878288, 8.1.15-3+0~20230207.35+debian11~1.gbp852af3),>
End-Date: 2023-02-07  13:37:50

Start-Date: 2023-02-08  08:55:26
Commandline: apt upgrade
Upgrade: libssl-dev:amd64 (1.1.1n-0+deb11u3, 1.1.1n-0+deb11u4), libssl1.1:amd64 (1.1.1n-0+deb11u3, 1.1.1n-0+deb11u4), li>
End-Date: 2023-02-08  08:55:36

Code : Tout sélectionner

# apt install --reinstall openssh-server
...
Préparation du dépaquetage de .../openssh-server_1%3a8.4p1-5+deb11u1_amd64.deb ...
Dépaquetage de openssh-server (1:8.4p1-5+deb11u1) sur (1:8.4p1-5+deb11u1) ...
Paramétrage de openssh-server (1:8.4p1-5+deb11u1) ...
rescue-ssh.target is a disabled or a static unit, not starting it.
Job for ssh.service failed because a fatal signal was delivered to the control process.
See "systemctl status ssh.service" and "journalctl -xe" for details.
invoke-rc.d: initscript ssh, action "restart" failed.
● ssh.service - OpenBSD Secure Shell server
     Loaded: loaded (/lib/systemd/system/ssh.service; enabled
; vendor preset: enabled)
     Active: activating (auto-restart) (Result: signal) since Fri 2023-02-10 07:17:02 CET; 4ms ago
       Docs: man:sshd(8)
             man:sshd_config(5)
    Process: 2617437 ExecStartPre=/usr/sbin/sshd -t (code=killed, signal=ILL)
        CPU: 4ms
dpkg: erreur de traitement du paquet openssh-server (--configure) :
 installed openssh-server package post-installation script subprocess returned error exit status 1
Traitement des actions différées (« triggers ») pour man-db (2.9.4-2) ...
/var/lib/dpkg/info/man-db.postinst : ligne 13 : 2617442 Instruction non permise perl -e '@pwd = getpwnam("man"); $) = $( 
= $pwd[3]; $> = $< = $pwd[2];
             exec "/usr/bin/mandb", @ARGV' -- "$@"
Des erreurs ont été rencontrées pendant l'exécution :
 openssh-server

J'ai pas trop envie de redémarrer le serveur dans cet état, j'ai peu de ne pas reprendre la main... :rolleyes:
Si vous avez des idées pour me sortir de ce pétrin, vous êtes les bienvenus. :unknw:
Règles d'usage du forum. Signalez si vous avez posté votre question sur un autre forum. Explications ici
Debian Unstable. Mate/LXQT. Dieu, en créant l'homme, a quelque peu surestimé ses capacités.
Avatar de l’utilisateur
lol
Site Admin
Site Admin
Messages : 5054
Inscription : 04 avr. 2016, 12:11
Localisation : Madagascar
Status : Hors-ligne

Salut,

Bon, j'ai compris...

Code : Tout sélectionner

root@rescue ~ # fsck /dev/md2
fsck from util-linux 2.36.1
e2fsck 1.46.2 (28-Feb-2021)
/dev/md2 contains a file system with errors, check forced.
Pass 1: Checking inodes, blocks, and sizes
Inodes that were part of a corrupted orphan linked list found.  Fix<y>? yes
Inode 394611 was part of the orphaned inode list.  FIXED.
Inode 394622 was part of the orphaned inode list.  FIXED.
Inode 395555 was part of the orphaned inode list.  FIXED.
Inode 395579 was part of the orphaned inode list.  FIXED.
Deleted inode 399822 has zero dtime.  Fix<y>? yes
Inode 1441809 was part of the orphaned inode list.  FIXED.
Inode 1441822 was part of the orphaned inode list.  FIXED.
Inode 1441823 was part of the orphaned inode list.  FIXED.
Inode 1441824 was part of the orphaned inode list.  FIXED.
Inode 1441825 was part of the orphaned inode list.  FIXED.
Inode 1441827 was part of the orphaned inode list.  FIXED.
Inode 1441830 was part of the orphaned inode list.  FIXED.
Inode 1441832 was part of the orphaned inode list.  FIXED.
Inode 1441853 was part of the orphaned inode list.  FIXED.
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
Block bitmap differences:  -(369664--369816) -(2287360--2287505) -(2289152--2289903) -(4053376--4053479) -(7279616--7279770)
Fix<y>? yes
Free blocks count wrong for group #11 (31708, counted=31861).
Fix<y>? yes
Free blocks count wrong for group #69 (29359, counted=30257).
Fix<y>? yes
Free blocks count wrong for group #123 (19250, counted=19354).
Fix<y>? yes
Free blocks count wrong for group #222 (21225, counted=21380).
Fix<y>? yes
Free blocks count wrong (5396293, counted=5397603).
Fix<y>? yes
Inode bitmap differences:  -394611 -394622 -395555 -395579 -399822 -1441809 -(1441822--1441825) -1441827 -1441830 -1441832 -1441853
Fix<y>? yes
Free inodes count wrong for group #48 (37, counted=42).
Fix ('a' enables 'yes' to all) <y>? yes
Free inodes count wrong for group #176 (5397, counted=5406).
Fix ('a' enables 'yes' to all) <y>? yes
Free inodes count wrong (1651864, counted=1651878).
Fix ('a' enables 'yes' to all) <y>? yes

/dev/md2: ***** FILE SYSTEM WAS MODIFIED *****
/dev/md2: 314202/1966080 files (0.3% non-contiguous), 2462365/7859968 blocks
C'est donc réparé. Système corrompu.
Je vais lancer un petit smartctl du coup... :lol:
Règles d'usage du forum. Signalez si vous avez posté votre question sur un autre forum. Explications ici
Debian Unstable. Mate/LXQT. Dieu, en créant l'homme, a quelque peu surestimé ses capacités.
Répondre