Admin Login fails at /auth

Hi,

I’m using openhab 5.1.3 Release Build on linux/debian in a proxmox container.

today I tried to log in to the mainUI with my admin account and it failed for unknown reason.

I’m on the login page, enter my credentials, but nothing happens beside that the fields for user/pass are emptied after the failed login.

I’ve done nothing new so I’m a bit astonished.

actually I use 2 account, 1 admin and 1 user account without any admin rights.

If I enter the user credentials I can log in and get forwarded to the mainUI.

I read a little bit what to do, and removed the users.json and the belonging backup data while openhab was stopped. but after starting OH again, instead of getting the chance to add a new admin user the problem persists.

so I stopped OH again and readded the backupped user.json and started openhab again, but the same error occurs, only the non-admin account is able to login.

Any ideas what has happened or what I could do to reset my admin account?

any help appreciated, thanks…

edit:
i found this in the logs:

==> /var/log/openhab/openhab.log <==
2026-08-29 17:27:53.964 [WARN ] [uth.internal.AbstractAuthPageServlet] - Authentication failed from 192.168.xxx.xxx: User not found: admin

seems like the users.json is corrupted ?!??

Ok I managed to get it back by adding a new admin account via karaf…

openhab:users add admin <NewPassword>
openhab:users role admin administrator

thanks anyway :wink: