Skip to content

prometheus-node-exporter-lua-uci_dhcp_host: 'upper' (string expected, got table) #27984

@juniorfga

Description

@juniorfga

Package Name

prometheus-node-exporter-lua-uci_dhcp_host

Maintainer

@aparcar

OpenWrt Version

24.10.4

OpenWrt Target/Subtarget

mediatek/filogic

Steps to Reproduce

  1. Configure a static lease as
config host
	option name 'Laptop'
	option ip '192.168.X.XX'
	list mac 'XX:XX:XX:XX:XX:XX'
	list mac 'XX:XX:XX:XX:XX:XY'
  1. Install the package
  2. Error appear in log
Sat Nov 29 07:33:48 2025 daemon.err uhttpd[2697]: /usr/lib/lua/prometheus-collectors/uci_dhcp_host.lua:9: bad argument #1 to 'upper' (string expected, got table)
Sat Nov 29 07:34:03 2025 daemon.err uhttpd[2697]: /usr/lib/lua/prometheus-collectors/uci_dhcp_host.lua:9: bad argument #1 to 'upper' (string expected, got table)

Actual Behaviour

An error appear in logs very frecuently when you add a static lease with two Mac Addresses. Example when you want to assign an especific IP Address to your laptop via Wireless or Ethernet.
I'm sorry to have assigned this to @aparcar, unfortunately the original creator account(Gérondal Thibault [email protected]) is no longer in Github

Confirmation Checklist

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions