luci-wrtbwmon
luci-wrtbwmon copied to clipboard
module 'luci.model.ipkg' not found
I'm running the latest openwrt snapshot, and followed the installation instructions listed on the page. Version 6.0 works fine (except for the layout being slightly skewed by the theme) but any later version just stays on loading... indefinitely.
Can you please provide more details?
What version of OpenWRT are you using?
When you say versions later than 6.0
, do you mean version 0.6.0
of this luci-wrtbwmon
?
Can you provide a screenshot of the loading
screen?
Is it possible to provide a copy of the logs in the console
tab in your browser (if there are any)?
Thanks in advance!
I'm using the latest snapshot of OpenWRT, and yes 0.6.0 of luci-wrtbwmon, its just the loading screen that pops up normally right before the table is displayed. Unfortunately it was at a friends house that I had the problem, I have a similar router at home though and I'll see if I can reproduce the issue on it.
Can you please provide more details?
What version of OpenWRT are you using? When you say versions later than
6.0
, do you mean version0.6.0
of thisluci-wrtbwmon
? Can you provide a screenshot of theloading
screen? Is it possible to provide a copy of the logs in theconsole
tab in your browser (if there are any)?Thanks in advance!
in console: 500 error here usage/check_dependency:1
and when I open /cgi-bin/luci/admin/network/usage/check_dependency
Failed to execute call dispatcher target for entry '/admin/network/usage/check_dependency'. The called action terminated with an exception: /usr/lib/lua/luci/controller/wrtbwmon.lua:24: module 'luci.model.ipkg' not found: no field package.preload['luci.model.ipkg'] no file './luci/model/ipkg.lua' no file '/usr/share/lua/luci/model/ipkg.lua' no file '/usr/share/lua/luci/model/ipkg/init.lua' no file '/usr/lib/lua/luci/model/ipkg.lua' no file '/usr/lib/lua/luci/model/ipkg/init.lua' no file './luci/model/ipkg.so' no file '/usr/lib/lua/luci/model/ipkg.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' stack traceback: [C]: in function 'require' /usr/lib/lua/luci/controller/wrtbwmon.lua:24: in function </usr/lib/lua/luci/controller/wrtbwmon.lua:22> (tail call): ?
Thanks @Virr for the details. I couldn't reproduce it myself but I pushed a fix nonetheless.
Can you try release v0.8.3?
Unfortunately, exactly the same.
I did
opkg install /tmp/luci-wrtbwmon_v0.8.3_all.ipk Upgrading luci-wrtbwmon on root from 0.8.2 to v0.8.3... Configuring luci-wrtbwmon
then rm /tmp/luci-indexcache
but nothing changed
Try running this as well to make sure the cache is completely clear:
rm -rf /tmp/luci-indexcache /tmp/luci-modulecache
Can you tell me which version of OpenWRT are you using? Also, can you provide the output of the following command?
opkg list-installed
rm -rf /tmp/luci-indexcache /tmp/luci-modulecache
after this command it works. Great! Thanks!
But I still cannot reproduce it with a clean image of OpenWRT 18.06.2
Can you answer my questions so that I can figure out the source of the problem?
Can you tell me which version of OpenWRT are you using? Also, can you provide the output of the following command?
opkg list-installed
trying to install but getting below error root@myrouter:~# opkg install luci-wrtbwmon_v0.8.3_all.ipk ERROR: Dependency wrtbwmon of package luci-wrtbwmon cannot be found, try updating your package lists root@myrouter:~#
you can remove ipkg = require "luci.model.ipkg"
in the xx.lua, then make again. I guess it's because the luci version is different.
I ran into a similar module 'luci.model.ipkg' not found
error. Mine was for luci-ddns, not luci-wrtbwmon, so it may be completely unrelated. My issue was that I use USB storage for an extroot overlay and when I upgraded OpenWRT the USB storage carried along some stale luci modules/config. I fixed it by deleting /usr/lib/lua/luci/ from the USB storage and then re-copying it from the "fresh" jffs partition. Just a possible explanation if @Virr is also using an external overlay.
I had same error, but with Argon theme config. But since this issue appeared first on Google , maybe this can help someone.
Solved by https://github.com/jerrykuku/luci-theme-argon/issues/151#issuecomment-735361584, the solution is to install luci-lib-ipkg
. Eg: opkg install luci-lib-ipkg
I had same error, but with Argon theme config. But since this issue appeared first on Google , maybe this can help someone.
Solved by jerrykuku/luci-theme-argon#151 (comment), the solution is to install
luci-lib-ipkg
. Eg:opkg install luci-lib-ipkg
Thank you bro ~
For me this happened when I tried to remove the luci-app-ntpc and ntpclient package. I wanted to replace it with ntpd instead. When you remove the packages you get the error, put them back and it works again. Repeatable.