Sharing files and folders not possible

Nextcloud server 29.0.2
OS: Ubuntu 22.04 LTS
Apache: Apache/2.4.52 (Ubuntu)
PHP: PHP 8.1.2-1ubuntu2.17
Database: mariaDB 10.6.16-MariaDB-0ubuntu0.22.04.1

Hello everybody,

currently I face the problem that I cannot create new shares - neither for files nor for folders.

Existing shares still seem to work. At least (existing) internally shared folders between nextcloud-users on the same server work well. I cannot check whether those existing shares for “external users” (shared links) also do …

But if I try to create a new share - either for internal users or sharing by link - I can not do this, as the dialog does not exist. I only can “create” an internal link …

nextcloud_new share file

nextcloud_new share folder

As you can see on the screenshots there is no option to search for users or to share a link.

This error occurs at least since nextcloud version 28.0.5 and I tried updating to several versions:

  • 28.0.6
  • 29.0.0
  • 29.0.1
  • 29.0.2

But the issue exists with all of them.

If I try to investigate or reconfigure existing shares the behavior is slightly different. First when I check the share it seems quite okay - like this:

nextcloud_existing share internal 1

So I see the share and i also see it is shared to internal user named “Jasmin” with user-defined permissions.
But when I click either on the three dots or on the permission entry everything goes wrong:

nextcloud_existing shhare internal 2

Unfortunately there are absolutely no errors (even no information or other entries) in nextcloud log when this happens.
And the share “Family” still works fine.

In database table oc_share all existing shares seem to be okay and corret, for example

+----+------------+------------+----------+-----------+---------------+--------+-----------+-------------+-------------+-------------+---------------------------------------------------------------+-------------+------------+----------+------------+-----------------+-----------+------------+------------------+------+---------------+-------+------------+--------------------------+
| id | share_type | share_with | password | uid_owner | uid_initiator | parent | item_type | item_source | item_target | file_source | file_target                                                   | permissions | stime      | accepted | expiration | token           | mail_send | share_name | password_by_talk | note | hide_download | label | attributes | password_expiration_time |
+----+------------+------------+----------+-----------+---------------+--------+-----------+-------------+-------------+-------------+---------------------------------------------------------------+-------------+------------+----------+------------+-----------------+-----------+------------+------------------+------+---------------+-------+------------+--------------------------+
| 23 |          0 | jasmin     | NULL     | mainuser  | mainuser      |   NULL | folder    | 137260      | NULL        |      137260 | /Family                                                       |           7 | 1673036369 |        1 | NULL       | NULL            |         0 | NULL       |                0 | NULL |             0 | NULL  | NULL       | NULL                     |
| 40 |          3 | NULL       | NULL     | mainuser  | mainuser      |   NULL | folder    | 391327      | NULL        |      391327 | /test                                                         |          31 | 1716837377 |        0 | NULL       | xxxxxxxxxxxxxxx |         0 | NULL       |                0 |      |             0 |       | NULL       | NULL                     |

+----+------------+------------+----------+-----------+---------------+--------+-----------+-------------+-------------+-------------+---------------------------------------------------------------+-------------+------------+----------+------------+-----------------+-----------+------------+------------------+------+---------------+-------+------------+--------------------------+

My config.php looks like this:

<?php
$CONFIG = array (
  'instanceid' => 'xxx',
  'passwordsalt' => 'xxx',
  'secret' => 'xxx',
  'trusted_domains' =>
  array (
    0 => 'xxx.xxx.de',
    1 => 'xxx.xxx.de',
  ),
  'datadirectory' => '/home/nextcloud/storage/data',
  'dbtype' => 'mysql',
  'version' => '29.0.2.2',
  'overwrite.cli.url' => 'https://xxx.xxx.de',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => 'xxx',
  'installed' => true,
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'cloud',
  'mail_domain' => 'xxx.de',
  'mail_smtphost' => 'mail.xxx.de',
  'mail_smtpport' => '465',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'mail_smtpstreamoptions' =>
  array (
    'ssl' =>
    array (
      'allow_self_signed' => 'true',
      'verify_peer' => 'false',
      'verify_peer_name' => 'false',
    ),
  ),
  'mail_smtpdebug' => 'false',
  'updater.secret' => 'xxx',
);

Overview of installed apps:

Nextcloud file_sharing app:
nextcloud_app file sharing version

Settings for file sharing:

Nextcloud server version:
nextcloud_current version