Sam Varshavchik
2022-Nov-21 12:29 UTC
[Nut-upsuser] ups-server grumpy after updating to Fedora 37
After updating to Fedora 37 ups-server started having a bad hair day, spewing
this:
Nov 21 07:03:28 monster.email-scan.com nut-server[1735]: Can't connect to
UPS [nutdev1] (usbhid-ups-nutdev1): No such file or directory
over and over again.
My ups.conf is nothing special:
[nutdev1]
driver = "usbhid-ups"
port = "auto"
vendorid = "0764"
productid = "0501"
pollinterval = 10
override.battery.charge.low = 25
nut-scanner obediently produces all the details:
[nutdev1]
driver = "usbhid-ups"
port = "auto"
vendorid = "0764"
productid = "0501"
product = "CP1500PFCLCD"
serial = "000000000000"
vendor = "CPS"
bus = "006"
May or may not be related: there's a widget on the desktop's XFCE panel,
that shows the UPS's status as normal, so something, somewhere, is
communicating with the UPS.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL:
<http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20221121/169fd60d/attachment.sig>
Greg Troxel
2022-Nov-21 12:45 UTC
[Nut-upsuser] ups-server grumpy after updating to Fedora 37
Sam Varshavchik <mrsam at courier-mta.com> writes:> After updating to Fedora 37 ups-server started having a bad hair day, > spewing this: > > Nov 21 07:03:28 monster.email-scan.com nut-server[1735]: Can't connect > to UPS [nutdev1] (usbhid-ups-nutdev1): No such file or directory > > May or may not be related: there's a widget on the desktop's XFCE > panel, that shows the UPS's status as normal, so something, somewhere, > is communicating with the UPS.It is highly likely related. Use fstat or lsof ([1] or however that is spelled on Fedora) to figure out what process has the uhid device open, and run the ups drive process under ktrace/ktruss/truss ([1]) to see what is actually failing at the syscall level. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 194 bytes Desc: not available URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20221121/88a1dcbc/attachment.sig>
Sam Varshavchik
2022-Nov-21 13:00 UTC
[Nut-upsuser] ups-server grumpy after updating to Fedora 37
Sam Varshavchik writes:> After updating to Fedora 37 ups-server started having a bad hair day, > spewing this: > > Nov 21 07:03:28 monster.email-scan.com nut-server[1735]: Can't connect to > UPS [nutdev1] (usbhid-ups-nutdev1): No such file or directoryFor the benefit of anyone finding this in a search engine, this was tracked down to a Fedora 37 packaging bug: https://bugzilla.redhat.com/show_bug.cgi? id=2127269