Skip to content
Contents
GuidesOpenWrt

LuCI shows less uptime than SSH: did OpenWrt restart?

When SSH displays “up 4:25”, it means four hours and 25 minutes. If LuCI appears to show four minutes, compare the kernel and ubus readings on the same router before assuming a reboot.

When SSH displays “up 4:25”, it means four hours and 25 minutes. If LuCI appears to show four minutes, compare the kernel and ubus readings on the same router before assuming a reboot.

Compare readings in the same units

In LuCI open Status → Overview. Under System, find Uptime. Local Time is the clock and Load Average measures load. Connect by SSH to the same address.

LuCI · Status → Overview · Uptime

The first number in /proc/uptime counts seconds since boot. The second adds idle seconds across CPUs. The ubus uptime field reports whole seconds. In the last line read the duration after up.

date -u
cat /proc/uptime
ubus call system info | jsonfilter -e '@.uptime'
uptime

SSH · 78.46 s · 79 s · 1 min

An isolated OpenWrt 25.12.6 x86/64 guest returned 78.46 seconds, 79 seconds and 1 minute. Sampling time and display precision explain the difference. The LuCI screenshot is from a separate session and locates the field.

Repeat the check after a minute

Refresh Overview and repeat the commands. If the kernel and ubus advance together but the page mixes up hours and minutes, sign in using a private window. Record firmware and LuCI versions if the discrepancy persists. Monitor via SSH meanwhile. No restart or script edit is needed.

If the kernel counter drops, confirm the device identity and check early boot messages in the system log. If only the ubus line is blank, run ubus call system info and look for uptime. Blank does not mean zero. Finish when both samples advance by the elapsed interval and the converted page reading agrees.

What does an OpenWrt configuration backup restore?

Explore hardware

Comments