NextCloud stop working after update to 31

Hello.
After update to 31 NextCloud stop working with text:

Internal Server Error
The server was unable to fulfill your request.
If the error occurs again, please send the technical details to the administrator.
Details can be found in the server log.
Technical details
Remote address: 109.120.198.215
Request ID: XuxleyLyelbvO5ZkMXy4

NextCloud work only with PHP 8.1. I try with 8.2, 8.3,8.4 - not working.
Give me an idea how to solve the problem.

Check the log file to identify the root cause of the issue.

Thank you, j-ed, but where to find this log file ?

https://docs.nextcloud.com/server/stable/admin_manual/issues/index.html

Thanks, colleagues. There are a lot of entries in this file and I can’t find my way around. Since it’s a new installation, I’ll just reinstall version 31.