Hello,
Suddenly luci interface not launching for me. I am seeing below error. I already tried restarting . I am on 24.10.1 on raspberry pi 4.
root@OpenWrt:~# ls /usr/lib/lua/luci/view/admin_status/
root@OpenWrt:~#
Hello,
Suddenly luci interface not launching for me. I am seeing below error. I already tried restarting . I am on 24.10.1 on raspberry pi 4.
root@OpenWrt:~# ls /usr/lib/lua/luci/view/admin_status/
root@OpenWrt:~#
There are a few things that can cause this, but before we play a game of 20 questions, maybe this is the most relevant thing to ask:
All I can remember that would have happened is, my WAN link went down for some time due to ISP issue.
After some time it came back up. And Internet working too. But luci console not opening.
Ok... well, let's start down the path of looking at all the configs...
Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </>
" button:
Remember to redact passwords, MAC addresses and any public IP addresses you may have:
ubus call system board
cat /etc/config/network
cat /etc/config/wireless
cat /etc/config/dhcp
cat /etc/config/firewall
cat /etc/config/uhttpd
root@OpenWrt:~# ubus call system board
{
"kernel": "6.6.86",
"hostname": "OpenWrt",
"system": "ARMv8 Processor rev 3",
"model": "Raspberry Pi 4 Model B Rev 1.1",
"board_name": "raspberrypi,4-model-b",
"rootfs_type": "ext4",
"release": {
"distribution": "OpenWrt",
"version": "24.10.1",
"revision": "r28597-0425664679",
"target": "bcm27xx/bcm2711",
"description": "OpenWrt 24.10.1 r28597-0425664679",
"builddate": "1744562312"
}
}
root@OpenWrt:~#
root@OpenWrt:~# cat /etc/config/network
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fxxx:xxxe:xxx0::/48'
config device
option name 'br-lan'
option type 'bridge'
list ports 'eth0'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '192.168.0.2'
option netmask '255.255.255.0'
option ip6assign '60'
config interface 'wan'
option proto 'pppoe'
option device 'eth1'
option username 'xxx'
option password 'xxxx'
option ipv6 'auto'
option keepalive '0 1'
root@OpenWrt:~#
root@OpenWrt:~# cat /etc/config/wireless
config wifi-device 'radio0'
option type 'mac80211'
option path 'platform/soc/fe300000.mmcnr/mmc_host/mmc1/mmc1:0001/mmc1:0001:1'
option band '5g'
option channel '36'
option htmode 'VHT80'
option disabled '1'
config wifi-iface 'default_radio0'
option device 'radio0'
option network 'lan'
option mode 'ap'
option ssid 'OpenWrt'
option encryption 'none'
root@OpenWrt:~#
root@OpenWrt:~# cat /etc/config/dhcp
config dnsmasq
option domainneeded '1'
option localise_queries '1'
option rebind_protection '0'
option local '/lan/'
option domain 'lan'
option expandhosts '1'
option cachesize '1000'
option authoritative '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.d/resolv.conf.auto'
option localservice '1'
option ednspacket_max '1232'
option confdir '/tmp/dnsmasq.d'
list server '8.8.8.8'
list server '1.1.1.1'
config dhcp 'lan'
option interface 'lan'
option start '200'
option limit '50'
option leasetime '12h'
option dhcpv4 'server'
option dhcpv6 'server'
option ra 'server'
list ra_flags 'managed-config'
list ra_flags 'other-config'
option leastime '12h'
config dhcp 'wan'
option interface 'wan'
option ignore '1'
option start '100'
option limit '150'
option leasetime '12h'
config odhcpd 'odhcpd'
option maindhcp '0'
option leasefile '/tmp/hosts/odhcpd'
option leasetrigger '/usr/sbin/odhcpd-update'
option loglevel '4'
config host
option dns '1'
option name 'mypc'
option mac 'AX:XX:XX:XX:XX:F6'
option ip '192.168.0.7'
option leasetime '6h'
option duid 'xxxxxx'
option hostid '07'
config host
option dns '1'
option name 'pinas'
option mac 'DX:XX:XX:XX:XX:10'
option ip '192.168.0.195'
option leasetime '6h'
option duid 'xxxx'
option hostid '95'
config host
option ip '192.168.0.215'
list mac 'FX:XX:XX:XX:XX:C1'
config host
option name 'ESP-D3C6EA'
option ip '192.168.0.238'
list mac 'EX:XX:XX:XX:XX:EA'
root@OpenWrt:~#
root@OpenWrt:~# cat /etc/config/firewall
config defaults
option syn_flood '1'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
config zone
option name 'lan'
list network 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
config zone
option name 'wan'
list network 'wan'
list network 'wan6'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
option masq '1'
option mtu_fix '1'
config forwarding
option src 'lan'
option dest 'wan'
config rule
option name 'Allow-DHCP-Renew'
option src 'wan'
option proto 'udp'
option dest_port '68'
option target 'ACCEPT'
option family 'ipv4'
config rule
option name 'Allow-Ping'
option src 'wan'
option proto 'icmp'
option family 'ipv4'
option target 'DROP'
list icmp_type 'echo-request'
option dest '*'
config rule
option name 'Allow-IGMP'
option src 'wan'
option proto 'igmp'
option family 'ipv4'
option target 'ACCEPT'
config rule
option name 'Allow-DHCPv6'
option src 'wan'
option proto 'udp'
option dest_port '546'
option family 'ipv6'
option target 'ACCEPT'
config rule
option name 'Allow-MLD'
option src 'wan'
option proto 'icmp'
option src_ip 'fxxx::/10'
list icmp_type '130/0'
list icmp_type '131/0'
list icmp_type '132/0'
list icmp_type '143/0'
option family 'ipv6'
option target 'ACCEPT'
config rule
option name 'Allow-ICMPv6-Input'
option src 'wan'
option proto 'icmp'
option limit '1000/sec'
option family 'ipv6'
option target 'DROP'
list icmp_type 'bad-header'
list icmp_type 'destination-unreachable'
list icmp_type 'echo-reply'
list icmp_type 'echo-request'
list icmp_type 'neighbour-advertisement'
list icmp_type 'neighbour-solicitation'
list icmp_type 'packet-too-big'
list icmp_type 'router-advertisement'
list icmp_type 'router-solicitation'
list icmp_type 'time-exceeded'
list icmp_type 'unknown-header-type'
config rule
option name 'Allow-ICMPv6-Forward'
option src 'wan'
option dest '*'
option proto 'icmp'
option limit '1000/sec'
option family 'ipv6'
option target 'DROP'
list icmp_type 'bad-header'
list icmp_type 'destination-unreachable'
list icmp_type 'echo-reply'
list icmp_type 'echo-request'
list icmp_type 'packet-too-big'
list icmp_type 'time-exceeded'
list icmp_type 'unknown-header-type'
config rule
option name 'Allow-IPSec-ESP'
option src 'wan'
option dest 'lan'
option proto 'esp'
option target 'ACCEPT'
config rule
option name 'Allow-ISAKMP'
option src 'wan'
option dest 'lan'
option dest_port '500'
option proto 'udp'
option target 'ACCEPT'
config rule
option name 'rpi-website-80'
option src 'wan'
option dest 'lan'
option dest_port '80'
option target 'ACCEPT'
option family 'ipv6'
list proto 'tcp'
list dest_ip '::10/-64'
list src_ip '2xxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:11c5'
list src_ip 'xx.xx.xx.xxx'
config rule
option name 'rpi-website-443'
option src 'wan'
option dest 'lan'
option dest_port '443'
option target 'ACCEPT'
option family 'ipv6'
list proto 'tcp'
list dest_ip '::10/-64'
list src_ip 'xxx.xx.xx.xxx'
list src_ip '2xxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:11c5'
config rule
option name 'jiotvgo-xxxx'
option src 'wan'
option dest 'lan'
option dest_port 'xxxx'
option target 'ACCEPT'
option family 'ipv6'
list dest_ip '::10/-64'
list proto 'tcp'
list proto 'udp'
option enabled '0'
config rule
option name 'wireguard-vpn'
option src 'wan'
option dest 'lan'
option dest_port 'xxxxx'
option target 'ACCEPT'
option family 'ipv6'
list proto 'udp'
list dest_ip '::10/-64'
root@OpenWrt:~#
root@OpenWrt:~# cat /etc/config/uhttpd
config uhttpd 'main'
list listen_http '0.0.0.0:80'
list listen_http '[::]:80'
list listen_https '0.0.0.0:443'
list listen_https '[::]:443'
option redirect_https '0'
option home '/www'
option rfc1918_filter '1'
option max_requests '3'
option max_connections '100'
option cert '/etc/uhttpd.crt'
option key '/etc/uhttpd.key'
option cgi_prefix '/cgi-bin'
list lua_prefix '/cgi-bin/luci=/usr/lib/lua/luci/sgi/uhttpd.lua'
option script_timeout '60'
option network_timeout '30'
option http_keepalive '20'
option tcp_keepalive '1'
option ubus_prefix '/ubus'
list ucode_prefix '/cgi-bin/luci=/usr/share/ucode/luci/uhttpd.uc'
config cert 'defaults'
option days '397'
option key_type 'ec'
option bits '2048'
option ec_curve 'P-256'
option country 'ZZ'
option state 'Somewhere'
option location 'Unknown'
option commonname 'OpenWrt'
root@OpenWrt:~#
From these config files, I don’t see any issues.
Have you ever installed any additional packages into your system?
Hove you ever upgraded packages on the system?
Yes. Last Saturday I had upgraded all packages. But after that I know for sure Luci was working.
Anything I can do it restore Luci alone?
I asked that earlier.
Even if it was working, that was relevant.
Upgrading packages (via the CLI opkg upgrade
command or the LuCI Upgrade...
button) can result in major problems. It is generally highly discouraged, unless you know what you are doing or if there is specific instruction to do so.
Oh I missed that.
Btw, I upgraded packages via Luci console.
Can I just reinstall Luci alone or something?
No, you need to basically reset to defaults and start over. Your configs should be okay, so make a backup and then you can restore the backup once you have a fresh install.
You mean, I have to flash 24.10.1 again?
Yes, unless you have setup your Pi with a squashfs filesystem, in which case you can simply issue:
firstboot -y && reboot
which will reset your device to defaults.
If you are using ext4 for your filesystem, you'll need to re-write the flash card.
After the package update on Saturday , I have the entire image taken as a backup using dd command.
That img file is with me. Will that be useful anyway to restore?
No, do not use a dd based image in general. But it is especially problematic if you have run the package upgrades that are the the cause of this mess in the first place. Just flash from the default images. If you have additional packages installed, you can pre-install them into the image using the firmware selector.
Does below steps works?
opkg update
opkg install parted losetup resize2fs
wget -U "" -O expand-root.sh "https://openwrt.org/_export/code/docs/guide-user/advanced/expand_root?codeblock=0"
. ./expand-root.sh
sh /etc/uci-defaults/70-rootpt-resize
From my current router, how to know what are the additional packages I need?
I ran ,
root@OpenWrt:~# owut list
tcpdump-mini luci-app-adblock netdata lsof ip-full jq luci-mod-system kmod-lib-crc-ccitt resize2fs getrandom dropbearconvert luci-theme-bootstrap kmod-pppoe cifsmount coreutils-base64 libf2fs adblock kmod-crypto-acompress luci-mod-status coreutils-dd kmod-usb-net-cdc-mbim luci-app-firewall msmtp losetup luci-ssl curl luci-app-package-manager parted luci-proto-ppp luci-mod-admin-full luci-base bind-libs luci-proto-ipv6 kmod-ppp libpcap kmod-hid-generic conntrack sshpass libuclient bind-dig luci owut fdisk luci-light kmod-lib-lzo blkid luci-mod-network kmod-hid -nftables
Are these the package I should use when building the image?
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.