Boot USB planté, restart jeedom

Salut à tous,

J’ai déjà consulté pas mal de sujets, mais je n’ai pas reelement trouvé ce problème.

Le problème est que, si, je restart la rpi4 via un reboot ssh, il start plus par la suite, si je fais éteindre via jeedom, même problème (identique pour redémarrer).

Je ne sais pas si c’est en lien, mais lors de redémarrage « fonctionnel » j’ai constaté la corruption de fichiers du core jeedom, entraînement une réinstallation complète.

Sans redemarrage possible du rpi, je ne peux consulter aucun log, sachant que j’utilise uniquement rpi os lite.

Voici ma configuration:

  • rpi4 alimentation officiel
  • systeme rpi os sur clef usb
  • hub amazon
  • gen stick aoetec 5

Merci d’avance pour votre aide.

Salut,
En général les reboots aléatoires c’est dû à une alim trop faible (pics lors du boot).
dmesg pour contrôler.

Merci Ione pour ta remarque.

Cependant ce n’est pas un reboot aléatoire. Mais bien un restart voulu de ma part qui entraîne ce problème de boot.

Comment puis je exécuter dmesg sans pouvoir start le rpi :joy:

Hello

Refais un essai avec un écran branché. De mémoire, il y a un truc avec une tache liée à /tmp/jeedom qui mets plusieurs minutes avant que le reboot soit effectif.
C’est visible lors de la séquence d’arrêt

1 « J'aime »

Clef sur un port USB3 ?

Oui c’est lun des 2 port usb 3, rpi4
Mon hub amazon (sur lequel il y a la clef zwave) utilise un port usb2
Pour information la led rouge est fixe et la verte normalement clignotante est également fixe des la mise sous tension

Essai sur le deuxieme port usb2. J’ai l’impression que le boot sur l’usb3 est compliqué…

1 « J'aime »

Malheureusement j’ai le même comportement quel que doit le port usb utilisé 3 ou 2 c’est la même chose :confused:

Par reboot aléatoire j’entendais: ne redémarre pas toujours.
Essaye avec uniquement la clé usb.
Et attends 5-10 minutes comme dit naboleo.
Ps: la clé usb est probablement le plus mauvais des supports pour un pi.

1 « J'aime »

Le résultat est toujours le même seulement avec la clef usb :frowning: (je n’ai pas vérifier via un écran l’affichage il faut que j’achète un adaptateur micro hdmi)

J’ai tester avec un autre clef du même type fraîchement flashé avec rpi imager (rasbian lite), pas de problème de start. La led est bien clignotante et je peux m’y connecter en ssh.

Avant le restart du système, j’ai vérifieé la santé de jeedom qui était vert sur tous les points.

A chaque fois que ce problème se produit, ça bousille les partitions, notamment celle du boot, et je suis obligé de récrire la partition avec la configuration d’usine de la clef.

Avec ta clé usb qui fonctionne et ton hub avec tout branché fais

dmesg | egrep -i "voltage|throttled"

Sortie vide.

Je ne comprends pas ce que tu pourrais voir ?
dmesg est appliqué sur le system en cours d’exécution ? Pas sur les périphériques branchés?

Sorite vide veut dire qu’à ce moment là tu n’as pas de problème d’alim avec la même config.
A mon avis passe sur de la microSD si tu ne veux pas investir 30euro dans un msata avec son boîtier.
Ton support pourrait bien être le problème car tes clés doivent mourir vite fait.
Dmesg te remonte les infos hardware et kernel depuis le reboot

Si je comprends ça se verrait au boot ? La chose que je n’ai pas fait est de reboot avec cette conf. Je le fait de suite et aucune sortie pour voltage et throttle
A savoir que sur cette clef je n’ai pas jeedom d’installer, seulement rpi os.

Voici des informations peu être utile (même si les reboot ne fonctionnait pas avant ça) ? J’ai augmenté le swap a 2Go et le swappiness a 10% car jeedom avait l’air en souffrance,

Je pensais que la micro sd était le moins bon support, étant donnée sa durée de vie limité

La clé usb est pire je pense, ce n’est pas fait pour écrire régulièrement dessus, la microSD oui.

