hmm seems there is a problem ... opkg update isn't able to connect ...
Downloading http://downloads.openwrt.org/releases/18.06.8/packages/mips_24kc/...
Failed to establish connection ...
... wget returned 4
Check your network settings and connectivity.
Please, give output of
ifconfig
looks ok,
root@OpenWrt:~# ifconfig
br-lan Link encap:Ethernet HWaddr E8:94:F6:8E:D0:73
inet addr:192.168.1.11 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fd82:a642:9284::1/60 Scope:Global
inet6 addr: fe80::ea94:f6ff:fe8e:d073/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:44247 errors:0 dropped:0 overruns:0 frame:0
TX packets:2015 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:14566937 (13.8 MiB) TX bytes:283051 (276.4 KiB)
eth0 Link encap:Ethernet HWaddr E8:94:F6:8E:D0:73
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2259128 errors:0 dropped:0 overruns:0 frame:0
TX packets:1370862 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2393702866 (2.2 GiB) TX bytes:156620628 (149.3 MiB)
Interrupt:4
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:928 errors:0 dropped:0 overruns:0 frame:0
TX packets:928 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:71032 (69.3 KiB) TX bytes:71032 (69.3 KiB)
wlan0 Link encap:Ethernet HWaddr E8:94:F6:8E:D0:73
inet6 addr: fe80::ea94:f6ff:fe8e:d073/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1209203 errors:0 dropped:0 overruns:0 frame:0
TX packets:2038594 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:136731213 (130.3 MiB) TX bytes:2227178207 (2.0 GiB)
root@OpenWrt:~#
I've checked that the OpenWRT AP is working as usual ... just web interface isn't working
Is your wan eth0? I can't see IP.
no, it's local area ... it is working as AP for loacal area ... the gateway to wan is the modem ...
So you haven't run opkg update
from AP before?
no ... the IP I use to access access point is the one I see in br-lan
In any case if a reset can solve the problems ... I'll do
Connect AP to Internet, or make soft reset.
ok ... done reset and reboot ... Luci works but if I upload saved configurations it breaks again ...
jow
March 12, 2020, 7:45pm
30
Thanks, can you provide your /etc/config/luci
as well?
jow:
/etc/config/luci
This is the working one, the one I saw before was different also in syntax
root@OpenWrt:~# cat /etc/config/luci
config core 'main'
option lang 'auto'
option mediaurlbase '/luci-static/bootstrap'
option resourcebase '/luci-static/resources'
config extern 'flash_keep'
option uci '/etc/config/'
option dropbear '/etc/dropbear/'
option openvpn '/etc/openvpn/'
option passwd '/etc/passwd'
option opkg '/etc/opkg.conf'
option firewall '/etc/firewall.user'
option uploads '/lib/uci/upload/'
config internal 'languages'
config internal 'sauth'
option sessionpath '/tmp/luci-sessions'
option sessiontime '3600'
config internal 'ccache'
option enable '1'
config internal 'themes'
option Bootstrap '/luci-static/bootstrap'
config internal 'apply'
option rollback '30'
option holdoff '4'
option timeout '5'
option display '1.5'
config internal 'diag'
option dns 'openwrt.org'
option ping 'openwrt.org'
option route 'openwrt.org'
1 Like
solidus1983:
theme name
Like I said I'm a noob user. Could you give an example? Like... go to the file XPTO in the directory "XYZ" line "XXX" "find this" and replace for "this" ...
Sorry about the delay... I was out...I reflashed
No. I didn't find this file. I only locate the file "luci"
Ok lets make it easier for you.
As your already in ssh we might as well simply use a set of commands to make the change
uci set luci.themes.Bootstrap=/luci-static/bootstrap
uci set luci.main.mediaurlbase=/luci-static/bootstrap
uci commit luci
Each on of the commands is a single line you type in or Copy and Paste in and press enter after each line.
2 Likes
Configure it manually step-by-step.
After reflashing you won't find it. It it created, when luci is updated using opkg sometimes.
Configure manually step-by-step, and next time use </> tags (Preformatted text) to keep indentation.
Thanks @solidus1983 !
But after I run this commands and reboot the router I received the same message.
/usr/lib/lua/luci/dispatcher.lua:234: /etc/config/luci seems to be corrupt, unable to find section 'main'
stack traceback:
[C]: in function 'assert'
/usr/lib/lua/luci/dispatcher.lua:234: in function 'dispatch'
/usr/lib/lua/luci/dispatcher.lua:127: in function </usr/lib/lua/luci/dispatcher.lua:126>
run in ssh
cat /etc/config/luci
then paste up here using the Code tag </> , it seems strange that your having this issue.