Les services de NUT ne démarrent pas
Bien que sélectionnés pour cela
Système et matériels / Autres matériels et périphériques
Meuz Membre non connecté
-
- Voir le profil du membre Meuz
- Inscrit le : 06/08/2011
- Groupes :
Reprise du message précédent
État des lieux en mode texte. En début de session, j'ai :Code TEXT :
$ systemctl status nut-server
○ nut-server.service - Network UPS Tools - power devices information server
Loaded: loaded (/usr/lib/systemd/system/nut-server.service; enabled; preset: disabled)
Active: inactive (dead)
Docs: man:upsd(8)
...nut-serverest enableb et pourtant inactive.
Donc, il devrait avoir démarré, et planté, failed, et le fait serait repérable par
journalctl:
Code TEXT :
Rien n'a planté !# journalctl -xeu nut-server.service ~ ... -- No entries -- ...skipping... ~ ... -- No entries --
Si je le démarre :
Code BASH :
systemctl start nut-server
cette fois ça marche :
Caché :
Code TEXT :
$ systemctl status nut-server
● nut-server.service - Network UPS Tools - power devices information server
Loaded: loaded (/usr/lib/systemd/system/nut-server.service; enabled; preset: disabled)
Active: active (running) since Wed 2026-07-15 16:24:05 CEST; 10s ago
...
Process: 8479 ExecStartPre=/usr/bin/systemd-tmpfiles --create /usr/lib/tmpfiles.d/nut-common-tmpfiles.conf (code=exited, status=0/SUCCESS)
Process: 8482 ExecStartPost=/bin/grep -E Units|Max open files /proc/${MAINPID}/limits (code=exited, status=0/SUCCESS)
Main PID: 8481 (upsd)
Tasks: 1 (limit: 18885)
Memory: 1.3M (peak: 3.7M)
CPU: 29ms
CGroup: /system.slice/nut-server.service
└─8481 /usr/sbin/upsd -FRésumé des épisodes. Le service a démarré, il n'a pas planté, et il n'est pas actif. Si je le démarre, il devient actif.
Qu'en pensez vous ?
PS.
- J'ai tronqué quelques lignes, remplacées par ...
- La source de ma science toute fraîche, malgré la canicule.
Edit. Rectification du lien ci-dessus.
Édité par Meuz Le 16/07/2026 à 08h26
Jybz Membre non connecté
-
- Voir le profil du membre Jybz
- Inscrit le : 10/10/2018
- Groupes :
-
Administrateur
-
Forgeron
Téléverser une image : /wiki/hebergement-de-fichiers-sur-mlo
| Arch | Machine | OS |
| x86_64 | lenovo x250 | mga9 |
| armv7hl | bananapro | mga9 |
| aarch64 | Raspberry Pi 4B | mga9 |
Meuz Membre non connecté
-
- Voir le profil du membre Meuz
- Inscrit le : 06/08/2011
- Groupes :
cat /usr/lib/systemd/system/nut-server.service, je trouve :
Code TEXT :
[Unit] ... Description=Network UPS Tools - power devices information server After=local-fs.target network.target nut-driver.target Wants=nut-driver.target Requires=network.target Before=nut-monitor.service PartOf=nut.target ...
Pour chacune des 3,
journalctl -xeuretourne
-- No entries --.
Démarche probablement incomplète.
Meuz Membre non connecté
-
- Voir le profil du membre Meuz
- Inscrit le : 06/08/2011
- Groupes :
Après le démarrage. Rien n'apparait dans
/var/state/ups/:
Code TEXT :
# ls -l /var/state/ups/* total 0
Le démon
upsden mode débogage :
Caché :
Code TEXT :
# upsd -D Network UPS Tools upsd 2.8.4 release 0.000000 fopen /var/state/ups/upsd.pid: No such file or directory 0.000006 [D1] Just failed to send signal, no daemon was running 0.000440 [D1] debug level is '1' 0.000490 listening on 127.0.0.1 port 3493 0.000498 [D1] server_load: tried to set up 1 listening sockets, succeeded with 1 0.000982 [D1] Succeeded to become_user(ups): now UID=970 GID=970 0.000996 [D1] chdired into statepath /var/state/ups for driver sockets 0.001234 Can't connect to UPS [ellipse650] (/var/state/ups/usbhid-ups-ellipse650): No such file or directory 0.001252 Found 1 UPS defined in ups.conf 0.001943 Running as foreground process, not saving a PID file 0.001955 upsnotify: notify about state NOTIFY_STATE_READY_WITH_PID with libsystemd: was requested, but not running as a service unit now, will not spam more about it 0.001960 [D1] On systems without service units, consider `export NUT_QUIET_INIT_UPSNOTIFY=true` 0.001965 upsnotify: failed to notify about state NOTIFY_STATE_READY_WITH_PID: no notification tech defined, will not spam more about it 0.001970 upsnotify: logged the systemd watchdog situation once, will not spam more about it 0.001975 [D1] mainloop: UPS [ellipse650] is not currently connected, trying to reconnect 0.001987 [D1] mainloop: UPS [ellipse650] is still not connected (FD -1) 2.003393 [D1] mainloop: UPS [ellipse650] is not currently connected, trying to reconnect 2.003467 [D1] mainloop: UPS [ellipse650] is still not connected (FD -1) ... 10.012394 [D1] mainloop: UPS [ellipse650] is still not connected (FD -1) 12.014595 [D1] mainloop: UPS [ellipse650] is not currently connected, trying to reconnect 12.014763 [D1] mainloop: UPS [ellipse650] is still not connected (FD -1) ^C 13.878796 mainloop: Interrupted system call 13.878849 Signal 2: exiting 13.878875 [D1] upsd_cleanup: starting the end-game 13.878940 [D1] driver_free: forgetting UPS [ellipse650] (FD -1) 13.878957 [D1] upsd_cleanup: finished # ls -l /var/state/ups/u* total 0
État de nut-server :
Caché :
Code TEXT :
# systemctl status nut-server.service
○ nut-server.service - Network UPS Tools - power devices information server
Loaded: loaded (/usr/lib/systemd/system/nut-server.service; enabled; preset: disabled)
Active: inactive (dead)
Docs: man:upsd(8)
https://www.networkupstools.org/historic/v2.8.4/docs/man/upsd.html
man:ups.conf(5)
https://www.networkupstools.org/historic/v2.8.4/docs/man/ups.conf.html
man:upsd.conf(5)
https://www.networkupstools.org/historic/v2.8.4/docs/man/upsd.conf.html
man:upsd.users(5)
https://www.networkupstools.org/historic/v2.8.4/docs/man/upsd.users.html
man:nut.conf(5)
https://www.networkupstools.org/historic/v2.8.4/docs/man/nut.conf.html
Je démarre le service peu après :
systemctl start nut-server.service
Caché :
Code TEXT :
# systemctl start nut-server.service
# systemctl status nut-server.service
● nut-server.service - Network UPS Tools - power devices information server
Loaded: loaded (/usr/lib/systemd/system/nut-server.service; enabled; preset: disabled)
Active: active (running) since Fri 2026-07-17 22:08:09 CEST; 9s ago
Invocation: 8442e2579f6e40438e30d4392a063ce2
Docs: man:upsd(8)
https://www.networkupstools.org/historic/v2.8.4/docs/man/upsd.html
man:ups.conf(5)
https://www.networkupstools.org/historic/v2.8.4/docs/man/ups.conf.html
man:upsd.conf(5)
https://www.networkupstools.org/historic/v2.8.4/docs/man/upsd.conf.html
man:upsd.users(5)
https://www.networkupstools.org/historic/v2.8.4/docs/man/upsd.users.html
man:nut.conf(5)
https://www.networkupstools.org/historic/v2.8.4/docs/man/nut.conf.html
Process: 2982 ExecStartPre=/usr/bin/systemd-tmpfiles --create /usr/lib/tmpfiles.d/nut-common-tmpfiles.conf (code=exited, status=0/SUCCESS)
Process: 2985 ExecStartPost=/bin/grep -E Units|Max open files /proc/${MAINPID}/limits (code=exited, status=0/SUCCESS)
Main PID: 2984 (upsd)
Tasks: 1 (limit: 18885)
Memory: 1.1M (peak: 3.6M)
CPU: 23ms
CGroup: /system.slice/nut-server.service
└─2984 /usr/sbin/upsd -F
juil. 17 22:08:09 bureau nut-server[2984]: Found 1 UPS defined in ups.conf
juil. 17 22:08:09 bureau upsd[2984]: Found 1 UPS defined in ups.conf
juil. 17 22:08:09 bureau nut-server[2984]: Running as foreground process, not saving a PID file
juil. 17 22:08:09 bureau nut-server[2984]: upsnotify: notify about state NOTIFY_STATE_READY_WITH_PID with libsystemd: was requested, but not running as a service unit now, will not spam more about it
juil. 17 22:08:09 bureau nut-server[2984]: upsnotify: failed to notify about state NOTIFY_STATE_READY_WITH_PID: no notification tech defined, will not spam more about it
juil. 17 22:08:09 bureau nut-server[2984]: upsnotify: logged the systemd watchdog situation once, will not spam more about itCode TEXT :
# ls -l /var/state/ups/* srw-rw---- 1 ups ups 0 juil. 17 22:08 /var/state/ups/usbhid-ups-ellipse650= -rw-r--r-- 1 ups ups 5 juil. 17 22:08 /var/state/ups/usbhid-ups-ellipse650.pid /var/state/ups/upssched: total 0
Et cette fois, ça marche.
NB. Le socket
/var/state/ups/usbhid-ups-ellipse650=, ne devrait pas comporter de "=" selon Mistral AI : bogue connu dit-il.
Répondre
Vous n'êtes pas autorisé à écrire dans cette catégorie