Cannot login to LuCi, but SSH only

Hello. I am trying to use default LuCi installed. So, after entering the address in web browser I have Authorization window with user and password. I enter the valid password, the page starts update process ... and returns in authorization window again. No warning, nothing.
In logread I see:
daemon.err uhttpd[1205]: luci: accepted login on / for root from X.X.X.X
So issue looks the same as in

But clearing browser data doesn't work for me.
What can I try else? Thanks.

Are you running 18.06 too, on an unnamed device ?

1 Like
  • Version 18.06-SNAPSHOT is EOL and unsupported
  • Are you using Chrome (you never state)?

I am running Openwrt 23.05.5.
Before this some custom LuCi was installed, but there are no any source now.
But in this the default user was "username: admin".
I tried to setup default LUCI, and it doesn't work (username: root), although log says that luci: accepted login. From root nothing happens (only 'login accepted' in logs), from admin - invalid password.
And in browser development console i see (admin username, nothing with root username):


But shouldn't Luci installed by default be booted from root?

This is not standard.... seems like a bunch of customizations were made here.

What is the output of (ssh session):

ubus call system board
1 Like

Then uninstall the "custom" part ?
Or simply do a reset ?

admin@Nextivity:/# ubus call system board
{
        "kernel": "5.15.167",
        "hostname": "Nextivity",
        "system": "ARMv8 Processor rev 4",
        "model": "MediaTek MT7981 RFB",
        "board_name": "mediatek,mt7981-spim-snand-rfb",
        "rootfs_type": "squashfs",
        "release": {
                "distribution": "OpenWrt",
                "version": "23.05.5",
                "revision": "r0-b5ccfe4e",
                "target": "mediatek/filogic",
                "description": "OpenWrt 23.05.5 r24106-10cc5fcd00"
        }
}

I'd recommend that you reinstall OpenWrt with a standard image:
https://firmware-selector.openwrt.org/?version=23.05.5&target=mediatek%2Ffilogic&id=mediatek_mt7981-rfb

2 Likes

Fully cleaned and deleted. I don't have access to it even. No any source, so router works without some LuCi. In feeds.conf.default
luci's get source line was muted. I enabled it and tried install default implementation (switched on minimal configs through menuconfig).

In common case I don't need any LuCi, but something goes wrong with my network settings in etc/config/network(dhcp)(firewall). I hoped that I can fix something using LuCi subsystem that can prevent me from some mistakes, when I change network configuration manually.

Thanks.
I will try. But it image doesn't allowed for me, so I have the same CPU in common case, but a little different DTS as I see regarding Ethernet.
That means that in any case I should build it from source.
Another reason: I have installed UBOOT with ATF that checks the signature of image with key pair that I have in current source code.
I need to try to get 'clear' Openwrt source and change it from default state (DTS, keys) and build again.

So where did your current firmware come from?

2 Likes

Was provided by third company. So it based on 23.05, but have a little bit difference in DTS, nothing more.
And custom LuCi was used before.
And it has the signature node in *.its file, but it doesn't matter for LuCi's issues . Only moment, that Uboot checks this (full Secure Boot is on) and image without signed key or with wrong key will not boot. That is also the reason, why prebuilt images are not the way for me. At least I need to sign them with valid key. Only build from source code still actual for me.

1 Like

Sounds like they made more changes than just the DTS. Otherwise, you wouldn't have issues logging in to LuCI.

You should ask them for help, or build your own OpenWrt using the official codebase and the DTS file.

2 Likes

I got a bare source of Openwrt 23.05.5. Then I added needed DTS, set build configuration, added NMBM support in kernel (did minimal requirements for my configuration) and default LUCI started well.
Now I have another issue with interface, but I will create another topic, if I ll dont have success with google.
Thanks.

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