Unable to add local groups

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 (eg, 20.0.5): 27.0.0
Operating system and version (eg, Ubuntu 20.04): Ubuntu 22.04 Docker
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.56
PHP version (eg, 7.4): 8.2.7

The issue you are facing:

Unable to create local groups.

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

Steps to replicate it:

Goto to Users → Add group I type in the group name and click the arrow and no group is created. I also try to add group and press [Enter] with the same result.

The output of your Nextcloud log in Admin > Logging:

No log output

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

<?php
$CONFIG = array (
  'htaccess.RewriteBase' => '/',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'apps_paths' =>
  array (
    0 =>
    array (
      'path' => '/var/www/html/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 =>
    array (
      'path' => '/var/www/html/custom_apps',
      'url' => '/custom_apps',
      'writable' => true,
    ),
  ),
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '_nextcloud_redis',
    'password' => '1234...',
    'port' => 6379,
  ),
  'trusted_proxies' =>
  array (
    0 => '172.20.0.0/16',
    1 => '127.0.0.1',
  ),
  'passwordsalt' => '1234.....',
  'secret' => '1234....',
  'trusted_domains' =>
  array (
    0 => 'localhost',
    1 => 'cloud.domain.tld',
    2 => '192.168.xxx.xxx',
  ),
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'mysql',
  'version' => '27.0.0.8',
  'overwrite.cli.url' => 'https://cloud.domain.tld',
  'dbname' => 'nextcloud_db',
  'dbhost' => '_nextcloud_db',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'someuser',
  'dbpassword' => 'somepass',
  'installed' => true,
  'instanceid' => '12345678',
  'overwriteprotocol' => 'https',
  'mail_from_address' => 'no-reply',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => 'domain.tld',
  'mail_smtphost' => 'mail.domain.tld',
  'mail_smtpport' => '25',
  'twofactor_enforced' => 'true',
  'twofactor_enforced_groups' =>
  array (
    0 => 'admin',
    1 => 'Nextcloud Users',
  ),
  'twofactor_enforced_excluded_groups' =>
  array (
  ),
  'loglevel' => 2,
  'maintenance' => false,
  'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
);


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

N/A

N/A


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.

N/A

Hi, this will be fixed with 27.0.1

In the mean time, you can use the occ command to do so if necessary:

https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/occ_command.html#group-commands

ok thanks for the update.

thanks for the workaround.