Where is luci-app-nut supposed to be?

Where is luci-app-nut supposed to be?
I can't find it in luci.

OpenWrt SNAPSHOT r13768-f632747704 / LuCI Master git-20.190.55035-8c17699

it's a package you install or select at build time (or when assembling an image with imagebuilder), it's not in the default image.

Its source is in the luci repo as all other luci packages https://github.com/openwrt/luci/tree/master/applications/luci-app-nut

I mean where is it supposed to be in the luci menus.

luci-app-nut
git-20.190.55035-8c17699
5.1 KB
Network UPS Tools Configuration
Installed

If you are in menuconfig you can search (just like in vi) by typing the slash / key then your search string. Any results will tell you their location in menuconfig

Looking at the source, it should appear in the Services menu of Luci interface

image

Tried installing it too on a 19.xx system, and yes it does not seem to add any page to Luci.
You can open an issue for this Luci package here https://github.com/openwrt/luci/issues

Are you sure?
It says:

This repository is a mirror of https://git.openwrt.org/openwrt/openwrt.git It is for reference only and is not active for check-ins or for reporting issues. We will continue to accept Pull Requests here. They will be merged via staging trees then into openwrt.git. All issues should be reported at: https://bugs.openwrt.org

Problems to be reported here are for the OpenWrt/LEDE Project targets, sources, toolchain, core packages, build procedures, distribution and infrastructure. Guidelines for submitting a good bug report can be found at the OpenWrt/LEDE Project website. Problems related to LuCI or OpenWrt packages need to be reported in their repositories:

I created https://github.com/openwrt/luci/issues/4271

That is what the https://github.com/openwrt/openwrt repository says. It is the repository where the "targets, sources, toolchain, core packages and build procedures" are and bugs of that must go in https://bugs.openwrt.org

Luci is in another repository, https://github.com/openwrt/luci and also there is community package repository https://github.com/openwrt/packages and others too, and for secondary repositories you must use Github issues for bug reports.
As the description on the https://bugs.openwrt.org also says:

Problems related to LuCI or OpenWrt packages need to be reported in their repositories:

since it's not guaranteed that anyone will solve the issue in a short amount of time, if you really need to set up NUT right now you can always change the configuration manually https://openwrt.org/docs/guide-user/services/ups/software.nut
with ssh/commandline (you probably want to install and use "nano" as a text editor) or with a text editor on your PC with WinSCP https://openwrt.org/docs/guide-quick-start/sshadministration#using_winscp

My bug was closed because they said I need nut-server which I have.

I have all those packages installed via imagebuilder:

make image PROFILE=rpi-4 PACKAGES="kmod-usb-net-rtl8152 kmod-mt76 kmod-mt76x2u kmod-mt76x02-usb kmod-mt76x2 kmod-mt76-usb kmod-mt76x2-common kmod-mt76x2u luci usbutils wireless-tools pciutils luci-app-nlbwmon sqlite3-cli bcm27xx-userland openssl-util htop wireguard wireguard-tools kmod-wireguard luci-app-wireguard nut-upsc nut-server nut-driver-usbhid-ups nut-upsmon luci-app-nut vpn-policy-routing luci-app-vpn-policy-routing python3 sysfsutils -cypress-firmware-43455-sdio -cypress-firmware-43455-sdio-rpi-4b -brcmfmac-firmware-usb -kmod-brcmfmac -kmod-brcmutil" FILES=files/`

I upgraded to the latest snapshot and the Services menu is there. :slight_smile:

Oops.
The menu is there but it doesn't work:

/usr/lib/lua/luci/dispatcher.lua:922: attempt to index local 'page' (a nil value)
stack traceback:
	/usr/lib/lua/luci/dispatcher.lua:922: in function 'dispatch'
	/usr/lib/lua/luci/dispatcher.lua:984: in function 'dispatch'
	/usr/lib/lua/luci/dispatcher.lua:478: in function </usr/lib/lua/luci/dispatcher.lua:477>
1 Like

I just faced the same issue. The problem is that the configuration files are basically empty (everything is commented out). The NUT LuCI package depends on the configuration, so at least something has to be un-commented. Something in this approach is wrong -
either the dependency check or that everything is commented-out.

1 Like

FWIW, it looks like the reason for the error above is that there aren't yet UPS drivers installed. Installing one, for example:

opkg install nut-driver-usbhid-ups

allows the UI to be displayed.

1 Like

This is still happening on 21.01rc2

Yes, somebody should take his time and fix it :wink: Actually anybody, it looks like there is not much interest in the package.

2 Likes

Oh, ok, I thought I was going nut-s ... Had this same issue on 21.02.1