Skip to content

luci-app-nut: mfr, model fields not valid on usbhid-ups driver #8200

@rpavlik

Description

@rpavlik

Is there an existing issue for this?

  • I have searched among all existing issues (including closed issues)

screenshots or captures

Image

Actual behaviour

  1. Set "Manufacturer (Display)" or "Model (Display)" to something non-empty
  2. Observe that they show up in /var/etc/nut/ups.conf
  3. Observe that the nut server will not start because it says mfr or similar is not a valid option

Expected behaviour

If this is used only in LuCI for display, then it shouldn't be templated into the nut config file.

Otherwise, if it's only for some drivers, would be great if it were conditional on the driver type.

(Also it doesn't appear to restart nutserver on change but that's a different problem. Further, restart nutserver is not enough to get it to work again, I have to replug the UPS or reboot)

Steps to reproduce

See "Actual Behavior"

Additional Information

{
	"kernel": "6.6.119",
	"hostname": "bluebell",
	"system": "ARMv8 Processor rev 4",
	"model": "OpenWrt One",
	"board_name": "openwrt,one",
	"rootfs_type": "squashfs",
	"release": {
		"distribution": "OpenWrt",
		"version": "24.10.5",
		"revision": "r29087-d9c5716d1d",
		"target": "mediatek/filogic",
		"description": "OpenWrt 24.10.5 r29087-d9c5716d1d",
		"builddate": "1766005702"
	}
}

What browsers do you see the problem on?

Firefox

Relevant log output

Wed Jan  7 12:09:01 2026 daemon.info usbhid-ups[11516]: Network UPS Tools - Generic HID driver 0.52 (2.8.1)
Wed Jan  7 12:09:01 2026 daemon.info usbhid-ups[11516]: USB communication driver (libusb 1.0) 0.46
Wed Jan  7 12:09:01 2026 daemon.info usbhid-ups[11516]:
Wed Jan  7 12:09:01 2026 daemon.info usbhid-ups[11516]: Fatal error: 'mfr' is not a valid variable name for this driver.
Wed Jan  7 12:09:01 2026 daemon.info usbhid-ups[11516]:
Wed Jan  7 12:09:01 2026 daemon.info usbhid-ups[11516]: Look in the man page or call this driver with -h for a list of
Wed Jan  7 12:09:01 2026 daemon.info usbhid-ups[11516]: valid variable names and flags.


Wed Jan  7 12:09:01 2026 daemon.info usbhid-ups[11516]: Network UPS Tools - Generic HID driver 0.52 (2.8.1)
Wed Jan  7 12:09:01 2026 daemon.info usbhid-ups[11516]: USB communication driver (libusb 1.0) 0.46
Wed Jan  7 12:09:01 2026 daemon.info usbhid-ups[11516]:
Wed Jan  7 12:09:01 2026 daemon.info usbhid-ups[11516]: Fatal error: 'mfr' is not a valid variable name for this driver.
Wed Jan  7 12:09:01 2026 daemon.info usbhid-ups[11516]:
Wed Jan  7 12:09:01 2026 daemon.info usbhid-ups[11516]: Look in the man page or call this driver with -h for a list of
Wed Jan  7 12:09:01 2026 daemon.info usbhid-ups[11516]: valid variable names and flags.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions