Bug 1222255 - apcupsd killpower requested in non-power fail condition
Summary: apcupsd killpower requested in non-power fail condition
Status: NEW
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Other (show other bugs)
Version: Current
Hardware: x86-64 openSUSE Tumbleweed
: P5 - None : Minor (vote)
Target Milestone: ---
Assignee: Antonio Teixeira
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-03 05:49 UTC by JS
Modified: 2024-05-09 07:08 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description JS 2024-04-03 05:49:57 UTC
When manually hibernate the system, the following error is logged:

apcupsd: Cannot find /etc/apcupsd/powerfail file.
                Killpower requested in non-power fail condition or bug.
                Killpower request ignored at device.c:95
systemd-sleep: apcupsd FATAL ERROR in device.c at line 96
systemd-sleep: Cannot find /etc/apcupsd/powerfail file.
systemd-sleep:  Killpower requested in non-power fail condition or bug.
systemd-sleep:  Killpower request ignored at device.c:96
apcupsd: apcupsd FATAL ERROR in device.c at line 96
               Cannot find /etc/apcupsd/powerfail file.
                Killpower requested in non-power fail condition or bug.
                Killpower request ignored at device.c:96
apcupsd: apcupsd error shutdown completed

There should be no need to turn off the UPS when there is no power outage.

Maybe add an additional check (&& [ -f /etc/apcupsd/powerfail ]) before calling apccontrol killpower in /usr/lib/systemd/system-sleep/apcupsd.sh is enough.