Comments (4)
Hello, looking at the service instance use (per naming nut-driver@ups
) I suppose you have at least NUT v2.8.0 or newer, with nut-driver-enumerator
... Depending on NUT version and build options, there may be better or worse interaction with systemd as such (e.g. NUT drivers backgrounding can be seen as managed process dying, unless the service unit definition expects forking).
On one hand, which version is it - there were variations in systemd integration over subsequent development.
On another, do you have any competing attempts to start a driver (e.g. from command-line or crontab
via upsdrvctl
or direct calls to driver programs)? As detailed in https://github.com/networkupstools/nut/wiki/nut%E2%80%90driver%E2%80%90enumerator-(NDE) different start-ups of the driver can kill each other off, assuming a stuck older instance.
Here it looks suspicious that your service unit was stopped by systemd within half a minute from start. Try https://github.com/networkupstools/nut/wiki/Changing-NUT-daemon-debug-verbosity to see if it found the device at all, and had the rights to use it (maybe some other process, container, VM, hypervisor pass-through etc. intervened).
from nut.
Also, generally speaking, take a look at related issues (I tagged yours with some labels that seem relevant).
There were quite a few reports in recent years about Raspberry (which may indicate an issue of the platform or just its popularity), with hearsay gauge that RPi 3 USB was problematic, RPi 4 less so, but RPi5 again often involved.
Maybe there are some kernel settings about power-saving (your USB chip going to sleep) or other hardware causing issues (EMI noise from luminescent lights and refrigerator motors, generally bad cabling, some USB flash stick causing bus-wide resets, etc.) and/or insufficient power source used for the RPi (wattage matters).
from nut.
As a late-coming thought, disconnection/reconnection noise may be unfortunate and annoying, but resilience of the set-up and presumably no long-term loss of NUT coverage for your UPS even if the driver dies and gets restarted by systemd is in fact encouraging :) Way better than it was in init-script days where stuck or dead driver stayed that way until somebody noticed and kicked it up :)
from nut.
Hi again @jimklimov,
I tried different configurations for removing power-saving mode for USB on my RPI5 but without any luck:
sudo nano /etc/rc.local
setterm -blank 0 -powerdown 0 -powersave off
at line 0
It started off great with it staying connected for +24 hours, and then suddenly it stopped again. I've tried the same configuration with both Ubuntu, RaspOS and Debian for RPI5, but without any luck aswell. I also experienced a few instances where, if I plugged in more than one USB in the RPI, it would disconnect like crazy. At least a couple of times every minute, and this was non-stop. I can not rule out that the RPI is not functioning properly, and with the very limited knowledge I have, it might just be a fluke. However...
3 days ago I moved the install to a Debian 12.5.0 VM on my proxmox machine and got the USB-port passthrough'ed to the VM - and not a single disconnect as of yet, so I'm very happy :-)
I appreciate your fast help, and also the detailed answers you gave - they helped alot in troubleshooting. Even though it didn't end up working on the RPI, I appreciate the help you provided. Have a good weekend :-)
from nut.
Related Issues (20)
- Summary PowerWalker VFI 3000 CG PF1 HOT 23
- blazer_usb failing after apt-get upgrade HOT 4
- Support of linux hwmon (ina219) HOT 1
- Issues with Bookworm and NUT upscode2 > 2.7.4 HOT 9
- usbhid-ups: Eaton battery.voltage value is missing
- Invalid signature on nut-2.8.2 HOT 20
- CI: Add a test case for NUT with musl libc implementation (and non-fatally, a recent collectd source for good measure)
- CPS FAQ - quick discharge (from IRC)
- [HCL] APC Back-UPS RS 1200 aka APC Back-UPS Pro 1200VA/720W (NUT 2.8.2)
- blazer_usb:how display battery.runtime on NUT HOT 9
- Driver riello_ser have the same issue #1685 of riello_usb about battery capacity and runtime HOT 5
- Driver `main.c`: use Unix socket protocol to kill off "Duplicate other instance" HOT 2
- NUT systemd unit journals duplicate some lines
- UPS Visench C1K not support HOT 30
- Use `upsdebug_with_errno()` instead of a few cases calling `upsdebugx(..., errno, strerror())` explicitly
- Support for CyberPower Smart App online double conversion UPS HOT 2
- New device FSP FP650 HOT 2
- logging "nut_libusb_get_string: Success" every 12 seconds HOT 9
- strange data in logs, `file_report_buffer: expected 2 bytes, but got 512 ` HOT 2
- The dictionary in NUT sources also stores keywords for spell-checking nut-website
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nut.