Error after login, why

nextcloud log:

{"reqId":"Lf68vSELa8Kq8KGCKhHx","level":3,"time":"2021-03-05T04:36:58+00:00","remoteAddr":"10.0.1.1","user":"--","app":"comments","method":"POST","url":"/index.php/login","message":"/appinfo/app.php is not loaded when \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class is used. Migrate everything from app.php to the Application class.","userAgent":"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.79 Safari/537.36 Maxthon/5.0","version":"20.0.5.2"}
{"reqId":"Lf68vSELa8Kq8KGCKhHx","level":3,"time":"2021-03-05T04:36:58+00:00","remoteAddr":"10.0.1.1","user":"--","app":"firstrunwizard","method":"POST","url":"/index.php/login","message":"/appinfo/app.php is not loaded when \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class is used. Migrate everything from app.php to the Application class.","userAgent":"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.79 Safari/537.36 Maxthon/5.0","version":"20.0.5.2"}
{"reqId":"Lf68vSELa8Kq8KGCKhHx","level":3,"time":"2021-03-05T04:36:58+00:00","remoteAddr":"10.0.1.1","user":"--","app":"nextcloud_announcements","method":"POST","url":"/index.php/login","message":"/appinfo/app.php is not loaded when \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class is used. Migrate everything from app.php to the Application class.","userAgent":"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.79 Safari/537.36 Maxthon/5.0","version":"20.0.5.2"}
{"reqId":"Lf68vSELa8Kq8KGCKhHx","level":3,"time":"2021-03-05T04:36:58+00:00","remoteAddr":"10.0.1.1","user":"--","app":"notifications","method":"POST","url":"/index.php/login","message":"/appinfo/app.php is not loaded when \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class is used. Migrate everything from app.php to the Application class.","userAgent":"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.79 Safari/537.36 Maxthon/5.0","version":"20.0.5.2"}
{"reqId":"Lf68vSELa8Kq8KGCKhHx","level":3,"time":"2021-03-05T04:36:58+00:00","remoteAddr":"10.0.1.1","user":"--","app":"systemtags","method":"POST","url":"/index.php/login","message":"/appinfo/app.php is not loaded when \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class is used. Migrate everything from app.php to the Application class.","userAgent":"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.79 Safari/537.36 Maxthon/5.0","version":"20.0.5.2"}
{"reqId":"Lf68vSELa8Kq8KGCKhHx","level":3,"time":"2021-03-05T04:36:58+00:00","remoteAddr":"10.0.1.1","user":"--","app":"theming","method":"POST","url":"/index.php/login","message":"/appinfo/app.php is not loaded when \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class is used. Migrate everything from app.php to the Application class.","userAgent":"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.79 Safari/537.36 Maxthon/5.0","version":"20.0.5.2"}
{"reqId":"Lf68vSELa8Kq8KGCKhHx","level":3,"time":"2021-03-05T04:36:58+00:00","remoteAddr":"10.0.1.1","user":"--","app":"accessibility","method":"POST","url":"/index.php/login","message":"/appinfo/app.php is not loaded when \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class is used. Migrate everything from app.php to the Application class.","userAgent":"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.79 Safari/537.36 Maxthon/5.0","version":"20.0.5.2"}
{"reqId":"Lf68vSELa8Kq8KGCKhHx","level":3,"time":"2021-03-05T04:36:58+00:00","remoteAddr":"10.0.1.1","user":"--","app":"federatedfilesharing","method":"POST","url":"/index.php/login","message":"/appinfo/app.php is not loaded when \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class is used. Migrate everything from app.php to the Application class.","userAgent":"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.79 Safari/537.36 Maxthon/5.0","version":"20.0.5.2"}
{"reqId":"Lf68vSELa8Kq8KGCKhHx","level":3,"time":"2021-03-05T04:36:58+00:00","remoteAddr":"10.0.1.1","user":"--","app":"files_pdfviewer","method":"POST","url":"/index.php/login","message":"/appinfo/app.php is not loaded when \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class is used. Migrate everything from app.php to the Application class.","userAgent":"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.79 Safari/537.36 Maxthon/5.0","version":"20.0.5.2"}
{"reqId":"Lf68vSELa8Kq8KGCKhHx","level":3,"time":"2021-03-05T04:36:58+00:00","remoteAddr":"10.0.1.1","user":"--","app":"files_rightclick","method":"POST","url":"/index.php/login","message":"/appinfo/app.php is not loaded when \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class is used. Migrate everything from app.php to the Application class.","userAgent":"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.79 Safari/537.36 Maxthon/5.0","version":"20.0.5.2"}
{"reqId":"Lf68vSELa8Kq8KGCKhHx","level":3,"time":"2021-03-05T04:36:58+00:00","remoteAddr":"10.0.1.1","user":"--","app":"files_videoplayer","method":"POST","url":"/index.php/login","message":"/appinfo/app.php is not loaded when \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class is used. Migrate everything from app.php to the Application class.","userAgent":"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.79 Safari/537.36 Maxthon/5.0","version":"20.0.5.2"}
{"reqId":"Lf68vSELa8Kq8KGCKhHx","level":3,"time":"2021-03-05T04:36:58+00:00","remoteAddr":"10.0.1.1","user":"--","app":"logreader","method":"POST","url":"/index.php/login","message":"/appinfo/app.php is not loaded when \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class is used. Migrate everything from app.php to the Application class.","userAgent":"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.79 Safari/537.36 Maxthon/5.0","version":"20.0.5.2"}
{"reqId":"Lf68vSELa8Kq8KGCKhHx","level":3,"time":"2021-03-05T04:36:58+00:00","remoteAddr":"10.0.1.1","user":"--","app":"photos","method":"POST","url":"/index.php/login","message":"/appinfo/app.php is not loaded when \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class is used. Migrate everything from app.php to the Application class.","userAgent":"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.79 Safari/537.36 Maxthon/5.0","version":"20.0.5.2"}
{"reqId":"Lf68vSELa8Kq8KGCKhHx","level":3,"time":"2021-03-05T04:36:58+00:00","remoteAddr":"10.0.1.1","user":"--","app":"recommendations","method":"POST","url":"/index.php/login","message":"/appinfo/app.php is not loaded when \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class is used. Migrate everything from app.php to the Application class.","userAgent":"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.79 Safari/537.36 Maxthon/5.0","version":"20.0.5.2"}
{"reqId":"Lf68vSELa8Kq8KGCKhHx","level":3,"time":"2021-03-05T04:36:58+00:00","remoteAddr":"10.0.1.1","user":"--","app":"survey_client","method":"POST","url":"/index.php/login","message":"/appinfo/app.php is not loaded when \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class is used. Migrate everything from app.php to the Application class.","userAgent":"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.79 Safari/537.36 Maxthon/5.0","version":"20.0.5.2"}
{"reqId":"Lf68vSELa8Kq8KGCKhHx","level":3,"time":"2021-03-05T04:36:58+00:00","remoteAddr":"10.0.1.1","user":"--","app":"twofactor_backupcodes","method":"POST","url":"/index.php/login","message":"/appinfo/app.php is not loaded when \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class is used. Migrate everything from app.php to the Application class.","userAgent":"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.79 Safari/537.36 Maxthon/5.0","version":"20.0.5.2"}
{"reqId":"Lf68vSELa8Kq8KGCKhHx","level":3,"time":"2021-03-05T04:36:58+00:00","remoteAddr":"10.0.1.1","user":"--","app":"updatenotification","method":"POST","url":"/index.php/login","message":"/appinfo/app.php is not loaded when \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class is used. Migrate everything from app.php to the Application class.","userAgent":"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.79 Safari/537.36 Maxthon/5.0","version":"20.0.5.2"}
{"reqId":"Lf68vSELa8Kq8KGCKhHx","level":3,"time":"2021-03-05T04:36:58+00:00","remoteAddr":"10.0.1.1","user":"--","app":"viewer","method":"POST","url":"/index.php/login","message":"/appinfo/app.php is not loaded when \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class is used. Migrate everything from app.php to the Application class.","userAgent":"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.79 Safari/537.36 Maxthon/5.0","version":"20.0.5.2"}
{"reqId":"Lf68vSELa8Kq8KGCKhHx","level":3,"time":"2021-03-05T04:37:00+00:00","remoteAddr":"10.0.1.1","user":"gaoxiangfei","app":"no app in context","method":"POST","url":"/index.php/login","message":"Something is wrong with your openssl setup: error:0909006C:PEM routines:get_name:no start line, error:0909006C:PEM routines:get_name:no start line, error:0200100D:system library:fopen:Permission denied, error:2006D002:BIO routines:BIO_new_file:system lib, error:0E064002:configuration file routines:CONF_load:system lib, error:0200100D:system library:fopen:Permission denied, error:2006D002:BIO routines:BIO_new_file:system lib, error:0E064002:configuration file routines:CONF_load:system lib","userAgent":"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.79 Safari/537.36 Maxthon/5.0","version":"20.0.5.2"}
{"reqId":"Lf68vSELa8Kq8KGCKhHx","level":3,"time":"2021-03-05T04:37:00+00:00","remoteAddr":"10.0.1.1","user":"gaoxiangfei","app":"index","method":"POST","url":"/index.php/login","message":{"Exception":"RuntimeException","Message":"OpenSSL reported a problem","Code":0,"Trace":[{"file":"/addDisk_A/www/nextcloud/lib/private/Authentication/Token/PublicKeyTokenProvider.php","line":88,"function":"newToken","class":"OC\\Authentication\\Token\\PublicKeyTokenProvider","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***","*** sensitive parameter replaced ***","*** sensitive parameter replaced ***","*** sensitive parameter replaced ***","*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"/addDisk_A/www/nextcloud/lib/private/Authentication/Token/Manager.php","line":71,"function":"generateToken","class":"OC\\Authentication\\Token\\PublicKeyTokenProvider","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/addDisk_A/www/nextcloud/lib/private/User/Session.php","line":689,"function":"generateToken","class":"OC\\Authentication\\Token\\Manager","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/addDisk_A/www/nextcloud/lib/private/Authentication/Login/CreateSessionTokenCommand.php","line":68,"function":"createSessionToken","class":"OC\\User\\Session","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/addDisk_A/www/nextcloud/lib/private/Authentication/Login/ALoginCommand.php","line":40,"function":"process","class":"OC\\Authentication\\Login\\CreateSessionTokenCommand","type":"->","args":[{"__class__":"OC\\Authentication\\Login\\LoginData"}]},{"file":"/addDisk_A/www/nextcloud/lib/private/Authentication/Login/CompleteLoginCommand.php","line":48,"function":"processNextOrFinishSuccessfully","class":"OC\\Authentication\\Login\\ALoginCommand","type":"->","args":[{"__class__":"OC\\Authentication\\Login\\LoginData"}]},{"file":"/addDisk_A/www/nextcloud/lib/private/Authentication/Login/ALoginCommand.php","line":40,"function":"process","class":"OC\\Authentication\\Login\\CompleteLoginCommand","type":"->","args":[{"__class__":"OC\\Authentication\\Login\\LoginData"}]},{"file":"/addDisk_A/www/nextcloud/lib/private/Authentication/Login/LoggedInCheckCommand.php","line":61,"function":"processNextOrFinishSuccessfully","class":"OC\\Authentication\\Login\\ALoginCommand","type":"->","args":[{"__class__":"OC\\Authentication\\Login\\LoginData"}]},{"file":"/addDisk_A/www/nextcloud/lib/private/Authentication/Login/ALoginCommand.php","line":40,"function":"process","class":"OC\\Authentication\\Login\\LoggedInCheckCommand","type":"->","args":[{"__class__":"OC\\Authentication\\Login\\LoginData"}]},{"file":"/addDisk_A/www/nextcloud/lib/private/Authentication/Login/EmailLoginCommand.php","line":58,"function":"processNextOrFinishSuccessfully","class":"OC\\Authentication\\Login\\ALoginCommand","type":"->","args":[{"__class__":"OC\\Authentication\\Login\\LoginData"}]},{"file":"/addDisk_A/www/nextcloud/lib/private/Authentication/Login/ALoginCommand.php","line":40,"function":"process","class":"OC\\Authentication\\Login\\EmailLoginCommand","type":"->","args":[{"__class__":"OC\\Authentication\\Login\\LoginData"}]},{"file":"/addDisk_A/www/nextcloud/lib/private/Authentication/Login/UidLoginCommand.php","line":54,"function":"processNextOrFinishSuccessfully","class":"OC\\Authentication\\Login\\ALoginCommand","type":"->","args":[{"__class__":"OC\\Authentication\\Login\\LoginData"}]},{"file":"/addDisk_A/www/nextcloud/lib/private/Authentication/Login/ALoginCommand.php","line":40,"function":"process","class":"OC\\Authentication\\Login\\UidLoginCommand","type":"->","args":[{"__class__":"OC\\Authentication\\Login\\LoginData"}]},{"file":"/addDisk_A/www/nextcloud/lib/private/Authentication/Login/UserDisabledCheckCommand.php","line":57,"function":"processNextOrFinishSuccessfully","class":"OC\\Authentication\\Login\\ALoginCommand","type":"->","args":[{"__class__":"OC\\Authentication\\Login\\LoginData"}]},{"file":"/addDisk_A/www/nextcloud/lib/private/Authentication/Login/ALoginCommand.php","line":40,"function":"process","class":"OC\\Authentication\\Login\\UserDisabledCheckCommand","type":"->","args":[{"__class__":"OC\\Authentication\\Login\\LoginData"}]},{"file":"/addDisk_A/www/nextcloud/lib/private/Authentication/Login/PreLoginHookCommand.php","line":53,"function":"processNextOrFinishSuccessfully","class":"OC\\Authentication\\Login\\ALoginCommand","type":"->","args":[{"__class__":"OC\\Authentication\\Login\\LoginData"}]},{"file":"/addDisk_A/www/nextcloud/lib/private/Authentication/Login/Chain.php","line":108,"function":"process","class":"OC\\Authentication\\Login\\PreLoginHookCommand","type":"->","args":[{"__class__":"OC\\Authentication\\Login\\LoginData"}]},{"file":"/addDisk_A/www/nextcloud/core/Controller/LoginController.php","line":310,"function":"process","class":"OC\\Authentication\\Login\\Chain","type":"->","args":[{"__class__":"OC\\Authentication\\Login\\LoginData"}]},{"file":"/addDisk_A/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":169,"function":"tryLogin","class":"OC\\Core\\Controller\\LoginController","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/addDisk_A/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":100,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\LoginController"},"tryLogin"]},{"file":"/addDisk_A/www/nextcloud/lib/private/AppFramework/App.php","line":152,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\LoginController"},"tryLogin"]},{"file":"/addDisk_A/www/nextcloud/lib/private/Route/Router.php","line":309,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OC\\Core\\Controller\\LoginController","tryLogin",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"core.login.tryLogin"}]},{"file":"/addDisk_A/www/nextcloud/lib/base.php","line":1008,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/login"]},{"file":"/addDisk_A/www/nextcloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/addDisk_A/www/nextcloud/lib/private/Authentication/Token/PublicKeyTokenProvider.php","Line":373,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.79 Safari/537.36 Maxthon/5.0","version":"20.0.5.2"}

There is no problem with OCC, nor with other PHP programs.
There is no problem with the permissions of each file. It is suspected that there is a problem with Debian system. Later, I rebuilt a new nextcloud site. There was no problem with the wizard, and there was also a problem after logging in. What will affect the login of the Debian system?

Can you please insert a line containing three back-ticks (```) before and after the configuration excerpt so that it can better be read. Additionally please provide DETAILED information about your environment, the uses software and app versions and explain what you did last before the problem appeared.

I’m running into the same issue, described in this post, with a fresh snap Nextcloud install on Ubuntu 20.04.3 LTS.

Any help on would be appreciated, thanks in advance

This solution offered by @devnull did the trick for me.