OpenWrt Forum Archive

Topic: luci install error

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

hi,everybody!

based on brcm633xx, my svn trunk version is r17430.  As I install luci-admin-full by opkg, an error ocur as "ERROR: luci-admin-core.postinst returned 1" ?For the first time, I thought that the default opkg source may be somthing wrong, so, I compiled ipk concerned luci and placed in my local ftp server?i.e, “ftp://1234:123456@192.168.1.204/packages/Packages” . This local sources seems to work well at first, howerver, the same error happed again.  what's wrong?

the following is the information of installing luci-admin-full.

root@OpenWrt:/# opkg update
Downloading ftp://1234:123456@192.168.1.204/packages/Packages
Updated list of available packages in /var/opkg-lists/local
Downloading http://downloads.openwrt.org/snapshots/ … ackages.gz
wget: bad address 'downloads.openwrt.org'
Collected errors:
* Failed to download http://downloads.openwrt.org/snapshots/ … ackages.gz, error 1
root@OpenWrt:/#     
root@OpenWrt:/#
root@OpenWrt:/# opkg install luci-admin-full
Installing luci-admin-full (0.9+svn5314-1) to root...
Downloading ftp://1234:123456@192.168.1.204/packages/luci-admin-full_0.9+svn5314-1_brcm63xx.ipk
Installing luci-core (0.9+svn5314-1) to root...
Downloading ftp://1234:123456@192.168.1.204/packages/luci-core_0.9+svn5314-1_brcm63xx.ipk
Installing luci-nixio (0.9+svn5314-1) to root...
Downloading ftp://1234:123456@192.168.1.204/packages/luci-nixio_0.9+svn5314-1_brcm63xx.ipk
Installing luci-admin-core (0.9+svn5314-1) to root...
Downloading ftp://1234:123456@192.168.1.204/packages/luci-admin-core_0.9+svn5314-1_brcm63xx.ipk
Installing luci-web (0.9+svn5314-1) to root...
Downloading ftp://1234:123456@192.168.1.204/packages/luci-web_0.9+svn5314-1_brcm63xx.ipk
Installing luci-http (0.9+svn5314-1) to root...
Downloading ftp://1234:123456@192.168.1.204/packages/luci-http_0.9+svn5314-1_brcm63xx.ipk
Installing luci-sys (0.9+svn5314-1) to root...
Downloading ftp://1234:123456@192.168.1.204/packages/luci-sys_0.9+svn5314-1_brcm63xx.ipk
Installing luci-uci (0.9+svn5314-1) to root...
Downloading ftp://1234:123456@192.168.1.204/packages/luci-uci_0.9+svn5314-1_brcm63xx.ipk
Installing luci-lucid (0.9+svn5314-1) to root...
Downloading ftp://1234:123456@192.168.1.204/packages/luci-lucid_0.9+svn5314-1_brcm63xx.ipk
Installing luci-px5g (0.9+svn5314-1) to root...
Downloading ftp://1234:123456@192.168.1.204/packages/luci-px5g_0.9+svn5314-1_brcm63xx.ipk
Installing luci-sgi-cgi (0.9+svn5314-1) to root...
Downloading ftp://1234:123456@192.168.1.204/packages/luci-sgi-cgi_0.9+svn5314-1_brcm63xx.ipk
Installing luci-lmo (0.9+svn5314-1) to root...
Downloading ftp://1234:123456@192.168.1.204/packages/luci-lmo_0.9+svn5314-1_brcm63xx.ipk
Installing luci-cbi (0.9+svn5314-1) to root...
Downloading ftp://1234:123456@192.168.1.204/packages/luci-cbi_0.9+svn5314-1_brcm63xx.ipk
Installing luci-uvl (0.9+svn5314-1) to root...
Downloading ftp://1234:123456@192.168.1.204/packages/luci-uvl_0.9+svn5314-1_brcm63xx.ipk
Installing luci-i18n-english (0.9+svn5314-1) to root...
Downloading ftp://1234:123456@192.168.1.204/packages/luci-i18n-english_0.9+svn5314-1_brcm63xx.ipk
Installing luci-ipkg (0.9+svn5314-1) to root...
Downloading ftp://1234:123456@192.168.1.204/packages/luci-ipkg_0.9+svn5314-1_brcm63xx.ipk
Configuring luci-uci
Configuring luci-px5g
Configuring luci-lmo
Configuring luci-ipkg
Configuring luci-cbi
Configuring luci-sgi-cgi
Configuring luci-sys
Configuring luci-admin-full
Configuring luci-lucid
Configuring luci-nixio
Configuring luci-web
Configuring luci-http
Configuring luci-uvl
Configuring luci-core
Configuring luci-admin-core
postinst script returned status 1
Configuring luci-i18n-english
Collected errors:
* ERROR: luci-admin-core.postinst returned 1
root@OpenWrt:/#
root@OpenWrt:/#

By ipk source from my local ftp server,   webif(x-wrt?can be installed. 

info concerned is as followding:

root@OpenWrt:/# opkg install webif
Installing webif (0.3-4818) to root...
Downloading ftp://1234:123456@192.168.1.204/packages/webif_0.3-4818_brcm63xx.ipk
Configuring webif
Collected errors:
* Could not obtain administrative lock
Committing new firmware id ...
SUCCESS! Webif^2 installation appears OK. Welcome to X-Wrt!
You may need to do a hard REFRESH to clear old CSS style from your browser.
Reinitializing httpd ...
Configuring luci-admin-core

IIRC, you can ignore this error.

Dogge wrote:

IIRC, you can ignore this error.

Thanks.

I do, but  luci-web-page can't be opened normally.

After installing,  is there anything to be setup furtherly?

WEB page error info:
=============================
/usr/lib/lua/luci/dispatcher.lua:230: No valid theme found
stack traceback:
    [C]: in function 'assert'
    /usr/lib/lua/luci/dispatcher.lua:230: in function 'dispatch'
    /usr/lib/lua/luci/dispatcher.lua:129: in function </usr/lib/lua/luci/dispatcher.lua:128>


/usr/lib/lua/luci/dispatcher.lua:230 code:
======================
        -- Init template engine                                                 
        if (c and c.index) or not track.notemplate then                         
                local tpl = require("luci.template")                           
                local media = track.mediaurlbase or luci.config.main.mediaurlbas
                if not pcall(tpl.Template, "themes/%s/header" % fs.basename(medi
                        media = nil                                             
                        for name, theme in pairs(luci.config.themes) do         
                                if name:sub(1,1) ~= "." and pcall(tpl.Template,
                                 "themes/%s/header" % fs.basename(theme)) then 
                                        media = theme                           
                                end                                             
                        end                                                     
(line 230, here eror!?            assert(media, "No valid theme found")

The problem is solved?

Besides of "opkg install luci-admin-full", 
"opkg install luci-theme-base" and "opkg install luci-theme-openwrt" have to be done.

it seems that something is to be fixed.

(Last edited by luoluo on 28 Aug 2009, 18:02)

The discussion might have continued from here.