Can't reach "Disabled person" page

Hi everybody!

I’m currently facing an issue where I am unable to access the list of disabled accounts in Nextcloud. When attempting to do so, I receive the error message: “An error occurred during the request. It is not possible to continue. Nextcloud.” Additionally, checking the logs reveals the message “Total user count was negative (users: 21, disabled: 31).”

Another problem I’ve encountered is that after disabling an account, I’m unable to re-disable it because I can’t access the page. When using the occ command, it only shows 21 enabled users. I suspect this issue may have arisen when I initially configured LDAP without proper filters. At that time, numerous users from my AD server were imported, and I manually disabled them. Later, I implemented correct filters, but due to the manual disabling, the page appears to be bugged.

In the occ command, I only see accounts that currently exist, but in the database (oc_accounts table), I can observe a list of all accounts that were not filtered.

I’m unsure about the appropriate steps to resolve this issue. I’m even struggling to find a way to remove all accounts from Nextcloud and the Nextcloud database, except for the admin account.

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

Steps to replicate it:

  1. Go to the disabled accounts menu.
  2. Encounter the error message: “An error occurred during the request. It is not possible to continue. Nextcloud.”
  3. Attempt to view the list of disabled accounts.
root@cloud:/var/www/nextcloud# cat config/config.php
<?php
$CONFIG = array (
  'instanceid' => '',
  'passwordsalt' => ',
  'secret' => '',
  'default_phone_region' => '',
  'force_language' => '',
  'force_locale' => '',
  'default_timezone' => '',
  'debug' => true,
  'trusted_domains' =>
  array (
    0 => '',
    1 => '',
    2 => '',
  ),
  'trusted_proxies' =>
  array (
    0 => '
  ),
  'overwritehos' => 'c
  'overwritecondaddr' => 
  'forwarded-for-headers' =>
  array (
    0 => 'X-Forwarded-For',
    1 => 'HTTP_X_FORWARDED_FOR',
  ),
  'memcache.local' => '\\OC\\Memcache\\Memcached',
  'memcache.distributed' => '\\OC\\Memcache\\Memcached',
  'memcached_servers' =>
  array (
    0 =>
    array (
      0 => '127.0.0.1',
      1 => 11211,
    ),
  ),
  'filelocking.enabled' => true,
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => NULL,
    'socket' => '/var/run/redis/redis-server.sock',
    'port' => 6379,
  ),
  'overwrite.cli.url' => '
  'htaccess.RewriteBase' => '/',
  'datadirectory' => '/home/nextcloud_data/data',
  'dbtype' => 'mysql',
  'enable_previews' => 'false',
  'version' => '28.0.1.0',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost:5432',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '
  'dbpassword' => '
  'installed' => true,
  'maintenance' => false,
  'theme' => '',
  'profile.enabled' => false,
  'loglevel' => 2,
  'app_install_overwrite' =>
  array (
    0 => 'backup',
    1 => 'files_rightclick',
  ),
  'mail_from_address' => 'no-reply',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => '',
  'mail_smtphost' => 'u',
  'mail_smtpauth' => 1,
  'mail_smtpname' => '
  'mail_smtppassword' => '
  'updater.release.channel' => 'stable',
  'ldapProviderFactory' => '
  'skeletondirectory' => '',
);

Nothing special in apache2 etc. gave u all good info

1 Like

You also should have a look into nextcloud.log - either in the server’s file system or - better - in Nextcloud (browser) - Administrative settings - Logging

I guess, that there are error messages displaying the reason, why you cannot see the deactivated users.

Hi, and thank you for the reply!

There are only these loggs :frowning:

If you click on a log entry, you will get more details.

Seems to be a bug, you can report it here:

if it still is not reported.

1 Like

Morning and thank you again!
Reported to github)

{"reqId":"SiE2x9QZ6XzHFPgh4A26","level":2,"time":"2023-12-21T06:43:53+00:00","remoteAddr":"","user":"","app":"support","method":"GET","url":"/settings/admin/logging","message":"Total user count was negative (users: 21, disabled: 31)","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0","version":"28.0.1.0","data":{"app":"support"},"id":"6583deaa1631b"}

Think there is nothing special in detalied view)

2 Likes