Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

module 'luci.model.ipkg' not found #27

Open
nixcamic opened this issue Nov 18, 2018 · 14 comments
Open

module 'luci.model.ipkg' not found #27

nixcamic opened this issue Nov 18, 2018 · 14 comments

Comments

@nixcamic
Copy link

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.

@Kiougar
Copy link
Owner

Kiougar commented Nov 18, 2018

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!

@nixcamic
Copy link
Author

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.

@Virr
Copy link

Virr commented Feb 7, 2019

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

@Kiougar
Copy link
Owner

Kiougar commented Feb 7, 2019

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

Can you try release v0.8.3?

@Virr
Copy link

Virr commented Feb 7, 2019

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

@Kiougar
Copy link
Owner

Kiougar commented Feb 7, 2019

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

@Virr
Copy link

Virr commented Feb 7, 2019

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

after this command it works. Great! Thanks!

@Kiougar
Copy link
Owner

Kiougar commented Feb 7, 2019

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 Kiougar changed the title Versions later than 6.0 stuck on loading... module 'luci.model.ipkg' not found Feb 7, 2019
@rammurti84
Copy link

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

@Martin8023
Copy link

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.

@yearski
Copy link

yearski commented Oct 30, 2020

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.

@dausruddin
Copy link

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

@sweet0416
Copy link

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 ~

@score76
Copy link

score76 commented Mar 3, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants