Unable to login after upgrade to '22.2.2.0'

I am running
Debian Version 11 Bullseye

Server version: Apache/2.4.51 (Debian)
Server built: 2021-10-07T17:49:44

PHP Version 7.4.25

And now Nextcloud :22.2.2.0

Once I upgraded to this version I can no longer login.

I get the login screen, input correct login in data for both admin and users and the system just returns to this screen.

How can I fix it?

TIA
NextCloud

It’s difficult to say, can you get more information from your log files?
https://docs.nextcloud.com/server/latest/admin_manual/issues/general_troubleshooting.html#troubleshooting-web-server-and-php-problems

It started working and I can’t explain why.

Thats nice.

Next time there is also an option to reset password:
Resetting a lost admin password — Nextcloud latest Administration Manual latest documentation

Also there is an option for reset password with e-mail.