libremesh / lime-packages

LibreMesh packages configuring OpenWrt for wireless mesh networking
https://libremesh.org/
GNU Affero General Public License v3.0
281 stars 96 forks source link

"string expected, got nil" in /usr/lib/hotplug-initd-observer #1068

Closed pony1k closed 10 months ago

pony1k commented 10 months ago

The hotplug-initd-observer lua script in package hotplug-initd-services crashes when evData.service is nil. Apparently this can happen.

Tue Nov 14 14:00:51 2023 daemon.err hotplug-initd-observer[2088]: /usr/bin/lua: /usr/bin/hotplug-initd-observer:13: bad argument #3 to 'format' (string expected, got nil)
Tue Nov 14 14:00:51 2023 daemon.err hotplug-initd-observer[2088]: stack traceback:
Tue Nov 14 14:00:51 2023 daemon.err hotplug-initd-observer[2088]:       [C]: in function 'format'
Tue Nov 14 14:00:51 2023 daemon.err hotplug-initd-observer[2088]:       /usr/bin/hotplug-initd-observer:13: in function </usr/bin/hotplug-initd-observer:10>
Tue Nov 14 14:00:51 2023 daemon.err hotplug-initd-observer[2088]:       [C]: in function 'run'
Tue Nov 14 14:00:51 2023 daemon.err hotplug-initd-observer[2088]:       /usr/bin/hotplug-initd-observer:23: in main chunk
Tue Nov 14 14:00:51 2023 daemon.err hotplug-initd-observer[2088]:       [C]: ?

I found this log message on a Xiaomi Redmi Router AX6S with OpenWrt 23.05.2 and LibreMesh 5a50b6f, not so long after boot.

pony1k commented 10 months ago

Oups, this is a duplicate of #1064. Sorry!