RuntimeException: Tools does not exist

Hello dear Nextcloud Community!

Nextcloud version (eg, 20.0.5): 23.0.3
Operating system and version (eg, Ubuntu 20.04): Ubuntu 20.04.4 LTS
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.41 (Ubuntu)
PHP version (eg, 7.4): PHP 7.4.3

The issue you are facing:

I get the following error in my nextcloud logs (accessed via NX Webinterface), every time i try to list the users of the NX Instance. They wont show up, i just geht an error message.

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

Steps to replicate it:

  1. Open the Users Tab via NX Webinterface
  2. Dont select a Group, select “All Users” (users won’t show up, error message is printed)
  3. Lookup the NX logs

The output of your Nextcloud log in Admin > Logging:

RuntimeException: Tools does not exist

    /var/www/lib/private/User/Manager.php - line 196:

    OC\User\Database->getRealUID()

    /var/www/lib/private/User/Manager.php - line 296:

    OC\User\Manager->getUserObject()

    /var/www/apps/provisioning_api/lib/Controller/UsersController.php - line 187:

    OC\User\Manager->search()

    /var/www/lib/private/AppFramework/Http/Dispatcher.php - line 217:

    OCA\Provisioning_API\Controller\UsersController->getUsersDetails()

    /var/www/lib/private/AppFramework/Http/Dispatcher.php - line 126:

    OC\AppFramework\Http\Dispatcher->executeController()

    /var/www/lib/private/AppFramework/App.php - line 157:

    OC\AppFramework\Http\Dispatcher->dispatch()

    /var/www/lib/private/Route/Router.php - line 302:

    OC\AppFramework\App::main()

    /var/www/ocs/v1.php - line 62:

    OC\Route\Router->match()

    /var/www/ocs/v2.php - line 23:

    require_once("/var/www/ocs/v1.php")

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

<?php
$CONFIG = array (
  'instanceid' => 'CENSORED',
  'passwordsalt' => 'CENSORED',
  'secret' => 'CENSORED',
  'trusted_domains' =>
  array (
    0 => 'CENSORED',
    1 => '192.168.1.217',
    2 => 'CENSORED',
    3 => '192.168.1.217/nextcloud',
  ),
  'datadirectory' => '/var/www/data',
  'dbtype' => 'mysql',
  'default_phone_region' => 'DE',
  'version' => '23.0.3.2',
  'overwrite.cli.url' => 'CENSORED',
  'dbname' => 'oc',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'CENSORED',
  'dbpassword' => 'CENSORED',
  'installed' => true,
  'mail_from_address' => 'mail',
  'mail_smtpmode' => 'smtp',
  'mail_domain' => CENSORED',
  'mail_smtpauth' => 1,
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtphost' => '192.168.1.116',
  'mail_smtpname' => 'CENSORED',
  'mail_smtppassword' => 'CENSORED',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'redis' =>
  array (
    'host' => 'localhost',
    'port' => 6379,
  ),
  'app_install_overwrite' =>
  array (
    0 => 'calendar',
  ),
  'encryption.legacy_format_support' => false,
  'encryption.key_storage_migrated' => false,
  'memcache.local' => '\\OC\\Memcache\\APCu',
);


The output of your Apache/nginx/system log in /var/log/____:

No specific errors

Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

Es ist ein Fehler bei der Anfrage aufgetreten. Es kann nicht fortgefahren werden.

I’m thankful for any help.

I already tried the steps from this post: Can't display users / Sharing not possible - #7 by aecklers

I get a similar when trying to list the users via the occ user:list command:

root@nextcloud:/var/www# sudo -u www-data php occ user:list

In Database.php line 513:

  Tools does not exist


user:list [-l|--limit [LIMIT]] [-o|--offset [OFFSET]] [--output [OUTPUT]] [-i|--info]