OpenWrt Forum Archive

Topic: LuCI web interface requires constant re-authentication?

The content of this topic has been archived on 20 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello!

I'm setting up a new installation of OpenWrt Chaos Calmer r44972 / LuCI (git-15.079.29361-3e37216), and have hit a strange issue.

I did the initial configuration and setup via the SSH interface, and then installed LuCI.  While still on the wired network, I installed privoxy and did some of the basic setup (wireless SSID, etc), then unplugged the ethernet cable and rebooted the router.

Now, from the wireless connection, when I log into the web interface, I am only able to log in and view the initial 'Status' page.  Any attempts to load any follow on pages (such as the configuration pages, firewall status, etc) results in LuCI kicking me back out to the login prompt ("Authorization Required").  I can log in again, but the same behavior persists, over and over again.  On one occasion I was able to get into a secondary page (the wifi config page), but as soon as I went to another page I was back to the login prompt again.    The router is up and running, seemingly fine... it's just that LuCI is effectively unusable.  sad


Any thoughts on what might be going on here, or what I could do to start troubleshooting?   I looked through all of the open tickets for LuCI, but didn't see any that matched this condition....

Thanks

I'm seeing exactly the same with r45141 , luci git-15.079.29361-3e37216-1 - bit surprised it's not more of a hot topic!

I'm using Firefox, with noscript and adblock (but scripts allowed from the router).

Unlikely but perhaps the issue has to do with cookies/servertime.

Check the date/time of your openwrt box and delete all cookies. Then try again.

I have the same problem with OpenWrt Chaos Calmer 15.05-rc2 / LuCI (git-15.146.54948-a497fba)

Server time and client time are the exactly the same. Cleared cookies, doesn't help.

Check if you have another tab opened with luci.
If you have, leave only one open and relogin.
The problem should be gone.

I have only one tab open with luci.

I had the same problem and it was due to the cookies setting. I decided one day to reject all cookies disabling it in config of the browser. From that day the problem started.
Solution is to:
a) accept all cookies
b) add one by one the IP address (and ports) of the routers/sites you want.

I selected the second one. it is more boring to be adding one by one but it is really annoying all sites to be adding cookies and learning from you everything you do. By the way, the same "forum.openwrt.org"  (https) has to be added to the list.

I hope that helps,

Regards,

(Last edited by ampascual on 12 Mar 2016, 14:13)

Try to edit /etc/httpd.conf
remove ":admin:_and_so_on" besides "/cgi-bin", so it should be just "/cgi-bin" and nothing more.
reboot uhttpd. Hope it helps.

In snapshot there was bug that crashed ubusd. Luci stores session information in rpcd and rcpd do not automatically reregister itself with ubusd. So every click - logon prompt.
Was fixed null pointer reference

Another problem was with cookie handling.
http://192.168.1.1/cgi-bin/luci caused problems in all browsers except firefox
http://192.168.1.1/cgi-bin/luci/  worked

(Last edited by bolvan on 25 Mar 2016, 12:54)

The discussion might have continued from here.