I think I broke luci when i was trying to install luci-app-ddns and then did opkg upgrade luci-base
When i try to go to luci,
I get this:
/usr/lib/lua/luci/template.lua:97: Failed to execute template 'sysauth'.
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..."]:20: attempt to call field 'node_childs' (a nil value)
stack traceback:
[string "/usr/lib/lua/luci/view/themes/bootstrap/hea..."]:20: 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/sysauth.htm"]: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): ?
(tail call): ?
/usr/lib/lua/luci/dispatcher.lua:979: in function 'dispatch'
/usr/lib/lua/luci/dispatcher.lua:478: in function </usr/lib/lua/luci/dispatcher.lua:477>
Ok, I would suggest making a copy of all files from /etc/config/ (use scp because LuCI is broken). Then you could try upgrading all LuCI packages, but be ready to have to reset to factory defaults if that does not help.
I suspect that older LuCI packages you have installed do not match the base package you just upgraded.
I made a backup before attempting to install so i'm good there. I upgraded just luci-theme-bootstrap because it seemed like the errors were pointing there and it started working again! I'm super afraid of upgrading anything else now. Or rebooting. I just kinda want it to stay this way until my roommate's exams are over next week.
So for the future knowledge, was it wrong for me to upgrade luci-base initially? I did not check if it was listed in opkg list-upgradable. Is it alright to upgrade packages in that list or is there more checking involved on what can be upgraded?
As a general rule, you should never upgrade in place, because the OpenWRT is not designed to support this case. If you are afraid to upgrade the packages, then do not.
You can ask then why the upgrade functionality is there? You will hear answers that it is to support emergency and security one off patches, but I disagree with that notion.
In your case, probably yes. I personally just re-spin the entire firmware image a few times a month with all extra packages included into it, so I do not need to install or upgrade anything via opkg after the flash. This way all packages in my image are always consistent. Again, I do not recommend doing this without any troubleshooting experience.
P.S. Even though, your LuCI is working for you, it is still possible that some other parts of it are broken due to version incompatibility. Just keep that in mind. LuCI is not a part of routing, so the core router fictionally is not affected. Unless you upgraded some other packages of course