Web login doesnt work, SSH does

DOWNLOAD THE LATEST FIRMWARE HERE
oeyre
Member
 
Posts: 39
Joined: Mon Feb 05, 2024 1:38 am
Location: Australia
Has thanked: 0 time
Been thanked: 13 times

Web login doesnt work, SSH does

Wed Dec 18, 2024 10:39 pm

In all of the excitement from upgrading I have one particular unit that has developed a bit of a strange problem relating to logging in.

WS-26-400-IDC running 1.5.22 and we find ourselves unable to login via the web. When I enter the user/pass into the form it waits 5 seconds and then reloads the page. If I supply the wrong login then it will give me the "Invalid username or password" message as expected. I can login via SSH with the same credentials. I have tried doing a web config check which passes, I have also tried changing the password but no difference. RADIUS is enabled but not functional.

Is there anything I can do via SSH to solve this? Would prefer to not have to reboot or upgrade if I can help it.

User avatar
sirhc
Employee
Employee
 
Posts: 7586
Joined: Tue Apr 08, 2014 3:48 pm
Location: Lancaster, PA
Has thanked: 1668 times
Been thanked: 1349 times

Re: Web login doesnt work, SSH does

Thu Dec 19, 2024 1:40 am

login via SSH use the command to set credentials = username and password
Don't forget to hit enter a couple times in SSH to confirm changes
Then try UI login

Some rare occasions I have seen this reported where people can login via SSH not UI. Some rpeorted if they refreshed their browser or used another browser UI login worked as if it was caching the old login page?

Current version is v1.5.23

v1.5.24 should be out soon with a fix for SMTP an odd issue that effects very few people with NTP and an issue with a mono fiber SFP to media converter.

There are a "few" people with PPPoE and or multicast with SFP ports but other like me have no issue?

These are the last remaining issues we are aware of. MOST people have no issues with v1.5.23 but a few do and we are trying to figure out why and if it is us fix it.
Support is handled on the Forums not in Emails and PMs.
Before you ask a question use the Search function to see it has been answered before.
To do an Advanced Search click the magnifying glass in the Search Box.
To upload pictures click the Upload attachment link below the BLUE SUBMIT BUTTON.

User avatar
Stephen
Employee
Employee
 
Posts: 1072
Joined: Sun Dec 24, 2017 8:56 pm
Has thanked: 98 times
Been thanked: 200 times

Re: Web login doesnt work, SSH does

Thu Dec 19, 2024 2:42 am

oeyre wrote:In all of the excitement from upgrading I have one particular unit that has developed a bit of a strange problem relating to logging in.

WS-26-400-IDC running 1.5.22 and we find ourselves unable to login via the web. When I enter the user/pass into the form it waits 5 seconds and then reloads the page. If I supply the wrong login then it will give me the "Invalid username or password" message as expected. I can login via SSH with the same credentials. I have tried doing a web config check which passes, I have also tried changing the password but no difference. RADIUS is enabled but not functional.

Is there anything I can do via SSH to solve this? Would prefer to not have to reboot or upgrade if I can help it.


You should be able to clear it without rebooting over ssh via the following command from the linux shell:

Code: Select all
/etc/init.d/lighttpd restart


Then, try logging in again

oeyre
Member
 
Posts: 39
Joined: Mon Feb 05, 2024 1:38 am
Location: Australia
Has thanked: 0 time
Been thanked: 13 times

Re: Web login doesnt work, SSH does

Sun Dec 22, 2024 7:25 pm

Stephen wrote:You should be able to clear it without rebooting over ssh via the following command from the linux shell:
Code: Select all
 /etc/init.d/lighttpd restart
Then, try logging in again

Thanks Stephen,

For the time being we will make do with CLI & SNMP. Will advise how it goes after our change freeze ends (or sooner if the need arises).

oeyre
Member
 
Posts: 39
Joined: Mon Feb 05, 2024 1:38 am
Location: Australia
Has thanked: 0 time
Been thanked: 13 times

Re: Web login doesnt work, SSH does

Mon Dec 30, 2024 11:10 pm

The need finally arose... This is the second unit we're aware of this problem happening (1.5.22).

Using the lighttpd restart I was able to regain web access. I'm not sure if the second restart was needed however it no longer errored after that.

Code: Select all
switch# cmdline
admin@switch:/www# /etc/init.d/lighttpd restart
2024-12-31 13:26:58: (network.c.310) can't bind to socket: 0.0.0.0:80 Address already in use
Segmentation fault
admin@switch:/www# /etc/init.d/lighttpd restart
admin@switch:/www#


Thanks Stephen!

oeyre
Member
 
Posts: 39
Joined: Mon Feb 05, 2024 1:38 am
Location: Australia
Has thanked: 0 time
Been thanked: 13 times

Re: Web login doesnt work, SSH does

Mon Jan 06, 2025 3:59 am

I've just tried the lighttpd restart on my original unit, and no change/success. No error this time either.

Code: Select all
admin@switch:/www# ps ax | grep http
388 admin 2680 S grep http
 1480 admin 7764 S lighttpd -f /etc/lighttpd.conf
 1488 admin 8736 S lighttpd -f /etc/lighttpd.conf
 1489 admin 8424 S lighttpd -f /etc/lighttpd.conf
 1491 admin 8448 S lighttpd -f /etc/lighttpd.conf
admin@switch:/www# /etc/init.d/lighttpd restart
admin@switch:/www# ps ax | grep http
 522 admin 7764 S lighttpd -f /etc/lighttpd.conf
 530 admin 7784 S lighttpd -f /etc/lighttpd.conf
 531 admin 7784 S lighttpd -f /etc/lighttpd.conf
 532 admin 7784 S lighttpd -f /etc/lighttpd.conf
 538 admin 2680 S grep http


Any other troubleshooting suggestions?

oeyre
Member
 
Posts: 39
Joined: Mon Feb 05, 2024 1:38 am
Location: Australia
Has thanked: 0 time
Been thanked: 13 times

Re: Web login doesnt work, SSH does

Thu Feb 20, 2025 8:49 pm

Having upgraded to 1.5.25 this problem seems to have been resolved, I wonder if this was it:
- WebUI Sessions can now expire, but will remain open with the webui - 1.5.23

Return to Hardware and software issues

Who is online

Users browsing this forum: No registered users and 20 guests