But whenever I access 192.168.1.1, I always receive:
Bad Gateway
The process did not produce any response
Tried running /www/cgi-bin/luci and this is the output:
root@OpenWrt:~# /www/cgi-bin/luci
/usr/bin/lua: /usr/lib/lua/luci/config.lua:4: module 'luci.util' not found:
no field package.preload['luci.util']
no file './luci/util.lua'
no file '/usr/share/lua/luci/util.lua'
no file '/usr/share/lua/luci/util/init.lua'
no file '/usr/lib/lua/luci/util.lua'
no file '/usr/lib/lua/luci/util/init.lua'
no file './luci/util.so'
no file '/usr/lib/lua/luci/util.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/config.lua:4: in main chunk
[C]: in function 'require'
/usr/lib/lua/luci/cacheloader.lua:5: in main chunk
[C]: in function 'require'
/www/cgi-bin/luci:2: in main chunk
[C]: ?
root@OpenWrt:~#
I've just had this same issue. The list of luci packages that is now working for me is below. It was luci-lib-base that got me past 'luci.util' not found.
Hi, thank you for giving me your list of packages. the luci.util not found error is now gone, but it was replaced with this:
root@OpenWrt:~# /www/cgi-bin/luci
/usr/bin/lua: /usr/lib/lua/luci/util.lua:13: module 'lucihttp' not found:
no field package.preload['lucihttp']
no file './lucihttp.lua'
no file '/usr/share/lua/lucihttp.lua'
no file '/usr/share/lua/lucihttp/init.lua'
no file '/usr/lib/lua/lucihttp.lua'
no file '/usr/lib/lua/lucihttp/init.lua'
no file './lucihttp.so'
no file '/usr/lib/lua/lucihttp.so'
no file '/usr/lib/lua/loadall.so'
stack traceback:
[C]: in function 'require'
/usr/lib/lua/luci/util.lua:13: in main chunk
[C]: in function 'require'
/usr/lib/lua/luci/config.lua:4: in main chunk
[C]: in function 'require'
/usr/lib/lua/luci/cacheloader.lua:5: in main chunk
[C]: in function 'require'
/www/cgi-bin/luci:2: in main chunk
[C]: ?
root@OpenWrt:~#
do you also have an idea to fix this or have you encountered this before too?
I'm having the same problem. Force reloading the page has helped a bit. I have to leave it for now, please let us know if you find which package(s) fix it.
In case you haven't seen it, there are others also reporting issues installing luci. The underlying issue seems to be opkg not installing dependencies.
See this thread for more info: Opkg doesn't install dependencies, or get configured