OpenWrt Forum Archive

Topic: Hosed my Luci install...

The content of this topic has been archived on 9 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi all,

New install of 10.03.1-RC6 on a Netgear WNDR3700 router.  Everything was working smoothly, until i started messing with pkg manager adding some stuff that looked interesting.  I think what screwed up my luci was installing luci-app-firewall - 0.10+svn7852-1 when the rest of my luci was luci-app-firewall - 0.9.0-1.

Symptom is a white screen when loading luci in my web browser.  I did some searching on the forums, and i'm getting this error when executing /www/cgi-bin/luci

/usr/bin/lua: error loading module 'luci.cacheloader' from file '/usr/lib/lua/luci/cacheloader.lua':
        /usr/lib/lua/luci/cacheloader.lua: bad header in precompiled chunk
stack traceback:
        [C]: ?
        [C]: in function 'require'
        /www/cgi-bin/luci:2: in main chunk
        [C]: ?

So i completely removed luci from the router with opkg remove luci --force-removal-of-dependent-packages and each subsequent luci package until opkg list_installed | grep luci showed no remaining packages.  I also removed uhttpd.  Then i rebooted and did a reinstall of luci.  Now all my luci files have matching versions but i'm still getting the blank page in my browser and getting the cgi error above.

Here's the contents of /www/cgi-bin/luci

#!/usr/bin/lua
require "luci.cacheloader"
require "luci.sgi.cgi"
luci.dispatcher.indexcache = "/tmp/luci-indexcache"
luci.sgi.cgi.run()

Here's what luci packages i have installed:

# opkg list-installed | grep luci
luci - 0.9.0-1
luci-admin-core - 0.9.0-1
luci-admin-full - 0.9.0-1
luci-admin-mini - 0.9.0-1
luci-app-firewall - 0.9.0-1
luci-app-initmgr - 0.9.0-1
luci-cbi - 0.9.0-1
luci-core - 0.9.0-1
luci-http - 0.9.0-1
luci-i18n-english - 0.9.0-1
luci-ipkg - 0.9.0-1
luci-lmo - 0.9.0-1
luci-nixio - 0.9.0-1
luci-sgi-cgi - 0.9.0-1
luci-sgi-uhttpd - 0.9.0-1
luci-sys - 0.9.0-1
luci-theme-base - 0.9.0-1
luci-theme-openwrt - 0.9.0-1
luci-uci - 0.9.0-1
luci-uvl - 0.9.0-1
luci-web - 0.9.0-1

Can anyone tell me what i might be missing?

Managed to fix it by removing all of luci pkgs again, updating to the opkg.conf to use the 10.03.1-rc6 packages, and reinstalling luci.  Back in business.

The discussion might have continued from here.