[Nut-upsdev] CENTOS 6.6 NUT RPM BUILD ISSUES

Charles Lepple clepple at gmail.com
Wed Apr 8 23:46:16 UTC 2015


On Apr 8, 2015, at 2:04 PM, Eric Cobb <Eric_Cobb at tripplite.com> wrote:

> Charles and list,
>  
> If I leave the driver alone it does not eventually start.  It continues to report that it is unable to connect.  I have to perform a upsdrvctl stop ; upsdrvctl start (I actually just perform a init stop and start so that upsd and upsmon both restart) for the driver to actually connect to the ups.
>  
> I have attached an strace of the upsdrvctl start command when it is ran at boot time via the init script. I'll let the experts make their assessment of what is going wrong.
>  
> Here is the exact line out of the /etc/init.d/ups that i ran (I added -D and -u nut on the latest runs, I get the same issue with or without it) Let me know if you would like any further symptoms or output.
>  
>  
> start() {
>         echo -n $"Starting UPS Driver:"
>         echo "UPS DRIVER START" > /var/log/upslog
>         strace -f -o /var/log/nut/strace.log /usr/sbin/upsdrvctl -D -u nut start >> /var/log/upslog 2>&1 && success || failure
>         RETVAL=$?
>         Echo
>  
> Eric Cobb
> ekcobb at tripplite.com
> 

The mailing list doesn't accept large attachments, so I attached a gzip'd copy of the log in case anyone else wants to take a look.

It doesn't show timing information, or the content of the URBs, so it is hard to tell what the driver is trying to do at any given point.

I recognize that it is a slight change of the experiment to remove upsdrvctl, but could you please start the driver directly in the init script with -DDD (path should be in the output of '/usr/sbin/upsdrvctl -D'), and redirect that output to a log file? (We had a reason for why upsdrvctl does not pass '-D' flags through to the driver, but the reason escapes me at the moment.)

It would also be useful to have the output of dmesg (or at least the USB-related subset), in case it has additional information on why libusb_get_interrupt() is failing.

-- 
Charles Lepple
clepple at gmail


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20150408/0f483732/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tripplite_3005_CentOS_6.6_strace.log.gz
Type: application/x-gzip
Size: 5172 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20150408/0f483732/attachment-0001.bin>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20150408/0f483732/attachment-0003.html>


More information about the Nut-upsdev mailing list