[Nut-upsuser] something messed up ttyUSB*
gheskett at shentel.net
Thu Jun 2 03:36:51 BST 2022
On Wednesday, 1 June 2022 13:25:06 EDT Manuel Wolfshant wrote:
> On 6/1/22 20:16, gene heskett wrote:
> > Charles;
> > debian bullseye, all up to date.
> > I was forced to reboot, x crashed.
> > When I had rebooted, no ttyUSB stuff worked. I see a reference to
> > nut-
> > scanner in the doc but the link to its page is busted, typical of the
> > nut-doc pages and when I find it, it spits out this:
> > [nutdev1]
> > driver = "usbhid-ups"
> > port = "auto"
> > vendorid = "051D"
> > productid = "0003"
> > bus = "001"
> > where do I put what to make it work again?
> > Cheers, Gene Heskett.
I got a more detailed answer from a root session of nut-scanner, and
fixed ups.conf with it, and restarted nut, but it made little if any diff
that I can see.
So I did a sudo lsof|grep "nut " -
and got this, more no permissions junk:
gene at coyote:/usr/lib$ lsof |grep "nut " -
upsd 78510 nut cwd unknown /proc/78510/cwd (readlink: Permission denied)
upsd 78510 nut rtd unknown /proc/78510/root (readlink: Permission denied)
upsd 78510 nut txt unknown /proc/78510/exe (readlink: Permission denied)
upsd 78510 nut NOFD /proc/78510/fd (opendir: Permission denied)
upsmon 78535 nut cwd unknown /proc/78535/cwd (readlink: Permission
upsmon 78535 nut rtd unknown /proc/78535/root (readlink: Permission
upsmon 78535 nut txt unknown /proc/78535/exe (readlink: Permission
upsmon 78535 nut NOFD /proc/78535/fd (opendir: Permission denied)
And I just now used a root session of mc to set both /dev/ttyUSB*
perm to 777. That lt boty heyu and nut strt throwing errors that made
sense, so I fixed those errors and both are now working with one
exception, the APC display is saying its due for a fresh battery, but nut
isn't saying that from a upsc report:
gene at coyote:/etc/nut$ upsc myups
Init SSL without certificate database
device.mfr: American Power Conversion
driver.parameter.product: Smart-UPS_1500 FW:UPS 03.5 / ID=1015
driver.parameter.vendor: American Power Conversion
driver.version.data: APC HID 0.96
ups.firmware: UPS 03.5 / ID=1015
ups.mfr: American Power Conversion
But what happens when I have to reboot in a few days and /dev gets
repopulated with 0600 devices?
Take care & stay well
Cheers, Gene Heskett.
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
- Louis D. Brandeis
More information about the Nut-upsuser