Si tu veux aller plus loin dans les logs il y a le syslog mais c’est un très long fichier, pas évident de lire tout ça…
Tu peux le dégrossir avec:

egrep -i "error|critical|fatal|voltage" /var/log/syslog

Tu peux toujours avoir accès à ton syslog sur ta clé usb en la mettant sur un ordi, il est sous /var/log

1 « J'aime »

Ma clef usb est totalement brické. Que se soit sur un pc ou depuis le rpi , elle reste inaccessible. Je vais être obligé d’y remettre la configuration d’origine :confused:

1 « J'aime »

Re Bonjour a tous :wave:

J’ai investi 20euro dans un petit ssd de 120go et réeffectué toute mon install avec l’import de ma derniere sauvegarde. Normalement je suis iso avant le crash des reboot. Pour l’instant le premier reboot en l’état est fonctionnel, pas de corruption du disque, pas problèmes, pas de logs d’erreur, rien de particuliers a remonter.

Je vais attendre cette fin de semaine pour voir si le hardware était le problème, je vais croné un restart pour les 4 prochains jours et reviendrais vers vous si c’est toujours ko, mais bon je croise les doigts :crossed_fingers:

PS: Avec un ssd on voit clairement la différence sur le temps d’installation raspian + jeedom !!

Bonne idée d’abandonner les clés usb pour un pi :wink:
Vu les rapport qualité/prix du msata ça vaut pas le coup de se gêner…
Par contre si tu as pris un ssd classique fais gaffe à sa consommation.
Tu devrais reprendre la commande au dessus et vérifier les erreurs voltage.

Finalement j’ai des erreurs :disappointed_relieved: mais au niveau consommation je vois pas d’erreur particulière

