nextcloud / nextcloud/server

[Bug]: The account limit of this instance has been reached, but only 63/100 active users

Open
#49,549 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage 30-feedback bug feature: ldap feature: users and groups
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

⚠️ This issue respects the following points: ⚠️
Bug description

We use nextcloud aio and use the ldap sync which worked for months, but since a few days we are getting the error Das Kontenlimit dieser Instanz ist erreicht. If I go to Settings -> Konten: Alle Konten only lists 7 Accounts, so way less then 100. If I go to Deaktivierte Konten 325 Accounts are listed, but they are there since day one months ago and back then this also was not a problem and https://github.com/nextcloud/server/blob/01b2ae4e4e47a58e3036184bbd52d8fdd76ee412/lib/private/Support/Subscription/Registry.php#L189 indicates that disabled users do not count.
I also opened a discussion at the aio repo but they said I should create a bug report here (https://github.com/nextcloud/all-in-one/discussions/5655).

Steps to reproduce
  1. Use Nextcloud AIO
  2. Use the LDAP Sync with more than 100 users but disable most of them (??)
  3. Wait some months (??) and get the error that you have to many users.
Expected behavior

Don't get the error that I have more than 100 users or list more than 100 users in the Active Users list.

Nextcloud Server version

30

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.3

Web server

Nginx

Database engine version

PostgreSQL

What user-backends are you using?
  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other
Configuration report

Nice way to get this from aio? Would be nice if I could just download this from the admin settings

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with lib/private/Support/Subscription/Registry.php around line 189, which the report identifies as the account-counting logic. Trace how LDAP synchronization and disabled users contribute to the active-user limit, then inspect the related account-limit entry points. Done means reproducing the mismatch and ensuring the reported limit reflects active users rather than excluded disabled accounts.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, postgresql
Domain
authentication, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.