openbmc / webui-vue

Web-based user interface built on Vue.js for managing OpenBMC systems
https://openbmc.github.io/webui-vue/
Apache License 2.0
53 stars 55 forks source link

Unable to log into the BMC WebUI #116

Closed huyle-anh closed 4 months ago

huyle-anh commented 4 months ago

Describe the bug:

With bmcweb 743eb1c0 and webui-vue 01492c3 unable to log into the BMC WebUI. It seems like this has been happening lately, before that, didn't see this happening.

To Reproduce:

  1. Go to BMC WebUI by entering https://BMC_IP and then typing with root/0penBMC
  2. Click Login Button
  3. Step "2", can't sign in to BMC WebUI.

Expected behavior Log in to the BMC WebUI successful.

Screenshots.

Screenshot 2024-05-08 at 23 51 50

Desktop (please complete the following information):

zevweiss commented 4 months ago

See https://github.com/openbmc/bmcweb/issues/273, which was initially reported for a different problem but has stumbled onto this one as well.

edtanous commented 4 months ago

Can you capture the network console log from your browser when this failure happens? Are there any requests that have failed? In the past I've seen a case where the webui requestst the /redfish/v1/AccountService/Accounts/null user (which obviously doesn't exist) then doesn't handle the error well.

edtanous commented 4 months ago

nevermind about the log, I think I found it. Can you please try: https://gerrit.openbmc.org/c/openbmc/bmcweb/+/71309

huyle-anh commented 4 months ago

See openbmc/bmcweb#273, which was initially reported for a different problem but has stumbled onto this one as well.

I'm not sure the same issue, but I've also encountered before with errors when end Session timeout browser refresh BMC WebUI will doesn't reload to the login page, only when deleting Cookies Value "XSRF-TOKEN" the Login page is reloaded. Currently, fixed by commit: https://gerrit.openbmc.org/c/openbmc/bmcweb/+/70292/10

nevermind about the log, I think I found it. Can you please try: https://gerrit.openbmc.org/c/openbmc/bmcweb/+/71309

Thanks, @edtanous, applied the patch and checked BMC WebUI login successfully. --Regards,

huyle-anh commented 4 months ago

This issue fixed by https://gerrit.openbmc.org/c/openbmc/bmcweb/+/71309, so I close this bug.

--