Timur Tabi
2021-Dec-09 01:29 UTC
[Nut-upsuser] Need to unplug and reconnect UPS serial cable for upsdrvctl to start
I'm having trouble getting NUT to start properly after a reboot. I'm using a Raspberry Pi with the Octopi 0.18 image. I can get it to work after fiddling with it, but I think I have a few things messed up with the installation. First problem is that it appears that NUT does not autostart. I didn't see anything about that in the FAQ. What is the standard way to enable NUT to autostart, once installed? Second problem is that when I manually run "upsdrvctl start", I get errors: # upsdrvctl start Network UPS Tools - UPS driver controller 2.7.4 Network UPS Tools - APC Smart protocol driver 3.1 (2.7.4) APC command table version 3.1 unable to detect an APC Smart protocol UPS on port /dev/ttyS0 check the cabling, port name or model name and try again Driver failed to start (exit status=1) Network UPS Tools - APC Smart protocol driver 3.1 (2.7.4) APC command table version 3.1 unable to detect an APC Smart protocol UPS on port /dev/ttyS0 check the cabling, port name or model name and try again Driver failed to start (exit status=1) Network UPS Tools - APC Smart protocol driver 3.1 (2.7.4) APC command table version 3.1 unable to detect an APC Smart protocol UPS on port /dev/ttyS0 check the cabling, port name or model name and try again Driver failed to start (exit status=1) Now, if I unplug the reconnect the serial cable, I see this on the console: root at octopi:~# unable to detect an APC Smart protocol UPS on port /dev/ttyS0 check the cabling, port name or model name and try again Does this mean that upsdrvctl is actually running? Anyway, after unplugging and replugging the serial cable, if I start upsdrvctl again, it works but I still get a weird error message: # upsdrvctl start Network UPS Tools - UPS driver controller 2.7.4 Network UPS Tools - APC Smart protocol driver 3.1 (2.7.4) APC command table version 3.1 [d] unrecognized What does "[d] unrecognized" mean?
Roger Price
2021-Dec-10 14:16 UTC
[Nut-upsuser] Need to unplug and reconnect UPS serial cable for upsdrvctl to start
On Wed, 8 Dec 2021, Timur Tabi wrote:> I'm having trouble getting NUT to start properly after a reboot. I'm using a > Raspberry Pi with the Octopi 0.18 image. I can get it to work after fiddling > with it, but I think I have a few things messed up with the installation. > > First problem is that it appears that NUT does not autostart. I didn't see > anything about that in the FAQ. What is the standard way to enable NUT to > autostart, once installed?Do you use systemd? Do you have files nut-server.service, nut-monitor.service and nut-driver.service, maybe in /lib/systemd/system/ Are the service units enabled? What does the command "systemctl status nut-server" report? Roger