Web page not working on router

Hello Everyone,

I did build a snapshot again and again I'm very happy with it.
The only things that keeps not working is the webpage:

root@LEDE:~# cat /etc/openwrt_release; uname -a
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='SNAPSHOT'
DISTRIB_REVISION='r6876-a3096b4b33'
DISTRIB_TARGET='mvebu/cortexa9'
DISTRIB_ARCH='arm_cortex-a9_vfpv3'
DISTRIB_DESCRIPTION='OpenWrt SNAPSHOT r6876-a3096b4b33'
DISTRIB_TAINTS='no-all'
Linux LEDE 4.14.37 #0 SMP Sat May 12 20:28:00 2018 armv7l GNU/Linux

http://192.168.1.1 just gives me a .. and not content.
What do I need in order to have a working webpage on the router for configuration?

Below is my list of installed packages:

root@LEDE:~# opkg list-installed
agetty - 2.32-2
ar - 2.27-1
arptables - 2015-05-20-f4ab8f63-1
base-files - 190-r6876-a3096b4b33
binutils - 2.27-1
blkid - 2.32-2
busybox - 1.28.3-2
bzip2 - 1.0.6-3
conntrack - 2017-09-27-eefe649c-1
conntrackd - 2017-09-27-eefe649c-1
curl - 7.59.0-2
devlink - 4.16.0-3
dmesg - 2.32-2
dnsmasq - 2.80test2-1
dropbear - 2017.75-5
e2fsprogs - 1.44.1-1
ebtables - 2018-04-11-2e783b22-1
f2fs-tools - 1.10.0-1
f2fsck - 1.10.0-1
fdisk - 2.32-2
firewall - 2018-04-05-35b3e74a-2
fstools - 2018-04-16-e2436836-1
fstrim - 2.32-2
fwtool - 1
gre - 1-8
hostapd-common - 2018-04-09-fa617ee6-3
ip-bridge - 4.16.0-3
ip-full - 4.16.0-3
ip6tables - 1.6.2-1
iptables - 1.6.2-1
iw - 4.14-1
iwinfo - 2018-02-15-223e09bf-1
jshn - 2018-04-12-6eff829d-1
jsonfilter - 2018-02-04-c7e938d6-1
kernel - 4.14.37-1-af09630d5cebfe6fca62e4faad26df11
kmod-arptables - 4.14.37-1
kmod-br-netfilter - 4.14.37-1
kmod-cfg80211 - 4.14.37+2017-11-01-5
kmod-ebtables - 4.14.37-1
kmod-gpio-button-hotplug - 4.14.37-2
kmod-gre - 4.14.37-1
kmod-gre6 - 4.14.37-1
kmod-ip6-tunnel - 4.14.37-1
kmod-ip6tables - 4.14.37-1
kmod-ipt-conntrack - 4.14.37-1
kmod-ipt-core - 4.14.37-1
kmod-ipt-nat - 4.14.37-1
kmod-iptunnel - 4.14.37-1
kmod-iptunnel6 - 4.14.37-1
kmod-lib-crc-ccitt - 4.14.37-1
kmod-mac80211 - 4.14.37+2017-11-01-5
kmod-mwlwifi - 4.14.37+2018-03-30-fcaea79a-1
kmod-nf-conntrack - 4.14.37-1
kmod-nf-conntrack-netlink - 4.14.37-1
kmod-nf-conntrack6 - 4.14.37-1
kmod-nf-ipt - 4.14.37-1
kmod-nf-ipt6 - 4.14.37-1
kmod-nf-nat - 4.14.37-1
kmod-nf-reject - 4.14.37-1
kmod-nf-reject6 - 4.14.37-1
kmod-nfnetlink - 4.14.37-1
kmod-nft-core - 4.14.37-1
kmod-ppp - 4.14.37-1
kmod-pppoe - 4.14.37-1
kmod-pppox - 4.14.37-1
kmod-sched-core - 4.14.37-1
kmod-slhc - 4.14.37-1
kmod-tun - 4.14.37-1
kmod-udptunnel4 - 4.14.37-1
kmod-udptunnel6 - 4.14.37-1
kmod-wireguard - 4.14.37+0.0.20180420-1
lede-keyring - 2017-01-20-a50b7529-1
libbfd - 2.27-1
libblkid - 2.32-2
libblobmsg-json - 2018-04-12-6eff829d-1
libbz2 - 1.0.6-3
libc - 1.1.19-1
libcomerr - 1.44.1-1
libcurl - 7.59.0-2
libevent2 - 2.0.22-1
libext2fs - 1.44.1-1
libf2fs - 1.10.0-1
libfdisk - 2.32-2
libgcc - 7.3.0-1
libip4tc - 1.6.2-1
libip6tc - 1.6.2-1
libiwinfo - 2018-02-15-223e09bf-1
libjson-c - 0.12.1-1
libjson-script - 2018-04-12-6eff829d-1
liblua - 5.1.5-1
liblzo - 2.10-1
libmbedtls - 2.8.0-1
libmnl - 1.0.4-1
libmount - 2.32-2
libncurses - 6.1-1
libnetfilter-conntrack - 2017-07-25-e8704326-1
libnetfilter-cthelper - 1.0.0-1
libnetfilter-cttimeout - 1.0.0-1
libnetfilter-queue - 2017-06-27-601abd1c-1
libnfnetlink - 1.0.1-1
libnftnl - 1.0.9-2
libnl-tiny - 0.1-5
libopcodes - 2.27-1
libopenssl - 1.0.2o-1
libpcap - 1.8.1-1
libpthread - 1.1.19-1
librt - 1.1.19-1
libsmartcols - 2.32-2
libss - 1.44.1-1
libubox - 2018-04-12-6eff829d-1
libubus - 2018-01-16-5bae22eb-1
libuci - 2018-03-24-5d2bf09e-1
libuci-lua - 2018-03-24-5d2bf09e-1
libuclient - 2017-11-02-4b87d831-1
libuuid - 2.32-2
libxtables - 1.6.2-1
lldpd - 1.0.1-1
logd - 2018-02-14-128bc35f-1
mkf2fs - 1.10.0-1
mount-utils - 2.32-2
mtd - 21
mwlwifi-firmware-88w8864 - 2018-03-30-fcaea79a-1
mwlwifi-firmware-88w8897 - 2018-03-30-fcaea79a-1
mwlwifi-firmware-88w8964 - 2018-03-30-fcaea79a-1
nand-utils - 2.0.2-1
netifd - 2018-04-26-56cecedb-1
nftables - 0.8.2-1
nstat - 4.16.0-3
objdump - 2.27-1
odhcp6c - 2018-04-29-5316d7f8-11
odhcpd-ipv6only - 1.7-1
openssl-util - 1.0.2o-1
openvpn-easy-rsa - 3.0.1-1
openvpn-openssl - 2.4.5-3
opkg - 2017-12-07-3b417b9f-2
ppp - 2.4.7-12
ppp-mod-pppoe - 2.4.7-12
procd - 2018-03-28-dfb68f85-1
resolveip - 2
setterm - 2.32-2
sockd - 1.4.1-1
socksify - 1.4.1-1
ss - 4.16.0-3
strace - 4.20-1
swap-utils - 2.32-2
swconfig - 11
tc - 4.16.0-3
tcpdump - 4.9.2-1
terminfo - 6.1-1
ubi-utils - 2.0.2-1
uboot-envtools - 2018.03-1
ubox - 2018-02-14-128bc35f-1
ubus - 2018-01-16-5bae22eb-1
ubusd - 2018-01-16-5bae22eb-1
uci - 2018-03-24-5d2bf09e-1
uclient-fetch - 2017-11-02-4b87d831-1
uhttpd - 2017-11-04-a235636a-1
uhttpd-mod-lua - 2017-11-04-a235636a-1
uhttpd-mod-ubus - 2017-11-04-a235636a-1
usign - 2015-07-04-ef641914-1
uuidd - 2.32-2
uuidgen - 2.32-2
wall - 2.32-2
whereis - 2.32-2
wireguard - 0.0.20180420-1
wireguard-tools - 0.0.20180420-1
wireless-regdb - 2017-10-20-4343d359
wireless-tools - 29-5
wpa-cli - 2018-04-09-fa617ee6-3
wpad-mini - 2018-04-09-fa617ee6-3
zlib - 1.2.11-2

Thanks,

Reinoud.

In make menuconfig you need to have LuCi selected to have a Gui.

LuCi > Collections -- Select LuCi *
LuCi > Modules -- Select luci-base *
LuCi > Modules -- Select luci-mod-admin-full *
LuCi > Themes -- Select luci-theme-bootstrap and one other theme -- I prefer material.

If the router is up and running and connected to the Internet

# opkg update
# opkg install luci # or luci-ssl or luci-ssl-openssl

should do the trick.

If you've got the space for one of the SSL (TLS) versions, that helps protect your root password a bit. Otherwise, I think it is sent "in the clear" to the web server.

(Snapshots don't "come with" LuCI pre-installed)

I tried, it said:

root@LEDE:~# opkg install luci-ssl
Unknown package 'luci-ssl'.
Collected errors:
 * opkg_install_cmd: Cannot install package luci-ssl.
root@LEDE:~# opkg install luci-ssl-openssl
Unknown package 'luci-ssl-openssl'.
Collected errors:
 * opkg_install_cmd: Cannot install package luci-ssl-openssl.

Under which section can I find LuCi? I am not able to find it.
Thanks,

Reinoud.

I was taking a guess that you did not build LuCi, and that is why it is not found.

You will need to add LuCi when in menuconfig prior to building. Read my previous comments.

1 Like

Thanks, however, I cannot find Luci in the menuconfig. Can you point me to the path where I can find Luci in menuconfig?
Thanks

When menuconfig is open, LuCi is right below "Libraries" and right above "Mail".

If it is not there, there is probably something else that isn't selected that makes it visible... Take a look at the Global build settings... Select all userspace packages by default, save, and see if LuCi shows up.

This other thing I noticed on my router:

root@LEDE:~# find -name httpd.conf
root@LEDE:~# ls /www
root@LEDE:~# ls /etc/uci-defaults/

Do I need to create a httpd.conf myself?
Also, /www is empty.
I don't have a menuconfig for Mail.
I do see Libraries of course.
Thanks

Something isn't right here.... You said you built your own snapshot right?

What items are listed when you issue the command "make menuconfig"?

Not sure, I build an image with more packages etc, but now the acm3200 won't even boot. Have to unbrick it first. Sad that it doesn't save a good working image somewhere though.
In the menuconfig i see:

Target System
Subtarget
Target Profile
Target Images
Global build settings
Advanced config options
Build the openwrt image builder
build the openwrt sdk
package the openwrt-based toolchain
image configuration
base system
boot loaders
development
firmware
kernel modules
languages
libraries
network
utilities.

This is what i see

Thanks for trying to help.
I still don't see it anywhere, let me try to grep. All userspace packages are selected. Let me try to green as well in the config files.

I believe I see what may be the problem.

after you have cloned the repository, there are 3 more commands to issue

From the lede directory........

./scripts/feeds update -a
./scripts/feeds install -a

Then do a make menuconfig, and make the changes... You will see Luci Now.

After all the changes have been made to make menuconfig, issue the command.. make download.
Then you can start to compile.

Oh, I do now see Luci indeed.
I haven't found any documentation upon this though.
Now I see way more, Luci has a large collection.
Thanks for your help, I'll let you know how it turned out.
Thanks,

Reinoud.

https://openwrt.org/docs/guide-developer/feeds#feed_commands
https://openwrt.org/docs/guide-developer/build-system/use-buildsystem#updating_feeds
https://openwrt.org/docs/guide-developer/obtain.firmware.sdk#usage

Ah thanks. Two questions arise from this.
Normally to keep up to date, i simply do a git pull.
Do I have to do
./scripts/feeds update -a
./scripts/feeds install -a
Every time as well?
Also, I did select luci, however, upon trying it it says the luci dir isn't found on the router.
What did i miss including in the luci build.
Is there a default profile for the acm3200 from linksys that includes what you normally build upon release?

More defailedly: URL/luci was not found in this server .
What options do i need to get that build?

If you're having issues adding packages to your own build, why not use one of the pre-built snapshot image binaries to which you could add WebUI thru opkg?

I have no doubt about the prebuilt image.
But where can i find the config that was used to build the prebuilt image?

Buildbot images are built just with the defaults.
Simply delete current .config and use make menuconfig to select your device. That generates the same default config.
(Official releases have also Luci GUI selected, but otherwise nothing special.)