<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">On 1/23/21 12:38 AM, David White via
Nut-upsuser wrote:<br>
</div>
<blockquote type="cite"
cite="mid:c96b7c23-3c6e-caa8-2355-2d825a1b1118@yahoo.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<font size="-1">Hello. I am having troubles with using nut on my
new system (Ubuntu 1.4 on kernel 4.9 chroot'ed on Android). I
have this working on an earlier system (Ubuntu 1.4 on kernel 3.x
also chroot'ed on Android). My UPS is a Belkin with USB
interface. As a newbie, I have no idea what is wrong here. I
have supplied all the info I can get my hands on right now
below.<br>
<br>
Thanks for any help/tips you can supply.<br>
<br>
1. sudo upsdrvctl start yields:<br>
</font>
<blockquote><font size="-1">Network UPS Tools - UPS driver
controller 2.7.1</font><br>
<font size="-1">Network UPS Tools - Megatec/Q1 protocol USB
driver 0.10 (2.7.1)</font><br>
<font size="-1">No supported devices found. Please check your
device availability with 'lsusb'</font><br>
</blockquote>
</blockquote>
[...]<br>
<blockquote type="cite"
cite="mid:c96b7c23-3c6e-caa8-2355-2d825a1b1118@yahoo.com">
<blockquote> <br>
<font size="-1">Driver failed to start (exit status=1)</font><br>
<font size="-1">root@localhost:~#</font><br>
</blockquote>
</blockquote>
<br>
<p>these lines here tell us that the driver cannot find the UPS and
by matter the consequence, the driver does not start<br>
</p>
<p><br>
</p>
<p><br>
</p>
<blockquote type="cite"
cite="mid:c96b7c23-3c6e-caa8-2355-2d825a1b1118@yahoo.com">
<blockquote> </blockquote>
<font size="-1">2. upsc belkinusb (or uspc belkinusb@localhost)
yields:<br>
</font>
<blockquote><font size="-1">Error: Connection failure: Connection
refused</font><br>
</blockquote>
</blockquote>
<p>this error is normal and due to the previously reported problem
( driver not started )<br>
</p>
<font size="-1"><br>
</font>
<blockquote type="cite"
cite="mid:c96b7c23-3c6e-caa8-2355-2d825a1b1118@yahoo.com"> <font
size="-1"><br>
########### Operating system ###########<br>
4.9.113 GNU/Linux<br>
NAME="Ubuntu"<br>
PRETTY_NAME="Ubuntu 14.04 LTS"<br>
</font></blockquote>
<p>that's quite old, it reached end of life <span class="ILfuVd
NA6bn"><span class="hgKElc">almost 2 years ago. I suggest using
a newer OS if possible.<br>
</span></span></p>
<p><span class="ILfuVd NA6bn"><span class="hgKElc"><br>
</span></span></p>
<blockquote type="cite"
cite="mid:c96b7c23-3c6e-caa8-2355-2d825a1b1118@yahoo.com"><font
size="-1"><br>
########### Ownership and permissions of configuration
files ###########<br>
-rwxrwxrwx. 1 root nut 1544 Jan 21 11:52 /etc/nut/nut.conf*<br>
-rwxrwxrwx. 1 root nut 4653 Jan 21 18:29 /etc/nut/ups.conf*<br>
-rwxrwxrwx. 1 root nut 4572 Jan 21 11:52 /etc/nut/upsd.conf*<br>
-rwxrwxrwx. 1 root nut 2206 Jan 21 11:52 /etc/nut/upsd.users*<br>
-rwxrwxrwx. 1 root nut 15274 Jan 21 12:23 /etc/nut/upsmon.conf*<br>
-rwxrwxrwx. 1 root nut 3887 Jan 21 11:52
/etc/nut/upssched.conf*<br>
</font></blockquote>
<p><font size="-1">777 is never a good idea. never ever, except for
limited testing environments. correct mode for all these files
is 640<br>
</font></p>
<p><font size="-1"><br>
</font></p>
<p><font size="-1"><br>
</font></p>
<blockquote type="cite"
cite="mid:c96b7c23-3c6e-caa8-2355-2d825a1b1118@yahoo.com"><font
size="-1"> <br>
########### nut-journal ###########<br>
root@localhost:/storage/emulated/0#<br>
<br>
4. lsusb shows the UPS on Bus 001, Device 003 (cypress USB to
Serial)<br>
</font>
<blockquote><font size="-1">Bus 002 Device 002: ID 05e3:0612
Genesys Logic, Inc.</font><br>
<font size="-1">Bus 002 Device 001: ID 1d6b:0003 Linux
Foundation 3.0 root hub</font><br>
<font size="-1">Bus 001 Device 005: ID 046d:c52b Logitech, Inc.
Unifying Receiver</font><br>
<font size="-1">Bus 001 Device 004: ID 1a86:7523 QinHeng
Electronics HL-340 USB-Serial adapter</font><br>
<font size="-1">Bus 001 Device 003: ID 0665:5161 Cypress
Semiconductor USB to Serial</font><br>
<font size="-1">Bus 001 Device 002: ID 05e3:0610 Genesys Logic,
Inc. 4-port hub</font><br>
<font size="-1">Bus 001 Device 001: ID 1d6b:0002 Linux
Foundation 2.0 root hub</font><br>
<font size="-1">root@localhost:/storage#<br>
</font></blockquote>
</blockquote>
<p><font size="-1">Check in the system logs ( </font><code>/var/log/messages*
</code><code>) if a /dev/*USB* gets created by the usb-to-serial
interface. You should see something similar to<br>
</code></p>
<p><code>/var/log/messages.1:Jan 12 02:17:18 pi kernel: [
20.554591] usbserial: USB Serial support registered for generic<br>
/var/log/messages.1:Jan 12 02:17:18 pi kernel: [ 20.671305]
usbserial: USB Serial support registered for pl2303<br>
/var/log/messages.1:Jan 12 02:17:18 pi kernel: [ 20.729145]
usb 1-1.2: pl2303 converter now attached to ttyUSB0<br>
<br>
</code></p>
<p><code><br>
</code></p>
<p><code> If there is no such message, try disconnecting and
reconnecting the adapter. If still not, you have a problem with
the drivers for the adapter, the kernel does not create the
interface needed to access it and you will have too resolve this
issue first.</code></p>
<p><code>If /dev/ttyUSB0 or similar exists, you have permission
problems - blazer_usb is not allowed to access it</code></p>
<p><br>
</p>
<p>wolfy<br>
</p>
</body>
</html>