[Nut-upsuser] ups not being started sat reboot

Gene Heskett gheskett at shentel.net
Sat Sep 5 16:44:58 BST 2020


On Saturday 05 September 2020 09:55:08 Charles Lepple wrote:
[...]
> Roger, I don't have any experience with the Raspberry Pi 4, but
> previous RPi models would just boot as soon as power is applied, so
> I'm guessing this is more of a problem starting NUT at boot.

Correct, but see below.

> Gene, assuming this is a "standalone" setup (upsd, driver, and upsmon
> on the same system).

It is self contained yes.

> If so, I'd recommend using "LISTEN 127.0.0.1" if 
> you don't need network access (e.g. upsc or other monitoring software
> on another box), or "LISTEN 0.0.0.0" to listen on all local network
> interfaces.
>
> If the LISTEN line is't the culprit, I'd recommend posting the output
> of "systemctl status nut-server.service" after boot to see why it
> didn't start (or more likely, stay running after starting).
>
> - Charles

I don't think it is the problem, here is that output:

pi at rpi4:/media/pi/workspace $ systemctl status nut-server.service
● nut-server.service - Network UPS Tools - power devices information 
server
   Loaded: loaded (/lib/systemd/system/nut-server.service; enabled; 
vendor preset: enabled)
   Active: active (running) since Mon 2020-08-24 17:35:19 EDT; 1 weeks 4 
days ago
 Main PID: 731 (upsd)
    Tasks: 1 (limit: 4033)
   Memory: 468.0K
   CGroup: /system.slice/nut-server.service
           └─731 /usr/local/ups/sbin/upsd

Aug 24 17:35:19 rpi4.coyote.den systemd[1]: Starting Network UPS Tools - 
power devices information server...
Aug 24 17:35:19 rpi4.coyote.den upsd[729]: fopen /var/run/nut/upsd.pid: 
No such file or directory
Aug 24 17:35:19 rpi4.coyote.den upsd[729]: listening on 127.0.0.1 port 
3493
Aug 24 17:35:19 rpi4.coyote.den upsd[729]: listening on 127.0.0.1 port 
3493
Aug 24 17:35:19 rpi4.coyote.den upsd[729]: Connected to UPS [myups]: 
usbhid-ups-myups
Aug 24 17:35:19 rpi4.coyote.den upsd[729]: Connected to UPS [myups]: 
usbhid-ups-myups
Aug 24 17:35:19 rpi4.coyote.den upsd[731]: Startup successful
Aug 24 17:35:19 rpi4.coyote.den systemd[1]: Started Network UPS Tools - 
power devices information server.
Aug 24 17:35:46 rpi4.coyote.den upsd[731]: Data for UPS [myups] is 
stale - check driver
Aug 24 17:35:46 rpi4.coyote.den upsd[731]: UPS [myups] data is no longer 
stale

Aug 24 was I guess the last reboot, and that looks as if its been running 
since, so I must have missed it in the htop report.  But there has been 
at least 2 bumps, neither of which lasted long enough to start the 
generac but did reboot the brother printer on the next table as its not 
protected by a big APC under this desk.  That should have gotten a -wall 
from the pi's logged in terminal, but didn't.

Maybe it was so short the cyberpower never reported in was OB? IDK.

Thanks Charles.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>



More information about the Nut-upsuser mailing list