usbhid-ups disconnected message, yet UPS is communicating

Status
Not open for further replies.

enemy85

Guru
Joined
Jun 10, 2011
Messages
757

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194

enemy85

Guru
Joined
Jun 10, 2011
Messages
757
actually it started without i didn't touch anything...it was working perfectly till few days ago!
should I increase the period between polls? if yes, hoc can i do that?
 

bloomo

Explorer
Joined
Apr 4, 2014
Messages
58
It sometimes starts after the system has been running a straight month...
 

enemy85

Guru
Joined
Jun 10, 2011
Messages
757

bloomo

Explorer
Joined
Apr 4, 2014
Messages
58
@enemy85 Is there a follow up message in the log that reads "data is no longer stale"?

There is a difference in your message to most others. Normally I got "Data for UPS [ups] is stale - check driver" but is was followed up shortly after with "UPS [ups] data is no longer stale". BUT the originating process of my message was UPSD.

Your process delivering your data stale messages is originating from UPSMON, which is a little more concerning because it is tied to the shutdown timer of your UPS. For that reason maybe it is a concern. A UPS is useless if it's not going to notify your system that it is on batt. Do some reading here:
http://www.networkupstools.org/docs/man/upsmon.html

And here are the values in UPSMON.conf that affect the running process:
http://www.networkupstools.org/docs/man/upsmon.conf.html
Read up on the POLFREQ value.

Have you added pollinterval= values to your ups.conf aux in the UPS services tab to see if this solves it? How many times is the message repeated in your log, is it once in a while or repeatedly filling the log?

We need more info to help.
 

enemy85

Guru
Joined
Jun 10, 2011
Messages
757
@enemy85 Is there a follow up message in the log that reads "data is no longer stale"?

There is a difference in your message to most others. Normally I got "Data for UPS [ups] is stale - check driver" but is was followed up shortly after with "UPS [ups] data is no longer stale". BUT the originating process of my message was UPSD.

Your process delivering your data stale messages is originating from UPSMON, which is a little more concerning because it is tied to the shutdown timer of your UPS. For that reason maybe it is a concern. A UPS is useless if it's not going to notify your system that it is on batt. Do some reading here:
http://www.networkupstools.org/docs/man/upsmon.html

And here are the values in UPSMON.conf that affect the running process:
http://www.networkupstools.org/docs/man/upsmon.conf.html
Read up on the POLFREQ value.

Have you added pollinterval= values to your ups.conf aux in the UPS services tab to see if this solves it? How many times is the message repeated in your log, is it once in a while or repeatedly filling the log?

We need more info to help.

The whole text I see is this:
Code:
Jul 16 09:28:50 freenas upsd[2373]: Data for UPS [RIELLO_UPS] is stale - check driver
Jul 16 09:28:53 freenas upsmon[2381]: Poll UPS [RIELLO_UPS] failed - Data stale
Jul 16 09:28:53 freenas upsmon[2381]: Communications with UPS RIELLO_UPS lost
Jul 16 09:28:58 freenas upsmon[2381]: Poll UPS [RIELLO_UPS] failed - Data stale
Jul 16 09:29:33 freenas last message repeated 7 times
Jul 16 09:31:38 freenas last message repeated 25 times
Jul 16 09:33:49 freenas last message repeated 26 times
Jul 16 09:33:49 freenas upsmon[2381]: UPS RIELLO_UPS is unavailable
Jul 16 09:33:54 freenas upsmon[2381]: Poll UPS [RIELLO_UPS] failed - Data stale
Jul 16 09:34:29 freenas last message repeated 7 times

and keeps going like this....

UPS.CONF
Code:
[root@freenas /usr/local/etc/nut]# cat ups.conf                                
[RIELLO_UPS]                                                                   
    driver = riello_usb                                                        
    port = /dev/ugen1.5                                                       
    desc = ""  


UPSMON.CONF
Code:
[root@freenas /usr/local/etc/nut]# cat upsmon.conf                             
FINALDELAY 300                                                                 
MONITOR RIELLO_UPS 1 upsmon fixmepass master                                   
NOTIFYCMD "/usr/local/sbin/upssched"                                          
NOTIFYFLAG ONBATT SYSLOG+WALL+EXEC                                             
NOTIFYFLAG LOWBATT SYSLOG+WALL+EXEC                                            
NOTIFYFLAG ONLINE SYSLOG+WALL+EXEC                                             
NOTIFYFLAG COMMBAD SYSLOG+WALL+EXEC                                            
NOTIFYFLAG COMMOK SYSLOG+WALL+EXEC                                             
NOTIFYFLAG REPLBATT SYSLOG+WALL+EXEC                                           
NOTIFYFLAG NOCOMM SYSLOG+EXEC                                                  
NOTIFYFLAG FSD SYSLOG+EXEC                                                     
NOTIFYFLAG SHUTDOWN SYSLOG+EXEC                                                
SHUTDOWNCMD "/sbin/shutdown -p now"  


