Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 211505 - sys-power/nut-2.0.5-r2 : upsd start fails
Summary: sys-power/nut-2.0.5-r2 : upsd start fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-26 11:13 UTC by Frederic Marchal
Modified: 2008-06-25 01:33 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frederic Marchal 2008-02-26 11:13:00 UTC
System : sys-power/nut-2.0.5-r2 (also with previous version)
gentoo-sources-2.6.23-r8

After upgrading to 2.6.23, when executing /etc/init.d/upsd start, it fails with this error : "No matching HID UPS found".

I found that the problem occurs when running upsdrvctl without the -u option.
So I added the -u option into the /etc/init.d/upsdrv and /etc/init.d/upsd scripts and now it works well.
The init scripts should be fixed.

Reproducible: Always

Steps to Reproduce:
1. Connect an UPS to usb port
2. Configure nut
3. Start upsd (/etc/init.d/upsd start)
Actual Results:  
No matching HID UPS found

Expected Results:  
Detected a UPS: MGE UPS SYSTEMS/ELLIPSE
Using subdriver: MGE HID 1.0
Comment 1 Steve Arnold archtester gentoo-dev 2008-04-21 01:30:35 UTC
Yeah, same symptoms here after updating to baselayout 2, however, I had already been running a 2.6.24.4 kernel for the last few weeks (and upsd was working fine until today).

The fix is the same, ie, adding the "-u nut" parameter to both upsdrvctl and upsd, as well as removing the lines above "start-stop-daemon blah" which seemed to be dorking things up (even after making the first change).  Cleaning out the latter cruft makes it work fine.
Comment 2 Paul-Antoine Guyon 2008-06-09 17:55:59 UTC
You need to add the user nut to the usb group
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-06-25 01:33:15 UTC
nerdboy: your upsd change was seperate, and is made in 2.2.2.
For the original poster, yes, your nut user isn't in the usb group.