Troubleshooting
Most problems fall into three groups: the backend is not running or not reachable, the backend runs but sees no traffic, or the front end and backend versions do not match. Work through the checks below from the top.
First Checks
Run these on the router over SSH:
# Is the backend running?
ps | grep [b]andix
# Does the API answer?
curl -s http://127.0.0.1:8686/api/traffic/devices | head -c 300; echo
# Is the RPC object registered?
ubus -v list luci.bandix | head
# What do the versions say?
ubus call luci.bandix getVersion
# Backend log messages
logread | grep -i bandix | tail -n 50
If you changed bandix.general.host or port, replace 127.0.0.1:8686 with your values. Raise bandix.general.log_level to debug for more detail in logread.
Failed to Connect to Bandix Service
This is the generic error of the RPC plugin whenever curl gets no answer from the backend.
| Cause | Check | Fix |
|---|---|---|
| Traffic monitoring is not enabled | uci get bandix.traffic.enabled |
Tick Enable Traffic Monitoring on the Settings page and Save & Apply |
| No interface selected | uci get bandix.general.iface |
Select the LAN bridge (usually br-lan) |
| The backend crashed or failed to attach its eBPF programs | logread | grep -i bandix |
Check kernel version (6.x needed), try another tc_backend value |
| The API listens elsewhere | netstat -ltn | grep 8686 |
Make host/port in /etc/config/bandix match what the backend uses; restart it |
| Backend busy or slow | Does curl answer after several seconds? |
The plugin gives up after 5–10 seconds for most calls; reduce load, enable fewer modules |
After changing settings, restart the service:
/etc/init.d/bandix restart
Note: Some methods have their own wording for the same problem: "GeoIP service is unavailable", "Batch deletion is unavailable. Update the Bandix service.", or the plain "Unable to fetch data" when the RPC call itself failed.
The Device List Is Empty
The Status page loads, but no devices appear.
- The backend is down.
getStatusdoes not report errors: when the backend does not answer, it returns an empty device list. So an empty list can simply mean "no connection". Test withcurlas shown in First Checks. - Wrong interface. Bandix counts traffic on
bandix.general.ifaceonly. If you selected the WAN device or a physical port that is a bridge member, LAN devices do not show up. Select the bridge, usuallybr-lan. - Clients on another network. Devices on a guest network or VLAN with its own interface are not seen unless that traffic crosses the monitored interface.
traffic_additional_subnetsmakes extra subnets count as local. - The period has no data. With a Period other than All, totals only cover that range. Without persistence, data from before the last backend restart is gone.
- No traffic yet. Devices appear once the backend has seen their packets and resolved their MAC addresses. Generate some traffic.
The Version Shows Unknown
The Version field on the Settings page, and getVersion, show Unknown when the version cannot be determined.
For luci-app-bandix:
- on opkg systems it is read from
/usr/lib/opkg/info/luci-app-bandix.control, then fromopkg list-installed; - on apk systems the plugin checks whether
/lib/apk/db/installedexists but then reads/usr/lib/apk/db/installed, and it searches for lines starting with the package name, which the apk database format does not use. In practice the version comes from the fallback,apk list --installed --manifest luci-app-bandix.
For bandix the same sources are tried, followed by the backend's GET /api/version.
Unknown therefore usually means the package was not installed through the package manager (files copied by hand, or a custom firmware build that strips package metadata) and, for the backend, the backend is not running. Check with:
opkg list-installed | grep bandix # opkg
apk list --installed | grep bandix # apk
An Unknown version also disables meaningful update checks: the updater compares the installed version with the GitHub release using sort -V.
Speeds Are Too Low or Traffic Is Missing
| Cause | Explanation |
|---|---|
| Hardware flow offloading or Turbo ACC | Offloaded flows bypass the TC hooks. Disable offloading under Network → Firewall |
| LAN-to-LAN traffic | Traffic between two LAN devices that is switched by the switch chip (or bridged in the Wi-Fi driver) never reaches the CPU. The page says so in the LAN traffic tooltip |
| Another TC/eBPF program on the same interface | Order matters. Try tc_backend, tc_order and netlink_priority (see Configuration) |
| The router's own traffic | With traffic_exclude_iface_device=1, the router itself is excluded |
Rate Limits or Quotas Have No Effect
- Only WAN traffic is limited. LAN transfers are never rate-limited.
- Offloading lets traffic bypass the hooks, so limits and quota blocking cannot act on it.
- Schedule rule not saved. The page does not check whether the backend accepted a rule. Reopen the editor and verify that the rule is listed, or call
ubus call luci.bandix getScheduleLimits. - Whitelisted device. Devices in the global rate limit whitelist are exempt from the global default limit.
- Time zone. The Status page decides which rule is "active" using your browser's local time. The backend uses the router's time. If they differ, the highlighted rule may not be the one being enforced.
- Units. In the rule editor, a value such as
1.5with a unit is truncated to an integer before conversion (parseInt), while quotas accept decimals. Enter whole numbers or switch to a smaller unit.
See Rate Limits for more.
A Hostname Does Not Stick
The hostname is placed into the backend request without JSON escaping. A name containing " or \ produces invalid JSON, and the save fails. The Status page does not check the RPC result, so you may not see an error message. Use letters, digits, spaces, - and _.
Connection or DNS Pages Say Monitoring Is Disabled
The Connections and DNS pages need bandix.connections.enabled=1 or bandix.dns.enabled=1. Both the page and the RPC plugin check the option, so enable it on the Settings page, Save & Apply, and reload the page.
GeoIP Is Unavailable
The IP location database is served by the backend's connection module. Enable connection monitoring and apply first. See IP Location Database for download and upload errors.
Update Check Fails
| Message | Meaning |
|---|---|
| Error in the result dialog | The router could not reach api.github.com (DNS, firewall, or rate limiting of unauthenticated GitHub API calls) |
| "No ipk package found for bandix" (or similar) | The latest release has no asset for the detected architecture or package format. Check Detected Architecture and Package Manager, then download by hand |
The Status page runs the same check on every load to show the Update available badge, so each page load makes two requests to the GitHub API from the router. If the router has no internet access, this simply fails silently.
Clear Traffic Data Fails
"Metrics directory does not exist" means <data_dir>/metrics was never created, usually because persistence (traffic_enable_storage) was never enabled. There is nothing to clear on disk; restart the service to reset in-memory data.
Pages Look Broken After an Update
LuCI caches JavaScript in the browser. After updating luci-app-bandix, clear the browser cache or force-reload the page. If the backend was updated, restart it: the updater does not do this. Make sure both packages have the same minor version (see Installation).
Known Quirks
These are visible in the source code and may change in future versions:
- The ACL's read part grants methods that change state, including
installUpdate, which installs a package from any URL passed to it. Do not give theluci-app-bandixACL to untrusted LuCI users. See Access Control. - The ACL lists methods that do not exist (
getMetricsDay,getMetricsWeek,getMetricsMonth,getRateLimitWhitelistEnabled). - On the DNS page, statistics are refreshed every second although a code comment says five seconds; the record list never refreshes by itself.
- On the Connections page, Search only filters the currently loaded page of flows, and flows are queried by IPv4 address only.
- Filter values are not URL-encoded except for spaces; avoid
&,#,?and+in DNS filters. - The updater installs only
luci-app-bandixorbandix, never the language packs. - A hidden
offline_timeoutoption exists in the code but is commented out of the Settings form (see Configuration). - Devices that use randomized MAC addresses appear as new devices after each change.
Reporting a Bug
Open an issue on the GitHub repository. It has templates for bug reports and feature requests. Include:
- the output of
ubus call luci.bandix getVersion, - your OpenWrt version and kernel (
uname -r), - the relevant
logread | grep -i bandixlines, - your
/etc/config/bandix(remove anything private).