Samba share on a Mac does not work as an external storage

Dear Comunity,

My problem is as follows:

I have created a Samba share on a MAC computer that I would like to mount as external storage in my Nextcloud. However, I get an error message every time I try. What works:

  • Mounting Samba shares on Linux servers into my Nextcloud.
  • Accessing the Samba share on the Mac from Windows computers.

So the problem is somehow in the configuration of my Nextcloud. Setting my Nextcloud:

  • Nextcloud version 23
  • PHP8
  • Ubuntu 21 64 bit
  • Apache 2 web server

Messages from the error log:

Error no app in context Icewind\SMB\Exception\ConnectionResetException: /

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/var/www/html/apps/files_external/lib/Lib/Storage/SMB.php - line 189:

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

/var/www/html/apps/files_external/lib/Lib/Storage/SMB.php - line 342:

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

/var/www/html/lib/private/Files/Storage/Common.php - line 458:

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

/var/www/html/apps/files_external/lib/Lib/Storage/SMB.php - line 717:

OC\Files\Storage\Common->test()

/var/www/html/apps/files_external/lib/MountConfig.php - line 130:

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

/var/www/html/apps/files_external/lib/Controller/StoragesController.php - line 270:

OCA\Files_External\MountConfig::getBackendStatus("*** sensiti ... *")

/var/www/html/apps/files_external/lib/Controller/GlobalStoragesController.php - line 120:

OCA\Files_External\Controller\StoragesController->updateStorageStatus("*** sensiti ... *")

/var/www/html/lib/private/AppFramework/Http/Dispatcher.php - line 217:

OCA\Files_External\Controller\GlobalStoragesController->create()

/var/www/html/lib/private/AppFramework/Http/Dispatcher.php - line 126:

OC\AppFramework\Http\Dispatcher->executeController()

/var/www/html/lib/private/AppFramework/App.php - line 157:

OC\AppFramework\Http\Dispatcher->dispatch()

/var/www/html/lib/private/Route/Router.php - line 302:

OC\AppFramework\App::main()

/var/www/html/lib/base.php - line 1006:

OC\Route\Router->match()

/var/www/html/index.php - line 36:

OC::handleRequest()

[no app in context] Warning: External storage not available: Storage unauthorized. /

POST /apps/files_external/globalstorages
from 113.208.212.57 by Baum at 2021-12-09T15:45:21+01:00

Warning no app in context OCP\Files\StorageAuthException: Storage unauthorized. /

/var/www/html/apps/files_external/lib/Lib/Storage/SMB.php - line 193:

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

/var/www/html/apps/files_external/lib/Lib/Storage/SMB.php - line 342:

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

/var/www/html/lib/private/Files/Storage/Common.php - line 458:

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

/var/www/html/apps/files_external/lib/Lib/Storage/SMB.php - line 717:

OC\Files\Storage\Common->test()

/var/www/html/apps/files_external/lib/MountConfig.php - line 130:

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

/var/www/html/apps/files_external/lib/Controller/StoragesController.php - line 270:

OCA\Files_External\MountConfig::getBackendStatus("*** sensiti ... *")

/var/www/html/apps/files_external/lib/Controller/GlobalStoragesController.php - line 120:

OCA\Files_External\Controller\StoragesController->updateStorageStatus("*** sensiti ... *")

/var/www/html/lib/private/AppFramework/Http/Dispatcher.php - line 217:

OCA\Files_External\Controller\GlobalStoragesController->create()

/var/www/html/lib/private/AppFramework/Http/Dispatcher.php - line 126:

OC\AppFramework\Http\Dispatcher->executeController()

/var/www/html/lib/private/AppFramework/App.php - line 157:

OC\AppFramework\Http\Dispatcher->dispatch()

/var/www/html/lib/private/Route/Router.php - line 302:

OC\AppFramework\App::main()

/var/www/html/lib/base.php - line 1006:

OC\Route\Router->match()

/var/www/html/index.php - line 36:

OC::handleRequest()

Caused by Icewind\SMB\Exception\ConnectionResetException: /

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/var/www/html/apps/files_external/lib/Lib/Storage/SMB.php - line 189:

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

/var/www/html/apps/files_external/lib/Lib/Storage/SMB.php - line 342:

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

/var/www/html/lib/private/Files/Storage/Common.php - line 458:

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

/var/www/html/apps/files_external/lib/Lib/Storage/SMB.php - line 717:

OC\Files\Storage\Common->test()

/var/www/html/apps/files_external/lib/MountConfig.php - line 130:

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

/var/www/html/apps/files_external/lib/Controller/StoragesController.php - line 270:

OCA\Files_External\MountConfig::getBackendStatus("*** sensiti ... *")

/var/www/html/apps/files_external/lib/Controller/GlobalStoragesController.php - line 120:

OCA\Files_External\Controller\StoragesController->updateStorageStatus("*** sensiti ... *")

/var/www/html/lib/private/AppFramework/Http/Dispatcher.php - line 217:

OCA\Files_External\Controller\GlobalStoragesController->create()

/var/www/html/lib/private/AppFramework/Http/Dispatcher.php - line 126:

OC\AppFramework\Http\Dispatcher->executeController()

/var/www/html/lib/private/AppFramework/App.php - line 157:

OC\AppFramework\Http\Dispatcher->dispatch()

/var/www/html/lib/private/Route/Router.php - line 302:

OC\AppFramework\App::main()

/var/www/html/lib/base.php - line 1006:

OC\Route\Router->match()

/var/www/html/index.php - line 36:

OC::handleRequest()

Does somebody know how to mount a Samba share on a Mac to a Nextcloud?