<div dir="ltr">On my raspbian buster RPi3's that run nut, no problems with the stock nut packages provided so I wouldn't expect problems with your RPi4 once you get the cable and configs sorted out. I use the RPi3's as nut-servers to monitor and manage my Tripp-Lite UPS systems, the other local systems run nut-client and communicate with the RPi.<div><br></div><div>--Larry</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jan 7, 2020 at 6:28 AM Gene Heskett <<a href="mailto:gheskett@shentel.net">gheskett@shentel.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Greetings all;<br>
<br>
Does nut build on an r-pi4b?<br>
<br>
I have an r-pi4b running one of my cnc machines and the power bump <br>
performance due to the size of its psu and the fairly rapid start time <br>
of my standby generator, does not allow a full powerdown restart to take <br>
place, leaving the pi in a crashed state.<br>
<br>
I've purchased a factory refurbed cyberpower ups rated at 650 WA which I <br>
intend to figure out a way to hang it on the machine to power the pi <br>
only, which has a 25 watt 5 volt psu running it.  With no connection to <br>
the pi other that putting cyberpower in the line cords path, it should <br>
run the pi for 30 minutes, and the standby will generally start in <br>
around 5 secs.  So the problem should be solved.<br>
<br>
But it would be nice to be able to monitor it.  So, can nut be built to <br>
run on an armhf platform? Mmmm, possibly silly Q, its available in the <br>
raspbian buster repo's. So I had apt install it.<br>
<br>
But the installer failed to start it, not surprising because its not been <br>
configured yet nor has whatever cable cyberpower needs been connected.<br>
The apt install log:<br>
pi@rpi4:/media/pi/workspace/rpi4-kernel $ sudo apt install nut<br>
Reading package lists... Done<br>
Building dependency tree<br>
Reading state information... Done<br>
The following additional packages will be installed:<br>
  libupsclient4 nut-client nut-server<br>
Suggested packages:<br>
  nut-monitor nut-cgi nut-ipmi nut-snmp nut-xml<br>
The following NEW packages will be installed:<br>
  libupsclient4 nut nut-client nut-server<br>
0 upgraded, 4 newly installed, 0 to remove and 6 not upgraded.<br>
Need to get 1,358 kB of archives.<br>
After this operation, 4,902 kB of additional disk space will be used.<br>
Do you want to continue? [Y/n] y<br>
Get:1 <a href="http://mirror.pit.teraswitch.com/raspbian/raspbian" rel="noreferrer" target="_blank">http://mirror.pit.teraswitch.com/raspbian/raspbian</a> buster/main <br>
armhf libupsclient4 armhf 2.7.4-8 [180 kB]<br>
Get:2 <a href="http://mirror.pit.teraswitch.com/raspbian/raspbian" rel="noreferrer" target="_blank">http://mirror.pit.teraswitch.com/raspbian/raspbian</a> buster/main <br>
armhf nut-client armhf 2.7.4-8 [243 kB]<br>
Get:3 <a href="http://mirror.pit.teraswitch.com/raspbian/raspbian" rel="noreferrer" target="_blank">http://mirror.pit.teraswitch.com/raspbian/raspbian</a> buster/main <br>
armhf nut-server armhf 2.7.4-8 [690 kB]<br>
Get:4 <a href="http://mirror.pit.teraswitch.com/raspbian/raspbian" rel="noreferrer" target="_blank">http://mirror.pit.teraswitch.com/raspbian/raspbian</a> buster/main <br>
armhf nut all 2.7.4-8 [245 kB]<br>
Fetched 1,358 kB in 3s (515 kB/s)<br>
Selecting previously unselected package libupsclient4:armhf.<br>
(Reading database ... 261019 files and directories currently installed.)<br>
Preparing to unpack .../libupsclient4_2.7.4-8_armhf.deb ...<br>
Unpacking libupsclient4:armhf (2.7.4-8) ...<br>
Selecting previously unselected package nut-client.<br>
Preparing to unpack .../nut-client_2.7.4-8_armhf.deb ...<br>
Unpacking nut-client (2.7.4-8) ...<br>
Selecting previously unselected package nut-server.<br>
Preparing to unpack .../nut-server_2.7.4-8_armhf.deb ...<br>
Unpacking nut-server (2.7.4-8) ...<br>
Selecting previously unselected package nut.<br>
Preparing to unpack .../archives/nut_2.7.4-8_all.deb ...<br>
Unpacking nut (2.7.4-8) ...<br>
Setting up libupsclient4:armhf (2.7.4-8) ...<br>
Setting up nut-client (2.7.4-8) ...<br>
Created <br>
symlink /etc/systemd/system/multi-user.target.wants/nut-monitor.service <br>
→ /lib/systemd/system/nut-monitor.service.<br>
Job for nut-monitor.service failed because the service did not take the <br>
steps required by its unit configuration.<br>
See "systemctl status nut-monitor.service" and "journalctl -xe" for <br>
details.<br>
invoke-rc.d: initscript nut-client, action "start" failed.<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>
vendor preset: enabled)<br>
   Active: failed (Result: protocol) since Tue 2020-01-07 07:19:19 EST; <br>
116ms ago<br>
  Process: 32343 ExecStart=/sbin/upsmon (code=exited, status=0/SUCCESS)<br>
<br>
Jan 07 07:19:19 rpi4 systemd[1]: Starting Network UPS Tools - power <br>
device monitor and shutdown controller...<br>
Jan 07 07:19:19 rpi4 upsmon[32343]: upsmon disabled, please adjust the <br>
configuration to your needs<br>
Jan 07 07:19:19 rpi4 upsmon[32343]: Then set MODE to a suitable value <br>
in /etc/nut/nut.conf to enable it<br>
Jan 07 07:19:19 rpi4 systemd[1]: nut-monitor.service: Can't open PID <br>
file /run/nut/upsmon.pid (yet?) after start: No such file or directory<br>
Jan 07 07:19:19 rpi4 systemd[1]: nut-monitor.service: Failed with <br>
result 'protocol'.<br>
Jan 07 07:19:19 rpi4 systemd[1]: Failed to start Network UPS Tools - <br>
power device monitor and shutdown controller.<br>
Setting up nut-server (2.7.4-8) ...<br>
Created <br>
symlink /etc/systemd/system/multi-user.target.wants/nut-server.service <br>
→ /lib/systemd/system/nut-server.service.<br>
nut-driver.service is a disabled or a static unit, not starting it.<br>
Setting up nut (2.7.4-8) ...<br>
Processing triggers for systemd (241-7~deb10u2+rpi1) ...<br>
Processing triggers for man-db (2.8.5-2) ...<br>
Processing triggers for libc-bin (2.28-10+rpi1) ...<br>
pi@rpi4:/media/pi/workspace/rpi4-kernel $<br>
<br>
So, is there enough help in the man pages?, or do you see any <br>
showstoppers in the above trace?<br>
<br>
Thanks all.<br>
<br>
Cheers, Gene Heskett<br>
-- <br>
"There are four boxes to be used in defense of liberty:<br>
 soap, ballot, jury, and ammo. Please use in that order."<br>
-Ed Howdershelt (Author)<br>
If we desire respect for the law, we must first make the law respectable.<br>
 - Louis D. Brandeis<br>
Genes Web page <<a href="http://geneslinuxbox.net:6309/gene" rel="noreferrer" target="_blank">http://geneslinuxbox.net:6309/gene</a>><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></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div>Larry Fahnoe, Fahnoe Technology Consulting, fahnoe@FahnoeTech.com</div><div>           Minneapolis, Minnesota       <a href="http://www.FahnoeTech.com" target="_blank">www.FahnoeTech.com</a></div></div>