After nc update 21.0.7 > 22.2.3.0 internal server error on settings, failure during open users

after my nextcloud update 21.0.7 > 22.2.3.0 I receive internal server error on settins, failure during open users

[/details]

Nextcloud version (eg, 20.0.5): 22.2.3.0
Operating system and version (eg, Ubuntu 20.04): replace me
Apache or nginx version (eg, Apache 2.4.25): 2.4.51
PHP version (eg, 7.4): 7.4

The issue you are facing:

Is this the first time you’ve seen this error? (Y/N):
Yes

Steps to replicate it:

  1. Update from 21.0.7 > 22.2.3.0
  2. Open settings menu or open users menu

The output of your Nextcloud log in Admin > Logging:
{“reqId”:“aLgiKZLFA58MCXume5U9”,“level”:0,“time”:“2021-11-19T08:44:01+00:00”,“remoteAddr”:“190.190.190.190”,“user”:“Tom”,“app”:“drawio”,“method”:“GET”,“url”:"/index.php/apps/theming/favicon?v=51",“message”:"/appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.",“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36”,“version”:“22.2.3.0”}
{“reqId”:“aLgiKZLFA58MCXume5U9”,“level”:0,“time”:“2021-11-19T08:44:01+00:00”,“remoteAddr”:“190.190.190.190”,“user”:“Tom”,“app”:“extract”,“method”:“GET”,“url”:"/index.php/apps/theming/favicon?v=51",“message”:"/appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.",“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36”,“version”:“22.2.3.0”}
{“reqId”:“aLgiKZLFA58MCXume5U9”,“level”:0,“time”:“2021-11-19T08:44:01+00:00”,“remoteAddr”:“190.190.190.190”,“user”:“Tom”,“app”:“files_sharing”,“method”:“GET”,“url”:"/index.php/apps/theming/favicon?v=51",“message”:"/appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.",“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36”,“version”:“22.2.3.0”}
{“reqId”:“aLgiKZLFA58MCXume5U9”,“level”:0,“time”:“2021-11-19T08:44:01+00:00”,“remoteAddr”:“190.190.190.190”,“user”:“Tom”,“app”:“rainloop”,“method”:“GET”,“url”:"/index.php/apps/theming/favicon?v=51",“message”:"/appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.",“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36”,“version”:“22.2.3.0”}
{“reqId”:“CDCKjJMDF0Fc2kQOmpn8”,“level”:0,“time”:“2021-11-19T08:44:14+00:00”,“remoteAddr”:"",“user”:"–",“app”:“drawio”,“method”:"",“url”:"–",“message”:"/appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.",“userAgent”:"–",“version”:“22.2.3.0”}
{“reqId”:“CDCKjJMDF0Fc2kQOmpn8”,“level”:0,“time”:“2021-11-19T08:44:14+00:00”,“remoteAddr”:"",“user”:"–",“app”:“extract”,“method”:"",“url”:"–",“message”:"/appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.",“userAgent”:"–",“version”:“22.2.3.0”}
{“reqId”:“CDCKjJMDF0Fc2kQOmpn8”,“level”:0,“time”:“2021-11-19T08:44:14+00:00”,“remoteAddr”:"",“user”:"–",“app”:“files_sharing”,“method”:"",“url”:"–",“message”:"/appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.",“userAgent”:"–",“version”:“22.2.3.0”}
{“reqId”:“CDCKjJMDF0Fc2kQOmpn8”,“level”:0,“time”:“2021-11-19T08:44:14+00:00”,“remoteAddr”:"",“user”:"–",“app”:“rainloop”,“method”:"",“url”:"–",“message”:"/appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.",“userAgent”:"–",“version”:“22.2.3.0”}
{“reqId”:“4MLyBTMGqVqILcUOo9jS”,“level”:0,“time”:“2021-11-19T08:45:01+00:00”,“remoteAddr”:"",“user”:"–",“app”:“cron”,“method”:"",“url”:"–",“message”:“We are in maintenance mode, skipping cron”,“userAgent”:"–",“version”:“22.2.3.0”}
{“reqId”:“jXLLkOppWI1ROC0UpJUV”,“level”:0,“time”:“2021-11-19T08:50:02+00:00”,“remoteAddr”:"",“user”:"–",“app”:“cron”,“method”:"",“url”:"–",“message”:“We are in maintenance mode, skipping cron”,“userAgent”:"–",“version”:“22.2.3.0”}
{“reqId”:“NfoGtjVwVYHwXZsPPNX1”,“level”:3,“time”:“2021-11-19T08:53:11+00:00”,“remoteAddr”:“190.190.190.190”,“user”:“Tom”,“app”:“index”,“method”:“GET”,“url”:"/index.php/settings/user",“message”:“Invalid scope”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36”,“version”:“22.2.3.0”,“exception”:{“Exception”:“InvalidArgumentException”,“Message”:“Invalid scope”,“Code”:0,“Trace”:[{“file”:"/home/lib/private/Accounts/AccountProperty.php",“line”:52,“function”:“setScope”,“class”:“OC\Accounts\AccountProperty”,“type”:"->",“args”:[""]},{“file”:"/home/lib/private/Accounts/Account.php",“line”:55,“function”:"__construct",“class”:“OC\Accounts\AccountProperty”,“type”:"->",“args”:[“displayname”,“tom”,"",“0”,""]},{“file”:"/home/lib/private/Accounts/AccountManager.php",“line”:705,“function”:“setProperty”,“class”:“OC\Accounts\Account”,“type”:"->",“args”:[“displayname”,“tom”,"",“0”]},{“file”:"/home/lib/private/Accounts/AccountManager.php",“line”:716,“function”:“parseAccountData”,“class”:“OC\Accounts\AccountManager”,“type”:"->",“args”:[{“class”:“OC\User\User”},[{“value”:“tom”,“scope”:"",“name”:“displayname”,“verified”:“0”},{“value”:“Unterer Ch\u00e4mletenweg 20, 6333 H\u00fcnenberg See”,“scope”:“contacts”,“name”:“address”,“verified”:“0”},{“value”:“https://test.com",“scope”:“contacts”,“verified”:“0”,“name”:“website”},{“value”:"Tom@test.com”,“scope”:"",“verified”:“0”,“name”:“email”},{“scope”:"",“name”:“avatar”,“verified”:“0”},“And 2 more entries, set log level to debug to see all entries”]]},{“file”:"/home/apps/settings/lib/Settings/Personal/PersonalInfo.php",“line”:106,“function”:“getAccount”,“class”:“OC\Accounts\AccountManager”,“type”:"->",“args”:[{“class”:“OC\User\User”}]},{“file”:"/home/apps/settings/lib/Controller/CommonSettingsTrait.php",“line”:137,“function”:“getForm”,“class”:“OCA\Settings\Settings\Personal\PersonalInfo”,“type”:"->",“args”:},{“file”:"/home/apps/settings/lib/Controller/PersonalSettingsController.php",“line”:76,“function”:“formatSettings”,“class”:“OCA\Settings\Controller\PersonalSettingsController”,“type”:"->",“args”:[{“10”:[{“class”:“OCA\Settings\Settings\Personal\PersonalInfo”}],“1000”:[{“class”:“OCA\Settings\Settings\Personal\ServerDevNotice”}]}]},{“file”:"/home/apps/settings/lib/Controller/CommonSettingsTrait.php",“line”:148,“function”:“getSettings”,“class”:“OCA\Settings\Controller\PersonalSettingsController”,“type”:"->",“args”:[“personal-info”]},{“file”:"/home/apps/settings/lib/Controller/PersonalSettingsController.php",“line”:67,“function”:“getIndexResponse”,“class”:“OCA\Settings\Controller\PersonalSettingsController”,“type”:"->",“args”:[“personal”,“personal-info”]},{“file”:"/home/lib/private/AppFramework/Http/Dispatcher.php",“line”:217,“function”:“index”,“class”:“OCA\Settings\Controller\PersonalSettingsController”,“type”:"->",“args”:[“personal-info”]},{“file”:"/home/lib/private/AppFramework/Http/Dispatcher.php",“line”:126,“function”:“executeController”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:"->",“args”:[{“class”:“OCA\Settings\Controller\PersonalSettingsController”},“index”]},{“file”:"/home/lib/private/AppFramework/App.php",“line”:156,“function”:“dispatch”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:"->",“args”:[{“class”:“OCA\Settings\Controller\PersonalSettingsController”},“index”]},{“file”:"/home/lib/private/Route/Router.php",“line”:302,“function”:“main”,“class”:“OC\AppFramework\App”,“type”:"::",“args”:[“OCA\Settings\Controller\PersonalSettingsController”,“index”,{“class”:“OC\AppFramework\DependencyInjection\DIContainer”},{“section”:“personal-info”,"_route":“settings.PersonalSettings.index”}]},{“file”:"/home/lib/base.php",“line”:1006,“function”:“match”,“class”:“OC\Route\Router”,“type”:"->",“args”:["/settings/user"]},{“file”:"/home/index.php",“line”:36,“function”:“handleRequest”,“class”:“OC”,“type”:"::",“args”:}],“File”:"/home/lib/private/Accounts/AccountProperty.php",“Line”:96,“CustomMessage”:"–"}}
{“reqId”:“lBgTBRaIKL956vhY4Q6Q”,“level”:3,“time”:“2021-11-19T08:54:02+00:00”,“remoteAddr”:“190.190.190.190”,“user”:“Tom”,“app”:“no app in context”,“method”:“GET”,“url”:"/ocs/v2.php/cloud/users/details?offset=0&limit=25&search=",“message”:“Invalid scope”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36”,“version”:“22.2.3.0”,“exception”:{“Exception”:“InvalidArgumentException”,“Message”:“Invalid scope”,“Code”:0,“Trace”:[{“file”:"/home/lib/private/Accounts/AccountProperty.php",“line”:52,“function”:“setScope”,“class”:“OC\Accounts\AccountProperty”,“type”:"->",“args”:[""]},{“file”:"/home/lib/private/Accounts/Account.php",“line”:55,“function”:"__construct",“class”:“OC\Accounts\AccountProperty”,“type”:"->",“args”:[“displayname”,“tom”,"",“0”,""]},{“file”:"/home/lib/private/Accounts/AccountManager.php",“line”:705,“function”:“setProperty”,“class”:“OC\Accounts\Account”,“type”:"->",“args”:[“displayname”,“tom”,"",“0”]},{“file”:"/home/lib/private/Accounts/AccountManager.php",“line”:716,“function”:“parseAccountData”,“class”:“OC\Accounts\AccountManager”,“type”:"->",“args”:[{“class”:“OC\User\User”},[{“value”:“tom”,“scope”:"",“name”:“displayname”,“verified”:“0”},{“value”:“Unterer Ch\u00e4mletenweg 20, 6333 H\u00fcnenberg See”,“scope”:“contacts”,“name”:“address”,“verified”:“0”},{“value”:“https://test.com",“scope”:“contacts”,“verified”:“0”,“name”:“website”},{“value”:"Tom@test.com”,“scope”:"",“verified”:“0”,“name”:“email”},{“scope”:"",“name”:“avatar”,“verified”:“0”},“And 2 more entries, set log level to debug to see all entries”]]},{“file”:"/home/apps/provisioning_api/lib/Controller/AUserData.php",“line”:128,“function”:“getAccount”,“class”:“OC\Accounts\AccountManager”,“type”:"->",“args”:[{“class”:“OC\User\User”}]},{“file”:"/home/apps/provisioning_api/lib/Controller/UsersController.php",“line”:200,“function”:“getUserData”,“class”:“OCA\Provisioning_API\Controller\AUserData”,“type”:"->",“args”:[“Tom”]},{“file”:"/home/lib/private/AppFramework/Http/Dispatcher.php",“line”:217,“function”:“getUsersDetails”,“class”:“OCA\Provisioning_API\Controller\UsersController”,“type”:"->",“args”:["",25,0]},{“file”:"/home/lib/private/AppFramework/Http/Dispatcher.php",“line”:126,“function”:“executeController”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:"->",“args”:[{“class”:“OCA\Provisioning_API\Controller\UsersController”},“getUsersDetails”]},{“file”:"/home/lib/private/AppFramework/App.php",“line”:156,“function”:“dispatch”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:"->",“args”:[{“class”:“OCA\Provisioning_API\Controller\UsersController”},“getUsersDetails”]},{“file”:"/home/lib/private/Route/Router.php",“line”:302,“function”:“main”,“class”:“OC\AppFramework\App”,“type”:"::",“args”:[“OCA\Provisioning_API\Controller\UsersController”,“getUsersDetails”,{“class”:“OC\AppFramework\DependencyInjection\DIContainer”},{"_route":“ocs.provisioning_api.Users.getUsersDetails”}]},{“file”:"/home/ocs/v1.php",“line”:62,“function”:“match”,“class”:“OC\Route\Router”,“type”:"->",“args”:["/ocsapp/cloud/users/details"]},{“file”:"/home/ocs/v2.php",“line”:23,“args”:["/home/ocs/v1.php"],“function”:“require_once”}],“File”:"/home/lib/private/Accounts/AccountProperty.php",“Line”:96,“CustomMessage”:"–"}}
{“reqId”:“XgIgXqxMcITULw38oQyw”,“level”:3,“time”:“2021-11-19T08:54:13+00:00”,“remoteAddr”:“190.190.190.190”,“user”:“Tom”,“app”:“no app in context”,“method”:“GET”,“url”:"/ocs/v2.php/cloud/groups/admin/users/details?offset=0&limit=25&search=",“message”:“Invalid scope”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36”,“version”:“22.2.3.0”,“exception”:{“Exception”:“InvalidArgumentException”,“Message”:“Invalid scope”,“Code”:0,“Trace”:[{“file”:"/home/lib/private/Accounts/AccountProperty.php",“line”:52,“function”:“setScope”,“class”:“OC\Accounts\AccountProperty”,“type”:"->",“args”:[""]},{“file”:"/home/lib/private/Accounts/Account.php",“line”:55,“function”:"__construct",“class”:“OC\Accounts\AccountProperty”,“type”:"->",“args”:[“displayname”,“tom”,"",“0”,""]},{“file”:"/home/lib/private/Accounts/AccountManager.php",“line”:705,“function”:“setProperty”,“class”:“OC\Accounts\Account”,“type”:"->",“args”:[“displayname”,“tom”,"",“0”]},{“file”:"/home/lib/private/Accounts/AccountManager.php",“line”:716,“function”:“parseAccountData”,“class”:“OC\Accounts\AccountManager”,“type”:"->",“args”:[{“class”:“OC\User\User”},[{“value”:“tom”,“scope”:"",“name”:“displayname”,“verified”:“0”},{“value”:“Unterer Ch\u00e4mletenweg 20, 6333 H\u00fcnenberg See”,“scope”:“contacts”,“name”:“address”,“verified”:“0”},{“value”:“https://test.com",“scope”:“contacts”,“verified”:“0”,“name”:“website”},{“value”:"Tom@test.com”,“scope”:"",“verified”:“0”,“name”:“email”},{“scope”:"",“name”:“avatar”,“verified”:“0”},“And 2 more entries, set log level to debug to see all entries”]]},{“file”:"/home/apps/provisioning_api/lib/Controller/AUserData.php",“line”:128,“function”:“getAccount”,“class”:“OC\Accounts\AccountManager”,“type”:"->",“args”:[{“class”:“OC\User\User”}]},{“file”:"/home/apps/provisioning_api/lib/Controller/GroupsController.php",“line”:210,“function”:“getUserData”,“class”:“OCA\Provisioning_API\Controller\AUserData”,“type”:"->",“args”:[“Tom”]},{“file”:"/home/lib/private/AppFramework/Http/Dispatcher.php",“line”:217,“function”:“getGroupUsersDetails”,“class”:“OCA\Provisioning_API\Controller\GroupsController”,“type”:"->",“args”:[“admin”,"",25,0]},{“file”:"/home/lib/private/AppFramework/Http/Dispatcher.php",“line”:126,“function”:“executeController”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:"->",“args”:[{“class”:“OCA\Provisioning_API\Controller\GroupsController”},“getGroupUsersDetails”]},{“file”:"/home/lib/private/AppFramework/App.php",“line”:156,“function”:“dispatch”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:"->",“args”:[{“class”:“OCA\Provisioning_API\Controller\GroupsController”},“getGroupUsersDetails”]},{“file”:"/home/lib/private/Route/Router.php",“line”:302,“function”:“main”,“class”:“OC\AppFramework\App”,“type”:"::",“args”:[“OCA\Provisioning_API\Controller\GroupsController”,“getGroupUsersDetails”,{“class”:“OC\AppFramework\DependencyInjection\DIContainer”},{“groupId”:“admin”,"_route":“ocs.provisioning_api.Groups.getGroupUsersDetails”}]},{“file”:"/home/ocs/v1.php",“line”:62,“function”:“match”,“class”:“OC\Route\Router”,“type”:"->",“args”:["/ocsapp/cloud/groups/admin/users/details"]},{“file”:"/home/ocs/v2.php",“line”:23,“args”:["/home/ocs/v1.php"],“function”:“require_once”}],“File”:"/home/lib/private/Accounts/AccountProperty.php",“Line”:96,“CustomMessage”:"–"}}
{“reqId”:“L4fh8kzF0au1X2Cz3U46”,“level”:3,“time”:“2021-11-19T08:54:16+00:00”,“remoteAddr”:“190.190.190.190”,“user”:“Tom”,“app”:“index”,“method”:“GET”,“url”:"/index.php/settings/user",“message”:“Invalid scope”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36”,“version”:“22.2.3.0”,“exception”:{“Exception”:“InvalidArgumentException”,“Message”:“Invalid scope”,“Code”:0,“Trace”:[{“file”:"/home/lib/private/Accounts/AccountProperty.php",“line”:52,“function”:“setScope”,“class”:“OC\Accounts\AccountProperty”,“type”:"->",“args”:[""]},{“file”:"/home/lib/private/Accounts/Account.php",“line”:55,“function”:"__construct",“class”:“OC\Accounts\AccountProperty”,“type”:"->",“args”:[“displayname”,“tom”,"",“0”,""]},{“file”:"/home/lib/private/Accounts/AccountManager.php",“line”:705,“function”:“setProperty”,“class”:“OC\Accounts\Account”,“type”:"->",“args”:[“displayname”,“tom”,"",“0”]},{“file”:"/home/lib/private/Accounts/AccountManager.php",“line”:716,“function”:“parseAccountData”,“class”:“OC\Accounts\AccountManager”,“type”:"->",“args”:[{“class”:“OC\User\User”},[{“value”:“tom”,“scope”:"",“name”:“displayname”,“verified”:“0”},{“value”:“Unterer Ch\u00e4mletenweg 20, 6333 H\u00fcnenberg See”,“scope”:“contacts”,“name”:“address”,“verified”:“0”},{“value”:“https://test.com",“scope”:“contacts”,“verified”:“0”,“name”:“website”},{“value”:"Tom@test.com”,“scope”:"",“verified”:“0”,“name”:“email”},{“scope”:"",“name”:“avatar”,“verified”:“0”},“And 2 more entries, set log level to debug to see all entries”]]},{“file”:"/home/apps/settings/lib/Settings/Personal/PersonalInfo.php",“line”:106,“function”:“getAccount”,“class”:“OC\Accounts\AccountManager”,“type”:"->",“args”:[{“class”:“OC\User\User”}]},{“file”:"/home/apps/settings/lib/Controller/CommonSettingsTrait.php",“line”:137,“function”:“getForm”,“class”:“OCA\Settings\Settings\Personal\PersonalInfo”,“type”:"->",“args”:},{“file”:"/home/apps/settings/lib/Controller/PersonalSettingsController.php",“line”:76,“function”:“formatSettings”,“class”:“OCA\Settings\Controller\PersonalSettingsController”,“type”:"->",“args”:[{“10”:[{“class”:“OCA\Settings\Settings\Personal\PersonalInfo”}],“1000”:[{“class”:“OCA\Settings\Settings\Personal\ServerDevNotice”}]}]},{“file”:"/home/apps/settings/lib/Controller/CommonSettingsTrait.php",“line”:148,“function”:“getSettings”,“class”:“OCA\Settings\Controller\PersonalSettingsController”,“type”:"->",“args”:[“personal-info”]},{“file”:"/home/apps/settings/lib/Controller/PersonalSettingsController.php",“line”:67,“function”:“getIndexResponse”,“class”:“OCA\Settings\Controller\PersonalSettingsController”,“type”:"->",“args”:[“personal”,“personal-info”]},{“file”:"/home/lib/private/AppFramework/Http/Dispatcher.php",“line”:217,“function”:“index”,“class”:“OCA\Settings\Controller\PersonalSettingsController”,“type”:"->",“args”:[“personal-info”]},{“file”:"/home/lib/private/AppFramework/Http/Dispatcher.php",“line”:126,“function”:“executeController”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:"->",“args”:[{“class”:“OCA\Settings\Controller\PersonalSettingsController”},“index”]},{“file”:"/home/lib/private/AppFramework/App.php",“line”:156,“function”:“dispatch”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:"->",“args”:[{“class”:“OCA\Settings\Controller\PersonalSettingsController”},“index”]},{“file”:"/home/lib/private/Route/Router.php",“line”:302,“function”:“main”,“class”:“OC\AppFramework\App”,“type”:"::",“args”:[“OCA\Settings\Controller\PersonalSettingsController”,“index”,{“class”:“OC\AppFramework\DependencyInjection\DIContainer”},{“section”:“personal-info”,"_route":“settings.PersonalSettings.index”}]},{“file”:"/home/lib/base.php",“line”:1006,“function”:“match”,“class”:“OC\Route\Router”,“type”:"->",“args”:["/settings/user"]},{“file”:"/home/index.php",“line”:36,“function”:“handleRequest”,“class”:“OC”,“type”:"::",“args”:}],“File”:"/home/lib/private/Accounts/AccountProperty.php",“Line”:96,“CustomMessage”:"–"}}
{“reqId”:“JdrwayppxoR7K9X4Cu4G”,“level”:3,“time”:“2021-11-19T08:54:22+00:00”,“remoteAddr”:“190.190.190.190”,“user”:“Tom”,“app”:“no app in context”,“method”:“GET”,“url”:"/ocs/v2.php/cloud/groups/admin/users/details?offset=0&limit=25&search=",“message”:“Invalid scope”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36”,“version”:“22.2.3.0”,“exception”:{“Exception”:“InvalidArgumentException”,“Message”:“Invalid scope”,“Code”:0,“Trace”:[{“file”:"/home/lib/private/Accounts/AccountProperty.php",“line”:52,“function”:“setScope”,“class”:“OC\Accounts\AccountProperty”,“type”:"->",“args”:[""]},{“file”:"/home/lib/private/Accounts/Account.php",“line”:55,“function”:"__construct",“class”:“OC\Accounts\AccountProperty”,“type”:"->",“args”:[“displayname”,“tom”,"",“0”,""]},{“file”:"/home/lib/private/Accounts/AccountManager.php",“line”:705,“function”:“setProperty”,“class”:“OC\Accounts\Account”,“type”:"->",“args”:[“displayname”,“tom”,"",“0”]},{“file”:"/home/lib/private/Accounts/AccountManager.php",“line”:716,“function”:“parseAccountData”,“class”:“OC\Accounts\AccountManager”,“type”:"->",“args”:[{“class”:“OC\User\User”},[{“value”:“tom”,“scope”:"",“name”:“displayname”,“verified”:“0”},{“value”:“Unterer Ch\u00e4mletenweg 20, 6333 H\u00fcnenberg See”,“scope”:“contacts”,“name”:“address”,“verified”:“0”},{“value”:“https://test.com",“scope”:“contacts”,“verified”:“0”,“name”:“website”},{“value”:"Tom@test.com”,“scope”:"",“verified”:“0”,“name”:“email”},{“scope”:"",“name”:“avatar”,“verified”:“0”},“And 2 more entries, set log level to debug to see all entries”]]},{“file”:"/home/apps/provisioning_api/lib/Controller/AUserData.php",“line”:128,“function”:“getAccount”,“class”:“OC\Accounts\AccountManager”,“type”:"->",“args”:[{“class”:“OC\User\User”}]},{“file”:"/home/apps/provisioning_api/lib/Controller/GroupsController.php",“line”:210,“function”:“getUserData”,“class”:“OCA\Provisioning_API\Controller\AUserData”,“type”:"->",“args”:[“Tom”]},{“file”:"/home/lib/private/AppFramework/Http/Dispatcher.php",“line”:217,“function”:“getGroupUsersDetails”,“class”:“OCA\Provisioning_API\Controller\GroupsController”,“type”:"->",“args”:[“admin”,"",25,0]},{“file”:"/home/lib/private/AppFramework/Http/Dispatcher.php",“line”:126,“function”:“executeController”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:"->",“args”:[{“class”:“OCA\Provisioning_API\Controller\GroupsController”},“getGroupUsersDetails”]},{“file”:"/home/lib/private/AppFramework/App.php",“line”:156,“function”:“dispatch”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:"->",“args”:[{“class”:“OCA\Provisioning_API\Controller\GroupsController”},“getGroupUsersDetails”]},{“file”:"/home/lib/private/Route/Router.php",“line”:302,“function”:“main”,“class”:“OC\AppFramework\App”,“type”:"::",“args”:[“OCA\Provisioning_API\Controller\GroupsController”,“getGroupUsersDetails”,{“class”:“OC\AppFramework\DependencyInjection\DIContainer”},{“groupId”:“admin”,"_route":“ocs.provisioning_api.Groups.getGroupUsersDetails”}]},{“file”:"/home/ocs/v1.php",“line”:62,“function”:“match”,“class”:“OC\Route\Router”,“type”:"->",“args”:["/ocsapp/cloud/groups/admin/users/details"]},{“file”:"/home/ocs/v2.php",“line”:23,“args”:["/home/ocs/v1.php"],“function”:“require_once”}],“File”:"/home/lib/private/Accounts/AccountProperty.php",“Line”:96,“CustomMessage”:"–"}}
{“reqId”:“XUWtOK6hlmuIeIG6I6ZE”,“level”:3,“time”:“2021-11-19T08:54:24+00:00”,“remoteAddr”:“190.190.190.190”,“user”:“Tom”,“app”:“index”,“method”:“GET”,“url”:"/index.php/settings/user",“message”:“Invalid scope”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36”,“version”:“22.2.3.0”,“exception”:{“Exception”:“InvalidArgumentException”,“Message”:“Invalid scope”,“Code”:0,“Trace”:[{“file”:"/home/lib/private/Accounts/AccountProperty.php",“line”:52,“function”:“setScope”,“class”:“OC\Accounts\AccountProperty”,“type”:"->",“args”:[""]},{“file”:"/home/lib/private/Accounts/Account.php",“line”:55,“function”:"__construct",“class”:“OC\Accounts\AccountProperty”,“type”:"->",“args”:[“displayname”,“tom”,"",“0”,""]},{“file”:"/home/lib/private/Accounts/AccountManager.php",“line”:705,“function”:“setProperty”,“class”:“OC\Accounts\Account”,“type”:"->",“args”:[“displayname”,“tom”,"",“0”]},{“file”:"/home/lib/private/Accounts/AccountManager.php",“line”:716,“function”:“parseAccountData”,“class”:“OC\Accounts\AccountManager”,“type”:"->",“args”:[{“class”:“OC\User\User”},[{“value”:“tom”,“scope”:"",“name”:“displayname”,“verified”:“0”},{“value”:“Unterer Ch\u00e4mletenweg 20, 6333 H\u00fcnenberg See”,“scope”:“contacts”,“name”:“address”,“verified”:“0”},{“value”:“https://test.com",“scope”:“contacts”,“verified”:“0”,“name”:“website”},{“value”:"Tom@test.com”,“scope”:"",“verified”:“0”,“name”:“email”},{“scope”:"",“name”:“avatar”,“verified”:“0”},“And 2 more entries, set log level to debug to see all entries”]]},{“file”:"/home/apps/settings/lib/Settings/Personal/PersonalInfo.php",“line”:106,“function”:“getAccount”,“class”:“OC\Accounts\AccountManager”,“type”:"->",“args”:[{“class”:“OC\User\User”}]},{“file”:"/home/apps/settings/lib/Controller/CommonSettingsTrait.php",“line”:137,“function”:“getForm”,“class”:“OCA\Settings\Settings\Personal\PersonalInfo”,“type”:"->",“args”:},{“file”:"/home/apps/settings/lib/Controller/PersonalSettingsController.php",“line”:76,“function”:“formatSettings”,“class”:“OCA\Settings\Controller\PersonalSettingsController”,“type”:"->",“args”:[{“10”:[{“class”:“OCA\Settings\Settings\Personal\PersonalInfo”}],“1000”:[{“class”:“OCA\Settings\Settings\Personal\ServerDevNotice”}]}]},{“file”:"/home/apps/settings/lib/Controller/CommonSettingsTrait.php",“line”:148,“function”:“getSettings”,“class”:“OCA\Settings\Controller\PersonalSettingsController”,“type”:"->",“args”:[“personal-info”]},{“file”:"/home/apps/settings/lib/Controller/PersonalSettingsController.php",“line”:67,“function”:“getIndexResponse”,“class”:“OCA\Settings\Controller\PersonalSettingsController”,“type”:"->",“args”:[“personal”,“personal-info”]},{“file”:"/home/lib/private/AppFramework/Http/Dispatcher.php",“line”:217,“function”:“index”,“class”:“OCA\Settings\Controller\PersonalSettingsController”,“type”:"->",“args”:[“personal-info”]},{“file”:"/home/lib/private/AppFramework/Http/Dispatcher.php",“line”:126,“function”:“executeController”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:"->",“args”:[{“class”:“OCA\Settings\Controller\PersonalSettingsController”},“index”]},{“file”:"/home/lib/private/AppFramework/App.php",“line”:156,“function”:“dispatch”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:"->",“args”:[{“class”:“OCA\Settings\Controller\PersonalSettingsController”},“index”]},{“file”:"/home/lib/private/Route/Router.php",“line”:302,“function”:“main”,“class”:“OC\AppFramework\App”,“type”:"::",“args”:[“OCA\Settings\Controller\PersonalSettingsController”,“index”,{“class”:“OC\AppFramework\DependencyInjection\DIContainer”},{“section”:“personal-info”,"_route":“settings.PersonalSettings.index”}]},{“file”:"/home/lib/base.php",“line”:1006,“function”:“match”,“class”:“OC\Route\Router”,“type”:"->",“args”:["/settings/user"]},{“file”:"/home/index.php",“line”:36,“function”:“handleRequest”,“class”:“OC”,“type”:"::",“args”:}],“File”:"/home/lib/private/Accounts/AccountProperty.php",“Line”:96,“CustomMessage”:"–"}}

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php $CONFIG = array ( 'instanceid' => 'xx', 'passwordsalt' => 'xx', 'secret' => 'xx', 'trusted_domains' => array ( 0 => 'cloud.my.domain', ), 'datadirectory' => '/home/data', 'dbtype' => 'mysql', 'version' => '22.2.3.0', 'overwrite.cli.url' => 'https://cloud.my.domain', 'dbname' => '', 'dbhost' => 'localhost', 'dbport' => '', 'dbtableprefix' => 'oc_', 'dbuser' => '', 'dbpassword' => '', 'installed' => true, 'maintenance' => false, 'mysql.utf8mb4' => true, 'default_phone_region' => 'CH', 'updater.release.channel' => 'stable', 'theme' => '', 'loglevel' => 1, 'mail_smtpmode' => 'smtp', 'mail_smtpsecure' => 'ssl', 'mail_sendmailmode' => 'smtp', 'mail_from_address' => '', 'mail_domain' => '', 'mail_smtpauthtype' => 'LOGIN', 'mail_smtpauth' => 1, 'mail_smtphost' => '', 'mail_smtpport' => '465', 'mail_smtpname' => '', 'mail_smtppassword' => '', 'app_install_overwrite' => array ( 0 => 'passman', ), ); The output of your Apache/nginx/system log in `/var/log/____`: n/a

Can someone give me an idea to solve my problem?

I ran into that problem after upgrade to NC 22. Logs did not give a hint. In the end i found it was a scrambled config in the database for the user who did the upgrade. Table oc_accounts. After setting things in order problem was gone. Only hint for me was the missing avatar icon after upgrade.

@bl42 Many thanks for your feedback.
can you explain me what you did exactly in the oc_accounts table?

Compare the admin users account data with another user. It should like this:

{“displayname”:{“value”:“admin”,“scope”:“contacts”,“verified”:“0”},“address”:{“value”:"",“scope”:“private”,“verified”:“0”},“website”:{“value”:"",“scope”:“private”,“verified”:“0”},“email”:{“value”:“xxx@xxx.xx”,“scope”:“contacts”,“verified”:“0”},“avatar”:{“scope”:“contacts”,“verified”:“0”},“phone”:{“value”:"",“scope”:“private”,“verified”:“0”},“twitter”:{“value”:"",“scope”:“private”,“verified”:“0”}}