<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body dir="auto">
<div dir="ltr"></div>
<div dir="ltr">Hello,</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">Just to say, I stopped the driver and started it again and the errors went away! However, I turned off power to the UPS but I wasn’t receiving any e-mails :( also when I rebooted the RPi the driver/service didn’t start back up automatically... </div>
<div dir="ltr"><br>
</div>
<div dir="ltr">I wonder if you have any thoughts on the above?</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">Kind Regards</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">Gareth</div>
<div dir="ltr"><br>
On 6 May 2019, at 3:27 pm, Gareth Davies <<a href="mailto:gareth94@hotmail.co.uk">gareth94@hotmail.co.uk</a>> wrote:<br>
<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif">
Hi Charles,</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif">
<br>
</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif">
Thank you so much for getting back to me. I should have given you a bit of background in my last message but I'm actually doing this for my grandmother's benefit! She has Dementia and lives on her own so we want to be notified if she has a power cut... I'd
hate to think she might be stumbling around in the dark (which has happened before)! </div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif">
<br>
</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif">
In terms of stopping the older driver process (usbhid-ups) you mentioned, how would I go about that? Could you advise me on the necessary commands? Sorry for being rather daft - I'm not quite used to Linux yet!<span> </span><span title=":slightly_frowning:" style="margin: 0px">🙁</span></div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif">
<br>
</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif">
I'm using the latest version of NUT which I downloaded yesterday. I'm running the whole thing from the Raspberry Pi I have. I'm not entirely sure which version it is but I bought it back in 2014 I think. The OS is Debian 9 (Stretch) if that helps?</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif">
<br>
</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif">
I'll change the driver back to usbhid-ups as you advised. Thank you for confirming that. The strange thing is though, the keyboard I attach to the Pi is showing to have usbhid-ups driver! Nothing to worry about I guess?</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif">
<br>
</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif">
Just another thing I wanted to mention... once I've resolved the aforementioned issues, would it be possible for the system to run without any maintenance or checking up on it? What I mean is, once I've plugged it into my grandmother's house, I'd like to leave
it running and forget about it basically - in the knowledge and trust it would notify us if there's ever a power cut!</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif">
<br>
</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif">
Many thanks</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif">
<br>
</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif">
Gareth</div>
<br>
</div>
<div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Charles Lepple <<a href="mailto:clepple@gmail.com">clepple@gmail.com</a>><br>
<b>Sent:</b> 06 May 2019 13:55<br>
<b>To:</b> Gareth Davies<br>
<b>Cc:</b> <a href="mailto:nut-upsuser@alioth-lists.debian.net">nut-upsuser@alioth-lists.debian.net</a><br>
<b>Subject:</b> Re: [Nut-upsuser] Data Stale issue</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="PlainText">On May 6, 2019, at 8:10 AM, Gareth Davies wrote:<br>
> <br>
> Hello,<br>
> <br>
> I apologise if I've sent this question to the wrong place/e-mail! I'm new to the site! I was wondering if anyone could help me... I downloaded Network UPS Tools yesterday so that I could receive e-mail notifications of when my UPS switched to battery power.
I got it up and running and was working brilliantly! Then, after a while I tested the system by switching off power to my UPS.... I wasn't receiving any e-mail notifications! I was puzzled by this given it had worked perfectly fine just a few minutes (or an
hour) before! I then ran the nut-server status command and saw the following error:<br>
> <br>
> Data for UPS [ups] is stale - check driver<br>
> Duplicate driver instance detected! Terminating other driver!<br>
<br>
The "data is stale" message does happen from time to time.<br>
<br>
The "duplicate driver" message shouldn't happen, though it can be the result of mixing things up while testing. When starting and stopping NUT, be sure that the old driver process (usbhid-ups) has stopped before restarting things.<br>
<br>
Which version of NUT are you using, and assuming Linux, which distribution?<br>
<br>
> I checked the web and given I have a CyberPower UPS it seemed I had the correct driver stated (usbhid-ups). However after running the command usb-devices in the terminal it indicated that the driver associated with the UPS was 'usbfs'? I changed this in the
conf file but no luck 🙁 <br>
<br>
The term "driver" is a bit overloaded - NUT started using that term prior to when USB became a common connection type for an UPS. "usb-devices" is reading the kernel's view of the USB subsystem, and "usbfs" is the kernel's way of handing over a USB device to
a process that uses libusb (like the current USB UPS drivers in NUT).<br>
<br>
Long story short, "driver = usbhid-ups" is the right thing to use in ups.conf for a CyberPower USB UPS.<br>
<br>
There might be some other options to try in ups.conf, but the version/distro information will help narrow that down.<br>
<br>
> Just to add to the above, I've tried all other solutions I found on the web such as increasing the MAXAGE, DEADTIME and POLLINTERVAL values....<br>
<br>
[please use reply-all to include the list, and consider subscribing below in case someone else replies directly to the list - it's a low-volume list, and you can unsubscribe easily later.]<br>
<br>
> _______________________________________________<br>
> Nut-upsuser mailing list<br>
> <a href="mailto:Nut-upsuser@alioth-lists.debian.net">Nut-upsuser@alioth-lists.debian.net</a><br>
> <a href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser">
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser</a><br>
<br>
</div>
</span></font></div>
</div>
</div>
</blockquote>
</body>
</html>