tried a couple of the official repos but cannot find the architecture specific package for luasocket to make it work.
root@GL-AXT1800:/overlay# prometheus-node-exporter-lua
/usr/bin/lua: /usr/bin/prometheus-node-exporter-lua:9: module 'socket' not found:
no field package.preload['socket']
no file './socket.lua'
no file '/usr/share/lua/socket.lua'
no file '/usr/share/lua/socket/init.lua'
no file '/usr/lib/lua/socket.lua'
no file '/usr/lib/lua/socket/init.lua'
no file './socket.so'
no file '/usr/lib/lua/socket.so'
no file '/usr/lib/lua/loadall.so'
stack traceback:
[C]: in function 'require'
/usr/bin/prometheus-node-exporter-lua:9: in main chunk
[C]: ?
root@GL-AXT1800:/overlay# opkg list-installed | grep prom
prometheus-node-exporter-lua - 2024.06.16-2
prometheus-node-exporter-lua-hwmon - 2024.06.16-2
prometheus-node-exporter-lua-nat_traffic - 2024.06.16-2
prometheus-node-exporter-lua-netstat - 2024.06.16-2
prometheus-node-exporter-lua-openwrt - 2024.06.16-2
prometheus-node-exporter-lua-snmp6 - 2024.06.16-2
prometheus-node-exporter-lua-textfile - 2024.06.16-2
prometheus-node-exporter-lua-thermal - 2024.06.16-2
bruce
April 8, 2025, 7:08am
2
Hello,
Please confirm if you require the luasocket plugin?
yes luasocket and uhttpd-mod-lua:
Collected errors:
* pkg_hash_check_unresolved: cannot find dependency luasocket for prometheus-node-exporter-lua
* pkg_hash_check_unresolved: cannot find dependency uhttpd-mod-lua for prometheus-node-exporter-lua
* pkg_hash_fetch_best_installation_candidate: Packages for prometheus-node-exporter-lua found, but incompatible with the architectures configured
* opkg_install_cmd: Cannot install package prometheus-node-exporter-lua.
i am using this:
src/gz openwrt https://downloads.openwrt.org/releases/23.05.5/packages/aarch64_generic/packages/
with glinet firmware 4.7.0
Thanks!
bruce
April 10, 2025, 10:35am
7
Thanks.
Informed R&D team to check.
1 Like
Have the same problem.
I had prometheus on the AXT-1800 successfully running for months. However, after the upgrade to firmware 4.7.0 with openwrt 23.05.5, I can not get it working again due to missing packages.
bruce
April 21, 2025, 2:23am
9
Hi,
The R&D is trying to compile this plugin and dependency package, please wait.
Is the build root available
bruce
June 5, 2025, 2:48am
11
Hello,
Plugins luasocket, uhttpd-mod-lua, Prometheus have been added to the repo.
May I know what is the "build root" mean?
Thanks!
The configured source tree so we can build our own packages
bruce
June 5, 2025, 4:04am
13
For the AXT1800/AX1800 v4.8 (and later) build own packages, you can find this config:
AX1800_AXT1800_v4.8_config.buildinfo.zip (3.4 KB)