Cannot delete share

Nextcloud version: 26.0.5
Operating system and version: Ubuntu 20.04
Apache or nginx version: nginx/1.25.2
PHP version : PHP 8.1.23

Hey folks.
I cannot delet a folder under “Shared with you”

After reloading the page, it is back again.
I created this share a long time ago, but deleted it after a while.

The output of your Nextcloud log in Admin > Logging:

[no app in context] Warnung: OCP\Files\StorageNotAvailableException: Sabre\HTTP\ClientException: Could not resolve host: rocinante.fritz.box at <<closure>>

 0. /var/www/nextcloud/lib/private/Files/Storage/DAV.php line 290
    OC\Files\Storage\DAV->convertException()
 1. /var/www/nextcloud/lib/private/Files/Storage/DAV.php line 585
    OC\Files\Storage\DAV->propfind()
 2. /var/www/nextcloud/lib/private/Files/Storage/Common.php line 465
    OC\Files\Storage\DAV->stat()
 3. /var/www/nextcloud/apps/files_sharing/lib/External/Storage.php line 195
    OC\Files\Storage\Common->test()
 4. /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php line 471
    OCA\Files_Sharing\External\Storage->test()
 5. /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Availability.php line 69
    OC\Files\Storage\Wrapper\Wrapper->test()
 6. /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Availability.php line 83
    OC\Files\Storage\Wrapper\Availability->updateAvailability("*** sensitive parameters replaced ***")
 7. /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Availability.php line 92
    OC\Files\Storage\Wrapper\Availability->isAvailable()
 8. /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Availability.php line 445
    OC\Files\Storage\Wrapper\Availability->checkAvailability()
 9. /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php line 596
    OC\Files\Storage\Wrapper\Availability->getMetaData()
10. /var/www/nextcloud/lib/private/Files/Cache/Scanner.php line 116
    OC\Files\Storage\Wrapper\Wrapper->getMetaData()
11. /var/www/nextcloud/lib/private/Files/Cache/Scanner.php line 153
    OC\Files\Cache\Scanner->getData()
12. /var/www/nextcloud/apps/files_sharing/lib/External/Scanner.php line 57
    OC\Files\Cache\Scanner->scanFile()
13. /var/www/nextcloud/lib/private/Files/View.php line 1509
    OCA\Files_Sharing\External\Scanner->scanFile()
14. /var/www/nextcloud/lib/private/Files/Node/Folder.php line 101
    OC\Files\View->getDirectoryContent()
15. /var/www/nextcloud/lib/private/Share20/DefaultShareProvider.php line 696
    OC\Files\Node\Folder->getDirectoryListing()
16. /var/www/nextcloud/lib/private/Share20/Manager.php line 1310
    OC\Share20\DefaultShareProvider->getSharesInFolder()
17. <<closure>>
    OC\Share20\Manager->OC\Share20\{closure}("*** sensitive parameters replaced ***")
18. /var/www/nextcloud/lib/private/Share20/Manager.php line 1319
    array_reduce()
19. /var/www/nextcloud/apps/dav/lib/Connector/Sabre/SharesPlugin.php line 138
    OC\Share20\Manager->getSharesInFolder()
20. /var/www/nextcloud/apps/dav/lib/Connector/Sabre/SharesPlugin.php line 195
    OCA\DAV\Connector\Sabre\SharesPlugin->getSharesFolder()
21. /var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
    OCA\DAV\Connector\Sabre\SharesPlugin->handleGetProperties()
22. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 1052
    Sabre\DAV\Server->emit()
23. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 984
    Sabre\DAV\Server->getPropertiesByNode()
24. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 1662
    Sabre\DAV\Server->getPropertiesIteratorForPath()
25. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 1647
    Sabre\DAV\Server->writeMultiStatus()
26. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 346
    Sabre\DAV\Server->generateMultiStatus()
27. /var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
    Sabre\DAV\CorePlugin->httpPropFind()
28. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 472
    Sabre\DAV\Server->emit()
29. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 253
    Sabre\DAV\Server->invokeMethod()
30. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 321
    Sabre\DAV\Server->start()
31. /var/www/nextcloud/apps/dav/lib/Server.php line 366
    Sabre\DAV\Server->exec()
32. /var/www/nextcloud/apps/dav/appinfo/v2/remote.php line 35
    OCA\DAV\Server->exec()
33. /var/www/nextcloud/remote.php line 172
    require_once("/var/www/nextcl ... p")

PROPFIND /nextcloud/remote.php/dav/files/%username/
from $IPv6-adress by %username at 2023-09-04T13:11:21+02:00

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

