-
-
Notifications
You must be signed in to change notification settings - Fork 365
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fopen /run/nut/upsmon.pid: No such file or directory & nut-monitor.service: Supervising process 861 which is not our child. We'll most likely not notice when it exits. #2806
Comments
For one, this should be mostly harmless. Several NUT daemons leave PID files so that later invocations for signal-sending (reload, etc.) know where to send them. With systemd, its reloader/restarter can be used instead. Daemons also drop privileges (in case of Finally note that NUT v2.7.4 is about 9 years old. It was the newest release for too long, until 2022 (probably that's why it is still shipped in Ubuntu 22.04), but we've had several releases since then. |
Thanks! Yesterday I have updated the server to Ubuntu 24.04: Running systemclt status nut-client show the following: nut-monitor.service - Network UPS Tools - power device monitor and shutdown controller Feb 18 10:30:10 systemd[1]: Starting nut-monitor.service - Network UPS Tools - power device monitor and shutdown controller... Following messages are shown: how can I solve those or are they are just informational? Process: 21868 ExecStartPre=/usr/bin/systemd-tmpfiles --create /usr/lib/tmpfiles.d/nut-common-tmpfiles.conf Failed to open '/usr/lib/tmpfiles.d/nut-common-tmpfiles.conf: this file doesn't exists in this location. running sudo upsc @: Init SSL without certificate database Kind Regards, Rob |
This seems significant, although here does not block the client from starting (may keep it unable to save the PID file). Probably the config file is placed into some other package by the distro? |
Dear Support,
Running: Linux Ubuntu 22.04
nut-client:
Package: nut-client
Version: 2.7.4-14ubuntu2
Running systemclt status nut-client show the following:
● nut-monitor.service - Network UPS Tools - power device monitor and shutdown controller
Loaded: loaded (/lib/systemd/system/nut-monitor.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2025-02-17 14:51:36 CET; 50s ago
Process: 816 ExecStart=/sbin/upsmon (code=exited, status=0/SUCCESS)
Main PID: 861 (upsmon)
Tasks: 2 (limit: 9086)
Memory: 4.1M
CPU: 16ms
CGroup: /system.slice/nut-monitor.service
├─858 /lib/nut/upsmon
└─861 /lib/nut/upsmon
Feb 17 14:51:35 systemd[1]: Starting Network UPS Tools - power device monitor and shutdown controller...
Feb 17 14:51:36 upsmon[816]: fopen /run/nut/upsmon.pid: No such file or directory
Feb 17 14:51:36 upsmon[816]: UPS: @ (slave) (power value 1)
Feb 17 14:51:36 upsmon[816]: Using power down flag file /etc/killpower
Feb 17 14:51:36 upsmon[858]: Startup successful
Feb 17 14:51:36 systemd[1]: nut-monitor.service: Can't open PID file /run/nut/upsmon.pid (yet?) after start: Operation not permitted
Feb 17 14:51:36 systemd[1]: nut-monitor.service: Supervising process 861 which is not our child. We'll most likely not notice when it exits.
Feb 17 14:51:36 systemd[1]: Started Network UPS Tools - power device monitor and shutdown controller.
Are those error messages or just information and the nut-client is working normally?:
fopen /run/nut/upsmon.pid: No such file or directory
nut-monitor.service: Can't open PID file /run/nut/upsmon.pid (yet?) after start: Operation not permitted
nut-monitor.service: Supervising process 861 which is not our child. We'll most likely not notice when it exits.
Kind Regards,
Rob
The text was updated successfully, but these errors were encountered: