EdgeRouter X (ERX) / LuCI not available

Hello,

I installed openwrt-18.06.5-ramips-mt7621-ubnt-erx-squashfs-sysupgrade.tar ; everything is working except I cannot access LuCI web gui.

$ ssh root@192.168.1.1
BusyBox v1.28.4 () built-in shell (ash)
  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 18.06.5, r7897-9d401013fc
 -----------------------------------------------------
# opkg list-installed | grep luci
liblucihttp - 2019-07-05-a34a17d5-1
liblucihttp-lua - 2019-07-05-a34a17d5-1
luci - git-19.320.62919-7a3f0dd-1
luci-app-firewall - git-19.320.62919-7a3f0dd-1
luci-base - git-19.320.62919-7a3f0dd-1
luci-lib-ip - git-19.320.62919-7a3f0dd-1
luci-lib-jsonc - git-19.320.62919-7a3f0dd-1
luci-lib-nixio - git-19.320.62919-7a3f0dd-1
luci-mod-admin-full - git-19.320.62919-7a3f0dd-1
luci-proto-ipv6 - git-19.320.62919-7a3f0dd-1
luci-proto-ppp - git-19.320.62919-7a3f0dd-1
luci-theme-bootstrap - git-19.320.62919-7a3f0dd-1
# ps -w
  PID USER       VSZ STAT COMMAND
    1 root      1552 S    /sbin/procd
 ...
  489 root      1196 S    /sbin/ubusd
  490 root       904 S    /sbin/askfirst /usr/libexec/login.sh
  628 root      1232 S    /sbin/logd -S 64
  647 root      1536 S    /sbin/rpcd -s /var/run/ubus.sock -t 30
  726 root      1068 S    /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p 22 -K 300 -T 3
  783 root      1700 S    /sbin/netifd
  815 root      1428 S    /usr/sbin/odhcpd
  951 root      1204 S    udhcpc -p /var/run/udhcpc-eth0.2.pid -s /lib/netifd/dhcp.script -f -t 0 -i eth0.2 -x hostname:OpenWrt -C
  952 root      1032 S    odhcp6c -s /lib/netifd/dhcpv6.script -P0 -t120 eth0.2
 1284 root      1208 S<   /usr/sbin/ntpd -n -N -S /usr/sbin/ntpd-hotplug -p 0.openwrt.pool.ntp.org -p 1.openwrt.pool.ntp.org -p 2.o
 1369 dnsmasq   1340 S    /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf.cfg01411c -k -x /var/run/dnsmasq/dnsmasq.cfg01411c.pid
 1419 root      1300 S    /usr/sbin/uhttpd -f -h /www -r OpenWrt -x /cgi-bin -t 60 -T 30 -k 20 -A 1 -n 3 -N 100 -R -p 0.0.0.0:80 -p
 1898 root      1136 R    /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p 22 -K 300 -T 3
 1899 root      1208 S    -ash
 1901 root         0 IW   [kworker/u8:1]
 1914 root      1204 R    ps -w
# netstat
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       
tcp        0    176 OpenWrt.lan:ssh         ts-n.lan:60954          ESTABLISHED 
Active UNIX domain sockets (w/o servers)
Proto RefCnt Flags       Type       State         I-Node Path
unix  8      [ ]         DGRAM                      3178 /dev/log
unix  3      [ ]         STREAM     CONNECTED         93 /var/run/ubus.sock
unix  3      [ ]         STREAM     CONNECTED        258 /var/run/ubus.sock
unix  2      [ ]         DGRAM                      2393 
unix  2      [ ]         DGRAM                      1407 
unix  3      [ ]         STREAM     CONNECTED       3752 /var/run/ubus.sock
unix  2      [ ]         DGRAM                      1293 
unix  3      [ ]         STREAM     CONNECTED       3469 /var/run/ubus.sock
unix  3      [ ]         STREAM     CONNECTED       1196 
unix  2      [ ]         DGRAM                        91 
unix  2      [ ]         DGRAM                      4116 
unix  3      [ ]         STREAM     CONNECTED       3180 
unix  3      [ ]         STREAM     CONNECTED       2178 
unix  2      [ ]         DGRAM                      2381 
unix  3      [ ]         STREAM     CONNECTED       2395 
unix  3      [ ]         STREAM     CONNECTED       1409 
unix  3      [ ]         STREAM     CONNECTED       2413 
unix  2      [ ]         DGRAM                      2421 
unix  3      [ ]         STREAM     CONNECTED        185 /var/run/ubus.sock
unix  2      [ ]         DGRAM                       139 
unix  3      [ ]         STREAM     CONNECTED       2346 /var/run/ubus.sock
# cat /etc/config/network 

config interface 'loopback'
	option ifname 'lo'
	option proto 'static'
	option ipaddr '127.0.0.1'
	option netmask '255.0.0.0'

config globals 'globals'
	option ula_prefix 'fd37:0755:208c::/48'

config interface 'lan'
	option type 'bridge'
	option ifname 'eth0.1'
	option proto 'static'
	option ipaddr '192.168.1.1'
	option netmask '255.255.255.0'
	option ip6assign '60'

config device 'lan_dev'
	option name 'eth0.1'
	option macaddr '78:8a:20:f9:6c:f6'

config interface 'wan'
	option ifname 'eth0.2'
	option proto 'dhcp'

config device 'wan_dev'
	option name 'eth0.2'
	option macaddr '78:8a:20:f9:6c:f7'

config interface 'wan6'
	option ifname 'eth0.2'
	option proto 'dhcpv6'

config switch
	option name 'switch0'
	option reset '1'
	option enable_vlan '1'

config switch_vlan
	option device 'switch0'
	option vlan '1'
	option ports '1 2 3 4 6t'

config switch_vlan
	option device 'switch0'
	option vlan '2'
	option ports '0 6t'

I guess that there it maybe is not configured to listen on the local network?

Thanks for any help or tips.

Tomas

The problem was in my browser (Firefox). After testing with curl I got correct response:

$ curl http://192.168.1.1/
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="refresh" content="0; URL=/cgi-bin/luci/" />
</head>
<body style="background-color: white">
<a style="color: black; font-family: arial, helvetica, sans-serif;" href="/cgi-bin/luci/">LuCI - Lua Configuration Interface</a>
</body>
</html>

So I cleared Cached Web Content under about:preferences#privacy > Cookies and Site Data > Clear Data... and it started to work ok.

It seems to me the Firefox was automatically redirecting to HTTPS, which is not available by default.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.