0

OS: Ubuntu 20.04 NUT: 2.7.4-11ubuntu4 amd64

I have installed and configured the associated .conf files for a "Standalone" mode Network UPS Tools (NUT) driver/server/client using USB connector to UPS. The behavior I am experiencing is as follows:

1.) Initially when the applications are run (after a reboot), the upsmon (client) seems to be able to connect to the upsd (server) and access status information from the UPS. Example as follows:

upsc "my ups name"@localhost

Init SSL without certificate database

battery.charge: 100 battery.charge.warning: 30 battery.runtime: 2450 battery.type: PbAc battery.voltage: 0.0 battery.voltage.nominal: 12.0 device.mfr: Tripp Lite .....

2.) After some time period elapses, and I run the same command, the following occurs:

upsc "my ups name"@localhost
Init SSL without certificate database
Error: Data stale

My high level question is how do I fix this "Data stale" problem? My lower level question is can I run this without SSL certificates (this is a Standalone implementation, so I am not concerned about "man-in-the-middle" issues with user/password in plain text going over the network).

I have already read the thread nut (UPS) and SSL certificates on this forum, but it is not directly related to the problem above.

Many thanks in advance for the forums help (I am a Noob).

I think I have established that the issue lies in the USBHID-UPS driver and this SSL certificate message is a "red herring" in terms of my issue. The answer to my question lies somewhere in the driver interface as when I restart the driver (usbhid-ups) the issue resolves itself for an undetermined period of time and then fails again.

Further to this, if I stop/start the driver this "resets" the connection and then upsc command works until some time later when it shows Init SSL without certificate database Error: Data stale.

Commands to stop/start driver:

sudo /sbin/upsdrvctl stop
sudo /sbin/upsdrvctl start
Zanna
  • 72,312
Chris
  • 11

3 Answers3

0

Issue resides in USBHID-UPS driver failing periodically. Once driver is restarted the problem goes away temporarily. Will post another question regarding driver issue.

Chris
  • 11
0

Add MAXAGE 25 to /etc/nut/upsd.conf on the server, then restart the nut services or reboot the server. I just fixed this same issue about 20 minutes ago.

NotTheDr01ds
  • 22,082
0

I have been poking at this for two days: Init SSL without certificate database Error: about five different things I found it confusing editing all the config files without a map of the overall scheme. I finally found the problem: Reboot Yep, it has been a while since my last self-torture exposure to Linux, I keep hoping the propeller heads will figure out a packaging tool that allows users to install and remove applications without spending hours hunting down missing parts or finding out the application was designed for another flavor of Linux or the worst part, discovering a new level of security that prevents all GUI tools for working, at all.