libremesh / lime-packages

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

Static IP config error #1110

Closed ilario closed 1 month ago

ilario commented 1 month ago

With @pedro-nonfree we tried using the static IP config, as you can see here:

https://github.com/libremesh/network-profiles/blob/640ea93d5791a35677b9d73c9618f96fee25bafc/canodrom.barcelona/simple/root/etc/config/lime-10FEEDE5F0C8#L4-L11

And we did that trying to follow the example here:

https://github.com/libremesh/lime-packages/blob/e22991716fb68bd7d20c643f0a562b821ed1f618/packages/lime-docs/files/www/docs/lime-example.txt#L222-L229

Maybe we missed the wan proto?

Anyway, this is the error that Pedro observed running lime-config on a TP-Link WDR4300:

/usr/lib/lua/lime/network.lua:428: attempt to index local 'addr' (a nil value)
stack traceback:
    /usr/lib/lua/lime/network.lua:404: in function </usr/lib/lua/lime/network.lua:404>
    /usr/lib/lua/lime/network.lua:428: in function 'createStaticIface'
    /usr/lib/lua/lime/proto/static.lua:23: in function 'setup_interface'
    /usr/lib/lua/lime/network.lua:403: in function </usr/lib/lua/lime/network.lua:403>
    [C]: in function 'xpcall'
    /usr/lib/lua/lime/network.lua:403: in function </usr/lib/lua/lime/network.lua:361>
    [C]: in function 'xpcall'
    /usr/lib/lua/lime/config.lua:221: in function 'main'
    /usr/bin/lime-config:55: in main chunk
    [C]: ?

A very similar malfunction has also maybe been observed and reported here: https://github.com/libremesh/lime-packages/issues/1059#issue-1937072258

ilario commented 1 month ago

Sorry, I missed a : in the IPv6 so it was invalid, and that caused the error. Now I tried again and it works.