Not added any pollinterval= values to my ups.conf aux in the UPS services tab. Should i try a value? which one?
Where do i find info about the POLFREQ value? I can't see it in the .conf file
Thanks for the help
 
Last edited:

enemy85

Guru
Joined
Jun 10, 2011
Messages
757
UPDATE

[root@freenas ~]# upsc RIELLO_UPS
battery.capacity: 7
battery.charge: 255
battery.runtime: 3932100
battery.voltage: 13.2
battery.voltage.nominal: 12
device.mfr: RPS S.p.a.
device.model: UNV1
device.serial:
device.type: ups
driver.name: riello_usb
driver.parameter.pollinterval: 2
driver.parameter.port: /dev/ugen1.5
driver.version: 2.7.1
driver.version.internal: 0.02
input.bypass.frequency: 409.50
input.bypass.voltage: 4095
input.frequency: 50.10
input.voltage: 217
output.frequency: 50.10
output.frequency.nominal: 50.0
output.power.percent: 0
output.voltage: 219
output.voltage.nominal: 230
ups.firmware: SWM038-01-00
ups.load: 0
ups.mfr: RPS S.p.a.
ups.model: UNV1
ups.power.nominal: 800
ups.productid: 5500
ups.realpower.nominal: 480
ups.serial:
ups.status: OL
ups.temperature: 255
ups.vendorid: 04b4
[root@freenas ~]#
 

bloomo

Explorer
Joined
Apr 4, 2014
Messages
58
Key question: Is there any entry later in the log that states "data is no longer stale". If not I would suggest you have an issue. Have you tried a different USB port? Also, have you used the upsc command in shell to see if Freenas is able to communicate with your UPS? Open the shell and use
Code:
upsc RIELLO_UPS
 

bloomo

Explorer
Joined
Apr 4, 2014
Messages
58
Actually, after this:
Code:
Jul 16 02:30:58 XXXX upsmon[2577]: Poll UPS [XXXX] failed - Data stale

You should see something like this:
Code:
Jul 16 02:31:03 XXXX upsmon[2577]: Communications with UPS XXXX established

That means communications are dropping off and returning.

If communications are not returning you have an issue. Try the steps I outlined in the post above.
 

camilo suarez

Explorer
Joined
Feb 28, 2014
Messages
86
i was having the same issue with an APC BR1000G that i bought yesterday, and i was getting the loop data stale, not stale etc, i tried what bloomo suggested (Change USB port) and its working now without issues.

thanks to joeschmuck for helping me to set up the UPS.
 

enemy85

Guru
Joined
Jun 10, 2011
Messages
757
Key question: Is there any entry later in the log that states "data is no longer stale". If not I would suggest you have an issue. Have you tried a different USB port? Also, have you used the upsc command in shell to see if Freenas is able to communicate with your UPS? Open the shell and use
Code:
upsc RIELLO_UPS

Hi, sorry for the late reply...
Concerning your questions, as i already stated in my previous post there's no any entry later in the log that states "data is no longer stale".
When i have that problem, the upsc command doesn't work and freenas is not able to communicate with the UPS.
I didn't try yet to change the usb port because sometimes, after a reboot of the freenas box, the ups works and the upsc command too...it's weird that the problem comes randomly.
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
Try a different USB port, it might just give you better stability. Also, what do you have to lose? And have you checked out the internet for possible driver issues with respect to FreeBSD and this UPS?
 

tyronebiggums

Dabbler
Joined
Aug 4, 2015
Messages
46
Hello, sorry for reopening an old thread but I, too am curious about this UPS. My local Costco has this UPS for $99 and am wondering if there are still driver issues for it on 9.3.1?
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Yes still hasn't been fixed but work around is simple.
 

Tim-T

Cadet
Joined
Jun 7, 2018
Messages
9
I have a Cyber Power CPS 1500C unit, and I was getting disconnects every minute. I went to the UPS configure screen and noticed that there were 3 different drivers for CPS 1500 in the Cyber Power list, I was using #3. I switched to #2 and havent seen a disconnect since - although its only been 15 minutes now. Try playing with that...
 
Status
Not open for further replies.
Top