Hi all,
I'm working on our own developing project with 19.07.8.
Our web server is uhttpd, and I try to do system upgrade from webUI.
When system upgrade progress, I expect the webUI will be blocked, like above image.
But, I received 500 Internal Error and empty webUI.
I checked the response from web server, please check following message.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Status: 500 Internal Server Error
/usr/lib/lua/luci/template.lua:97: Failed to execute template 'admin_status/index'.
A runtime error occurred: /usr/lib/lua/luci/template.lua:97: Failed to execute template 'header'.
A runtime error occurred: /usr/lib/lua/luci/template.lua:97: Failed to execute template 'themes/bootstrap/header'.
A runtime error occurred: [string "/usr/lib/lua/luci/view/themes/bootstrap/hea..."]:13: attempt to index local 'boardinfo' (a nil value)
stack traceback:
[string "/usr/lib/lua/luci/view/themes/bootstrap/hea..."]:13: in main chunk
stack traceback:
[C]: in function 'error'
/usr/lib/lua/luci/template.lua:97: in function 'render'
/usr/lib/lua/luci/dispatcher.lua:755: in function 'include'
[string "/usr/lib/lua/luci/view/header.htm"]:3: in main chunk
stack traceback:
[C]: in function 'error'
/usr/lib/lua/luci/template.lua:97: in function 'render'
/usr/lib/lua/luci/dispatcher.lua:755: in function 'include'
[string "/usr/lib/lua/luci/view/admin_status/index.h..."]:1: in main chunk
stack traceback:
[C]: in function 'error'
/usr/lib/lua/luci/template.lua:97: in function </usr/lib/lua/luci/template.lua:85>
(tail call): ?
/usr/lib/lua/luci/dispatcher.lua:1020: in function 'dispatch'
/usr/lib/lua/luci/dispatcher.lua:984: in function 'dispatch'
/usr/lib/lua/luci/dispatcher.lua:478: in function </usr/lib/lua/luci/dispatcher.lua:477>
I double check the "ubus call system board", it works well before switch to ramdisk.
root@aa-0e9d:/# ubus call system board
{
"kernel": "4.9.217",
"hostname": "aa-0e9d",
"system": "Realtek AA",
"model": "aa",
"board_name": "realtek,aa",
"release": {
"distribution": "OpenWrt",
"version": "1.0.0.014",
"revision": "r11364-ef56c85848",
"target": "aa/bb",
"description": "OpenWrt 1.0.0.014 r11364-ef56c85848"
}
}
Another interesting part, I use nginx instead of uhttpd. The problem is gone.
I have no idea to fix/debug this issue.
Anyone have such experience to debug or resolve this issue? please help. Thanks.