[arch-general] community/NUT replacing Network-UPS-Tools -- won't start.

Maxime Gauduin alucryd at archlinux.org
Fri May 29 10:29:05 UTC 2020


On Fri, 2020-05-29 at 04:25 -0500, David C. Rankin wrote:
> On upgrade I agreed to:
> 
> :: Replace network-ups-tools with community/nut? [Y/n]
> 
> network-ups-tools-2.7.4-5 [removal]  nut-2.7.4-1
> 
> (both same version of package)
> 
> However, after install, the nut-server.service would not start. Here
> are the
> logs for the last start before update and then the failure after the
> update:
> 
> -- Reboot --
> May 23 03:00:55 2pi systemd[1]: Starting Network UPS Tools - power
> devices
> information server...
> May 23 03:00:56 2pi upsd[474]: fopen /var/state/ups/upsd.pid: No such
> file or
> directory
> May 23 03:00:56 2pi upsd[474]: listening on 127.0.0.1 port 3493
> May 23 03:00:56 2pi upsd[474]: listening on 127.0.0.1 port 3493
> May 23 03:00:56 2pi upsd[474]: listening on ::1 port 3493
> May 23 03:00:56 2pi upsd[474]: listening on ::1 port 3493
> May 23 03:00:56 2pi upsd[474]: Connected to UPS [stp_ups]: usbhid-
> ups-stp_ups
> May 23 03:00:56 2pi upsd[474]: Connected to UPS [stp_ups]: usbhid-
> ups-stp_ups
> May 23 03:00:56 2pi upsd[475]: Startup successful
> May 23 03:00:56 2pi systemd[1]: Started Network UPS Tools - power
> devices
> information server.
> May 29 03:55:42 2pi upsd[475]: mainloop: Interrupted system call
> May 29 03:55:42 2pi upsd[475]: Signal 15: exiting
> May 29 03:55:42 2pi systemd[1]: Stopping Network UPS Tools - power
> devices
> information server...
> May 29 03:55:42 2pi systemd[1]: nut-server.service: Succeeded.
> May 29 03:55:42 2pi systemd[1]: Stopped Network UPS Tools - power
> devices
> information server.
> -- Reboot --
> May 29 03:58:08 2pi systemd[1]: Starting Network UPS Tools - power
> devices
> information server...
> May 29 03:58:08 2pi upsd[480]: fopen /run/nut/upsd.pid: No such file
> or directory
> May 29 03:58:08 2pi upsd[480]: /etc/nut/upsd.conf is world readable
> May 29 03:58:08 2pi upsd[480]: /etc/nut/upsd.conf is world readable
> May 29 03:58:08 2pi upsd[480]: listening on 127.0.0.1 port 3493
> May 29 03:58:08 2pi upsd[480]: listening on ::1 port 3493
> May 29 03:58:08 2pi upsd[480]: listening on 127.0.0.1 port 3493
> May 29 03:58:08 2pi upsd[480]: listening on ::1 port 3493
> May 29 03:58:08 2pi upsd[480]: Warning: no UPS definitions in
> ups.conf
> May 29 03:58:08 2pi upsd[480]: Fatal error: at least one UPS must be
> defined
> in ups.conf
> May 29 03:58:08 2pi upsd[480]: Network UPS Tools upsd 2.7.4
> May 29 03:58:08 2pi upsd[480]: Warning: no UPS definitions in
> ups.conf
> May 29 03:58:08 2pi upsd[480]: Fatal error: at least one UPS must be
> defined
> in ups.conf
> May 29 03:58:08 2pi systemd[1]: nut-server.service: Control process
> exited,
> code=exited, status=1/FAILURE
> May 29 03:58:08 2pi systemd[1]: nut-server.service: Failed with
> result
> 'exit-code'.
> May 29 03:58:08 2pi systemd[1]: Failed to start Network UPS Tools -
> power
> devices information server.
> May 29 04:09:14 2pi systemd[1]: Starting Network UPS Tools - power
> devices
> information server...
> May 29 04:09:14 2pi systemd[1]: nut-server.service: Control process
> exited,
> code=exited, status=1/FAILURE
> May 29 04:09:14 2pi systemd[1]: nut-server.service: Failed with
> result
> 'exit-code'.
> May 29 04:09:14 2pi systemd[1]: Failed to start Network UPS Tools -
> power
> devices information server.
> 
> There is the very same definition of the ups in ups.conf, e,g,
> 
> [stp_ups]
>         driver = usbhid-ups
>         port = auto
>         desc = "stp CP825 UPS"
> 
> 
> Removing the community package and reinstalling the old package works
> fine, e,g,
> 
> 04:16 2pi:~/.../pkg/x86_64/nut> sc restart nut-server
> 04:17 2pi:~/.../pkg/x86_64/nut> upsc stp_ups
> battery.charge: 100
> battery.charge.low: 10
> battery.charge.warning: 20
> battery.mfr.date: CPS
> battery.runtime: 3180
> battery.runtime.low: 300
> battery.type: PbAcid
> battery.voltage: 13.4
> battery.voltage.nominal: 12
> device.mfr: CPS
> device.model: UPS CP825
> device.type: ups
> driver.name: usbhid-ups
> driver.parameter.pollfreq: 30
> driver.parameter.pollinterval: 2
> driver.parameter.port: auto
> driver.parameter.synchronous: no
> driver.version: 2.7.4
> driver.version.data: CyberPower HID 0.4
> driver.version.internal: 0.41
> input.transfer.high: 140
> input.transfer.low: 100
> input.voltage: 122.0
> input.voltage.nominal: 120
> output.voltage: 122.0
> ups.beeper.status: enabled
> ups.delay.shutdown: 20
> ups.delay.start: 30
> ups.load: 15
> ups.mfr: CPS
> ups.model: UPS CP825
> ups.productid: 0501
> ups.realpower.nominal: 450
> ups.status: OL
> ups.test.result: Done and passed
> ups.timer.shutdown: -60
> ups.timer.start: 0
> ups.vendorid: 0764
> 
> Why doesn't the new nut from community work?
> 

Hi David,

The configuration for nut is now in `/etc/nut` as it should be, instead
of `/etc/ups`. You will need to migrate your previous configuration.
Modified the wiki to reflect that.

Cheers,
-- 
Maxime


More information about the arch-general mailing list