Dec  2 12:56:06 raspberrypi kernel: [    4.184169] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.txt failed with error -2                                                                        Dec  2 12:56:06 raspberrypi raspi-config[325]: Checking if shift key is held down:Error opening '/dev/input/event*': No such file or directory                  Dec  2 12:56:06 raspberrypi rpi-eeprom-update[331]:  FW DIR: /lib/firmware/raspberrypi/bootloader/critical                                                      Dec  9 13:58:29 raspberrypi ntpd[2987]: kernel reports TIME_ERROR: 0x2041: Clock Unsynchronized                                                                 Dec  9 13:58:29 raspberrypi ntpd[2987]: kernel reports TIME_ERROR: 0x2041: Clock Unsynchronized                                                                 Dec  9 14:04:08 raspberrypi ntpd[2987]: kernel reports TIME_ERROR: 0x2041: Clock Unsynchronized                                                                 Dec  9 14:09:39 raspberrypi /etc/mysql/debian-start[28393]: Version check failed. Got the following error when calling the 'mysql' command line client          Dec  9 14:09:39 raspberrypi /etc/mysql/debian-start[28393]: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)                  Dec  9 14:09:39 raspberrypi /etc/mysql/debian-start[28393]: FATAL ERROR: Upgrade failed                                                                         Dec  9 14:09:39 raspberrypi debian-start[28386]: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)                             Dec  9 14:10:35 raspberrypi kernel: [    4.304976] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.txt failed with error -2                                                                        Dec  9 14:10:36 raspberrypi raspi-config[324]: Checking if shift key is held down:Error opening '/dev/input/event*': No such file or directory                  Dec  9 14:10:36 raspberrypi rpi-eeprom-update[307]:  FW DIR: /lib/firmware/raspberrypi/bootloader/critical                                                      Dec  9 14:10:42 raspberrypi ntpd[533]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
Dec  9 14:10:42 raspberrypi ntpd[533]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
Dec  9 14:10:43 raspberrypi /etc/mysql/debian-start[705]: Version check failed. Got the following error when calling the 'mysql' command line client
Dec  9 14:10:43 raspberrypi /etc/mysql/debian-start[705]: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
Dec  9 14:10:43 raspberrypi /etc/mysql/debian-start[705]: FATAL ERROR: Upgrade failed
Dec  9 14:10:43 raspberrypi debian-start[699]: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
Dec  9 14:16:41 raspberrypi ntpd[533]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
Dec  9 14:43:37 raspberrypi kernel: [    4.330676] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.txt failed with error -2
Dec  9 14:43:37 raspberrypi raspi-config[298]: Checking if shift key is held down:Error opening '/dev/input/event*': No such file or directory
Dec  9 14:43:37 raspberrypi rpi-eeprom-update[334]:  FW DIR: /lib/firmware/raspberrypi/bootloader/critical
Dec  9 14:43:43 raspberrypi ntpd[556]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
Dec  9 14:43:43 raspberrypi ntpd[556]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
Dec  9 14:43:44 raspberrypi /etc/mysql/debian-start[713]: Version check failed. Got the following error when calling the 'mysql' command line client
Dec  9 14:43:44 raspberrypi /etc/mysql/debian-start[713]: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
Dec  9 14:43:44 raspberrypi /etc/mysql/debian-start[713]: FATAL ERROR: Upgrade failed
Dec  9 14:43:44 raspberrypi debian-start[707]: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
Dec  9 14:49:46 raspberrypi ntpd[556]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
Dec  9 14:51:07 raspberrypi snapd[2196]: helpers.go:145: error trying to compare the snap system key: system-key missing on disk
Dec  9 14:51:08 raspberrypi snapd[2196]: stateengine.go:102: state ensure error: cannot decode new commands catalog: got unexpected HTTP status code 429 via GET to "https://api.snapcraft.io/api/v1/snaps/names?confinement=strict%2Cclassic"
Dec  9 14:51:28 raspberrypi kernel: [    4.307709] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.txt failed with error -2
Dec  9 14:51:29 raspberrypi raspi-config[355]: Checking if shift key is held down:Error opening '/dev/input/event*': No such file or directory
Dec  9 14:51:29 raspberrypi rpi-eeprom-update[330]:  FW DIR: /lib/firmware/raspberrypi/bootloader/critical
Dec  9 14:51:36 raspberrypi ntpd[596]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
Dec  9 14:51:36 raspberrypi ntpd[596]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
Dec  9 14:51:37 raspberrypi /etc/mysql/debian-start[740]: Version check failed. Got the following error when calling the 'mysql' command line client
Dec  9 14:51:37 raspberrypi /etc/mysql/debian-start[740]: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
Dec  9 14:51:37 raspberrypi /etc/mysql/debian-start[740]: FATAL ERROR: Upgrade failed
Dec  9 14:51:37 raspberrypi debian-start[735]: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
Dec  9 14:51:39 raspberrypi snapd[367]: stateengine.go:102: state ensure error: cannot decode new commands catalog: got unexpected HTTP status code 429 via GET to "https://api.snapcraft.io/api/v1/snaps/names?confinement=strict%2Cclassic"
Dec  9 14:52:58 raspberrypi snapd[1254]: stateengine.go:102: state ensure error: cannot decode new commands catalog: got unexpected HTTP status code 429 via GET to "https://api.snapcraft.io/api/v1/snaps/names?confinement=strict%2Cclassic"
Dec  9 14:54:01 raspberrypi snapd[1461]: helpers.go:105: error trying to compare the snap system key: system-key versions not comparable
Dec  9 14:57:16 raspberrypi ntpd[596]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
Dec  9 17:12:13 raspberrypi kernel: [    4.401737] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.txt failed with error -2
Dec  9 17:12:13 raspberrypi raspi-config[364]: Checking if shift key is held down:Error opening '/dev/input/event*': No such file or directory
Dec  9 17:12:13 raspberrypi rpi-eeprom-update[367]:  FW DIR: /lib/firmware/raspberrypi/bootloader/critical
Dec  9 17:12:18 raspberrypi ntpd[589]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
Dec  9 17:12:18 raspberrypi ntpd[589]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
Dec  9 17:12:19 raspberrypi /etc/mysql/debian-start[735]: Version check failed. Got the following error when calling the 'mysql' command line client
Dec  9 17:12:19 raspberrypi /etc/mysql/debian-start[735]: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
Dec  9 17:12:19 raspberrypi /etc/mysql/debian-start[735]: FATAL ERROR: Upgrade failed
Dec  9 17:12:19 raspberrypi debian-start[730]: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)