Bug 28608

Summary: APC UPS config fails in MCC - pop-up window informing about Write support for users is incomplete
Product: Mageia Reporter: christian barranco <chb0>
Component: RPM PackagesAssignee: Mageia tools maintainers <mageiatools>
Status: NEW --- QA Contact:
Severity: normal    
Priority: Normal CC: davidwhodgins
Version: 8   
Target Milestone: ---   
Hardware: All   
OS: Linux   
See Also: https://bugs.mageia.org/show_bug.cgi?id=24839
Whiteboard:
Source RPM: nut-server-1:2.7.4-6.mga8.x86_64 CVE:
Status comment:
Attachments: MCC UPS configuration start
MCC error pop-up window while configuring UPS
journalctl output while trying to configure the UPS

Description christian barranco 2021-03-17 10:14:43 CET
Description of problem:
Using MCC>Hardware>Set up a UPS...
The installation doesn't complete
Error pop-up window is displayed

Version-Release number of selected component (if applicable):
nut-server-1:2.7.4-6.mga8.x86_64 

How reproducible: always on my machine plugged on an UPS


Steps to Reproduce:
1. Go to MCC>Hardware>Set up a UPS...
2. Nut-server package is installed
3. Select automatic installation via USB cable. Actually, manual setup fails in the same way.
4. Installation doesn't complete successfully. Pop-up window with : Write support for users is incomplete and it lacks sime support for some extra fields... (see attachments)
5. Do note nut-server service is not started automatically. I did start it and tried again the installation; installation still doesn't complete in the same way.

With another distro (openSUSE), I have succeeded to configure the same system with APCUPSD. 
I could go that way but I propose instead to help you fixing this issue if you provide some guidance.
Comment 1 christian barranco 2021-03-17 10:16:23 CET
Created attachment 12471 [details]
MCC UPS configuration start

First window after package installation to start configuring the UPS connected on an USB port (sorry for the french langage used here).
Comment 2 christian barranco 2021-03-17 10:18:11 CET
Created attachment 12472 [details]
MCC error pop-up window while configuring UPS

This pop-up window ends the configuration process via MCC
Comment 3 christian barranco 2021-03-17 10:21:19 CET
Created attachment 12473 [details]
journalctl output while trying to configure the UPS

Complete journalctl output while trying to configure the UPS
The device is a Back-UPS_ES_550G which was apparently found by the configurator as I never entered this information during the configuration.
Comment 4 Dave Hodgins 2021-03-17 10:50:01 CET
I manually configured my apc ups years ago.

For nut-server configuration ...

# tail -n 3 /etc/ups/ups.conf
[nutdev1]
        driver = "usbhid-ups"
        port = /dev/auto

The above three lines were appended to the file. Pick any name you want where
I chose nutdev1.

# grep -v -e ^'#' -e ^$ upsd.conf
LISTEN 127.0.0.1 3493

Added the one line above.

# tail -n 7 upsd.users 
        [admin]
                password = munged
                actions = SET
                instcmds = ALL
        [upsmon]
                password  = munged
                upsmon master

I appended the above 7 lines. Pick whatever password you'd like.

For nut (the client) configuration ...
In /etc/ups/upsmon.conf uncomment the line
RUN_AS_USER ups

uncomment one of the monitor lines and change it to ...
MONITOR nutdev1@localhost 1 upsmon munged master

Don't forget to change nutdev1 in the monitor line if you chose a different
name. Change localhost to the ipaddress within the lan of the system that
the ups is connected to, if running the client on another system.

Enable and start the services under systemd.
# systemctl|grep nut
nut-driver.service                                                                                            loaded active     running   Network UPS Tools - power device driver controller                                                     
nut-monitor.service                                                                                           loaded active     running   Network UPS Tools - power device monitor and shutdown controller                                       
nut-server.service                                                                                            loaded active     running   Network UPS Tools - power devices information server

Yes mcc needs to be updated to handle usb connected aps systems.
Assigning to the Mageia tools group.

CC: (none) => davidwhodgins
Assignee: bugsquad => mageiatools

papoteur 2023-12-07 09:22:08 CET

See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=24839