Error when sharing a folder to a group

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, 29.0.5): 28.0.6.1
Operating system and version (eg, Ubuntu 24.04): Ubuntu 20.04
Apache or nginx version (eg, Apache 2.4.25): 2.4.41
PHP version (eg, 8.3): 8.1

The issue you are facing:

If you try to share a folder to a group you get the following error

An exception occurred while executing a query: SQLSTATE[45000]: <>: 1644 Cannot rename folder if not owner

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

Steps to replicate it:

  1. Try to share a folder to a group

The output of your Nextcloud log in Admin > Logging:

DriverException
An exception occurred while executing a query: SQLSTATE[45000]: <<Unknown error>>: 1644 Cannot rename folder if not owner
Exception thrown: Doctrine\DBAL\Exception\DriverException

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

'dbtype' => 'mysql',
  'version' => '28.0.6.1',
  'dbname' => 'db1',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'db1',
  'dbpassword' => '',
  'installed' => true,
  'filelocking.enabled' => true,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => 'localhost',
    'port' => 6379,
    'timeout' => 0.0,
    'password' => '',
  ),
  'mail_from_address' => 'noreply',
  'mail_smtpmode' => 'smtp',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_domain' => 'domain',
  'maintenance' => false,
  'mail_sendmailmode' => 'pipe',
  'loglevel' => 3,
  'skeletondirectory' => '',
  'default_phone_region' => 'DE',
  'maintenance_window_start' => 1,
  'theme' => '',
  'mysql.utf8mb4' => true,
  'app_install_overwrite' => 
  array (
    0 => 'files_accesscontrol',
    1 => 'spreed',
  ),
  'twofactor_enforced' => 'true',
  'twofactor_enforced_groups' => 
  array (
    0 => '2fa-auth',
  ),

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.

Exception thrown: Doctrine\\DBAL\\Exception\\DriverException","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36","version":"28.0.6.1","exception":{"Exception":"Doctrine\\DBAL\\Exception\\DriverException","Message":"An exception occurred while executing a query: SQLSTATE[45000]: <<Unknown error>>: 1644 Cannot rename folder if not owner","Code":1644

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.