-
-
Notifications
You must be signed in to change notification settings - Fork 350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NUT 2.8.1-3 "Can't claim USB device [051d:0002]@0/0: Entity not found" using usbhid-ups #2666
Comments
I thought removing and installing the package again might solve the problem. I also removed But somehow, the directory So I did this:
And now:
Somehow, I made it worse... But I don't understand how installing the packages again fails to install these files...? EDIT But |
I believe some answers around this general issue are in the mailing list. As for packaging, NUT team does not impact it directly, so it is technically a distro matter. That said, probably different packages defined for NUT there which deliver files which might need configuration files, all deliver the |
Of course I didn't expect my amended config files to appear. :) But the standard ones - which were installed when I first installed NUT, didn't reappear... I manually added Anyway, I had hoped this reinstall would have reset all the permissions. But I was wrong... But it looks like I'm where I started out; so maybe no harm no foul? |
Probably no foul. As you edited Re-check if the unit does exist and does not complain (like on the mailing list) - if so, go on to |
I'm not sure I fully understand what you mean... I'm not really a Linux master :) But here are some outputs:
There seem to be some problems with |
Looks great actually:
(if on the same machine as WARNING: The
This usually means either mismatch between I am a bit puzzled about |
Indeed:
I had hoped a fresh install would have reset all the permissions... Do you have any idea which commands might fix the permissions issues? |
Looking at your earlier post, the Also note, with an APC BX###MI device, #2565 and related issues and PRs may be relevant. That fix is not part of a released version yet though, so if you'd end up needing it before a release is cut and gets through distro packaging queues - a custom build would be required, e.g. per https://github.com/networkupstools/nut/wiki/Building-NUT-for-in%E2%80%90place-upgrades-or-non%E2%80%90disruptive-tests |
As for file permissions, can you post |
I see... Shame on me for following the guide, and not reading the readme. I did that eventually for a few other conf files, but not this one... I assume this would be better?
? (I'll have access to the Linux server later today; I'll run |
Well, coming from legacy long ago, before my time, that
|
So it should be:
? |
Maybe, if it does work to mix it like that. If something still complains, separate this into two users for two use-cases, e.g.:
(and then use |
Thanks for all your time and effort, @jimklimov! Although we're not out of the woods yet, I'm afraid... Now
(Although I don't understand where this
Now:
Unfortunately, even after a Linux reboot, still:
As requested:
EDIT
But trying it again, resulted in failure again:
Puzzling... |
Looks cool about getting the driver and I think I think with #1917 in NUT v2.8.1 the driver program should have tried to communicate with the previous instance over its local socket (same as communications with |
Also note, that if you get You may be after |
Alternately, you can try sending commands to the UPS (using the |
The UPS didn't power cylce.
The Linux box shut down, but the UPS didn't power cycle...
You mean like so:
? Unfortunately, again no power cycle. (I've got a table lamp lit, so a power loss should be visible.) |
Looking at current code for the driver, the command sequence in Lines 969 to 993 in d244d73
|
I assume you mean the other options mentioned in that Java code?
No power cycle... I also tried:
But no effect on the lamp. FYI:
|
"OK" there means the command was accepted by the driver. Please try It may also be that the device model/firmware does not actually support that command, or we poke a wrong USB endpoint for that (e.g. worked for other related devices but not this one). |
And that's plain old C code ;) |
But no effect on the lamp...
What would that mean for my setup? End of the line? Or are there more avenues to be walked? :) |
Haven't got many ideas at the moment... Is the lamp a heavy power-drawer (LED or incandescent)? Maybe the UPS does not notice it has any load, so decides to do nothing? @desertwitch : You seem to have some recent experience with APC, any more ideas about why shutdown commands might not work? |
No, less than 6 W... But if all devices are shutdown before the UPS reboots, it wouldn't have any load at that moment either, right? |
Could this have anything to do with it? That's too high level for me to understand. :) |
That bit is up to UPS maker. More likely, this is one of devices where APC minimized support for USB HID in favor of Modbus. A chance remains that they moved the needed USB command to a different endpoint, though. You can find several ways of spelling same commands on different models at https://github.com/networkupstools/nut/blob/master/drivers/apc-hid.c#L424-L461 so another one would not be too surprising...
With the lack of shutdown - probably no. |
Are you suggesting using the
How did these spellings got found? Not by just trying stuff, I hope? 😅 Maybe the "APC PowerShute" software can be read or something like that? I haven't tried that program yet, though... |
To a large extent, by increasing driver verbosity and/or using an |
I'm willing to dive into this, but I'd need a bit more guidance, I'm afraid. :)
I read the discussion, but I only see the content being discussed, not the way to discover 'driver commands' (or how it's called). However, I didn't click on any links, so maybe the answer lays there. I'll try to do that tomorrow (or 'later today', technically :)). |
Well, at least trying Note you can run a driver program straight from the build workspace (via |
I'll try to read up ASAP, in order to wrap my head around this. It's a bit our of my comfort zone :) Are all those suggested commands run in the root directory? Or is it better practice to create a directory first? I assume the latter, but maybe that just breaks things... Is creating a virtual machine an idea? Although that maybe complicates things even more? Questions, questions! :) |
I'm not sure if the BX series, being rather entry-level, supports shutdown commands at all. |
A few seconds... :) I'll try waiting a few minutes!
That would make the endeavor pointless, of course... Maybe I can test it with APC's PowerChute software? |
@desertwitch, I tested this, and the UPS actually shut down (as also documented here). So there must be some command that the UPS understands to shut down. |
Hi all,
Yesterday, I bought a UPS for the first time in my life, and was eager to dive into NUT. But not all is working as expected... I saw a similar thread started on 18 October, but it didn't help me. (I also spent a handful of hours searching the web for solutions, and of course read the manual and FAQ - "queequeg".)
I tried shutting my UPS (APC "Back-UPS BX750MI FW:295202G -302202G") down with
sudo upsdrvctl shutdown
, but no response. Digging around, I found a few things that raised my suspicion, but I can't figure it out...I followed this fine gentleman's guide (but tweaked it a bit - I don't know why he uses
master
andslave
for example?): https://technotim.live/posts/NUT-server-guide/.I must add that I created a few users and user groups during installation and configuration, following the documentation. But in the end, I lost oversight, and everything didn't work. So it's entirely possible there's a permissions issue somewhere. But I don't have any idea where...
Because of the trial-and-error approach, in the
.conf
files (shown below), a lot of stuff is commented out. I assume I can delete it, but I also assume the#
should be adequate? Anyway, I keep it in the output below for clarity.I'll just paste various outputs here, I hope that's a reasonable approach?
Thanks in advance for anyone's help!
Kind regards,
Erik
This seems strange? But after some googling, I found the below alternative - although I would expect it to work without
/lib/nut/
):The text was updated successfully, but these errors were encountered: