<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi Charles,</p>
<p><br>
</p>
<p>     I've been monitoring for the past few days and NUT has been running solid.  Tested and everything's working as it should.  Thanks for all of your help on this, great to have it running well again and learned lot.</p>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<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> Daniel Shields <grungelizard9@hotmail.com><br>
<b>Sent:</b> Tuesday, October 25, 2016 8:01 PM<br>
<b>To:</b> Charles Lepple<br>
<b>Subject:</b> Re: [Nut-upsuser] Data Stale at random intervals</font>
<div> </div>
</div>
<div>
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi Charles,</p>
<p><br>
</p>
<p>     Pardon my ignorance <img naturalheight="19" naturalwidth="19" class="EmojiInsert" id="OWAEmoji409086" alt="😊" style="vertical-align:bottom" src="cid:a9672b06-7e78-4755-8ca5-1bbe6618296b"> I figured it out.  Didn't realize the \ was a separator.  It's
 installed so I'll see how it goes.  Thanks!</p>
<br>
<br>
<div style="color:rgb(0,0,0)">
<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> Daniel Shields <grungelizard9@hotmail.com><br>
<b>Sent:</b> Tuesday, October 25, 2016 7:42 PM<br>
<b>To:</b> Charles Lepple<br>
<b>Subject:</b> Re: [Nut-upsuser] Data Stale at random intervals</font>
<div> </div>
</div>
<div>
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<div>Hi Charles,</div>
<div><br>
</div>
<div>     I'm working on the build, however, I'm getting an error for the "--infodir" variable.  I checked and that directory exists.  Not sure if I should try dropping it or what I'd need to change it to for it to work.  I'll keep Googling but figured I'd
 reach out as well.  Thanks!</div>
<div><br>
</div>
<div>nano /etc/apt/sources.list.d/security.sources.list</div>
<div>  deb-src http://security.debian.org/ jessie/updates main contrib non-free</div>
<div>  </div>
<div>nano /etc/apt/sources.list.d/sources.list</div>
<div>  deb-src http://http.debian.net/debian jessie main contrib non-free</div>
<div>  deb-src http://http.debian.net/debian jessie-updates main contrib non-free</div>
<div><br>
</div>
<div>apt-get update</div>
<div><br>
</div>
<div>apt-get build-dep nut</div>
<div><br>
</div>
<div>apt-get install libusb-1.0-0-dev</div>
<div><br>
</div>
<div>cd</div>
<div><br>
</div>
<div>wget http://buildbot.networkupstools.org/~buildbot/docker-debian-jessie/snapshot/libusb-1.0/nut-latest.tar.gz</div>
<div><br>
</div>
<div>cp nut-latest.tar.gz /usr/src</div>
<div><br>
</div>
<div>cd /usr/src</div>
<div><br>
</div>
<div>tar xvfz nut-latest.tar.gz</div>
<div><br>
</div>
<div>cd nut-v2.7.4-99-gdb20c07</div>
<div><br>
</div>
<div>./configure --includedir=/usr/include --mandir=/usr/share/man \ --infodir=/usr/share/info --sysconfdir=/etc/nut --localstatedir=/var \ --libexecdir=/usr/lib/nut --srcdir=. --disable-maintainer-mode \ --disable-dependency-tracking --disable-silent-rules
 --libdir=/usr/lib/x86_64-linux-gnu \ --with-ssl --with-nss --with-cgi --with-dev --enable-static \ --with-statepath=/var/run/nut --with-altpidpath=/var/run/nut \ --with-drvpath=/lib/nut --with-cgipath=/usr/lib/cgi-bin/nut \ --with-htmlpath=/usr/share/nut/www
 --with-pidpath=/var/run/nut \ --datadir=/usr/share/nut --with-pkgconfig-dir=/usr/lib/aarch64-linux-gnu/pkgconfig \ --with-user=nut --with-group=nut --with-udev-dir=/lib/udev \ --with-systemdsystemunitdir=/lib/systemd/system</div>
<div><br>
</div>
<div>configure: error: invalid variable name: ` --infodir'</div>
<br>
<p></p>
<br>
<br>
<div style="color:rgb(0,0,0)">
<div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Charles Lepple <clepple@gmail.com><br>
<b>Sent:</b> Monday, October 24, 2016 11:52 PM<br>
<b>To:</b> Daniel Shields<br>
<b>Cc:</b> nut-upsuser@lists. alioth. debian. org<br>
<b>Subject:</b> Re: [Nut-upsuser] Data Stale at random intervals</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt">
<div class="PlainText">On Oct 24, 2016, at 9:56 PM, Daniel Shields wrote:<br>
> <br>
> Hi Charles,<br>
> <br>
>      Tried it with -p but couldn't get it to run, I'll have to dig further into the man pages.  I ran without -p though and got an interesting timeout error.  Attached is the log.  I'll look further into the -p option as well.  Tried sending the full zipped
 log but it was too big.  Attaching the part where the error occurred.  It seems like it was able to recover a couple of times, but the last time it got stuck.  Thanks!<br>
<br>
======================<br>
select(5, NULL, [4], NULL, {0, 1000})   = 0 (Timeout)<br>
ioctl(4, USBDEVFS_REAPURBNDELAY, 0x7ffe72cb0678) = -1 EAGAIN (Resource temporarily unavailable)<br>
select(5, NULL, [4], NULL, {0, 1000})   = 1 (out [4], left {0, 253})<br>
ioctl(4, USBDEVFS_REAPURBNDELAY, 0x7ffe72cb0678) = 0<br>
ioctl(4, USBDEVFS_DISCARDURB, 0x7ffe72cb06b0) = -1 EINVAL (Invalid argument)<br>
ioctl(4, USBDEVFS_REAPURB<br>
======================<br>
<br>
I think it's the error from second-to-last ioctl (USBDEVFS_DISCARDURB) which is throwing off libusb-0.1. Earlier in the log, it always gets 0 instead of -1 for the return code, and the USBDEVFS_REAPURB doesn't block.<br>
<br>
If you're up for installing the dependencies needed to rebuild with the libusb-1.0 branch, I can walk you through that. The short version is: run "apt-get build-dep nut" (needs the "deb-src" lines uncommented in /etc/apt/sources.list, and another round of "apt-get
 update"), then install libusb-1.0-0-dev. Here is the link to the latest Git snapshot:<br>
<br>
<a href="http://buildbot.networkupstools.org/~buildbot/docker-debian-jessie/snapshot/libusb-1.0/nut-latest.tar.gz" id="LPlnk711227" previewremoved="true">http://buildbot.networkupstools.org/~buildbot/docker-debian-jessie/snapshot/libusb-1.0/nut-latest.tar.gz</a><br>
<br>
The configure line in the Debian build log[1] is pretty epic, but let's try this (assuming amd64 vs i386):<br>
<br>
./configure --includedir=/usr/include --mandir=/usr/share/man \<br>
        --infodir=/usr/share/info --sysconfdir=/etc/nut --localstatedir=/var \<br>
        --libexecdir=/usr/lib/nut --srcdir=. --disable-maintainer-mode \<br>
        --disable-dependency-tracking --disable-silent-rules --libdir=/usr/lib/x86_64-linux-gnu \<br>
        --with-ssl --with-nss --with-cgi --with-dev --enable-static \<br>
        --with-statepath=/var/run/nut --with-altpidpath=/var/run/nut \<br>
        --with-drvpath=/lib/nut --with-cgipath=/usr/lib/cgi-bin/nut \<br>
        --with-htmlpath=/usr/share/nut/www --with-pidpath=/var/run/nut \<br>
        --datadir=/usr/share/nut --with-pkgconfig-dir=/usr/lib/aarch64-linux-gnu/pkgconfig \<br>
        --with-user=nut --with-group=nut --with-udev-dir=/lib/udev \<br>
        --with-systemdsystemunitdir=/lib/systemd/system<br>
<br>
[1] <a href="https://buildd.debian.org/status/fetch.php?pkg=nut&arch=i386&ver=2.7.4-4&stamp=1475017236" id="LPlnk748159" previewremoved="true">
https://buildd.debian.org/status/fetch.php?pkg=nut&arch=i386&ver=2.7.4-4&stamp=1475017236</a><br>
<br>
That should configure things to install over the .deb with a "make install". You can reinstall the .deb to get the original files back.</div>
</span></font></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>