New groups have been added without uppercase letter, can't remove them

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version : 24.0.7
Operating system and version : Debian 11. 5 (Yunohost)
nginx : 1.18.0
PHP version: 8.0.26

The issue you are facing:

Few Groups have been created with uppercase, for example like Foo_Group or My_Lovely_Group and also one with an uppercase and a number like Foo66. Some of them have been deduplicated without the uppercase like foo_group and foo66.
The users listed on the group Foo_Group are also in the group foo_group, but I can’t edit them to remove them from this group without uppercase foo_group and I can’t delete these groups…

Is this the first time you’ve seen this error? : Yes

Steps to replicate it:

  1. Create a group Foo_Group and add some users
  2. The users also have a GroupFolder a new group foo_group is created without uppercase.
  3. This new group can’t be edited or remove for users.

The output of your Nextcloud log in Admin > Logging:

https://nextcloud.domain.tld/apps/dashboard/#/

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

<?php
$CONFIG = array (
  'passwordsalt' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
  'secret' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
  'trusted_domains' => 
  array (
    0 => 'localhost',
    1 => 'nextcloud.domain.tld',
  ),
  'datadirectory' => '/home/yunohost.app/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '24.0.7.1',
  'overwrite.cli.url' => 'https://nextcloud.domain.tld',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxx',
  'installed' => true,
  'instanceid' => 'xxxxxxxxxxxxxxxx',
  'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
  'updatechecker' => false,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'integrity.check.disabled' => true,
  'filelocking.enabled' => true,
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => 'localhost',
    'port' => '6379',
    'timeout' => '0.0',
    'password' => '',
  ),
  'hashing_default_password' => true,
  'localstorage.allowsymlinks' => true,
  'simpleSignUpLink.shown' => false,
  'logout_url' => 'https://domain.tld/yunohost/sso/?action=logout&r=aheHHgtGFFgfgVgggvV',
  'default_locale' => 'fr_FR',
  'default_language' => 'fr',
  'default_phone_region' => 'FR',
  'knowledgebaseenabled' => true,
  'maintenance' => false,
  'data-fingerprint' => 'xxxxxxxxxxxxxxxxxxxx',
  'allow_local_remote_servers' => true,
  'onlyoffice' => 
  array (
    'verify_peer_off' => true,
  ),
  'loglevel' => 2,
);

nginx/ log in /var/log/____:


PASTE HERE


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.

Erreur	no app in context	Exception: Could not delete existing group ecran_village in LDAP backend.

    <<closure>>

    OCA\User_LDAP\Group_LDAP->deleteGroup()

    /var/www/nextcloud/apps/user_ldap/lib/Group_Proxy.php - line 79:

    call_user_func_array()

    /var/www/nextcloud/apps/user_ldap/lib/Proxy.php - line 155:

    OCA\User_LDAP\Group_Proxy->walkBackends()

    /var/www/nextcloud/apps/user_ldap/lib/Group_Proxy.php - line 199:

    OCA\User_LDAP\Proxy->handleRequest()

    /var/www/nextcloud/lib/private/Group/Group.php - line 357:

    OCA\User_LDAP\Group_Proxy->deleteGroup()

    /var/www/nextcloud/apps/provisioning_api/lib/Controller/GroupsController.php - line 297:

    OC\Group\Group->delete()

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

    OCA\Provisioning_API\Controller\GroupsController->deleteGroup()

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

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

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

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

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

    OC\AppFramework\App::main()

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

    OC\Route\Router->match()

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

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

Hello, well I found what happens ! In fact, the groups without uppercase have been edited on Yunohost webadmin, so in the LDAP of Yunohost, there are not here from Nextcloud.
Sorry…

1 Like