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

Bat-hosts get_bathost error #1093

Open selankon opened 3 months ago

selankon commented 3 months ago

Trying libremesh with OWRT23, me and other people noticed that bat host doesn't load correctly a bathost data:

root@LiMe-eb7f64:~# ubus  call bat-hosts get_bathost '{"mac": "D2:5F:25:EB:63:DA", "outgoing_i
face": "wlan1-mesh" }'
Command failed: No response
root@LiMe-eb7f64:~# echo '{"mac": "D2:5F:25:EB:63:DA", "outgoing_iface": "wlan1-mesh" }' | /us
r/libexec/rpcd/bat-hosts call get_bathost | jq
Failed to allocate uclient context
lua: /usr/libexec/rpcd/bat-hosts:31: attempt to index local 'bathost' (a nil value)
stack traceback:
    /usr/libexec/rpcd/bat-hosts:31: in function 'get_bathost'
    /usr/libexec/rpcd/bat-hosts:52: in main chunk
    [C]: ?

It seems that is not retrieving the info or nill values are not handled properly.

This causes a "Fetching name" loader continuously shown on the lime app landing page.

ilario commented 3 months ago

Who can investigate this? @javierajorge can you have a look? Thanks!