[SRU] libusb_get_report: error sending control message: Operation not permitted

Bug #572262 reported by ilna
34
This bug affects 6 people
Affects Status Importance Assigned to Milestone
nut (Ubuntu)
Fix Released
Medium
Chuck Short
Lucid
Fix Released
Medium
Chuck Short
Maverick
Fix Released
Medium
Chuck Short

Bug Description

Binary package hint: nut

After upgrading to Lucid (Kubuntu) I have:

~$ sudo upsdrvctl start
Network UPS Tools - UPS driver controller 2.4.3
Network UPS Tools - Generic HID driver 0.34 (2.4.3)
USB communication driver 0.31
Using subdriver: CyberPower HID 0.3
libusb_get_report: error sending control message: Operation not permitted
Can't initialize data from HID UPS
Driver failed to start (exit status=1)

Where CyebrPower UPS is decribed as:

[CyberPower]
        driver = usbhid-ups
        port = auto

Als have tried to add

        vendorid = 0764

string with the same result.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: nut 2.4.3-1ubuntu3
ProcVersionSignature: Ubuntu 2.6.32-22.33-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-22-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Fri Apr 30 16:11:26 2010
ProcEnviron:
 LANGUAGE=
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: nut

Related branches

Revision history for this message
ilna (a-gaydenko) wrote :
Revision history for this message
Arnaud Quette (aquette) wrote : Re: [Bug 572262] [NEW] libusb_get_report: error sending control message: Operation not permitted

please try to unplug and plug back your UPS's USB cord, and then relaunch
nut.

cheers,
Arnaud
--
Linux / Unix Expert R&D - Eaton - http://www.eaton.com/mgeops
Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/
Debian Developer - http://www.debian.org
Free Software Developer - http://arnaud.quette.free.fr/

Revision history for this message
ilna (a-gaydenko) wrote : Re: libusb_get_report: error sending control message: Operation not permitted

Arnaud,

Have tried already with the same result (system log fragment is below). Also, if I understand well, upsdrvctl call doesn't need nut service be started at all.

Apr 30 17:03:53 localhost kernel: [ 6278.291294] usb 4-2: USB disconnect, address 3
Apr 30 17:03:57 localhost kernel: [ 6282.780029] usb 4-2: new low speed USB device using uhci_hcd and address 4
Apr 30 17:03:58 localhost kernel: [ 6282.956175] usb 4-2: configuration #1 chosen from 1 choice
Apr 30 17:03:58 localhost kernel: [ 6283.115231] generic-usb 0003:0764:0501.0004: hiddev96,hidraw1: USB HID v1.10 Device [CPS UPS VALUE] on usb-0000:00:1d.2-2/input0

Chuck Short (zulcss)
Changed in nut (Ubuntu):
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Chuck Short (zulcss) wrote :

Can you try the version in my ppa (https://launchpad.net/~zulcss/+archive/server-lucid-bug-fixes)

chuck

Revision history for this message
ilna (a-gaydenko) wrote :

Chuck, I will. Now I see:

nut 11 hours ago
Waiting to build

What is expected time lag before the package be built?

Revision history for this message
windracer (windracer) wrote :

I'm having this same problem since upgrading to Lucid this afternoon and would like to try out this fix.

Revision history for this message
ilna (a-gaydenko) wrote :

Whith these updates from zulcss ppa

libupsclient1 [2.4.3-1ubuntu3 -> 2.4.3-1ubuntu4]
nut [2.4.3-1ubuntu3 -> 2.4.3-1ubuntu4]

the problem has gone, thanks!

Revision history for this message
windracer (windracer) wrote :

Both patches worked for me as well, great!

Chuck Short (zulcss)
summary: - libusb_get_report: error sending control message: Operation not
+ [SRU] libusb_get_report: error sending control message: Operation not
permitted
Revision history for this message
Chuck Short (zulcss) wrote :

Statement of Impact:

nut in lucid was shipped with a bug that prevented some UPSes from connecting to the nut daemon. Checking google fedora was also affected by the same problem and has the same patch that we used.

Explanation:

This bug has been fixed by the attached debdiff that fixes this issue. This patch needs to be sent upstream if its not already fixed.

How to reproduce:

1. Have a UPS that is affected by this problem.
2. Try to connect to NUT
3. You should get the error message.

There should not be any regressions with this patch.

chuck

Changed in nut (Ubuntu Maverick):
status: Incomplete → Triaged
Revision history for this message
Chuck Short (zulcss) wrote :
Changed in nut (Ubuntu Lucid):
status: New → In Progress
assignee: nobody → Chuck Short (zulcss)
importance: Undecided → Medium
Changed in nut (Ubuntu Maverick):
assignee: nobody → Chuck Short (zulcss)
Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Accepted nut into lucid-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in nut (Ubuntu Lucid):
status: In Progress → Fix Committed
tags: added: verification-needed
Revision history for this message
ilna (a-gaydenko) wrote :

Verified: have downgraded from 2.4.3-1ubuntu4 (from zulcss ppa) to 2.4.3-1ubuntu3.1 (from proposed) - at my case all does work as expected. Thanks!

Martin Pitt (pitti)
tags: added: verification-done
removed: verification-needed
Revision history for this message
Arnaud Quette (aquette) wrote : Re: [Bug 572262] Re: [SRU] libusb_get_report: error sending control message: Operation not permitted

2010/5/3 Chuck Short <email address hidden>

> Statement of Impact:
>
> nut in lucid was shipped with a bug that prevented some UPSes from
> connecting to the nut daemon. Checking google fedora was also affected
> by the same problem and has the same patch that we used.
>
> Explanation:
>
> This bug has been fixed by the attached debdiff that fixes this issue.
> This patch needs to be sent upstream if its not already fixed.
>

FYI, this has already reached upstream (through RH/Fedora maintainer who is
part of the team) and was applied in NUT trunk r2407 (
http://boxster.ghz.cc/projects/nut/changeset/2407)

cheers,
Arnaud
--
Linux / Unix Expert R&D - Eaton - http://www.eaton.com/mgeops
Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/
Debian Developer - http://www.debian.org
Free Software Developer - http://arnaud.quette.free.fr/

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nut - 2.4.3-1ubuntu3.1

---------------
nut (2.4.3-1ubuntu3.1) lucid-proposed; urgency=low

  * debian/patches/04_nut-small-buffers.dpatch: Fix "libusb_get_report: error sending control message:
    Operation not permitted" error on some UPS devices. (LP: #572262)
 -- Chuck Short <email address hidden> Mon, 03 May 2010 13:38:37 -0400

Changed in nut (Ubuntu Lucid):
status: Fix Committed → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :

Copied to maverick.

Changed in nut (Ubuntu Maverick):
status: Triaged → Fix Released
Revision history for this message
starfear (utdilya) wrote :

Yes, bug fixed.

My UPS:

Bus 006 Device 124: ID 0764:0501 Cyber Power System, Inc. CP1500 AVR UPS

Systems: Ubuntu, debian testing/unstable.
nut: 2.4.3-1

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.