SMB mount succeeds but actual access fails with strange error

Nextcloud version : 19.0.2
Operating system: Ubuntu 20.04.1 LTS
Apache or nginx version: Apache/2.4.41
PHP version : 7.4.3

The issue you are facing:

I have an SMB share that was previously operational and on the surface looks like it should be still, but actual access attempts fail and throw an interesting error in the logs. The mount itself works and gets a green check still, and the share functions as always in windows. When a nextcloud user tries to access the share a generic “this directory is unavailable, please check the logs or contact the administrator” message is displayed.

Admin log : This entire message is from a single fatal webdav app error

Fatal	webdav	Icewind\SMB\Exception\Exception: Unknown error (34) for /WIKI
/var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Exception/Exception.php - line 35:

Icewind\SMB\Exception\Exception::unknown()

/var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeState.php - line 66:

Icewind\SMB\Exception\Exception::fromMap()

/var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeState.php - line 78:

Icewind\SMB\Native\NativeState->handleError()

/var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeState.php - line 294:

Icewind\SMB\Native\NativeState->testResult()

/var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeShare.php - line 306:

Icewind\SMB\Native\NativeState->getxattr()

/var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeFileInfo.php - line 184:

Icewind\SMB\Native\NativeShare->getAttribute()

/var/www/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php - line 217:

Icewind\SMB\Native\NativeFileInfo->getAcls()

/var/www/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php - line 247:

OCA\Files_External\Lib\Storage\SMB->getACL()

/var/www/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php - line 604:

OCA\Files_External\Lib\Storage\SMB->getFolderContents()

/var/www/nextcloud/lib/private/Files/Storage/Wrapper/PermissionsMask.php - line 158:

OCA\Files_External\Lib\Storage\SMB->getDirectoryContent()

/var/www/nextcloud/lib/private/Files/Storage/Wrapper/PermissionsMask.php - line 158:

OC\Files\Storage\Wrapper\PermissionsMask->getDirectoryContent()

<<closure>>

OC\Files\Storage\Wrapper\PermissionsMask->getDirectoryContent()

/var/www/nextcloud/lib/private/Files/Cache/Scanner.php - line 408:

iterator_to_array()

/var/www/nextcloud/lib/private/Files/Cache/Scanner.php - line 388:

OC\Files\Cache\Scanner->handleChildren()

/var/www/nextcloud/lib/private/Files/Cache/Scanner.php - line 340:

OC\Files\Cache\Scanner->scanChildren()

/var/www/nextcloud/lib/private/Files/View.php - line 1339:

OC\Files\Cache\Scanner->scan()

/var/www/nextcloud/lib/private/Files/View.php - line 1383:

OC\Files\View->getCacheEntry()

/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php - line 221:

OC\Files\View->getFileInfo()

/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php - line 80:

OCA\DAV\Connector\Sabre\Directory->getChild()

/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 976:

Sabre\DAV\Tree->getNodeForPath()

/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 1678:

Sabre\DAV\Server->getPropertiesIteratorForPath()

/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 1661:

Sabre\DAV\Server->writeMultiStatus()

/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 363:

Sabre\DAV\Server->generateMultiStatus()

/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php - line 89:

Sabre\DAV\CorePlugin->httpPropFind()

/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 474:

Sabre\DAV\Server->emit()

/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 251:

Sabre\DAV\Server->invokeMethod()

/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 319:

Sabre\DAV\Server->start()

/var/www/nextcloud/apps/dav/lib/Server.php - line 320:

Sabre\DAV\Server->exec()

/var/www/nextcloud/apps/dav/appinfo/v2/remote.php - line 35:

OCA\DAV\Server->exec()

/var/www/nextcloud/remote.php - line 167:

require_once("/var/www/ne ... p")

Output of config.php:

<?php
$CONFIG = array (
  'passwordsalt' => '---Redacted---',
  'secret' => '---Redacted---',
  'trusted_domains' => 
  array (
    0 => 'localhost',
    1 => '---Redacted---',
    2 => '---Redacted---',
    3 => '---Redacted---',
    4 => '---Redacted---',
  ),
  'datadirectory' => '/mnt/ncdata',
  'dbtype' => 'pgsql',
  'version' => '19.0.2.2',
  'overwrite.cli.url' => '---Redacted---',
  'dbname' => 'nextcloud_db',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => '---Redacted---',
  'dbpassword' => '---Redacted---',
  'installed' => true,
  'instanceid' => 'ock4ayygtsjb',
  'upgrade.disable-web' => 'true',
  'log_type' => 'file',
  'logfile' => '/var/log/nextcloud/nextcloud.log',
  'loglevel' => '2',
  'log.condition' => 
  array (
    'apps' => 
    array (
      0 => 'admin_audit',
    ),
  ),
  'mail_smtpmode' => 'smtp',
  'remember_login_cookie_lifetime' => '7200',
  'log_rotate_size' => '10485760',
  'trashbin_retention_obligation' => 'auto, 180',
  'versions_retention_obligation' => 'auto, 365',
  'simpleSignUpLink.shown' => false,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'filelocking.enabled' => true,
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => '/var/run/redis/redis-server.sock',
    'port' => 0,
    'timeout' => 0.5,
    'dbindex' => 0,
    'password' => '---Redacted---',
  ),
  'logtimezone' => 'America/Los_Angeles',
  'htaccess.RewriteBase' => '/',
  'share_folder' => '/Shared',
  'enable_previews' => true,
  'enabledPreviewProviders' => 
  array (
    11 => 'OC\\Preview\\PNG',
    12 => 'OC\\Preview\\JPEG',
    13 => 'OC\\Preview\\GIF',
    14 => 'OC\\Preview\\BMP',
    15 => 'OC\\Preview\\MarkDown',
    16 => 'OC\\Preview\\MP3',
    17 => 'OC\\Preview\\TXT',
    18 => 'OC\\Preview\\Movie',
  ),
  'preview_max_x' => '2048',
  'preview_max_y' => '2048',
  'jpeg_quality' => '60',
  'ldapIgnoreNamingRules' => false,
  'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
  'maintenance' => false,
  'twofactor_enforced' => 'false',
  'twofactor_enforced_groups' => 
  array (
  ),
  'twofactor_enforced_excluded_groups' => 
  array (
    0 => 'admin',
  ),
  'mail_from_address' => 'cloud',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => '---Redacted---',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => '---Redacted---',
  'mail_smtpport' => '25',
  'mail_smtpname' => 'cloud',
  'mail_smtppassword' => '---Redacted---',
  'app.mail.verify-tls-peer' => false,
  'updater.secret' => '---Redacted---',
);