Serveur s'éteint tout seul

Signaler
-
 Tritri -
Bonjour tout le monde, je me décide à finalement demander de l'aide car là je sèche.

Durant le confinement j'ai mis en place un serveur basé sur des vieilles pièces qui trainaient, rien de fou, et des pièces en bon état (je les utilisais jusqu'à il y a 6 mois pour les plus anciennes). Notez que le serveur n'est pas réellement dans un boitier, mais dans un carton, sur des stands, sous la télé.

Bref j'ai du coup mis mon Ubuntu 18.04, mon webmin et netdata pour surveiller tout ça, mis en place mon serveur Minecraft pour les amis confinés, le serveur samba pour partager le disque dur dans la maison, et Kodi standalone pour regarder tout ces bons films et séries pendant les longues soirées confinées.

Tout a marché nickel, hors mes cafouillages, moultes soucis avec Pulsaudio et Moonlight (toujours pas résolu mais tant pis), j'ai décidé d'installer Plex pour partager mes fichiers vidéos avec des amis.

Et là patatras soudainement le serveur s'éteignait tout seul, sans que je ne puisse déterminer pourquoi. J'ai désinstaller Plex, personne ne l'utilisait au final et ça mangeait pas mal de ressources (qui sont tout de même limité). Ca s’est bien passé pendant une semaine et aujourd'hui en rentrant du boulot il était encore éteint. J'ai un peu épluché les logs et j'ai vu que visiblement il s'est éteint proprement, tout les services se sont coupé les un après les autre (je vous les mets en pièces jointes.). Si quelqu'un peu m'aiguiller, je m'oriente vers un soucis tout bête de faux contact avecc mon bouton un peu bricolé, et demain je lancerais peut-être un memtest, en attendant si vous avez des pistes je suis preneur.

Je vous mets en dessous le sys.log au moment où le serveur s'est éteint

