Folder sharing no longer possible

Since this week our users cannot share an folder with an link anylonger.
Visiting such link result in a “This directory is unavailable, please check the logs or contact the administrator” message.

Nextcloud version (eg, 20.0.5): 22.1.1
Operating system and version (eg, Ubuntu 20.04): Debian 10.10
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.38
PHP version (eg, 7.4): 8.0.9

The issue you are facing:

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

Steps to replicate it:

  1. Log in as random user
  2. create an folder with or without files in it
  3. Share it

The output of your Nextcloud log in Admin > Logging:

{"reqId":"OYgBVwClF3SCtIeaCTaq","level":4,"time":"2021-09-07T12:22:00+00:00","remoteAddr":"213.73.110.216","user":"--","app":"webdav","method":"PROPFIND","url":"/public.php/webdav/","message":"Must be logged in to get the group limit","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.1 Safari/605.1.15","version":"22.1.1.2","exception":{"Exception":"OCA\\Deck\\NoPermissionException","Message":"Must be logged in to get the group limit","Code":0,"Trace":[{"file":"/srv/nc.snafu.de/apps/deck/lib/DAV/CalendarPlugin.php","line":44,"function":"get","class":"OCA\\Deck\\Service\\ConfigService","type":"->"},{"function":"__construct","class":"OCA\\Deck\\DAV\\CalendarPlugin","type":"->"},{"file":"/srv/nc.snafu.de/lib/private/AppFramework/Utility/SimpleContainer.php","line":106,"function":"newInstanceArgs","class":"ReflectionClass","type":"->"},{"file":"/srv/nc.snafu.de/lib/private/AppFramework/Utility/SimpleContainer.php","line":114,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/srv/nc.snafu.de/lib/private/AppFramework/Utility/SimpleContainer.php","line":131,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/srv/nc.snafu.de/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":460,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/srv/nc.snafu.de/lib/private/ServerContainer.php","line":145,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/srv/nc.snafu.de/apps/dav/lib/AppInfo/PluginManager.php","line":256,"function":"query","class":"OC\\ServerContainer","type":"->"},{"file":"/srv/nc.snafu.de/apps/dav/lib/AppInfo/PluginManager.php","line":316,"function":"createClass","class":"OCA\\DAV\\AppInfo\\PluginManager","type":"->"},{"function":"OCA\\DAV\\AppInfo\\{closure}","class":"OCA\\DAV\\AppInfo\\PluginManager","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/srv/nc.snafu.de/apps/dav/lib/AppInfo/PluginManager.php","line":321,"function":"array_map"},{"file":"/srv/nc.snafu.de/apps/dav/lib/AppInfo/PluginManager.php","line":168,"function":"loadSabreCalendarPluginsFromInfoXml","class":"OCA\\DAV\\AppInfo\\PluginManager","type":"->"},{"file":"/srv/nc.snafu.de/apps/dav/lib/AppInfo/PluginManager.php","line":106,"function":"populate","class":"OCA\\DAV\\AppInfo\\PluginManager","type":"->"},{"file":"/srv/nc.snafu.de/apps/dav/lib/Connector/Sabre/ServerFactory.php","line":221,"function":"getAppPlugins","class":"OCA\\DAV\\AppInfo\\PluginManager","type":"->"},{"file":"/srv/nc.snafu.de/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"OCA\\DAV\\Connector\\Sabre\\{closure}","class":"OCA\\DAV\\Connector\\Sabre\\ServerFactory","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/srv/nc.snafu.de/3rdparty/sabre/dav/lib/DAV/Server.php","line":456,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/srv/nc.snafu.de/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/srv/nc.snafu.de/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/srv/nc.snafu.de/apps/dav/appinfo/v1/publicwebdav.php","line":113,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/srv/nc.snafu.de/public.php","line":80,"args":["/srv/nc.snafu.de/apps/dav/appinfo/v1/publicwebdav.php"],"function":"require_once"}],"File":"/srv/nc.snafu.de/apps/deck/lib/Service/ConfigService.php","Line":89,"CustomMessage":"--"},"id":"61375a7ec7905"}

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

<?php
$CONFIG = array (
  'instanceid' => 'ourID',
  'passwordsalt' => 'REMOVED',
  'secret' => 'REMOVED',
  'trusted_domains' =>
  array (
    0 => 'nc.ourURL.tld',
  ),
  'trusted_proxies' =>
  array (
    0 => '172.18.0.8',
    1 => '172.0.0.1/8',
    2 => '127.0.0.1',
    3 => '::1',
    4 => 'OURIP',
  ),
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '127.0.0.1',
    'port' => 6380,
  ),
  'datadirectory' => '/nc_data',
  'dbtype' => 'mysql',
  'version' => '22.1.1.2',
  'overwrite.cli.url' => 'https://OURURL.tld',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud_usr',
  'dbpassword' => 'mysqlpassword',
  'installed' => true,
  'default_phone_region' => 'DE',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_smtpsecure' => 'tls',
  'mail_smtpauth' => 1,
  'mail_from_address' => 'nextcloud',
  'mail_domain' => 'emailhost',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtphost' => 'emailhost',
  'mail_smtpport' => '587',
  'mail_smtpname' => 'nextcloud@emailhost',
  'mail_smtppassword' => 'password',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'updater.release.channel' => 'stable',
);

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

Empty

Known problem :

I can confirm, deactivating Deck app solves it. Thank you!

Upgrading deck to 1.5.2 has solved it for me, too.