[Nut-upsuser] Bogus "UPS not available" messages
Alexander I. Gordeev
lasaine at lvk.cs.msu.su
Fri May 25 05:53:27 UTC 2007
On Thu, 24 May 2007 21:04:21 +0400, Eric S. Raymond <esr at thyrsus.com> wrote:
> But now I've got different troubles. Trunk no longer detects the UPS.
>
> root at snark:/home/esr/svn/nut/trunk# /usr/bin/upsdrvctl start
> Network UPS Tools - UPS driver controller 2.1.0 (916M)
> Network UPS Tools 2.1.0 (916M) - Megatec protocol driver 1.5.3 [megatec_usb]
> Carlos Rodrigues (c) 2003-2007
>
> Serial-over-USB transport layer for Megatec protocol driver [megatec_usb]
>
> Megatec protocol UPS not detected.
> Driver failed to start (exit status=1)
>
> System log has many entries that say:
>
> May 24 12:18:37 snark kernel: [136718.407859] usb 3-2: usbfs: process 26061 (megatec_usb) did not claim interface 0 before use
>
> How do I troubleshoot this?
Most likely permission problems ... again.
The thing is that if you want to use your own driver you have to previously
detach kernel driver. Not everybody can do that. You just need to fix the
permissions.
Also, run driver as root. If you run it as a regular user it won't switch to
nut:nut.
--
Alexander
More information about the Nut-upsuser
mailing list