SMB Share not available

Nextcloud version (eg, 20.0.5): 23.0.2
Operating system and version (eg, Ubuntu 20.04): Debian 10.11
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.38
PHP version (eg, 7.4): PHP 7.3.31-1~deb10u1

The issue you are facing:
We have 2 SMB Shares mounted via “External Storage Support”. Both of them are on the same Samba host. The Shares are mounted via the external Storage Options in the Admin settings and shared with a group of users. One of the shares is working fine. The other one was working fine until this morning. Now, whenever I try to open the Folder in the webinterface its a 50/50 whether it will open or I get an Error, that the folder is not available. The Mac App is also throwing alot of errors when trying to sync the folder (Malform state response from server).

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. Try to open shared folder via web interface

The output of your Nextcloud log in Admin > Logging:

| — | — |

Fatal	webdav	Icewind\SMB\Exception\Exception: Malformed state response from server
/var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Wrapped/Share.php - line 217:

Icewind\SMB\Wrapped\Parser->parseStat([])

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

Icewind\SMB\Wrapped\Share->stat("/Kirchhoff")

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

OCA\Files_External\Lib\Storage\SMB->getFileInfo("/Kirchhoff")

/var/www/nextcloud/lib/private/Files/Storage/Common.php - line 187:

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

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

OC\Files\Storage\Common->filemtime("Kirchhoff")


Fehler	PHP	Error: Undefined index: attributes at /var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Wrapped/Parser.php#155
/var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Wrapped/Parser.php - line 155:

OC\Log\ErrorHandler::onError(8, "Undefined index: attributes", "/var/www/ne ... p", 155, { output: [],data: []})

/var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Wrapped/Share.php - line 217:

Icewind\SMB\Wrapped\Parser->parseStat([])

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

Icewind\SMB\Wrapped\Share->stat("/Kirchhoff")

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

OCA\Files_External\Lib\Storage\SMB->getFileInfo("/Kirchhoff")

/var/www/nextcloud/lib/private/Files/Storage/Common.php - line 187:

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

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

OC\Files\Storage\Common->filemtime("Kirchhoff")


3 Likes

I am getting similar issue. Mine fist started by loading subfolder without any content. After rebooting server not it won’t even load. Keep getting PHP] Error: Undefined index: attributes at /var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Wrapped/Parser.php#155

Got same thing here :frowning:

So I got the same issue and here is what I did to solve it :
I was running php 7.4, I moved to php 8.1
Then I got an Internal server error that I fixed by installing the following module :

sudo apt install php8.1-memcached

Then I installed the PHP smb client :

sudo apt install php8.1-smbclient

All my files that were in error are now uploading to the server!