Skip to content
Contents
GuidesOpenWrt

A collectd Lua script cannot load ubus because a symbol is missing

When loading a Lua script via ubus, if symbols are missing, first distinguish between dynamic library loading failure and unavailable message bus. Both conditions result in no data being collected.

Applies to · ipq40xx/generic · ImageBuilder · collectd-mod-lua 5.12.0-r56 · 25.12.5 / 25.12.6

What to check

Record the sequence of collectd loading Lua scripts, Lua loading ubus modules, and the dynamic linker reporting missing symbols.

Connect over Ethernet and run the following commands in an SSH session on the router.

logread -e collectd
ubus list

How to interpret the result

If ubus list works normally but logs show "lua_touserdata: symbol not found", verify the Lua runtime, binding library, and collectd module ABI. If even basic ubus queries fail, first restore the bus connection.

Verify and recover

Run a read-only test query from the script and confirm collectd keeps recording samples. Restore modules from a matching software feed if needed.

Related guide · Identify a new device from OpenWrt lease and access logs

Explore hardware

Comments