Jun  9 09:39:03 kodi systemd[1]: Starting Clean php session files...
Jun 9 09:39:03 kodi sessionclean[19146]: /usr/lib/php/sessionclean: 35: /usr/lib/php/sessionclean: php7.2: not found
Jun 9 09:39:03 kodi systemd[1]: Started Clean php session files.
Jun 9 10:09:10 kodi systemd[1]: Starting Clean php session files...
Jun 9 10:09:10 kodi sessionclean[20510]: /usr/lib/php/sessionclean: 35: /usr/lib/php/sessionclean: php7.2: not found
Jun 9 10:09:10 kodi systemd[1]: Started Clean php session files.
Jun 9 10:17:01 kodi CRON[21031]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jun 9 10:23:01 kodi CRON[21418]: (root) CMD ( test -x /etc/cron.daily/popularity-contest && /etc/cron.daily/popularity-contest --crond)
Jun 9 10:31:27 kodi systemd[1]: Starting Message of the Day...
Jun 9 10:31:28 kodi 50-motd-news[21834]: * MicroK8s gets a native Windows installer and command-line integration.
Jun 9 10:31:28 kodi 50-motd-news[21834]: [url]https://ubuntu.com/blog/microk8s-installers-windows-and-macos[/url]
Jun 9 10:31:28 kodi systemd[1]: Started Message of the Day.
Jun 9 10:39:14 kodi systemd[1]: Starting Clean php session files...
Jun 9 10:39:14 kodi sessionclean[22305]: /usr/lib/php/sessionclean: 35: /usr/lib/php/sessionclean: php7.2: not found
Jun 9 10:39:14 kodi systemd[1]: Started Clean php session files.
Jun 9 11:09:14 kodi systemd[1]: Starting Clean php session files...
Jun 9 11:09:14 kodi sessionclean[24147]: /usr/lib/php/sessionclean: 35: /usr/lib/php/sessionclean: php7.2: not found
Jun 9 11:09:14 kodi systemd[1]: Started Clean php session files.
Jun 9 11:17:01 kodi CRON[24687]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jun 9 11:39:14 kodi systemd[1]: Starting Clean php session files...
Jun 9 11:39:14 kodi sessionclean[25920]: /usr/lib/php/sessionclean: 35: /usr/lib/php/sessionclean: php7.2: not found
Jun 9 11:39:14 kodi systemd[1]: Started Clean php session files.
Jun 9 12:09:14 kodi systemd[1]: Starting Clean php session files...
Jun 9 12:09:14 kodi sessionclean[27570]: /usr/lib/php/sessionclean: 35: /usr/lib/php/sessionclean: php7.2: not found
Jun 9 12:09:14 kodi systemd[1]: Started Clean php session files.
Jun 9 12:17:01 kodi CRON[28113]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jun 9 12:31:57 kodi systemd[1]: Created slice User Slice of kodi.
Jun 9 12:31:57 kodi systemd[1]: Starting User Manager for UID 1000...
Jun 9 12:31:57 kodi systemd[1]: Started Session c1 of user kodi.
Jun 9 12:31:57 kodi systemd[29035]: Listening on GnuPG cryptographic agent and passphrase cache (restricted).
Jun 9 12:31:57 kodi systemd[29035]: Listening on GnuPG cryptographic agent and passphrase cache (access for web browsers).
Jun 9 12:31:57 kodi systemd[29035]: Reached target Paths.
Jun 9 12:31:57 kodi systemd[29035]: Reached target Timers.
Jun 9 12:31:57 kodi systemd[29035]: Listening on REST API socket for snapd user session agent.
Jun 9 12:31:57 kodi systemd[29035]: Listening on Sound System.
Jun 9 12:31:57 kodi systemd[29035]: Listening on GnuPG cryptographic agent (ssh-agent emulation).
Jun 9 12:31:57 kodi systemd[29035]: Listening on GnuPG network certificate management daemon.
Jun 9 12:31:57 kodi systemd[29035]: Listening on GnuPG cryptographic agent and passphrase cache.
Jun 9 12:31:57 kodi systemd[29035]: Reached target Sockets.
Jun 9 12:31:57 kodi systemd[29035]: Reached target Basic System.
Jun 9 12:31:57 kodi systemd[1]: Started User Manager for UID 1000.
Jun 9 12:31:57 kodi systemd[29035]: Starting Sound Service...
Jun 9 12:31:57 kodi systemd[1]: Stopping User Manager for UID 1000...
Jun 9 12:31:57 kodi rtkit-daemon[3008]: Supervising 0 threads of 0 processes of 1 users.
Jun 9 12:31:57 kodi rtkit-daemon[3008]: message repeated 9 times: [ Supervising 0 threads of 0 processes of 1 users.]
Jun 9 12:31:57 kodi pulseaudio[29046]: W: [pulseaudio] server-lookup.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
Jun 9 12:31:57 kodi pulseaudio[29046]: W: [pulseaudio] main.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
Jun 9 12:31:57 kodi systemd[29035]: Stopped Sound Service.
Jun 9 12:31:57 kodi systemd[29035]: Stopped target Basic System.
Jun 9 12:31:57 kodi systemd[29035]: Stopped target Timers.
Jun 9 12:31:57 kodi systemd[29035]: Stopped target Sockets.
Jun 9 12:31:57 kodi systemd[29035]: Closed REST API socket for snapd user session agent.
Jun 9 12:31:57 kodi systemd[29035]: Closed GnuPG cryptographic agent (ssh-agent emulation).
Jun 9 12:31:57 kodi systemd[29035]: Closed GnuPG cryptographic agent and passphrase cache (restricted).
Jun 9 12:31:57 kodi systemd[29035]: Closed GnuPG cryptographic agent and passphrase cache.
Jun 9 12:31:57 kodi systemd[29035]: Closed GnuPG cryptographic agent and passphrase cache (access for web browsers).
Jun 9 12:31:57 kodi systemd[29035]: Closed GnuPG network certificate management daemon.
Jun 9 12:31:57 kodi systemd[29035]: Stopped target Paths.
Jun 9 12:31:57 kodi systemd[29035]: Closed Sound System.
Jun 9 12:31:57 kodi systemd[29035]: Reached target Shutdown.
Jun 9 12:31:57 kodi systemd[29035]: Starting Exit the Session...
Jun 9 12:31:57 kodi systemd[29035]: Received SIGRTMIN+24 from PID 29055 (kill).
Jun 9 12:31:57 kodi systemd[1]: Stopped User Manager for UID 1000.
Jun 9 12:31:57 kodi systemd[1]: Removed slice User Slice of kodi.
Jun 9 12:32:00 kodi systemd-resolved[831]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.
Jun 9 12:32:00 kodi systemd-resolved[831]: message repeated 6 times: [ Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.]
Jun 9 12:39:14 kodi systemd[1]: Starting Clean php session files...
Jun 9 12:39:14 kodi sessionclean[30900]: /usr/lib/php/sessionclean: 35: /usr/lib/php/sessionclean: php7.2: not found
Jun 9 12:39:14 kodi systemd[1]: Started Clean php session files.
Jun 9 12:45:44 kodi systemd[1]: Stopped Unattended Upgrades Shutdown.
Jun 9 12:45:44 kodi systemd[1]: Stopped target Cloud-init target.
Jun 9 12:45:44 kodi systemd[1]: Stopped Execute cloud user/final scripts.
Jun 9 12:45:44 kodi thermald[940]: Terminating ...Jun 9 09:39:03 kodi systemd[1]: Starting Clean php session files...
Jun 9 09:39:03 kodi sessionclean[19146]: /usr/lib/php/sessionclean: 35: /usr/lib/php/sessionclean: php7.2: not found
Jun 9 09:39:03 kodi systemd[1]: Started Clean php session files.
Jun 9 10:09:10 kodi systemd[1]: Starting Clean php session files...
Jun 9 10:09:10 kodi sessionclean[20510]: /usr/lib/php/sessionclean: 35: /usr/lib/php/sessionclean: php7.2: not found
Jun 9 10:09:10 kodi systemd[1]: Started Clean php session files.
Jun 9 10:17:01 kodi CRON[21031]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jun 9 10:23:01 kodi CRON[21418]: (root) CMD ( test -x /etc/cron.daily/popularity-contest && /etc/cron.daily/popularity-contest --crond)
Jun 9 10:31:27 kodi systemd[1]: Starting Message of the Day...
Jun 9 10:31:28 kodi 50-motd-news[21834]: * MicroK8s gets a native Windows installer and command-line integration.
Jun 9 10:31:28 kodi 50-motd-news[21834]: [url]https://ubuntu.com/blog/microk8s-installers-windows-and-macos[/url]
Jun 9 10:31:28 kodi systemd[1]: Started Message of the Day.
Jun 9 10:39:14 kodi systemd[1]: Starting Clean php session files...
Jun 9 10:39:14 kodi sessionclean[22305]: /usr/lib/php/sessionclean: 35: /usr/lib/php/sessionclean: php7.2: not found
Jun 9 10:39:14 kodi systemd[1]: Started Clean php session files.
Jun 9 11:09:14 kodi systemd[1]: Starting Clean php session files...
Jun 9 11:09:14 kodi sessionclean[24147]: /usr/lib/php/sessionclean: 35: /usr/lib/php/sessionclean: php7.2: not found
Jun 9 11:09:14 kodi systemd[1]: Started Clean php session files.
Jun 9 11:17:01 kodi CRON[24687]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jun 9 11:39:14 kodi systemd[1]: Starting Clean php session files...
Jun 9 11:39:14 kodi sessionclean[25920]: /usr/lib/php/sessionclean: 35: /usr/lib/php/sessionclean: php7.2: not found
Jun 9 11:39:14 kodi systemd[1]: Started Clean php session files.
Jun 9 12:09:14 kodi systemd[1]: Starting Clean php session files...
Jun 9 12:09:14 kodi sessionclean[27570]: /usr/lib/php/sessionclean: 35: /usr/lib/php/sessionclean: php7.2: not found
Jun 9 12:09:14 kodi systemd[1]: Started Clean php session files.
Jun 9 12:17:01 kodi CRON[28113]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jun 9 12:31:57 kodi systemd[1]: Created slice User Slice of kodi.
Jun 9 12:31:57 kodi systemd[1]: Starting User Manager for UID 1000...
Jun 9 12:31:57 kodi systemd[1]: Started Session c1 of user kodi.
Jun 9 12:31:57 kodi systemd[29035]: Listening on GnuPG cryptographic agent and passphrase cache (restricted).
Jun 9 12:31:57 kodi systemd[29035]: Listening on GnuPG cryptographic agent and passphrase cache (access for web browsers).
Jun 9 12:31:57 kodi systemd[29035]: Reached target Paths.
Jun 9 12:31:57 kodi systemd[29035]: Reached target Timers.
Jun 9 12:31:57 kodi systemd[29035]: Listening on REST API socket for snapd user session agent.
Jun 9 12:31:57 kodi systemd[29035]: Listening on Sound System.
Jun 9 12:31:57 kodi systemd[29035]: Listening on GnuPG cryptographic agent (ssh-agent emulation).
Jun 9 12:31:57 kodi systemd[29035]: Listening on GnuPG network certificate management daemon.
Jun 9 12:31:57 kodi systemd[29035]: Listening on GnuPG cryptographic agent and passphrase cache.
Jun 9 12:31:57 kodi systemd[29035]: Reached target Sockets.
Jun 9 12:31:57 kodi systemd[29035]: Reached target Basic System.
Jun 9 12:31:57 kodi systemd[1]: Started User Manager for UID 1000.
Jun 9 12:31:57 kodi systemd[29035]: Starting Sound Service...
Jun 9 12:31:57 kodi systemd[1]: Stopping User Manager for UID 1000...
Jun 9 12:31:57 kodi rtkit-daemon[3008]: Supervising 0 threads of 0 processes of 1 users.
Jun 9 12:31:57 kodi rtkit-daemon[3008]: message repeated 9 times: [ Supervising 0 threads of 0 processes of 1 users.]
Jun 9 12:31:57 kodi pulseaudio[29046]: W: [pulseaudio] server-lookup.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
Jun 9 12:31:57 kodi pulseaudio[29046]: W: [pulseaudio] main.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
Jun 9 12:31:57 kodi systemd[29035]: Stopped Sound Service.
Jun 9 12:31:57 kodi systemd[29035]: Stopped target Basic System.
Jun 9 12:31:57 kodi systemd[29035]: Stopped target Timers.
Jun 9 12:31:57 kodi systemd[29035]: Stopped target Sockets.
Jun 9 12:31:57 kodi systemd[29035]: Closed REST API socket for snapd user session agent.
Jun 9 12:31:57 kodi systemd[29035]: Closed GnuPG cryptographic agent (ssh-agent emulation).
Jun 9 12:31:57 kodi systemd[29035]: Closed GnuPG cryptographic agent and passphrase cache (restricted).
Jun 9 12:31:57 kodi systemd[29035]: Closed GnuPG cryptographic agent and passphrase cache.
Jun 9 12:31:57 kodi systemd[29035]: Closed GnuPG cryptographic agent and passphrase cache (access for web browsers).
Jun 9 12:31:57 kodi systemd[29035]: Closed GnuPG network certificate management daemon.
Jun 9 12:31:57 kodi systemd[29035]: Stopped target Paths.
Jun 9 12:31:57 kodi systemd[29035]: Closed Sound System.
Jun 9 12:31:57 kodi systemd[29035]: Reached target Shutdown.
Jun 9 12:31:57 kodi systemd[29035]: Starting Exit the Session...
Jun 9 12:31:57 kodi systemd[29035]: Received SIGRTMIN+24 from PID 29055 (kill).
Jun 9 12:31:57 kodi systemd[1]: Stopped User Manager for UID 1000.
Jun 9 12:31:57 kodi systemd[1]: Removed slice User Slice of kodi.
Jun 9 12:32:00 kodi systemd-resolved[831]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.
Jun 9 12:32:00 kodi systemd-resolved[831]: message repeated 6 times: [ Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.]
Jun 9 12:39:14 kodi systemd[1]: Starting Clean php session files...
Jun 9 12:39:14 kodi sessionclean[30900]: /usr/lib/php/sessionclean: 35: /usr/lib/php/sessionclean: php7.2: not found
Jun 9 12:39:14 kodi systemd[1]: Started Clean php session files.
Jun 9 12:45:44 kodi systemd[1]: Stopped Unattended Upgrades Shutdown.
Jun 9 12:45:44 kodi systemd[1]: Stopped target Cloud-init target.
Jun 9 12:45:44 kodi systemd[1]: Stopped Execute cloud user/final scripts.
Jun 9 12:45:44 kodi thermald[940]: Terminating ...


Depuis j'ai fais une fausse manip et j'ai du tout réinstallé. Dans les faits le système est totalement différent, hors il l'a refait, donc je pense que c'est hardware.

Et voici le log du tout dernier shutdown en date

Jun 12 09:13:16 kodi systemd-resolved[762]: message repeated 11 times: [ Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.]
Jun 12 09:13:39 kodi systemd[1]: unattended-upgrades.service: Succeeded.
Jun 12 09:13:39 kodi systemd[1]: Stopped Unattended Upgrades Shutdown.

2 réponses

Messages postés
5380
Date d'inscription
mercredi 15 septembre 2004
Statut
Contributeur
Dernière intervention
3 juillet 2020
884
Salut Tritri,

thermald[940]: Terminating


Il peut s'agire d'une surchauffe du processeur. Le processus thermald mentionné dans les logs (syslog, je suppose) peut être à l'origine de l'extinction de la machine pour éviter au processeur de griller.

https://wiki.ubuntu.com/Kernel/PowerManagement/ThermalIssues

Tu peux lancer thermald en mode debug pour sauvegarder la sortie dans un fichier, pour observer ce qui se passe lors d'une extinction forcée de la machine et vérifier cette hypothèse :

sudo service thermald stop
sudo thermald --no-daemon --loglevel=debug 2>&1 thermald_log_output.txt

Laisse la fenêtre de terminal ouverte, ou lance ces commandes avec un screen préalable (sinon en fermant la fenêtre de terminal, tu fermes le processus thermald lorsqu'il est lancé comme cela).

Les raisons d'une surchauffe peuvent être multiples. Par exemple : tu as oublié de mettre de la pâte thermique entre le processeur et son socle, ou elle est mal mise ou de mauvaise qualité et/ou ton ventilateur de processeur ne fonctionne pas bien et/ou ton radiateur éventuel est mal mis.

Dal
Oui j'ai envisagé la question, mais en vrai je surveille constamment via Netdata, et le processeur est très sage, même en load (quand le serveur Minecraft tourne avec 4/5 personnes par exemple) il ne dépasse pas les 70°.

Pour l'instant j'ai désinstallé unattended-upgrades, considérant que j'ai noté que c'était le dernier service à s'activer avant l'extinction. Et il semblerait que ça ait fonctionné vu que ça va faire une semaine qu'il tourne sans soucis là. Je ne crie pas victoire trop vite, on sait jamais, mais je pense qu'on peut mettre "résolu" au thread \o/