-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
luci-base: force menu to regenerate after uci change
Because the menu JSON can have 'depends' in them, uci changes should force the menu to regenerate. Closes #6423 Signed-off-by: James Haggerty <[email protected]> Signed-off-by: Paul Donald <[email protected]>
- Loading branch information
1 parent
6abb5ed
commit 97ebdcb
Showing
3 changed files
with
7 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
97ebdcb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This results in:
97ebdcb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you running a lua based app?
What were your actions leading up to this error?
97ebdcb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Runtime error
Unhandled exception during request dispatching
/usr/lib/lua/luci/ucodebridge.lua:23: /usr/lib/lua/luci/dispatcher.lua:102: module 'luci.controller.' not found:
no field package.preload['luci.controller.']
no file './luci/controller/.lua'
no file '/usr/share/lua/luci/controller/.lua'
no file '/usr/share/lua/luci/controller//init.lua'
no file '/usr/lib/lua/luci/controller/.lua'
no file '/usr/lib/lua/luci/controller//init.lua'
no file './luci/controller/.so'
no file '/usr/lib/lua/luci/controller/.so'
no file '/usr/lib/lua/loadall.so'
no file './luci.so'
no file '/usr/lib/lua/luci.so'
no file '/usr/lib/lua/loadall.so'
In error(), file [C]
called from function [anonymous function] (/usr/lib/lua/luci/ucodebridge.lua:23)
called from function ((tail call))
In anonymous function, file /usr/share/ucode/luci/runtime.uc, line 148, byte 45:
called from function build_pagetree (/usr/share/ucode/luci/dispatcher.uc:382:73)
called from function menu_json (/usr/share/ucode/luci/dispatcher.uc:439:26)
called from function [anonymous function] (/usr/share/ucode/luci/dispatcher.uc:898:24)
called from anonymous function (/www/cgi-bin/luci:39:13)
return lcall.call(modname, method, ...args);
Near here ----------------------------------------^
97ebdcb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@xh0823 Will a rollback solve the problem? I haven't used it yet!
97ebdcb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You try it, I'm a little bit busy
97ebdcb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@systemcrash
Just trying to access the routers web interface.
It doesn't even reach the login page.
@zxlhhyccc
Yes, resolving it solves it.
97ebdcb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@schm0 How did you solve it? Did the rollback solve it?
97ebdcb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
97ebdcb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
97ebdcb#diff-ba767cec24091f883573c9364ef8ff2efaaabfb050a9c2f485adc9a3bf17a9d0R361
Rollback can be, why add
/etc/config/*
can not understand!97ebdcb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I get the error right after I flashed a new version for E8450/RT3200 and the router rebooted. The error comes already before the login screen.
Removing the
/etc/config/*
addition from dispatcher.uc fixed things, and LuCI can again be accessed.But that removes the core idea of this change, I think.
I will revert this until @systemcrash figures a fix.
@systemcrash
Did this actually work for you? Did you test this?
I wonder what is the difference in your LuCI.
97ebdcb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reverted in f2a4910
97ebdcb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested it, but evidently needed to reboot to hit that part. I also reverted it but forgot to push 🙈
Thanks @hnyman
97ebdcb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I NACKed this previously and now you pushed it anyway and broke master (once again) in the process.
97ebdcb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Previously? #6423 ? Or some other avenue?
97ebdcb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Anyway, yes. It's verified that exactly these changes cause problems.
97ebdcb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried checking out this commit and applying the changes and it crashed immediately for me on a Ctrl+F5, no reboot necessary. I'm running with ccache disabled on my dev machine if that would make a difference.