luci-wrtbwmon icon indicating copy to clipboard operation
luci-wrtbwmon copied to clipboard

module 'luci.model.ipkg' not found

Open nixcamic opened this issue 6 years ago • 14 comments

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.

nixcamic avatar Nov 18 '18 04:11 nixcamic

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!

Kiougar avatar Nov 18 '18 15:11 Kiougar

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.

nixcamic avatar Nov 22 '18 21:11 nixcamic

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!

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): ?

Virr avatar Feb 07 '19 16:02 Virr

Thanks @Virr for the details. I couldn't reproduce it myself but I pushed a fix nonetheless.

Can you try release v0.8.3?

Kiougar avatar Feb 07 '19 17:02 Kiougar

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

Virr avatar Feb 07 '19 18:02 Virr

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

Kiougar avatar Feb 07 '19 19:02 Kiougar

rm -rf /tmp/luci-indexcache /tmp/luci-modulecache

after this command it works. Great! Thanks!

Virr avatar Feb 07 '19 20:02 Virr

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

Kiougar avatar Feb 07 '19 20:02 Kiougar

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:~#

rammurti84 avatar Jul 22 '19 03:07 rammurti84

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.

Martin8023 avatar Mar 05 '20 05:03 Martin8023

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.

yearski avatar Oct 30 '20 04:10 yearski

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

dausruddin avatar Mar 03 '21 03:03 dausruddin

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 ~

sweet0416 avatar Jan 22 '23 03:01 sweet0416

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.

score76 avatar Mar 03 '23 18:03 score76