Skip to content
Contents
GuidesOpenWrt

LuCI shows Unexpected string after login. How do I check 11_upgrades.js?

If only Status → Overview fails with a SyntaxError, check the upgrade widget before changing firmware. A stale proxy response can look just like broken JavaScript.

If only Status → Overview fails with a SyntaxError, check the upgrade widget before changing firmware. A stale proxy response can look just like broken JavaScript.

OpenWrt 25.12.0-rc3 · ASUS RT-AX52 / GL.iNet GL-MT6000

Read the response that failed

Expand the first console error. luci.js may only be the loader. In Developer Tools → Network, disable caching temporarily, reload Overview and filter for 11_upgrades.js. Check the status and the first lines of Response.

Even a 200 can contain an HTML login page. Sign in again and compare the direct LAN address with the proxy. If only the proxy fails, check rewriting and purge that resource. If only one browser fails, refresh its site cache.

Compare the installed copy

In System → Software → Installed, filter for luci-app-attendedsysupgrade and note its version. The virtual 25.12.6 screenshot shows the menu only. If LuCI fails, read the default file and package over SSH.

LuCI 25.12.6 · Software → Installed

head -n 12 /www/luci-static/resources/view/status/include/11_upgrades.js
apk info -v luci-app-attendedsysupgrade

If the first declaration lacks its semicolon and the next string triggers the error, compare with the corrected lines below. If the disk copy already matches, check what served the old response. For another line or file, follow that error separately.

'require uci';
'require ui';

Verify without starting an upgrade

Back up settings and keep the previous compatible packages or image. For a confirmed mismatch in the installed script, install a corrected package from the matching release or a verified compatible image during maintenance. Avoid mixing snapshot feeds. Reload and check the response, console and widget. Restore browser caching. If new errors appear, revert to the saved compatible set and restore settings as needed.

What does an OpenWrt configuration backup restore?

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

Explore hardware

Devices mentioned

Comments