Service start crashes when the bypass table holds a default route (import-time netifaces lookup) #66
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
aqomui_service.py:66reads the default gateway interface with netifaces in the class body, at import time:Two independent problems stack here:
default via 192.168.0.1 dev enp5s0 table 11— written bybypass_up.sh/bypass.py),netifaces.gateways()returns both gateway entries but an empty'default'dict →KeyError: 2.Which means aqomui sabotages its own restart: start service → run bypass once (table 11 populated) → any later
systemctl restart aqomuicrash-loops until the table-11 route is removed by hand. Observed live 2026-08-19 on the 0.9.0.r302 build;sudo ip route del default table 11unblocks.Fix direction: drop netifaces for this lookup — parse
ip -j route show default(iproute2 is already a hard dependency) — do it lazily at the point of use, and tolerate a missing default route instead of dying.