Open imolb opened 2 years ago
Same here.
Hi guys, I had this errors: message":"fseek(): stream does not support seeking at /var/www/nextcloud/apps/files_external/3rdparty/icewind/streams/src/Wrapper.php#46" and "message":"Malformed state response from server","userAgent":"Mozilla/5.0 (Windows) mirall/3.5.2stable-Win64 (build 20220701) (Nextcloud, windows-10.0.22000 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"23.0.3.2","exception":{"Exception":"Icewind\SMB\Exception\Exception","Message":"Malformed state response from server"
I don't know exactly why, but applying the following lines seems to have solved my problem : apt install -y \ apache2 libapache2-mod-php \ mariadb-server openssl redis-server wget php-imagick \ php-common php-curl php-gd php-gmp php-bcmath php-imap \ php-intl php-json php-mbstring php-mysql php-ssh2 php-xml \ php-zip php-apcu php-redis php-ldap php-phpseclib
apt-get install -y libsmbclient-dev php-dev php-pear
pecl channel-update pecl.php.net mkdir -p /tmp/pear/cache pecl install smbclient-stable echo "extension=smbclient.so" > /etc/php/7.4/mods-available/smbclient.ini phpenmod smbclient systemctl restart apache2
Maybe somebody can help me understand...
Same problem here with SMB shares.
Is this related to upstream issue https://github.com/icewind1991/SMB/issues/109 ?
Is this related to upstream issue icewind1991/SMB#109 ?
I don't think so:
Same Problem while uploading Files. If i copy Files into the HDD the Cloud cant scan the files
Same issue
same issue started some days ago without any updates from my side.
I solved this problem by installing the php-smb module.
I solved this problem by installing the php-smb module.
I already have installed the Module.
I solved this problem by installing the php-smb module.
I already have installed the Module.
v8.0?
I solved this problem by installing the php-smb module.
thank you for your reply solved by install php-smbclient for 7.4/8.0 and 8.1 php versions
I solved this problem by installing the php-smb module.
I already have installed the Module.
v8.0?
On my Cloud at Home i have 7.4. On the Cloud on my Work we have 8.0, but the same issue.
PHP 7.4.30 (cli) (built: Jul 7 2022 15:51:43) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.30, Copyright (c), by Zend Technologies
dante@cloud ~$ php -m
[PHP Modules]
apcu
bcmath
bz2
calendar
Core
ctype
curl
date
dom
exif
FFI
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
imagick
intl
json
ldap
libxml
mbstring
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
Phar
posix
readline
Reflection
session
shmop
SimpleXML
sockets
sodium
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zip
zlib
[Zend Modules]
Zend OPcache
dante@cloud ~$ sudo apt-get install smbclient
[sudo] password for dante:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
smbclient is already the newest version (2:4.13.13+dfsg-1~deb11u5).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sudo apt install php8.1-smbclient
Unable to locate package php8.1-smbclient
Try apt install php8.0-smbclient (or choose your version)
I already wrote, i installed 7.4 smb Client. Same issue
Nextcloud in Docker with PHP 8.0
Scan Folder:
Exception during scan: Undefined array key "attributes"
#0 /var/www/html/apps/files_external/3rdparty/icewind/smb/src/Wrapped/Parser.php(155): OCA\Files\Command\Scan->exceptionErrorHandler(2, 'Undefined array...', '/var/www/html/a...', 155)
nextcloud/server#1 /var/www/html/apps/files_external/3rdparty/icewind/smb/src/Wrapped/Share.php(217): Icewind\SMB\Wrapped\Parser->parseStat(Array)
nextcloud/server#2 /var/www/html/apps/files_external/lib/Lib/Storage/SMB.php(193): Icewind\SMB\Wrapped\Share->stat('/Hoerbuecher & ...')
nextcloud/server#3 /var/www/html/apps/files_external/lib/Lib/Storage/SMB.php(645): OCA\Files_External\Lib\Storage\SMB->getFileInfo('/Hoerbuecher & ...')
nextcloud/server#4 /var/www/html/lib/private/Files/Storage/Common.php(115): OCA\Files_External\Lib\Storage\SMB->filetype('Hoerbuecher & H...')
nextcloud/server#5 /var/www/html/lib/private/Files/Storage/Wrapper/Wrapper.php(114): OC\Files\Storage\Common->is_dir('Hoerbuecher & H...')
nextcloud/server#6 /var/www/html/lib/private/Files/Storage/Wrapper/Wrapper.php(114): OC\Files\Storage\Wrapper\Wrapper->is_dir('Hoerbuecher & H...')
nextcloud/server#7 /var/www/html/lib/private/Files/Storage/Wrapper/Availability.php(131): OC\Files\Storage\Wrapper\Wrapper->is_dir('Hoerbuecher & H...')
nextcloud/server#8 /var/www/html/lib/private/Files/Storage/Wrapper/Wrapper.php(114): OC\Files\Storage\Wrapper\Availability->is_dir('Hoerbuecher & H...')
nextcloud/server#9 /var/www/html/apps/workflowengine/lib/Check/FileMimeType.php(126): OC\Files\Storage\Wrapper\Wrapper->is_dir('Hoerbuecher & H...')
nextcloud/server#10 /var/www/html/apps/workflowengine/lib/Check/FileMimeType.php(109): OCA\WorkflowEngine\Check\FileMimeType->getActualValue()
nextcloud/server#11 /var/www/html/apps/workflowengine/lib/Service/RuleMatcher.php(245): OCA\WorkflowEngine\Check\FileMimeType->executeCheck('is', '/image\\/.*/')
nextcloud/server#12 /var/www/html/apps/workflowengine/lib/Service/RuleMatcher.php(180): OCA\WorkflowEngine\Service\RuleMatcher->check(Array)
nextcloud/server#13 /var/www/html/apps/workflowengine/lib/Service/RuleMatcher.php(128): OCA\WorkflowEngine\Service\RuleMatcher->getMatchingOperations('OCA\\FilesAutoma...', false)
nextcloud/server#14 /var/www/html/apps/files_automatedtagging/lib/Operation.php(95): OCA\WorkflowEngine\Service\RuleMatcher->getFlows(false)
nextcloud/server#15 /var/www/html/apps/files_automatedtagging/lib/Listener/CacheListener.php(43): OCA\FilesAutomatedTagging\Operation->checkOperations(Object(OCA\Files_Trashbin\Storage), 2021870, 'Hoerbuecher & H...')
nextcloud/server#16 /var/www/html/lib/private/EventDispatcher/ServiceEventListener.php(87): OCA\FilesAutomatedTagging\Listener\CacheListener->handle(Object(OCP\Files\Cache\CacheEntryUpdatedEvent))
nextcloud/server#17 /var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php(251): OC\EventDispatcher\ServiceEventListener->__invoke(Object(OCP\Files\Cache\CacheEntryUpdatedEvent), 'OCP\\Files\\Cache...', Object(Symfony\Component\EventDispatcher\EventDispatcher))
nextcloud/server#18 /var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php(73): Symfony\Component\EventDispatcher\EventDispatcher->callListeners(Array, 'OCP\\Files\\Cache...', Object(OCP\Files\Cache\CacheEntryUpdatedEvent))
nextcloud/server#19 /var/www/html/lib/private/EventDispatcher/EventDispatcher.php(88): Symfony\Component\EventDispatcher\EventDispatcher->dispatch(Object(OCP\Files\Cache\CacheEntryUpdatedEvent), 'OCP\\Files\\Cache...')
nextcloud/server#20 /var/www/html/lib/private/EventDispatcher/EventDispatcher.php(100): OC\EventDispatcher\EventDispatcher->dispatch('OCP\\Files\\Cache...', Object(OCP\Files\Cache\CacheEntryUpdatedEvent))
nextcloud/server#21 /var/www/html/lib/private/Files/Cache/Cache.php(420): OC\EventDispatcher\EventDispatcher->dispatchTyped(Object(OCP\Files\Cache\CacheEntryUpdatedEvent))
nextcloud/server#22 /var/www/html/lib/private/Files/Cache/Wrapper/CacheWrapper.php(145): OC\Files\Cache\Cache->update(2021870, Array)
nextcloud/server#23 /var/www/html/lib/private/Files/Cache/Scanner.php(293): OC\Files\Cache\Wrapper\CacheWrapper->update(2021870, Array)
nextcloud/server#24 /var/www/html/lib/private/Files/Cache/Scanner.php(226): OC\Files\Cache\Scanner->addToCache('Hoerbuecher & H...', Array, 2021870)
nextcloud/server#25 /var/www/html/lib/private/Files/Cache/Scanner.php(438): OC\Files\Cache\Scanner->scanFile('Hoerbuecher & H...', 3, 2021830, Object(OC\Files\Cache\CacheEntry), true, Array)
nextcloud/docker#26 /var/www/html/lib/private/Files/Cache/Scanner.php(390): OC\Files\Cache\Scanner->handleChildren('Hoerbuecher & H...', true, 3, 2021830, true, 0)
nextcloud/server#27 /var/www/html/lib/private/Files/Cache/Scanner.php(393): OC\Files\Cache\Scanner->scanChildren('Hoerbuecher & H...', true, 3, 2021830, true)
nextcloud/server#28 /var/www/html/lib/private/Files/Cache/Scanner.php(393): OC\Files\Cache\Scanner->scanChildren('Hoerbuecher & H...', true, 3, 2021829, true)
nextcloud/server#29 /var/www/html/lib/private/Files/Cache/Scanner.php(393): OC\Files\Cache\Scanner->scanChildren('Hoerbuecher & H...', true, 3, 2020052, true)
nextcloud/server#30 /var/www/html/lib/private/Files/Cache/Scanner.php(342): OC\Files\Cache\Scanner->scanChildren('Hoerbuecher & H...', true, 3, 2020041, true)
nextcloud/server#31 /var/www/html/lib/private/Files/Utils/Scanner.php(256): OC\Files\Cache\Scanner->scan('Hoerbuecher & H...', true, 3)
nextcloud/server#32 /var/www/html/apps/files/lib/Command/Scan.php(144): OC\Files\Utils\Scanner->scan('/corin.corvus/f...', true, NULL)
nextcloud/server#33 /var/www/html/apps/files/lib/Command/Scan.php(200): OCA\Files\Command\Scan->scanFiles('corin.corvus', '/corin.corvus/f...', Object(Symfony\Component\Console\Output\ConsoleOutput), false, true, false)
nextcloud/server#34 /var/www/html/3rdparty/symfony/console/Command/Command.php(255): OCA\Files\Command\Scan->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
nextcloud/server#35 /var/www/html/core/Command/Base.php(168): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
nextcloud/server#36 /var/www/html/3rdparty/symfony/console/Application.php(1009): OC\Core\Command\Base->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
nextcloud/server#37 /var/www/html/3rdparty/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand(Object(OCA\Files\Command\Scan), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
nextcloud/server#38 /var/www/html/3rdparty/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
nextcloud/server#39 /var/www/html/lib/private/Console/Application.php(211): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
nextcloud/server#40 /var/www/html/console.php(100): OC\Console\Application->run()
nextcloud/server#41 /var/www/html/occ(11): require_once('/var/www/html/c...')
nextcloud/server#42 {main}
+---------+-------+--------------+
| Folders | Files | Elapsed time |
+---------+-------+--------------+
| 4 | 1 | 00:00:00 |
+---------+-------+--------------+
Version: 8.0.24 Speicherlimit: 4 GB Maximale Ausführungszeit: 3600 Maximale Größe zum Hochladen: 20 GB Erweiterungen: Core, date, libxml, openssl, pcre, sqlite3, zlib, ctype, curl, dom, fileinfo, filter, ftp, hash, iconv, json, mbstring, SPL, PDO, pdo_sqlite, session, posix, Reflection, standard, SimpleXML, Phar, tokenizer, xml, xmlreader, xmlwriter, mysqlnd, apache2handler, apcu, bcmath, exif, gd, gmp, imagick, intl, ldap, memcached, pcntl, pdo_mysql, pdo_pgsql, redis, sodium, zip, Zend OPcache
In the Container:
root@b751997e9419:/var/www/html# apt-get install php8.0-smbclient
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package php8.0-smbclient
E: Couldn't find any package by glob 'php8.0-smbclient'
E: Couldn't find any package by regex 'php8.0-smbclient'
root@b751997e9419:/var/www/html# apt-get install php-smbclient
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package php-smbclient
root@b751997e9419:/var/www/html# apt-get install smbclient
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
smbclient is already the newest version (2:4.13.13+dfsg-1~deb11u5).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@b751997e9419:/var/www/html#
The Docker Image is official Nextcloud Image with this:
FROM nextcloud:24.0.7
RUN set -x \
&& apt-get update \
&& apt-get install -y libmagickcore-6.q16-6-extra smbclient \
&& rm -rf /var/lib/apt/lists/*
Same Server, Same Docker, other External Storage Folder work:
This was resolved on my Debian bullseye by installing pecl smbclient extension https://pecl.php.net/package/smbclient
I already wrote, i installed 7.4 smb Client. Same issue
i already installed smbclient... i wrote it 4 times. It not solve the Problem. Its in the Container, its on the native installation, its on my test installation. All the Time the same Problem with the same and other external storage, with different php installations, all with debian rootsystem. No Solution.
root@0b7c0aecfaf3:/var/www/html# apt-get install libsmbclient
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libsmbclient is already the newest version (2:4.13.13+dfsg-1~deb11u5).
libsmbclient set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@0b7c0aecfaf3:/var/www/html# apt-get install smbclient
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
smbclient is already the newest version (2:4.13.13+dfsg-1~deb11u5).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Same on generate previews.
2022-11-20T15:22:40+00:00 In Parser.php line 157:
2022-11-20T15:22:40+00:00
2022-11-20T15:22:40+00:00 [Icewind\SMB\Exception\Exception]
2022-11-20T15:22:40+00:00 Malformed state response from server
2022-11-20T15:22:40+00:00
2022-11-20T15:22:40+00:00
2022-11-20T15:22:40+00:00 Exception trace:
2022-11-20T15:22:40+00:00 at /var/www/html/apps/files_external/3rdparty/icewind/smb/src/Wrapped/Parser.php:157
2022-11-20T15:22:40+00:00 Icewind\SMB\Wrapped\Parser->parseStat() at /var/www/html/apps/files_external/3rdparty/icewind/smb/src/Wrapped/Share.php:217
2022-11-20T15:22:40+00:00 Icewind\SMB\Wrapped\Share->stat() at /var/www/html/apps/files_external/lib/Lib/Storage/SMB.php:191
2022-11-20T15:22:40+00:00 OCA\Files_External\Lib\Storage\SMB->getFileInfo() at /var/www/html/apps/files_external/lib/Lib/Storage/SMB.php:666
2022-11-20T15:22:40+00:00 OCA\Files_External\Lib\Storage\SMB->file_exists() at /var/www/html/lib/private/Files/Storage/Wrapper/Wrapper.php:227
2022-11-20T15:22:40+00:00 OC\Files\Storage\Wrapper\Wrapper->file_exists() at /var/www/html/lib/private/Files/Storage/Wrapper/Wrapper.php:227
2022-11-20T15:22:40+00:00 OC\Files\Storage\Wrapper\Wrapper->file_exists() at /var/www/html/lib/private/Files/Storage/Wrapper/Availability.php:244
2022-11-20T15:22:40+00:00 OC\Files\Storage\Wrapper\Availability->file_exists() at /var/www/html/lib/private/Files/Storage/Wrapper/Wrapper.php:227
2022-11-20T15:22:40+00:00 OC\Files\Storage\Wrapper\Wrapper->file_exists() at /var/www/html/lib/private/Files/View.php:1349
2022-11-20T15:22:40+00:00 OC\Files\View->getCacheEntry() at /var/www/html/lib/private/Files/View.php:1394
2022-11-20T15:22:40+00:00 OC\Files\View->getFileInfo() at /var/www/html/lib/private/Files/Node/Root.php:205
2022-11-20T15:22:40+00:00 OC\Files\Node\Root->get() at /var/www/html/lib/private/Files/Node/Folder.php:138
2022-11-20T15:22:40+00:00 OC\Files\Node\Folder->get() at /var/www/html/lib/private/Files/Node/Folder.php:147
2022-11-20T15:22:40+00:00 OC\Files\Node\Folder->nodeExists() at /var/www/html/custom_apps/previewgenerator/lib/Command/Generate.php:203
2022-11-20T15:22:40+00:00 OCA\PreviewGenerator\Command\Generate->parseFolder() at /var/www/html/custom_apps/previewgenerator/lib/Command/Generate.php:214
2022-11-20T15:22:40+00:00 OCA\PreviewGenerator\Command\Generate->parseFolder() at /var/www/html/custom_apps/previewgenerator/lib/Command/Generate.php:214
2022-11-20T15:22:40+00:00 OCA\PreviewGenerator\Command\Generate->parseFolder() at /var/www/html/custom_apps/previewgenerator/lib/Command/Generate.php:185
2022-11-20T15:22:40+00:00 OCA\PreviewGenerator\Command\Generate->generatePathPreviews() at /var/www/html/custom_apps/previewgenerator/lib/Command/Generate.php:133
2022-11-20T15:22:40+00:00 OCA\PreviewGenerator\Command\Generate->execute() at /var/www/html/3rdparty/symfony/console/Command/Command.php:255
2022-11-20T15:22:40+00:00 Symfony\Component\Console\Command\Command->run() at /var/www/html/3rdparty/symfony/console/Application.php:1009
2022-11-20T15:22:40+00:00 Symfony\Component\Console\Application->doRunCommand() at /var/www/html/3rdparty/symfony/console/Application.php:273
2022-11-20T15:22:40+00:00 Symfony\Component\Console\Application->doRun() at /var/www/html/3rdparty/symfony/console/Application.php:149
2022-11-20T15:22:40+00:00 Symfony\Component\Console\Application->run() at /var/www/html/lib/private/Console/Application.php:213
2022-11-20T15:22:40+00:00 OC\Console\Application->run() at /var/www/html/console.php:100
2022-11-20T15:22:40+00:00 require_once() at /var/www/html/occ:11
2022-11-20T15:22:40+00:00
2022-11-20T15:22:40+00:00 preview:generate-all [-p|--path [PATH]] [--] [<user_id>...]
2022-11-20T15:22:40+00:00
@corincorvus smbclient and libsmbclient are not enough, you also need the php bindings
I see that you attempted to install them in https://github.com/nextcloud/server/issues/41114 but the packages were not found. Maybe the packages are called differently on that distro ?
there might be distros that don't ship it as package, so need to use pecl to compile it
Tell me the php package for the official Docker Container inclusive command please. Distro: Debian 11 Bullseye stable
Container:
PHP Version in Docker Container: root@abc52e34c8eb:/var/www/html# php -v PHP 8.1.12 (cli) (built: Nov 15 2022 04:46:23) (NTS) Copyright (c) The PHP Group Zend Engine v4.1.12, Copyright (c) Zend Technologies with Zend OPcache v8.1.12, Copyright (c), by Zend Technologies
Repos of the Container:
root@abc52e34c8eb:/var/www/html# cat /etc/apt/sources.list
# deb http://snapshot.debian.org/archive/debian/20221114T000000Z bullseye main
deb http://deb.debian.org/debian bullseye main
# deb http://snapshot.debian.org/archive/debian-security/20221114T000000Z bullseye-security main
deb http://deb.debian.org/debian-security bullseye-security main
# deb http://snapshot.debian.org/archive/debian/20221114T000000Z bullseye-updates main
deb http://deb.debian.org/debian bullseye-updates main
root@abc52e34c8eb:/var/www/html# apt-get install php-smbclient
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package php-smbclient
root@abc52e34c8eb:/var/www/html# apt-get install php8.1-smbclient
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package php8.1-smbclient
E: Couldn't find any package by glob 'php8.1-smbclient'
E: Couldn't find any package by regex 'php8.1-smbclient'
root@abc52e34c8eb:/var/www/html#
Image builded with:
FROM nextcloud:25.0.1
RUN set -x \
&& apt-get update \
&& apt-get install -y libmagickcore-6.q16-6-extra smbclient \
&& rm -rf /var/lib/apt/lists/*
@szaimen can you help ? assuming that it's about the Docker all in one ^
maybe extra repos are required there
No, this one is not the AIO container image. In this case it most likely come from this repo: https://github.com/nextcloud/docker
In this case it most likely come from this repo: https://github.com/nextcloud/docker
and this one does indeed not include the smbclient by default afaik
In this case it most likely come from this repo: https://github.com/nextcloud/docker
and this one does indeed not include the smbclient by default afaik
So i installed it:
FROM nextcloud:25.0.1
RUN set -x \
&& apt-get update \
&& apt-get install -y libmagickcore-6.q16-6-extra smbclient \
&& rm -rf /var/lib/apt/lists/*
Please continue in https://github.com/nextcloud/docker/issues/1638
@szaimen I do not agree on closing this issue. The original issue is about direct Debian bullseye installation (without docker). Debian bullseye is with php 7.4. Upgrade to PHP 8 or usage of a docker image might circumvent the problem, but does not solve: Nextcloud does not support SMB on latest stable Debian bullseye with PHP 7.4.
As SMB support was working in Nextcloud before an upgrade of Nextcloud it does not look like a problematic SMB installation but more like incompatibility in Nextcloud with PHP 7.4 libraries.
@imolb can you confirm that you have the php-libsmbclient library installed ?
actually smbclient + libsmbclient + php-libsmbclient
if all three are installed then we can consider this a regression and reopen
(also check that the php-libsmbclient module is enabled in the PHP module list)
@PVince81 I'm able to browse in the SMB share by the browser GUI. I'm also able to create files and folders in the browser GUI. But moving a file does trigger the failure.
I can confirm smbclient, libsmbclient are installed. php-libsmbclient not. Instead php-smbclient is installed:
root# dpkg-query -l | grep smb
ii libsmbclient:amd64 2:4.13.13+dfsg-1~deb11u5 amd64 shared library for communication with SMB/CIFS servers
ic php-smbclient 0.9.0-3+b1 amd64 PHP wrapper for libsmbclient
ii smbclient 2:4.13.13+dfsg-1~deb11u5 amd64 command-line SMB/CIFS clients for Unix
But the module is not listed in the PHP module list.
root# php -m | grep s
[PHP Modules]
hash
json
mbstring
mysqli
mysqlnd
openssl
pdo_mysql
posix
session
shmop
sockets
sodium
standard
sysvmsg
sysvsem
sysvshm
xsl
[Zend Modules]
@szaimen I do not agree on closing this issue. The original issue is about direct Debian bullseye installation (without docker). Debian bullseye is with php 7.4. Upgrade to PHP 8 or usage of a docker image might circumvent the problem, but does not solve: Nextcloud does not support SMB on latest stable Debian bullseye with PHP 7.4.
As SMB support was working in Nextcloud before an upgrade of Nextcloud it does not look like a problematic SMB installation but more like incompatibility in Nextcloud with PHP 7.4 libraries.
I have the same Issue on native installation with debian. The old Installation do the same Errors without Docker.
At the moment i use the old System native on Debian with php installed without docker (Stable productive Installation for my Family and friends) The Second is my new Docker installation. I hoped to solve the problem with this step, but it doesnt.
@PVince81 I'm able to browse in the SMB share by the browser GUI. I'm also able to create files and folders in the browser GUI. But moving a file does trigger the failure.
I can confirm smbclient, libsmbclient are installed. php-libsmbclient not. Instead php-smbclient is installed:
root# dpkg-query -l | grep smb ii libsmbclient:amd64 2:4.13.13+dfsg-1~deb11u5 amd64 shared library for communication with SMB/CIFS servers ic php-smbclient 0.9.0-3+b1 amd64 PHP wrapper for libsmbclient ii smbclient 2:4.13.13+dfsg-1~deb11u5 amd64 command-line SMB/CIFS clients for Unix
But the module is not listed in the PHP module list.
root# php -m | grep s [PHP Modules] hash json mbstring mysqli mysqlnd openssl pdo_mysql posix session shmop sockets sodium standard sysvmsg sysvsem sysvshm xsl [Zend Modules]
Same in my 2 Installations. I can browse, write and read on the external Storage. I can open and create new documents with collabora on external storage with the same packages and no installed php-smbclient
Yesterday i checked the Installations of my work Customer Clouds with Debian Bullseye. All 6 Installations dont have php-smbclientm only smbclient (i didnt install them), but all use SMB external storage. 2 of them have the same issues on some folders/files. Most Problems are on video files like mp4.
In my private installations the mp4 or pdf stuck often. If i backup and remove the files from the storage, the scan run ok. If i restore the files back, the Scan failed. If i upload the same files on internal Storage over sync client or Webgui, the files work and the internal scan work fine. The files only make problems in combination with external storage.
@corincorvus in general we recommend using php-libsmbclient because this uses the native SMB protocol
if you don't have it, there's code that is talking to the "smbclient" command line client and tries to parse its output, which is less reliable and can cause issues like the above, which might or might not appear on certain versions of smbclient for certain file operations.
from what I remember if the SMB storage that one is connecting to is using DFS, it doesn't work properly with the smbclient library so have to switch to php-libsmbclient
@imolb since this is your original report and you have php-libsmbclient installed, I'll reopen this now
so the bug is now about moving/renaming
@icewind1991 can you check it ?
I cant find a repository to install php-smbclient for docker or native debian 11 installation. Sury php repo is enabled on my native installation. php7.4-smbclient, php8.1-smbclient and php-smbclient not found.
@corincorvus as far as I remember it's a less popular library so not all distros have it.
maybe you can check with the maintainers from the docker if they can precompile it somehow with pecl: https://github.com/nextcloud/docker/issues/1638
@corincorvus as far as I remember it's a less popular library so not all distros have it.
maybe you can check with the maintainers from the docker if they can precompile it somehow with pecl: nextcloud/docker#1638
And for native Installations? iam looking for a repo for this package at the moment. My Stable Installation is native, not docker.
@corincorvus as far as I remember it's a less popular library so not all distros have it.
maybe you can check with the maintainers from the docker if they can precompile it somehow with pecl: nextcloud/docker#1638
No precompiled package found :/
Incredibly weird issue - had the same error message as well when syncing Joplin via WebDAV. For me, it was a folder that was not showing its contents in the web GUI. I fixed it by creating a dummy folder (a file alone did not work for me) on the disk manually (on the SMB share). The full folder content appeared in the web GUI afterwards.
Also struggling with this error while using photo Auto-Upload on iPhone NextCloud app (4.6.0.19) with Nextcloud server (25.0.3) running in Proxmox with Linux Turnkey. Some photos upload fine while some return the error repeatedly.
I have the same issue. Is there an update on this bug?
SMB works fine when accessing via browser or even Windows share. For me the error only occurs when using the IOS Nextcloud app and doing the automated photo backup. I get the "Malformed state response from server error"
[webdav] Error: Icewind\SMB\Exception\Exception: Malformed state response from server at <
anyone looking at this bug? I cannot believe that this is low priority. Lot sof people must be running NC + External Storage SMB
Hi, please update to 25.0.7 or better 26.0.2 and report back if it fixes the issue. Thank you!
My goal is to add a label like e.g. 26-feedback to this ticket of an up-to-date major Nextcloud version where the bug could be reproduced. However this is not going to work without your help. So thanks for all your effort!
If you don't manage to reproduce the issue in time and the issue gets closed but you can reproduce the issue afterwards, feel free to create a new bug report with up-to-date information by following this link: https://github.com/nextcloud/server/issues/new?assignees=&labels=bug%2C0.+Needs+triage&template=BUG_REPORT.yml&title=%5BBug%5D%3A+
I can confirm uploading files to a SMB-share works again since v26.0.2
Thanks for verifying!
I can confirm at it does NOT work in 26.02
I can confirm at it does NOT work in 26.02
I have it working again with a previously working instance.
I'm using the docker container which means that I had to do these steps to get the SMB-share integration in order:
docker exec -it nextcloud_app_1 /bin/bash
apt-get update && apt-get install -y procps smbclient && rm -rf /var/lib/apt/lists/
docker restart nextcloud_app_1
⚠️ This issue respects the following points: ⚠️
Bug description
Files can not be synchronized from an Android device with "Nextcloud Android App" into the SMB storage location. Or alternatively files can not be moved within the SMB storage via the browser GUI. Instead the following errors are reported
Steps to reproduce
Instead of step 4. to 6. also a file within the SMB share could be moved in the browser GUI.
Expected behavior
The file is uploaded to Nextcloud storage.
Installation method
Manual installation
Operating system
Debian/Ubuntu
PHP engine version
PHP 7.4
Web server
Apache (supported)
Database engine version
MySQL
Is this bug present after an update or on a fresh install?
Updated to a major version (ex. 22.2.3 to 23.0.1)
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
Problem arose after upgrade of nextcloud sever (major versions). Worked well before.
There is an similar bug nextcloud/server#30751 created recently also effecting the external SMB but with different error message. Bug nextcloud/server#30751 reports "Unknown error (NT_STATUS_OBJECT_NAME_INVALID)", this bug reports "Undefined index: attributes".
The problem is also mentioned in the nextcloud.com forum: https://help.nextcloud.com/t/smb-share-not-available/134928