<?php
$CONFIG = array (
  'instanceid' => '...',
  'passwordsalt' => '...',
  'secret' => '...',
  'trusted_domains' =>
  array (
    0 => '...',
    1 => '...',
    2 => '...',
  ),
  'datadirectory' => '/var/nc_data',
  'dbtype' => 'mysql',
  'version' => '26.0.5.1',
  'overwrite.cli.url' => '...',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '...',
  'dbpassword' => '...',
  'installed' => true,
  'activity_expire_days' => 14,
  'allow_local_remote_servers' => true,
  'auth.bruteforce.protection.enabled' => true,
  'blacklisted_files' =>
  array (
    0 => '.htaccess',
    1 => 'Thumbs.db',
    2 => 'thumbs.db',
    3 => '@eaDir',
  ),
  'cron_log' => true,
  'default_phone_region' => 'DE',
  'defaultapp' => 'files,dashboard',
  'enable_previews' => true,
  'enabledPreviewProviders' =>
  array (
    0 => 'OC\\Preview\\PNG',
    1 => 'OC\\Preview\\JPEG',
    2 => 'OC\\Preview\\GIF',
    3 => 'OC\\Preview\\BMP',
    4 => 'OC\\Preview\\XBitmap',
    5 => 'OC\\Preview\\Movie',
    6 => 'OC\\Preview\\PDF',
    7 => 'OC\\Preview\\MP3',
    8 => 'OC\\Preview\\TXT',
    9 => 'OC\\Preview\\MarkDown',
  ),
  'filesystem_check_changes' => 0,
  'filelocking.enabled' => 'true',
  'htaccess.RewriteBase' => '/',
  'integrity.check.disabled' => false,
  'knowledgebaseenabled' => false,
  'logfile' => '/var/nc_data/nextcloud.log',
  'loglevel' => 2,
  'logtimezone' => 'Europe/Berlin',
  'log_rotate_size' => 104857600,
  'maintenance' => false,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'overwriteprotocol' => 'https',
  'preview_max_x' => 1024,
  'preview_max_y' => 768,
  'preview_max_scale_factor' => 1,
  'redis' =>
  array (
    'host' => '/var/run/redis/redis-server.sock',
    'port' => 0,
    'timeout' => 0.5,
  ),
  'quota_include_external_storage' => false,
  'share_folder' => '/Freigaben',
  'skeletondirectory' => '',
  'theme' => '',
  'trashbin_retention_obligation' => 'auto, 7',
  'updater.release.channel' => 'stable',
  'data-fingerprint' => 'ac24df8db8fc21415588f0eb0a47f86c',
  'simpleSignUpLink.shown' => false,
  'upgrade.disable-web' => true,
  'trusted_proxies' =>
  array (
    0 => '127.0.0.1',
    1 => '::1',
  ),
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => '...',
  'mail_domain' => '...',
  'mail_smtphost' => '...',
  'mail_smtpport' => '465',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtpname' => '...',
  'mail_smtppassword' => '...',
);

Thank you,
Tuffi

No idea, anyone?

After upgrading to Nextcloud 28.0.4, still the same:

[no app in context] Warnung: error while discovering ocm provider
	PROPFIND /nextcloud/remote.php/dav/files/UserName/
	von 2a00:xxx von $UserName um 02.04.2024, 21:49:44

Found a solution for my Problem.
I was looking in the database, and found the table, which i simlpy truncated.

MariaDB [nextcloud]> SELECT * FROM oc_share_external;
+----+--------------------------------------+-----------+-----------------+----------+-----------------------------+--------+--------+-----------------------------+----------------------------------+----------+--------+------------+
| id | remote                               | remote_id | share_token     | password | name                        | owner  | user   | mountpoint                  | mountpoint_hash                  | accepted | parent | share_type |
+----+--------------------------------------+-----------+-----------------+----------+-----------------------------+--------+--------+-----------------------------+----------------------------------+----------+--------+------------+
|  2 | https://rocinante.fritz.box:42022/   | 32        | aaasssddd       |          | /Dummyfolder Nextcloud-home | tuffi  | tuffi  | /Dummyfolder Nextcloud-home | kkkkkkkkkkkkkkkkkkkk             |        1 |     -1 |          0 |
|  4 | https://xxx.your-storageshare.de/    | 90        | dddddsssaaa     |          | /Ayreon                     | cl     | tuffi  | /Freigaben/Ayreon           | kkkkkkkkkkkkkkkkkkkk             |        1 |     -1 |          0 |
+----+--------------------------------------+-----------+-----------------+----------+-----------------------------+--------+--------+-----------------------------+----------------------------------+----------+--------+------------+
2 rows in set (0,000 sec)
TRUNCATE oc_share_external;

That was doing the trick for me.

Edit:
Here you can find a more detailed instruction:

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