Skip to content
Contents
GuidesOpenWrt

A LuCI menu opens but the service fails: check packages, processes and client traffic

The OpenWrt plugin menu can be accessed, indicating that the browser has successfully retrieved the corresponding page; however, this alone does not prove that the backend service is installed, running, or that client requests have actually passed through this functionality. During troubleshooting, these three layers must be separated and examined individually to determine whether to add missing dependencies, investigate startup errors, or verify the actual traffic path.

The OpenWrt plugin menu can be accessed, indicating that the browser has successfully retrieved the corresponding page; however, this alone does not prove that the backend service is installed, running, or that client requests have actually passed through this functionality. During troubleshooting, these three layers must be separated and examined individually to determine whether to add missing dependencies, investigate startup errors, or verify the actual traffic path.

The following checks apply to OpenWrt with SSH management privileges. Example screenshots are taken from the official 25.12.6 x86/64.

Take DNS as an example. First, verify that the configuration page can be accessed under LuCI's "Network → DHCP and DNS". Then, in the following isolated instance, we will use SSH to check the dnsmasq process and the local DNS settings. In a real home network, we must also query a terminal device affected by this service to resolve a name it depends on, and verify the responding server address.

DHCP Configuration Page in OpenWrt 25.12.6, for subsequent comparison with dnsmasq service status

First, determine which firmware version is currently being checked.

Run the following command in the router's SSH terminal when issues occur:

ubus call system board
command -v opkg
command -v apk

Record the model, kernel, and release from the output; check the device label if the model field is missing. command -v outputs the path of the command; if nothing is output, the command is not available in the current environment. Proceed with the package manager actually used by the firmware; do not install or replace the package manager merely because the tutorial uses a different one.procd's system interfaceDescribes the return source of system board.

Verify the front-end package against the back-end package

First, verify the package name from the official documentation or installation package records. The following two placeholder values must be replaced: frontend package name, backend package name, and service name may not be identical.

Router using opkg:

front_pkg='REPLACE_WITH_FRONTEND_PACKAGE'
back_pkg='REPLACE_WITH_BACKEND_PACKAGE'
opkg --version
opkg status "$front_pkg"
opkg status "$back_pkg"
opkg files "$back_pkg"

Check Package, Version, Status, Depends, and the file list. The status should clearly indicate that it is installed; if the frontend is installed but there is no installation record for the backend, verify the dependencies and software sources first—do not replace this check with repeatedly refreshing the menu.Official opkg command definitionsDistinguishes between status and file queries.

Use the APK router to switch to the following branch; first verify the availability of options using local assistance:

front_pkg='REPLACE_WITH_FRONTEND_PACKAGE'
back_pkg='REPLACE_WITH_BACKEND_PACKAGE'
apk --version
apk info --help
apk info -e "$front_pkg" "$back_pkg"
apk info -a "$back_pkg"
apk info -L "$back_pkg"

info -e indicates successful exit when all listed packages have been installed; -a queries version, dependencies, and other known information, -L queries files within the package. Package records are not file integrity or program health checks. If options differ from local help, halt at version verification and do not apply software sources from other distributions.apk info official statementThe meanings of these options are provided.

Check if the service exists and if the process is running continuously.

Still on the router, first check the locally exposed interfaces, then read the service information:

ubus -v list service
ubus call service list '{"verbose":true}'
logread

Under the corresponding service's instances, look for running, pid, and the startup command. running: true together with a valid process ID indicates that procd has detected the instance as running; however, it does not guarantee that DNS, proxy, or other services are actually available.procd service queryWithInstance fieldThese are the criteria for judgment.

If the instance is stopped, inspect the logs around a similar time for configuration parsing, permission, port occupation, or dependency errors. In the absence of corresponding service records, first verify the startup script and plugin execution methods within the package: one-off scripts, kernel features, or components managed by other processes may not necessarily have independent persistent instances. Do not immediately conclude statements such as "ARM is not supported." logread only reflects logs currently readable; older entries might have been rotated; remove credentials and personal addresses before sharing logs.

OpenWrt Isolation Experiment SSH Output

25.12.6 The test machine shall simultaneously monitor the LuCI package, dnsmasq running status, and local DNS resolution results; actual verification is also required on end-user LAN clients.

Final acceptance of actual business operations

If the plugin provides DNS functionality, a LAN client under normal operation should query a test domain under the plugin's control, while simultaneously verifying the plugin's query log. The path is considered passed only if the request reaches the correct instance and the response conforms to pre-defined rules. If the client receives a response but the plugin lacks a corresponding record, further inspection should be conducted on the client's DNS resolver, cache, or by-pass path. Other plugins should follow corresponding business logic and cannot be validated solely by the criterion that "a webpage can be opened."

Log client, timestamp, destination, and service instance. If the packet and process are normal but the service fails, narrow the issue down to configuration or request path. This command does not modify configuration; if corrections are needed later, first save the original values and available login methods, modify only one setting at a time, and upon failure, restore the original values and revalidate the original service.

When OpenWrt cannot install a package

Reference

Explore hardware

Comments