<div dir="ltr"><div>Well, from your logs it seems that at 05:17:03 your nut-server (upsd) restarted, so an upsmon reconnection attempt at 05:17:09 had an issue with that (config not all applied? strange a bit) but since 05:17:14 it is okay.</div><div><br></div><div>Maybe a few too many banners shown from upsmon, while its same uptime seems to continue. Maybe someone should check on that, seems like a good and easy newcomer issue to learn the code, so PRs are welcome :D</div><div><br></div><div>Messages about lack of "*.pid" files are okay, they should look less scary in newer releases of NUT. They confirm that there is no previous daemon with the same basic configuration currently running, so that your new instance might conflict with it or send it some signals intentionally - so it is just a new start in a clean environment with no competitors. <br></div><div><br></div><div>It is a bit unfortunate that both syslog (upsd) and stderr (nut-server) messages land into the same systemd journal. It may be possible to add auto-detection of systemd and not-emit one of those streams then, or add an option for that to be quieter and better readable (some people can have a separate syslog setup anyway, maybe on a remote "sink" system, so just cutting one off always is not right).</div><div><br></div><div>So one question that remains is the missing lines from previous lifetime in the short excerpt of upsd: why did it restart at that time? :)<br></div><div><br></div><div>Jim</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jan 19, 2024 at 6:13 AM Stefan Schumacher via Nut-upsuser <<a href="mailto:nut-upsuser@alioth-lists.debian.net">nut-upsuser@alioth-lists.debian.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello<br>
<br>
I recently bought a small UPS by Eaton (Ellipse ECO 800) in order to prevent my<br>
btrfs-fileserver (running Debian 12 Bookworm 12.4 from shutting down<br>
abruptly while writing<br>
something important during a power loss. I am using the version<br>
2.8.0.7 provided by Debian.<br>
I have found very gooddocumentation on how to set up the UPS and the<br>
services on the server<br>
connected to it. Unfortunately it's in German<br>
(<a href="https://techbotch.org/blog/ups-setup/index.html" rel="noreferrer" target="_blank">https://techbotch.org/blog/ups-setup/index.html</a>) which is not a<br>
problem for me but possibly for others trying to understand my set-up.<br>
<br>
I will now describe the steps I took and the configuration options I<br>
set and then post the errors of nut-monitor and nut server. I hope<br>
someone can help fix the underlying problem behind these error<br>
messages.<br>
<br>
lsusb shows the UPS:<br>
Bus 001 Device 003: ID 0463:ffff MGE UPS Systems UPS<br>
<br>
So I made this changes to ups.conf<br>
[Eaton]<br>
driver = usbhid-ups<br>
port = auto<br>
vendorid = 0463<br>
pollfreq = 30<br>
<br>
In nut.conf I set mode=standalone.<br>
<br>
And finally I added these lines to upsd.users:<br>
[upsmon]<br>
password = XXXX<br>
actions = SET<br>
instcmds = ALL<br>
<br>
I did a live test, plugged the cord and waited until the server shut<br>
down at 20%. Worked fine.<br>
Upsc also works - I can query my UPS for specific parameters or show them all.<br>
<br>
The problem is the dozens of errors the systemctl status messages<br>
show. I bought the UPS to increase reliability and now I don't know if<br>
the service is working in case of an emergency. How can I fix this ?<br>
<br>
● nut-server.service - Network UPS Tools - power devices information server<br>
Loaded: loaded (/lib/systemd/system/nut-server.service; enabled;<br>
preset: enabled)<br>
Active: active (running) since Fri 2024-01-19 05:17:03 CET; 5s ago<br>
Main PID: 1303 (upsd)<br>
Tasks: 1 (limit: 38253)<br>
Memory: 640.0K<br>
CPU: 3ms<br>
CGroup: /system.slice/nut-server.service<br>
└─1303 /lib/nut/upsd -F<br>
Jan 19 05:17:03 servername nut-server[1303]: fopen /run/nut/upsd.pid:<br>
No such file or directory<br>
Jan 19 05:17:03 servername nut-server[1303]: Could not find PID file<br>
'/run/nut/upsd.pid' to see if previous upsd instance is already<br>
running!<br>
Jan 19 05:17:03 servername nut-server[1303]: listening on 127.0.0.1 port 3493<br>
Jan 19 05:17:03 servername nut-server[1303]: listening on ::1 port 3493<br>
Jan 19 05:17:03 servername upsd[1303]: listening on 127.0.0.1 port 3493<br>
Jan 19 05:17:03 servername upsd[1303]: listening on ::1 port 3493<br>
Jan 19 05:17:03 servername nut-server[1303]: Connected to UPS [Eaton]:<br>
usbhid-ups-Eaton<br>
Jan 19 05:17:03 servername upsd[1303]: Connected to UPS [Eaton]:<br>
usbhid-ups-Eaton<br>
Jan 19 05:17:03 servername upsd[1303]: Running as foreground process,<br>
not saving a PID file<br>
Jan 19 05:17:03 servername nut-server[1303]: Running as foreground<br>
process, not saving a PID file<br>
<br>
● nut-monitor.service - Network UPS Tools - power device monitor and<br>
shutdown controller<br>
Loaded: loaded (/lib/systemd/system/nut-monitor.service; enabled;<br>
preset: enabled)<br>
Active: active (running) since Fri 2024-01-19 03:37:28 CET; 1h 41min ago<br>
Main PID: 847 (upsmon)<br>
Tasks: 2 (limit: 38253)<br>
Memory: 3.4M<br>
CPU: 338ms<br>
CGroup: /system.slice/nut-monitor.service<br>
├─847 /lib/nut/upsmon -F<br>
└─849 /lib/nut/upsmon -F<br>
Jan 19 03:43:08 servername nut-monitor[849]: UPS Eaton@localhost on battery<br>
Jan 19 03:43:09 servername nut-monitor[916]: Network UPS Tools upsmon 2.8.0<br>
Jan 19 03:43:33 servername nut-monitor[849]: UPS Eaton@localhost on line power<br>
Jan 19 03:43:34 servername nut-monitor[920]: Network UPS Tools upsmon 2.8.0<br>
Jan 19 05:17:04 servername nut-monitor[849]: Poll UPS<br>
[Eaton@localhost] failed - Write error: Broken pipe<br>
Jan 19 05:17:04 servername nut-monitor[849]: Communications with UPS<br>
Eaton@localhost lost<br>
Jan 19 05:17:04 servername nut-monitor[1305]: Network UPS Tools upsmon 2.8.0<br>
Jan 19 05:17:09 servername nut-monitor[849]: Login on UPS<br>
[Eaton@localhost] failed - got [ERR ACCESS-DENIED]<br>
Jan 19 05:17:14 servername nut-monitor[849]: Communications with UPS<br>
Eaton@localhost established<br>
Jan 19 05:17:14 servername nut-monitor[1312]: Network UPS Tools upsmon 2.8.0<br>
<br>
<br>
Yours sincerely<br>
Stefan Malte Schumacher<br>
<br>
_______________________________________________<br>
Nut-upsuser mailing list<br>
<a href="mailto:Nut-upsuser@alioth-lists.debian.net" target="_blank">Nut-upsuser@alioth-lists.debian.net</a><br>
<a href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser" rel="noreferrer" target="_blank">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser</a><br>
</blockquote></div>