Paul Newbery
2020-Mar-06 19:02 UTC
[Nut-upsuser] NUT-Server will not start at boot with Cyberpower PR1500
O.S.: Linux LMDE 3 "Cindy" Linux Kernel: 4.9.0-12-amd64 NUT Version: 2.4.7-5 Installed from: Debian package Driver in use: usbhid-ups UPS device: Powerwalker Basic VI 1500 STL. Identifies as Cyberpower PR1500LCDRT2U UPS VendorID 0764 ProductID 0601 Product URL: https://powerwalker.com/?page=product&item=10121076&lang=en Manufactured: 2019 Problem: I have been struggling for several weeks now to get these devices working satisfactorily. I purchased 2 of the units because the product information specifically stated that their "Powermaster" software worked with Ubuntu 18.04. I was using Linux Mint 19 at the time of purchase which is Ubuntu 18.04 based. I tried to get them working with this software on both Mint 19 and Ubuntu 18.04 and it just does not work. It talks to the UPS and all the settings can be set, but the UPSs would not perform an orderly shutdown of the computers. Product support in Germany could not help and have referred the issue to Taiwan which is now shut due to the Coronovirus outbreak. I am now using The Mint LMDE O.S. and cannot get them to work correctly on this O.S. either. I have since been trying to get them working with the NUT software, which I can do, but I simply cannot get them to start at system start up. It can be seen from the "Syslog Nut Extract" that upsdrvctl successfully loads the driver, but nut-server fails to start and the driver then stops as it is no longer required. However, upsmon continues to load successfully and proceeds to fill up the syslog with error messages. I can start everything post boot-up from a terminal by using the upsdrvctl, upsd and upsmon commands and everything then works properly. I have put this startup sequence into a script (attached) which also works well. I have been unsuccessful so far, in getting this script to run from crontab as root at boot time. Any help will be much appreciated. Paul Newbery -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20200306/53f05243/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: Syslog Nut extract Type: application/octet-stream Size: 3546 bytes Desc: Syslog Nut extract URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20200306/53f05243/attachment.obj> -------------- next part -------------- A non-text attachment was scrubbed... Name: upsc output Type: application/octet-stream Size: 913 bytes Desc: upsc output URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20200306/53f05243/attachment-0001.obj> -------------- next part -------------- A non-text attachment was scrubbed... Name: nutstart.sh Type: application/x-shellscript Size: 705 bytes Desc: nutstart.sh URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20200306/53f05243/attachment.bin>
Charles Lepple
2020-Mar-07 15:50 UTC
[Nut-upsuser] NUT-Server will not start at boot with Cyberpower PR1500
On Mar 6, 2020, at 2:02 PM, Paul Newbery <newberype at hotmail.co.uk> wrote:> > I have since been trying to get them working with the NUT software, which I can do, but I simply cannot get them to start at system start up. It can be seen from the "Syslog Nut Extract" that upsdrvctl successfully loads the driver, but nut-server fails to start and the driver then stops as it is no longer required. However, upsmon continues to load successfully and proceeds to fill up the syslog with error messages. >Mar 6 14:05:02 paul-desktop upsd[947]: fopen /var/run/nut/upsd.pid: No such file or directory Mar 6 14:05:02 paul-desktop upsd[947]: /etc/nut/upsd.conf is world readable Mar 6 14:05:02 paul-desktop upsd[947]: /etc/nut/upsd.conf is world readable Mar 6 14:05:02 paul-desktop upsd[947]: not listening on 192.168.1.64 port 3493 Mar 6 14:05:02 paul-desktop upsd[947]: listening on ::1 port 3493 Mar 6 14:05:02 paul-desktop upsd[947]: listening on 127.0.0.1 port 3493 Mar 6 14:05:02 paul-desktop upsd[947]: no listening interface available Mar 6 14:05:02 paul-desktop upsd[947]: not listening on 192.168.1.64 port 3493 ^ At this point, the 192.168.1.64 network interface may not be up. Are you intending to allow NUT to only listen on localhost and one specific network interface? Or is there only one physical network interface total? If the latter, I recommend "LISTEN 0.0.0.0" to listen on all local addresses. If the former, I would use a firewall that does filtering well before the packets touch NUT code, and that can also block packets destined to other interfaces until the one allowed interface is up.
Paul Newbery
2020-Mar-07 17:38 UTC
[Nut-upsuser] NUT-Server will not start at boot with Cyberpower PR1500
Hi Charles, Thanks for your response. No, I only put 192.168.1.64 as an extra option as I want to allow Slave access from another computer. Otherwise, access will normally only be from localhost. There is only one network interface on this machine. I will try it out with "LISTEN 0.0.0.0 3493" and see what happens. I must confess I usually run without a firewall as I'm only running a home network, but I suppose I really should start using it! I will report back. Paul N. ________________________________ From: Charles Lepple <clepple at gmail.com> Sent: 07 March 2020 15:50 To: Paul Newbery <newberype at hotmail.co.uk> Cc: nut-upsuser at alioth-lists.debian.net <nut-upsuser at alioth-lists.debian.net> Subject: Re: [Nut-upsuser] NUT-Server will not start at boot with Cyberpower PR1500 On Mar 6, 2020, at 2:02 PM, Paul Newbery <newberype at hotmail.co.uk> wrote:> > I have since been trying to get them working with the NUT software, which I can do, but I simply cannot get them to start at system start up. It can be seen from the "Syslog Nut Extract" that upsdrvctl successfully loads the driver, but nut-server fails to start and the driver then stops as it is no longer required. However, upsmon continues to load successfully and proceeds to fill up the syslog with error messages. >Mar 6 14:05:02 paul-desktop upsd[947]: fopen /var/run/nut/upsd.pid: No such file or directory Mar 6 14:05:02 paul-desktop upsd[947]: /etc/nut/upsd.conf is world readable Mar 6 14:05:02 paul-desktop upsd[947]: /etc/nut/upsd.conf is world readable Mar 6 14:05:02 paul-desktop upsd[947]: not listening on 192.168.1.64 port 3493 Mar 6 14:05:02 paul-desktop upsd[947]: listening on ::1 port 3493 Mar 6 14:05:02 paul-desktop upsd[947]: listening on 127.0.0.1 port 3493 Mar 6 14:05:02 paul-desktop upsd[947]: no listening interface available Mar 6 14:05:02 paul-desktop upsd[947]: not listening on 192.168.1.64 port 3493 ^ At this point, the 192.168.1.64 network interface may not be up. Are you intending to allow NUT to only listen on localhost and one specific network interface? Or is there only one physical network interface total? If the latter, I recommend "LISTEN 0.0.0.0" to listen on all local addresses. If the former, I would use a firewall that does filtering well before the packets touch NUT code, and that can also block packets destined to other interfaces until the one allowed interface is up. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20200307/7a14bc6c/attachment.html>
Reasonably Related Threads
- NUT-Server will not start at boot with Cyberpower PR1500
- NUT-Server will not start at boot with Cyberpower PR1500
- NUT-Server will not start at boot with Cyberpower PR1500
- cyberpower ups need to manully turn on the switch
- CyberPower BR850ELCD ignores offdelay and turns itself back on while still on battery