ExecStartPre=/usr/bin/systemd-tmpfiles --create /usr/lib/tmpfiles.d/nut-common-tmpfiles.conf (code=exited, status=1/FAILURE)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Network UPS Tools |
Fix Released
|
Unknown
|
|||
nut (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Hi,
I would like to refer to the following issue created at github.com:
https:/
ExecStartPre=
Failed to open '/usr/lib/
fopen /run/nut/
Could not find PID file to see if previous upsmon instance is already
Ubuntu 24.04:
nut-client: 2.8.1-3.1ubuntu2
Running systemclt status nut-client show the following:
nut-monitor.service - Network UPS Tools - power device monitor and shutdown controller
Loaded: loaded (/usr/lib/
Active: active (running) since Tue 2025-02-18 10:30:10 CET; 3min 9s ago
Process: 21868 ExecStartPre=
Main PID: 21869 (upsmon)
Tasks: 2 (limit: 9130)
Memory: 840.0K (peak: 1.1M)
CPU: 31ms
CGroup: /system.
├─21869 /lib/nut/upsmon -F
└─21871 /lib/nut/upsmon -F
Feb 18 10:30:10 systemd[1]: Starting nut-monitor.service - Network UPS Tools - power device monitor and shutdown controller...
Feb 18 10:30:10 systemd-
Feb 18 10:30:10 systemd[1]: Started nut-monitor.service - Network UPS Tools - power device monitor and shutdown controller.
Feb 18 10:30:10 nut-monitor[21869]: fopen /run/nut/
Feb 18 10:30:10 nut-monitor[21869]: Could not find PID file to see if previous upsmon instance is already running!
Feb 18 10:30:10 nut-monitor[21869]: UPS: @ (secondary) (power value 1)
Feb 18 10:30:10 nut-monitor[21869]: Using power down flag file /etc/killpower
Feb 18 10:30:10 nut-monitor[21871]: Init SSL without certificate database
Feb 18 10:30:10 nut-monitor[21871]: upsnotify: failed to notify about state 2: no notification tech defined, will not spam more about it
Kind Regards,
Rob
Changed in nut: | |
status: | Unknown → Fix Released |
# dpkg -S /usr/lib/ tmpfiles. d/nut-common- tmpfiles. conf tmpfiles. d/nut-common- tmpfiles. conf
nut-server: /usr/lib/
If nut itself (or nut-client + nut-server) is installed this behavior does not occur. I was able to reproduce it by uninstalling nut-server, which removes the file. I believe installing only nut-client will result in the same behavior as well.